Location
Last updated
Was this helpful?
Last updated
Was this helpful?
The result from Geolocation operations will return a Location
object, which looks like this:
You can read the .
Depending on the Priority
you use to request the location, determines what kind of data is present.
All location results will return the coordinates and the accuracy of those coordinates in meters. In order to get the other values you will need to use a more accurate Priority
, like so:
There is still a chance those values will be null
, since it is up to the device to determine what data is returned.