Android Question get Latitude and Longitude by city?

ilan

Expert
Licensed User
Longtime User
hi

how can you get Latitude and Longitude + Timezone id by city?

example:

New York ->

Lat: 40.712776
Lon: -74.005974
TimeZoneID: America/New_York

thanks
 

mangojack

Well-Known Member
Licensed User
Longtime User
how can you get Latitude and Longitude + Timezone id by city?

Another possible solution ..

Using the Places Autocomplete Custom View, you can get the City Latitude and Longitude.

With these parameters, you can then request the TimezoneID using Googles Timezone API.




Edit : you could use Google Places API directly first to get the Lat & Lon , instead of the AutoComplete class (which basically does this for you)
 
Last edited:
Upvote 0
Top