Code Examples

The Coder – Issue 5

Thursday, December 9, 2010

The CloudMade Coder – Issue 5
News, tips & tricks for mobile & web developers looking for geo-solutions
Click to jump to: Application Spotlight | News | The Interview | Code Examples

Want to receive The Coder?
Sign up to CloudMade Developer Zone You’ll be joining 15,316 developers who receive The Coder on a regular basis [...]

Geocoding & Geosearch API

Thursday, July 29, 2010

You can find out more about terms of use here. Now lets take a look at the Geocoding and Geosearch service in action.

First, lets search for 10 hotels within 2000m of a point in London, UK:
http://geocoding.cloudmade.com/BC9A493B41014CAABB98F0471D759707/geocoding/v2/find.html?object_type=hotel&around=51.51384,-0.10952&distance=2000&results=10

Now we’ll search for the same hotels but return the results in JSON format:
http://geocoding.cloudmade.com/BC9A493B41014CAABB98F0471D759707/geocoding/v2/find.js?object_type=hotel&around=51.51384,-0.10952&distance=2000&results=10

Pretty cool hey?  The HTML request is [...]