How do you get latitude with Javascript

(written by lawrence krubner, however indented passages are often quotes). You can contact lawrence at: lawrence@krubner.com, or follow me on Twitter.

Here is something I did not know about:

$cordovaGeolocation.getCurrentPosition always returning “Position retrieval timed out.” in ios

That’s an error, but it made me aware that you can try to get location via Javascript. I think that is amazing. Why even bother with a native app? And I say that as someone who just spent 6 months at a starup that was committed to doing a native app, in part for native features, including the ability to get latitude and longitude.

Post external references

  1. 1
    http://forum.ionicframework.com/t/cordovageolocation-getcurrentposition-always-returning-position-retrieval-timed-out-in-ios/37026
Source