-
Notifications
You must be signed in to change notification settings - Fork 5
Requests and responses
jc-2 edited this page Apr 1, 2013
·
6 revisions
###Request
curl http://denver-streets.herokuapp.com
###Response
{
"href": "http://denver-streets.herokuapp.com",
"items": [
{
"href": "http://denver-streets.herokuapp.com/closures",
"name": "Closures",
"by_date_href": "http://denver-streets.herokuapp.com/closures?start_date={start_date}&end_date={end_date}"
}
]
}
###Request
curl http://denver-streets.herokuapp.com/closures
###Response
{
"href": "http://denver-streets.herokuapp.com/closures",
"items": [
{
"href": "http://denver-streets.herokuapp.com/closures",
"name": "Evans_(Galapago to Bannock)",
"location": "[GEOJSON FEATURE]",
"type": "Close 1st Traffic Lane, Close Parking Lane ",
"purpose": "ROW Occupancy",
"start_time": "00:00:00",
"end_time": "23:59:59",
"start_date": "2013-02-02T00:00:00",
"end_date": "2013-04-01T00:00:00"
}
]
}
GeoJSON Feature can be any of these types: http://www.geojson.org/geojson-spec.html#geojson-objects They will most likely be points or linestrings.