Getting Started with the Geo API: Sample Queries

31536 Lenox world globe Getting Started with the Geo API: Sample QueriesYesterday, we launched our new Geo API, creating easy access to millions of geographic data points, organized into one consistent, unified schema.  This new API allows you to ask questions of geo data the way you want; you can query by latitude/longitude/radius, zoom level, bounding box, quadkey and more!

Sounds great, but how do you get started?  We’ve pulled together some Example Queries to help our developers get started with the Geo API.  These sample queries are meant to help developers quickly and easily understand the structure of our API calls, so they can get to the fun part – getting answers to tough questions, building awesome visualizations & applications and having fun with our data!

Here are two examples of how to query our Geo API.  For more, please check out Example Queries and sign up for a free API key today!

Wikipedia articles

I’m building a day-tripper’s travel application. What are good sightseeing locales (based on places with Wikipedia articles) within a one hour drive (approximately 100km) of 105 E 5th St, Austin, TX 78701?

http://api.infochimps.com/encyclopedic/dbpedia/articles/search?g.latitude=30.2669444&g.longitude=-97.7427778&g.radius=100000&apikey=[YOUR API KEY HERE]

Geonames
For my aforementioned day-tripper travel application, I’m also interested in creating a kid’s section and the first thing I’d like to include are amusement parks near the Infochimps office in downtown Austin. (This example uses zoom level instead of radius.)

http://api.infochimps.com/geo/location/geonames/places/search?&g.latitude=30.273054&g.longitude=-97.757598&g.zoom_level=6&f._type=business.amusement_park&apikey=[YOUR API KEY HERE]

We’ll continually improving our API documentation.  Please let us know in the comments if there’s anything in particular you’d like to see next.  Maybe it’s a quadkey calculator or code examples for Ruby and PHP or inclusion of specific data set.  We’re happy to get you what you want – just let us know what we can do!

Comments are closed.