HTTP Tile API Docs

At CloudMade we allow you direct access to our tile server, through our HTTP Tile API. This is useful for those times when our other APIs, such as our Javascript Web Maps Lite API or our J2ME Mobile Maps API, don’t quite fit your development needs.

The URL structure for this API is straightforward, and is instantly recognisable to anyone familiar with the OpenStreetMap tile numbering convention. An example URL of an area in Berlin:

http://b.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/1/256/15/17599/10746.png Tile of Berlin

So let’s break that down into constituent parts:

b.tile.cloudmade.com
the server we’re getting the image from. We have [abc]-subdomains to allow parallel downloads – you get exactly the same tiles whether you access a.tile.cloudmade.com, b.tile.cloudmade.com, c.tile.cloudmade.com or simply just tile.cloudmade.com. Parallel downloads are a useful technique to get around the simultaneous image-connection limits in many browsers – we’re happy to take all the traffic you want to send!
BC9A493B41014CAABB98F0471D759707
the API key. This one is ours – you need to substitute it with your own! You generate an API key on your account page.
1
the style id. We provide different cartographic styles, and you choose between them. Try changing the style id to ‘2’ to see the difference this can make.
256
the dimensions of the tile, in pixels. We provide tiles in the standard size of 256×256, and also 64×64 – these can be especially useful for you if your application runs on small-screen mobile devices.
15/17599/10746.png
the last three numbers specify the exact tile you are looking for. How these work is described in examples, and it’s exactly the same as other providers including OSM.
Cet article a été publié dans Uncategorized. Ajoutez ce permalien à vos favoris.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s