A
A
Artem Lungu2020-08-01 00:15:15
satellite navigation
Artem Lungu, 2020-08-01 00:15:15

How to make gps navigator in php?

Good! Is it possible to organize a navigator on the site? We can determine the location. The question is: how to make a map where you can indicate the path from A to B, select a route and press the button let's go? Point A can be put my location. Then everything is as in the navigator, the movement along the route of my car. It is possible without a voice, just to have navigation on the map along the route.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2020-08-01
@pfg21

loop the coordinate request function (javascript inside the page) through the browser api and move the map accordingly.
php is executed on the server side, it does not know anything about the user's coordinates, well, unless they are caught on the client side (javascript again) and transferred to the server.
TK needs to be thought out and a web navigator is quite possible.

X
xmoonlight, 2020-08-01
@xmoonlight

Look at Googlemaps - it can scroll the map itself depending on the coordinates from the local GPS.
Everything is written through js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question