Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question