Skip to content

Comment on Geo.js, Building location-aware mobile websites with Javascriptparent

Comments

It looks like it's really only designed to work with devices that provide Geolocation functionality. They have a list on their site: http://code.google.com/p/geo-location-javascript/wiki/Suppor...

I think this also includes support for the Geolocation API found in Firefox 3.5, so they can probably add that to the list, as well.

Yep, you are right, FF 3.5 is being provided with location by the Google Location Service (http://google-code-updates.blogspot.com/2009/04/google-locat...). Also, this service implements http://dev.w3.org/geo/api/spec-source.html, which should, once widely adopted, void the need of a wrapper library such as geo.js posted here.

Edit: Typo

How does FF 3.5 get the location? The example asked me to share location, but then showed me in the middle of New York City when in fact I am in Burlington Vermont

FF 3.5 uses your IP address or wifi basestation id to retrieve the location and there is no guarantee that is accurate. In order to be accurate you need to use GPS or Cell Tower Locating from you cell phone.

The service they use is particularly bad then. Most places I have tried get within a few towns for my office. (Obviously none can get my home satellite connection correct)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.