Webservice API details

While doing the visualization talk I got a question about how to get data out of bikko. I haven’t got around to publishing an API doc yet, but here is the details on how to get raw data out.

Find the URL of the route you’re interested in. For example, the URL for my May crash is http://bikko.net/route/572. To get the raw data, do a HTTP GET with HTTP_ACCEPT=application/json in your header. The content type application/trift is also supported if you’re concerned about bandwidth and/or serialization speed. The response will look something like this:
{
"center": [30.3785, -97.7935],
"zoom": 13,
"distances": [0.0, 1.0, 2.0, 3.0],
"speed": [0.0, 2.0, 4.0, 6.0],
"power":[0.0, 200.0, 220.0, 240.0],
"altitudes":[735.0, 735.1, 735.2, 735.3],
"latitudes":[30.3785, 30.3786, 30.3787, 30.3788],
"longitudes":[-97.7935, -97.7936, -97.7937, -97.7938]
}

If there is any other data you’d like to get via the web service API let me know.

Tags: ,

Leave a Reply