D
D
denypoker2015-10-24 17:53:13
JavaScript
denypoker, 2015-10-24 17:53:13

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

2 answer(s)
M
Mark Doe, 2015-10-24
@mourr

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

A
Anton Guz, 2015-10-24
@aguz

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>

As with today's realities - you need to test (

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question