Pages

Monday, May 31, 2010

Know your location without GPS (Geolocation)

I was fascinated by the Google I/O day one session specially the HTML5 capabilities and Geolocation feature in the latest browsers.

Last weekend I thought of combining the this feature with The Google Geocoding API. In fact I used the  Reverse Geocoding (Address Lookup) to determine the approximate Address of your current location from the Latitude and longitude information gathered by the Geolocation feature .

Note this works only in the latest Firefox (v 3.5 and above) and the latest Google Chrome , Safari and Opera Browser.Internet Explorer yet to implement this.

The below link works well in India as long as you are in an urban place (Metros and important cities).

 

http://neilghosh.files.wordpress.com/2010/05/share.jpgutil/geo/

 

You have to click on “share Location”  in firefox or “Accept” in Chrome at the top of the page , before it sends your location information to server.

share

Used xls to transform the xml returned (with Ajax) by the Google Geocoding API and show as HTML content.

Test the above link and let me know (via comment ) how accurate it gives for your place.(at least it points to my building).

9 comments:

  1. Good work there. Another reason to keep following your posts! ;)

    ReplyDelete
  2. Nice Article... Worth reading

    ReplyDelete
  3. I think it actually points to the locations of the ISP. I tried in Hyd office for which it showed me the map location of Bengaluru.

    ReplyDelete
  4. Your wifi might be disabled.You don't have to hook up to any network just keep it enabled.

    you would find the location to be Oracle Campus .

    The traditional way of finding location via ISP comes into picture when you have WI-FI disabled.

    So it shows Bangalore probably.

    ReplyDelete
  5. I am accessing it from Mantri Office location, BTM Bangalore. It is showing M.G. Road Banglore.

    ReplyDelete
  6. ashish, I think wi-fi is disabled in your laptop , hence its trying to show the location of your internet provider via IP address .

    ReplyDelete
  7. you've a terrific weblog right here! would you wish to make some invite posts on my blog?

    ReplyDelete
  8. There are some attention-grabbing points in time in this article but I don’t know if I see all of them center to heart. There's some validity but I will take hold opinion till I look into it further. Good article , thanks and we wish extra! Added to FeedBurner as properly

    ReplyDelete
  9. It’s arduous to seek out knowledgeable individuals on this matter, however you sound like you know what you’re talking about! Thanks

    ReplyDelete