-
Notifications
You must be signed in to change notification settings - Fork 37
TimeService
Florian Richter edited this page Oct 20, 2015
·
3 revisions
back to API Documentation
Path: time
Consumes: MediaType.APPLICATION_JSON
Produces: MediaType.APPLICATION_JSON
RolesAllowed: time
POST /v1/time?key=ENTER-KEY-HERE HTTP/1.1
Host: api.route360.net
Connection: keep-alive
Content-Length: 5312
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://developers.route360.net
Content-Type: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,de-DE;q=0.6,de;q=0.4
Takes parameters:
parameter | type | full name |
---|---|---|
referer | ||
key | ||
config | String (JSON) | APIConfig |
This method returns the server side cached travel times for a set of given source points and a set of given target points. The output of this method looks like this:
[
{
"id":"start point 1 id",
"lat":52.2,
"lon":12.5,
"targets":[
{
"id":"naturtripID1",
"latlon":"[52.12345,12.5]",
"time":"3700"
},
{
"id":"naturtripID2",
"latlon":"[52.5,12.5]",
"time":"3700"
},
...
]
},
...
]