Answer the question
In order to leave comments, you need to log in
Running gps navigator from website?
I am developing a website for a service station. I would like to implement such a function so that on the mobile version of the site there is a button that launches the device's gps navigator with a route to this service station.
Is it possible to do this at all and in which direction to dig?
Answer the question
In order to leave comments, you need to log in
I don’t know about the device’s GPS navigator, but by getting coordinates using the HTML5 Geolocation API and plotting a route from these coordinates to your service station on some Google or Yandex maps, it’s quite realistic
Dig stands in the direction of geo: schemes.
Example: <a href="geo:55.717771, 37.735467">Find Us</a>
Back in 2011 , the guys tested and came to the conclusion that maps: scheme is better.
Example:
<a href="maps:894%20Granville%20Street%20Vancouver%20BC%20V6Z%201K3">Find Us</a>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question