Gears' new GeoLocation API is very slick
Summary: Dion Almaer blogged this morning about the new GeoLocation API in Gears. As a Geo-nut, I'm pretty impressed with how well it's implemented.
Dion Almaer blogged this morning about the new GeoLocation API in Gears. As a Geo-nut, I'm pretty impressed with how well it's implemented. The API is clean, and as Dion notes, with the community working on the W3C Geolocation spec, we could see a lot more geolocation on the web soon.
The mobile version appears only to work on Windows Mobile devices but the API uses a combination of GPS, cell towers, and WiFi/IP information to get a fix on where you are. It works anywhere that you've got Ajax as Dion's example shows.
The release comes as part of Gears 0.4 which in addition to the Geolocation API, also provides onprogress events for HTTP downloads and uploads and some localized dialogues. the onprogressevent will be a big deal for anyone doing large uploads in the browser.
Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.
Talkback
Seems like Gears is going to be a lot more than just an offline tool!!!
RE: Gears' new GeoLocation API is very slick
When will they add more languages to Gears other than Java Script.
RE: Gears' new GeoLocation API is very slick
Thanks for the note!
A couple of points:
a) The geo stuff actually comes in two flavours. My example uses the Ajax API version which doesn't rely on Gears at all (no plugin required). It is just a JavaScript API! It is also only ip-based location (low accuracy etc)
b) The Geolocation API is a Gears API can be a lot more accurate as it can access GPS, Cell tower, WiFi, and ip to work out where you are.
Hope that helps.
Cheers,
Dion
RE: Gears' new GeoLocation API is very slick
Hopefully, it is only a matter of time. They need to get buy in from SUN