2

I saw that in different web services (e.g. on Twitter or Facebook, but there also others) they are able to say what the geo location of the user is. Are there any libraries in Java for this kind geolocation?

I'm thinking about building a we service which would depend o the geo location of the user.

Please notice that I'm not talking here about geolocation on mobile devices, I would like to get the location of the user who uses his web broawser on his/her desktoo computer.

Jakub
  • 3,129
  • 8
  • 44
  • 63
  • It must be IP address. They match users' IP address to a lookup database. – Xi 张熹 Apr 21 '12 at 10:26
  • isn't this duplicate of [1415851/best-way-to-get-geo-location-in-java](http://stackoverflow.com/questions/1415851/best-way-to-get-geo-location-in-java)? – Avinash R Oct 31 '12 at 09:34

2 Answers2

1

The biggest DB with WiFi-to-location is Skyhook wireless. You can get the SDK from here : Skyhook Location SDK

It has not fully coverage, but it's the best in my opinion(Google and Apple use it).

Zhivko Draganov
  • 1,213
  • 2
  • 10
  • 16
  • Yes, I found Skyhook, but they're not showing the pricing on their webpage, so I'm looking for more transparent solution. Thank anyway :) – Jakub Apr 21 '12 at 12:13
0

They are maintaining huge IP databases for tracking user geo location based on host.

And as a individual it's not possible to maintain all those host mapping. So for this you have to bye IP table form third party provider.

However if you want, you can get the location details viz city,region,country,longitude,latitude from request header.

It's only available for GAE user(IP table is maintained by google).

If you want you can host a sample application at GAE and use webservice call to get location details(SOA) from your server.Particularly i am talking for non-GAE user.

For more details go through GAE ReleaseNotes

    country     =   request.getHeader("X-AppEngine-Country"); 
    region      =   request.getHeader("X-AppEngine-Region");
    city        =   request.getHeader("X-AppEngine-City");
    temp        =   request.getHeader("X-AppEngine-CityLatLong");
lambodar
  • 3,495
  • 5
  • 34
  • 58