How to get the world continents data till city level when working with Google App Engine?

350 views
Skip to first unread message

Shruthi Kumbham

unread,
Jul 16, 2015, 5:21:43 AM7/16/15
to google-a...@googlegroups.com

I am developing a Mobile application which has a back end running on Google App Engine. I want to access the World continents data till city level.


Which is the best possible way of doing it? Does google provide any API for that?


I want to list down all the data in drop downs based on continent , country and state. If user selects a city, i want to get the hierarchy of that city in continent level.


For example. If user selects Hyderabad as City, i want its hierarchy in the world map as Hyderabad, Telangana, India, Asia.


Somebody please help me which is the best possible way.

Patrice (Cloud Platform Support)

unread,
Jul 16, 2015, 10:41:51 AM7/16/15
to google-a...@googlegroups.com, Shruthi Kumbham
Hi,

This is pretty vague as a question, and there are a BUNCH of ways to go about it.

I would suggest the Maps API as a start.

In general, asking about "best" possible way is VERY dependent on your use case, so this is pretty much impossible to answer. Do you want it to only contain certain part of the world, or have access to everything everywhere? Do you need it fast, do you need it free, do you need it reliable? to which %? "best" becomes easily subjective and the best solution for me (saving the couple of cities I need, with the relevant hierarchy, in datastore for fast retrieval) might not work for you (using the Maps API as you want something more flexible)

If you could include more details about what exactly your needs are, chances are a better answer can be given. In the meantime, I think Maps API is definitely worth looking at.

Cheers!

Shruthi Kumbham

unread,
Jul 17, 2015, 9:36:13 AM7/17/15
to google-a...@googlegroups.com
Thanks for the reply,

   I want to list down all the continents in a drop down, when user selects one, then list down all the countries in next drop down, in the same way, then states and cities. Just the names of continents, countries, states and cities.

This is my use case. I don't mind if it is free or not.

Thanks,
Shruthi


--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/GQaCkLJQC1w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/5f8d1c79-2400-4167-b6d0-662519ac8081%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Patrice (Cloud Platform Support)

unread,
Jul 17, 2015, 1:13:47 PM7/17/15
to google-a...@googlegroups.com, Shruthi Kumbham
Hi Shruthi,

Unfortunately, as for shedding more light on your use-case, this doesn't provide much more.

If you are okay creating your own database for cities, continents, etc, you can definitely use datastore and just retrieve there.

If you want to create something a bit more broad, again, the Maps API can provide you lists of locations.

Where are you hitting a particular barrier with one of these products? To have a good answer to your question and interrogation, we'd need to see what you already have and check it up. 

Cheers

Shruthi Kumbham

unread,
Jul 20, 2015, 3:22:58 AM7/20/15
to google-a...@googlegroups.com
Yes, I can have a database containing continents, countries, states and cities names. I could able to get some paid versions of such data as well.

All I want to know is, is Google is providing any such API to get the names of continents, countries, states and cities? or Is it the only way of having to create a database with all the names and use?

or is there any other way to achieve this?

Kindly help me in this.

Thanks,


Patrice (Cloud Platform Support)

unread,
Jul 20, 2015, 12:44:31 PM7/20/15
to google-a...@googlegroups.com, Shruthi Kumbham
No, not directly. We don't have an API that can give you this directly. If you need something, you'll have to tweak what you do with the Maps API, or build your own (or purchase that data if you want).

As a standalone "I need the list of all continents" then "I need the list of all countries within continent X" etc, no we don't have anything that provides this directly. There is a good chance the Maps API can do what you want, but you'll need to wrap some code around it to make it work as you want. It's definitely not out of the box.

Cheers
Reply all
Reply to author
Forward
0 new messages