In my app i am allowing users to enter there current city, for that i need an organised list of countries, states and cities on my server.
I am looking for an api that's available on net through which i get can download orgainsed list of countries, states and cities and store it on my server in format of my choice in db.
Edit 1
I am not looking for functionality of how to do or implement this, Iam actually looking for a place (website) from where i can download countries list respective states and cities in .zip/.rar format or make web-requests to an url and that url returns me list of countries/states/cities in any format (i will handle the format) , that i can process and store on my server in Database.
The Google Location Services API, part of Google Play services, is the preferred way to add location-awareness to your app. It offers a simpler API, higher accuracy, low-power geofencing, and more. If you are currently using the android.
The Places API and the client libraries are for use in server applications. If you're building a client-side application, take a look at the Places SDK for Android, the Places SDK for iOS, and the Places Library, Maps JavaScript API. The Places API is a service that returns information about places using HTTP requests.
Even though the Google Maps API is free, it does not actually validate addresses, AND it comes with some pretty restrictive terms of service. So, if real address validation is what you need, you may want to read our review on how to choose an address validation provider.
Have a look at this API. May be helpful and it's free.
The United Nations maintain a list of locations around the world which is fairly comprehensive. you could also look at using data from OpenStreetMap, although you may find the data quality varies regionally.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With