Tripbod JSON API

Unofficial API based on the sample XML file provided for Tnooz THack.

Base

http://paulslugocki.me.uk/tripbod/tripbods/

Parameters (All are optional)

Parameter Notes
General
id Retrieve the data for a specific Tripbod
interest Filter results by those Tripbods listing a particular interest. Comma separate to search multiple interests (see Test URLs)
Location
areaCoveredId Filter results by a paritcular area by ID, view XML file of destinations
areaCovered Filter results by particular areas via a text search (LIKE) on the areaCovered
latitude Combined with longitude and distance to describe an area to search
longitude Combined with latitude and distance to describe an area to search
distance Combined with latitude and longitude to describe an area to search. Distance is the radius of the area in Miles, defaults to 50
countryCode Filter results by the ISO 2-digit code for a country, codes populated using GeoNames based on the lat/long provided in the Tripbox XML
Housekeeping
return Sets the content-type returned, only supported value is text (returns "text/plain"). Defaults to "application/json"
callback By default the API will return a JSON object, passing the callback parameter causes a JSONP response, the value being used as the callback function. If you are using JQuery's JSONP implementation you don't need to worry about this param.

Test URLs

Examples

Version history

0.6a (05/02/2011)
+ Added countryCode (data from GeoNames)
0.5a (03/02/2011)
+ Added JSONP compatability
0.4a (02/02/2011)
+ Implemented interest param
0.3a (30/01/2011)
+ Results ordered by name by default
+ Added ability to search for Tripbods near a point
+ Added distance to results when searching for Tripbods near a point
+ Results ordered by distance when searching for Tripbods near a point
0.2a (29/01/2011)
(First public release)
+ Implemented id and areaCovered params
0.1a (27/01/2011)
(Initial version)