Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get city name without current location(lat-long) in iOS?

I have a GPS class which returns lat, long. And I'm trying to get the city name or address from that coordinates with geocoder. It works well.

But, is it possible to get city name or anything without geocoder or (lat-long)?

like image 489
Rohit suvagiya Avatar asked Jul 02 '15 06:07

Rohit suvagiya


1 Answers

I have completed task use this api:

http://ip-api.com/json

This will give you your current location from your IP address very simply just call this JSON and you got whatever you required.

like image 100
Rohit suvagiya Avatar answered Oct 18 '22 02:10

Rohit suvagiya