Direction, Distance and Destinations

3 Comments

Comments are ordered by helpfulness, as indicated by you. Help us pick out the gems and discourage asshattery by voting on notable comments.

Got something to add? You can leave a comment below.

  1. 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()

  2. 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!

Impress us

Be friendly / use Textile