Geolocation accuracy in JS API

864
1
08-18-2011 11:11 AM
ThomasEbert
Occasional Contributor
Hi all!

3 questions about geolocation:

There is more than one way to figure out the geolocation (IP address, wireless network, cell tower, GPS hardware).

1. If I use gelocation in JS API I don't know the used method or the accuracy of returned lat/lon. How can this done?

2. It also seems, that different locations are returned to iOS-ArcGIS-App and to ArcGIS-JS-API Mapping Applications. Why?

3. In ArcGIS JS API Mapping Applications it seems that the geolocation becomes cached and therefore a wrong location is shown on the map. Is it possible to turn off caching geolocation?

I did this on my iPad.
0 Kudos
1 Reply
KellyHutchins
Esri Frequent Contributor
The Geolocation API is not an Esri provided API. The api is defined by the W3C Geolocation API Specification and is supported in most major browsers. You can find the specification here:

http://dev.w3.org/geo/api/spec-source.html

And details on how to work with the API here:
http://diveintohtml5.org/geolocation.html

The above link provides information on how to use the geolocation api, how to find out the accuracy of the coords and much  more.
0 Kudos