What I learned on this mini-project.
This is a property of the window object, that contains data about the users location. You must grant access for it to work.
https://gist.github.com/2997906a5a09b9c1d8cd090468a9b72f
The geolocation object is only introduced very briefly, in this project.
This method, allows you to update the users position at regular intervals, instead of getting periodic snapshots of their locations.
The data then needs to be manipulated through a promise
, designed to handle
successful or unsuccessful data retrieval.
https://gist.github.com/d163d1ac55e1341854e2c9819668af8a
Most of the data that you will need is contained in this object. Examples of this include the latitude, longitude and heading (representing degrees from north).