Commuting Pattern API

With this API you can get selected information about how commuters using Commute Greener are commuting within an area. E.g. within a region, city or suburb. For the moment there is no versioning of the API, only a single version being supported. Reference doc

DATA FORMAT
The request message format is HTML and the response message format is HTML and JSON. The default response message format is HTML, i.e. if the request message contains no format argument.

For information about this API and usage please contact the support of: www.CommuteGreener.com

 

REQUEST MESSAGE ARGUMENTS

Argument       Type       Comment

startLat            double     mandatory, start latitude
startLng           double     mandatory, start longitude
startRadius      int           mandatory, start radius (in metres)
endLat             double     mandatory, end latitude
endLng            double     mandatory, end longitude
endRadius       int           mandatory, end radius (in metres)
format             string       default 'html', or json
challenge         string      optional, challenge id, limit the result to journeys done by participants in a challenge

 

REQUEST MESSAGE SAMPLE
http://api.commutegreener.com/api/co2/tworadial?format=html&startLat=57.7119434&startLng=12.0855007&startRadius=3000&endLat=57.7071256&endLng=11.9397962&endRadius=3000&from=2011-09-12T05%3A00%3A00%2B0000&to=2011-09-12T10%3A00%3A11%2B0000