MMMeeja

blog :: web development

A List Of Google Maps Top Level Domains

Posted on 23 Jun 2008 by Andy

Google Maps has a fantastic geolocation API that attempts to translate text representing a location into hard and fast latitude/longitude coordinates. A great service that is in use by many websites, not least Google Maps itself.

Some globes

For web developers who use the service from their servers, there’s an extra level of complexity to deal with - the geocoding API biases its results towards the country from which the request was made. So “Perth” could be the Scottish town to a user in Britain or the Western Australian capital if the request came from an IP down-under. When your servers are located in one country this can limit their usefulness to an international audience.

The solution is to call the API from an appropriate version of Google Maps, so if your server receives a request from a Japanese IP, call the Google API via maps.google.co.jp. Nice and easy, eh?

No, not quite, because not every country has its own Google Maps address. I searched for a canonical list of them, but could find nothing, so was forced to use a bit of Perl hackery to try every country domain preceded by “http://maps.google.(|co.|com.)”. These are my results:

CountryISO 3166-1URL
USAUS/Defaulthttp://maps.google.com
AustriaAThttp://maps.google.at
AustraliaAUhttp://maps.google.com.au
Bosnia and HerzegovinaBAhttp://maps.google.com.ba
BelgiumBEhttp://maps.google.be
BrazilBRhttp://maps.google.com.br
CanadaCAhttp://maps.google.ca
SwitzerlandCHhttp://maps.google.ch
Czech RepublicCZhttp://maps.google.cz
GermanyDEhttp://maps.google.de
DenmarkDKhttp://maps.google.dk
SpainEShttp://maps.google.es
FinlandFIhttp://maps.google.fi
FranceFRhttp://maps.google.fr
ItalyIThttp://maps.google.it
JapanJPhttp://maps.google.jp
NetherlandsNLhttp://maps.google.nl
NorwayNOhttp://maps.google.no
New ZealandNZhttp://maps.google.co.nz
PolandPLhttp://maps.google.pl
RussiaRUhttp://maps.google.ru
SwedenSEhttp://maps.google.se
TaiwanTWhttp://maps.google.tw
United KingdomUK/GBhttp://maps.google.co.uk

Hope you find the list useful, I’ll try to keep it up to date as Google rolls out more servers across the world, so don’t forget to bookmark it.

Do you know of a Google Maps domain that I’ve missed? Leave a comment below.


Creative Commons licensed photo by Hive.

3 comments, add yours.

 

Sitemap

Copyright © 2006-2008 MMMeeja Ltd. All rights reserved.