blog :: web development :: google maps tld list

A List Of Google Maps Top Level Domains

Posted on 23 Jun 2008 by - Permanent link Trackback this post Subscribe to this post Comment on this post -  

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.

0 Trackbacks

Trackbacks are closed for this story.

3 Comments

 Romeo Abdo said at 2008-08-01 22:38

One more domain

There is also google.com.by (Belarus), however I can't figure out the address of google maps at .by domain.
 MMMeeja said at 2008-08-02 08:57

Re: One more domain

Thanks Romeo. I couldn't find out if there is a maps subdomain associated with it - perhaps spelled differently. I'll ask around.
 Rob said at 2008-08-06 10:27

Thanks!

Exactly what I was looking for, and appeared harder to find than I had imagined.

Comments are closed for this story.

 

Sitemap

Copyright © 2006-2009 MMMeeja Pty. Ltd. All rights reserved.