Skip to content

24 ways to impress your friends

Direction, Distance and Destinations

3 Comments

honk

>> Improvements to this could include setting a timer and
>> recalling the navigator.geolocation.getCurrentPosition()
>> function and updating the distances.

there is navigator.geolocation.watchPosition()

Theo

Great lesson!

Just tried the example and works very well. Refreshing the site you get the new direction. I mean you can lead your customers to the next shop with maps but this is a new, and may i say funny way to do it. Thank you very much for this tutorial!