1

I want to be able to determine just what country a person is in (on Android, without using the GPS), so I was thinking to use a web API, that I can call and it will return the country based on the request IP. But I can't find any web API that does this, does any exist?

Amandeep Grewal
  • 1,801
  • 3
  • 19
  • 30

4 Answers4

0

You can use Google place API look at here just pass the parameters and you will get response in json/xml

Sunny
  • 14,522
  • 15
  • 84
  • 129
  • The problem with that is that it seems to require an input. I want the input to just be the request IP, which I don't need to provide as that's just part of the header. – Amandeep Grewal Dec 25 '12 at 04:38
  • 1
    http://stackoverflow.com/questions/4453328/get-location-of-wifi-ip-in-android – Sunny Dec 25 '12 at 04:40
-1

You need a database to do that and proxy servers will just frustrate your intent

-1

Using Cell ID

OpenCellID API

IP based location

Get location of wifi ip in android

Community
  • 1
  • 1
Yauraw Gadav
  • 1,706
  • 1
  • 18
  • 39
-1

I ended up using http://www.ipinfodb.com/ip_location_api.php, which fits all the needs I specified in the question.

Amandeep Grewal
  • 1,801
  • 3
  • 19
  • 30