How to get the region code for a country

3,011 views
Skip to first unread message

moli

unread,
Aug 23, 2011, 1:05:16 PM8/23/11
to Google Visualization API
I am trying to display a user distribution map using google geomap. I
would like to show the region map when all the users are from the same
region.

For example, if all the users are from Germany and France, I want to
show the Eroupe region map instead of the world map. Is there a google
api let us get the region code for a country?


Thanks.

ChartALot

unread,
Aug 28, 2011, 10:59:14 AM8/28/11
to google-visua...@googlegroups.com
As noted in the documentation, you should use ISO 3166-1 codes for addressing a region. You can use the following page for understanding which continent contains which country. It should be quite simple to accomplish what you are looking for using this information. I'm not aware of an API that does that.

HTH


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Reply all
Reply to author
Forward
0 new messages