I developed an Android FlagGuessEnRu game, but I want upon success flag guess go to Google Maps(browser or MapView) for that flag/country, with appropriate scaling of the Map per country, well i get countries from wikipedia, what url to use for google map for a particular country, how from country name get map?

Recommended Answers

All 3 Replies

I guess you will have to create a class/collection that will hold coordinates for google maps like this https://maps.google.com/maps?q=Slovakia&hl=en&sll=37.0625,-95.677068&sspn=46.946584,92.900391&t=h&hnear=Slovakia&z=8 . So you may have something like

Map<String, URL> countryMap = new HashMap(){};
countryMap.put("Slovakia", new URL("https://maps.google.com/maps?q=Slovakia&hl=en&sll=37.0625,-95.677068&sspn=46.946584,92.900391&t=h&hnear=Slovakia&z=8");

PS: Above link was achieved just by typing country name in google maps and then clicking on link button to see URL.

google maps has not any web service input country name and output/get country map?

You didn't said you want it to use one....
MapView Tutorial

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.