Firefox OS/Geolocation: Difference between revisions

m
no edit summary
m (remove extra "=")
mNo edit summary
Line 2: Line 2:
Firefox OS geolocation API is the W3C Standard API at http://dev.w3.org/geo/api/spec-source.html
Firefox OS geolocation API is the W3C Standard API at http://dev.w3.org/geo/api/spec-source.html


=Implementation=
=Usage=
The underlying implementation can be different for different hardware providers. As a developer, you should be transparent to the underlying implementation, and write apps using the APIs which specifies whether you want enableHighAccuracy or not. eg: if you are writing a navigation app, which needs accuracy upto a few meters, then enableHighAccuracy=TRUE. If you are writing a weather app which just needs w coarse location, then your app can consume less power by enableHighAccuracy=FALSE.  
The underlying implementation can be different for different hardware providers. As a developer, you should be transparent to the underlying implementation, and write apps using the APIs which specifies whether you want enableHighAccuracy or not. eg: if you are writing a navigation app, which needs accuracy upto a few meters, then enableHighAccuracy=TRUE. If you are writing a weather app which just needs w coarse location, then your app can consume less power by enableHighAccuracy=FALSE.  
   
   
canmove, Confirmed users
312

edits