Skip to content

Instantly share code, notes, and snippets.

@mapcentia
Last active August 29, 2015 14:13
Show Gist options
  • Save mapcentia/ce82f0a2fc7346f7c436 to your computer and use it in GitHub Desktop.
Save mapcentia/ce82f0a2fc7346f7c436 to your computer and use it in GitHub Desktop.
Unitsummary API beskrivelse
Dette API kald bliver lavet til trackanalyzer applikationen:
http://trackanalyzer.safetrack.dk/api/v1/unitsummary?
DateFrom=2014-01-01&
DateTo=2014-02-01&
Category=31014&
Client=&
Group=&
u=username&
token=123456
Trackanalyzer app'en laver et kald til /public/Report/UnitSummary for hver dag i date rangen. Der leveres data tilbage med denne struktur (GeoJSON) for hele date rangen.
"features":[
{
"geometry":{
"type":"Point",
"coordinates":[
54.738825,
24.685183333333
]
},
"type":"Feature",
"properties":{
"gid":8806,
"unitid":92097,
"run1":3060,
"date":"2014-01-01"
}
},
{
"geometry":{
"type":"Point",
"coordinates":[
54.434908333333,
24.523585
]
},
"type":"Feature",
"properties":{
"gid":8903,
"unitid":92167,
"run1":8280,
"date":"2014-01-01"
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment