Last active
January 2, 2016 07:39
-
-
Save gerbsen/8271485 to your computer and use it in GitHub Desktop.
Web service example configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* getRoutes */ | |
mi = { | |
format : "json | xml", // optional, default: json | |
output : "geometry | description | detailed", // default: description | |
source = [ | |
{ | |
coordinate : "52.1,13.2", // mandatory | |
id : 17231823, // mandatory | |
label : "My point", // optional | |
barrierFree : true | false, // optional, default: false | |
transportMode : [ | |
bike : { // mandatory if wanted | |
speed : 15.0, // optional, default: 15 | |
uphill: 20.0, // optional, default: 20 | |
downhill: -10.0 // optional, default: -10 | |
}, | |
transit : { // mandatory if wanted | |
// optional, default: 1800 | |
transferTime : 1800, | |
// optional, default none | |
avoid : { "GTFS_Type_1", "GTFS_Type_2", "GTFS_Type_N" } | |
// none or one of the below | |
frame : { | |
time : 123678126346, // mandatory, if used | |
duration : 3600, // optional, default 7200s | |
} | |
arrival : { time : 1289371982739 } // mandatory, if used | |
departure : { time : 1238712873912 } // mandatory, if used | |
} | |
car : {}, // mandatory if wanted | |
walk : { // mandatory if wanted | |
speed : 5.0, | |
uphill : 10.0, | |
downhill: 0.0 | |
} | |
] | |
} | |
], | |
target = [ // mandatory | |
{ | |
coordinate : "52.1,13.2", // mandatory | |
id : 17231823, // mandatory | |
label : "My point 1", // optional | |
}, | |
{ | |
coordinate : "52.1,13.2", | |
id : 172318234, | |
label : "My point 1", | |
}, | |
... | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment