Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Android and Ios, how to get city name with or without using GPS?

Tags:

android

ios

How to get city name with out using GPS ,GPRS or WiFi? In case we have to use GPS how to identify city name?

like image 471
Kani Avatar asked Nov 12 '22 01:11

Kani


1 Answers

First get your last known location and get the latlag

than pass that in google api url Google Web Api

It will give you json response and you can get what ever you want area, city, state, country etc.

like image 100
sachin Avatar answered Nov 14 '22 23:11

sachin