Skip to content

Instantly share code, notes, and snippets.

@gustavompo
Last active August 29, 2015 14:02
Show Gist options
  • Save gustavompo/8cee36a2a9a4548e5c39 to your computer and use it in GitHub Desktop.
Save gustavompo/8cee36a2a9a4548e5c39 to your computer and use it in GitHub Desktop.
Request: {
...RouteStops...
routeOptions: {
language: "",
vehicle: {},
routeLine: [],
routeDetails: {
optimizeRoute: true,
poiRoute: [],
barrierList: [],
barrierPoints: [],
}
},
controls: {
mode: "",
costAdjustmentForRoadType: []
traffic: ""
map: "",
map2: "",
XXXXXXX: ""
},
token: ""
}
controls:
[
{
name: "mode",
deCartaName: "RS",
values: [ {name:"fastest", deCartaName:"F" }, {name:"shortest", deCartaName:"S" }, {name:"pedestrian", deCartaName:"P" }]
},
{
name: "costAdjustmentForRoadType",
deCartaName: "ADJUSTCOST",
values: [ {name:"ferryboat", deCartaName:"FERRYBOAT" }, {name:"dirtRoad", deCartaName:"TUNNEL" }, {name:"poorRoadCondition", deCartaName:"SKYWAY" }, {name:"toll", deCartaName:"TOLLROAD" } ]
},
{
name: "traffic",
deCartaName: "TRAFFICDATA",
values: [ {name:"useInRouteWay", deCartaName:"RFIND" }, {name:"useInRouteTime", deCartaName:"RDESC" } ]
},
{
name: "map",
deCartaName: "DS",
values: [ {name:"default", deCartaName:"lbslocal_rotas" } ]
},
{
name: "map2(kkkk)",
deCartaName: "EDS",
values: [ {name:"default", deCartaName:"????" } ]
},
{
name: "XXXXXXX",
deCartaName: "CONTROL",
values: [ {name:"XXXXXXX", value:"femsa(-.-)" } ]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment