-
Notifications
You must be signed in to change notification settings - Fork 2
Home
miraculixx edited this page Dec 1, 2014
·
3 revisions
Welcome to the otp-dockerdeploy wiki!
docker run -p 80:8080 -i -t pablokbs/opentripplanner:v2 /bin/bash -s -v
Then go to http://server:80
to see the OTP main interface.
For web services, try this:
http://server:80/otp/routers/default/plan?fromPlace=stop+Bern%2C+Hauptbahnhof%3A%3A46.948996%2C7.438527&toPlace=stop+Solothurn%2C+Hauptbahnhof%3A%3A47.204523%2C7.542275&time=7%3A09pm&date=12-01-2014&mode=TRANSIT%2CWALK&maxWalkDistance=804.672&arriveBy=false&wheelchair=false&showIntermediateStops=false
example response:
{
"requestParameters":{
"time":"7:09pm",
"showIntermediateStops":"false",
"arriveBy":"false",
"wheelchair":"false",
"maxWalkDistance":"804.672",
"fromPlace":"stop Bern, Hauptbahnhof::46.948996,7.438527",
"toPlace":"stop Solothurn, Hauptbahnhof::47.204523,7.542275",
"date":"12-01-2014",
"mode":"TRANSIT,WALK"
},
"plan":{
"date":1417457340000,
"from":{
"name":"Bern, Hauptbahnhof",
"lon":7.438527,
"lat":46.948996,
"orig":"stop Bern, Hauptbahnhof"
},
"to":{
"name":"Solothurn, Hauptbahnhof",
"lon":7.542275,
"lat":47.204523,
"orig":"stop Solothurn, Hauptbahnhof"
},
"itineraries":[
{
"duration":9000,
"startTime":1417462680000,
"endTime":1417471680000,
"walkTime":0,
"transitTime":5640,
"waitingTime":3360,
"walkDistance":0.0,
"walkLimitExceeded":false,
"elevationLost":0.0,
"elevationGained":0.0,
"transfers":2,
"legs":[
{
"startTime":1417462680000,
"endTime":1417464360000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":10820.802809856174,
"pathway":false,
"mode":"BUS",
"route":"106",
"agencyName":"PAG (PostAuto Schweiz)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"10659.000801",
"interlineWithPreviousLeg":false,
"tripShortName":"106",
"headsign":"Zollikofen, Bahnhof",
"agencyId":"000801",
"tripId":"147077",
"serviceDate":"20141201",
"from":{
"name":"Bern, Hauptbahnhof",
"stopId":"000154:8507785:4",
"stopCode":"BNHO",
"platformCode":"4",
"lon":7.438527,
"lat":46.948996,
"departure":1417462680000,
"orig":"stop Bern, Hauptbahnhof",
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Zollikofen, Bahnhof",
"stopId":"000154:8571392:",
"lon":7.462378,
"lat":47.001282,
"arrival":1417464360000,
"departure":1417467060000,
"stopIndex":19,
"stopSequence":19
},
"legGeometry":{
"points":"evp}Gwykl@aEnLiS~VoIhPcYrOqWa^y|@jyAaPeUgTbT_yAzb@o^nKoHu`@oFu[qL}e@S{yAUqTrE}d@dD_Z~DyUqBsX",
"length":20
},
"routeShortName":"106",
"routeLongName":"BUS 106",
"rentedBike":false,
"duration":1680.0,
"transitLeg":true,
"steps":[
]
},
{
"startTime":1417467060000,
"endTime":1417469640000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":26553.102809304924,
"pathway":false,
"mode":"BUS",
"route":"898",
"agencyName":"RBS Auto (Autobusbetrieb RBS)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"89845.000850",
"interlineWithPreviousLeg":false,
"tripShortName":"898",
"headsign":"Büren an der Aare, Bahnhof",
"agencyId":"000850",
"tripId":"445856",
"serviceDate":"20141201",
"from":{
"name":"Zollikofen, Bahnhof",
"stopId":"000154:8571392:",
"lon":7.462378,
"lat":47.001282,
"arrival":1417464360000,
"departure":1417467060000,
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Büren an der Aare, Bahnhof",
"stopId":"000154:8571479",
"stopCode":"BUBA",
"lon":7.369489,
"lat":47.138059,
"arrival":1417469640000,
"departure":1417470300000,
"stopIndex":25,
"stopSequence":25
},
"legGeometry":{
"points":"_}z}Gynpl@coB~z@wS`U{X|^uK|Xkc@taAi^mDc|Abx@_m@vz@{m@lYw~AbUaUo~@dAk_AuRyvBkDkY`XdqCeAj_Ar[jxAwdD~t@uLs@wS}Xiu@{n@sb@qSai@nyCwNjXlFdq@",
"length":26
},
"routeShortName":"898",
"routeLongName":"NFB 898",
"rentedBike":false,
"duration":2580.0,
"transitLeg":true,
"steps":[
]
},
{
"startTime":1417470300000,
"endTime":1417471680000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":15230.96893060533,
"pathway":false,
"mode":"BUS",
"route":"8",
"agencyName":"RBS Auto (Autobusbetrieb RBS)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"08067.000850",
"interlineWithPreviousLeg":false,
"tripShortName":"8",
"headsign":"Solothurn, Hauptbahnhof",
"agencyId":"000850",
"tripId":"444166",
"serviceDate":"20141201",
"from":{
"name":"Büren an der Aare, Bahnhof",
"stopId":"000154:8571479",
"stopCode":"BUBA",
"lon":7.369489,
"lat":47.138059,
"arrival":1417469640000,
"departure":1417470300000,
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Solothurn, Hauptbahnhof",
"stopId":"000154:8572373:",
"stopCode":"SOHB",
"lon":7.542275,
"lat":47.204523,
"arrival":1417471680000,
"orig":"stop Solothurn, Hauptbahnhof",
"stopIndex":13,
"stopSequence":13
},
"legGeometry":{
"points":"ysu~Ggj~k@qJwL?ia@_Qaj@_|@q_C{_AsbBc^ct@uk@{}Cc@s`@kkAcuEsPwk@s\\y|@gk@{qCeNmn@",
"length":14
},
"routeShortName":"8",
"routeLongName":"NFB 8",
"rentedBike":false,
"duration":1380.0,
"transitLeg":true,
"steps":[
]
}
],
"tooSloped":false
},
{
"duration":10140,
"startTime":1417497540000,
"endTime":1417507680000,
"walkTime":0,
"transitTime":6120,
"waitingTime":4020,
"walkDistance":0.0,
"walkLimitExceeded":false,
"elevationLost":0.0,
"elevationGained":0.0,
"transfers":2,
"legs":[
{
"startTime":1417497540000,
"endTime":1417499820000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":16446.055303961028,
"pathway":false,
"mode":"BUS",
"route":"107",
"agencyName":"PAG (PostAuto Schweiz)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"10711.000801",
"interlineWithPreviousLeg":false,
"tripShortName":"107",
"headsign":"Zollikofen, Bahnhof",
"agencyId":"000801",
"tripId":"147089",
"serviceDate":"20141202",
"from":{
"name":"Bern, Hauptbahnhof",
"stopId":"000154:8507785:3",
"stopCode":"BNHO",
"platformCode":"3",
"lon":7.438527,
"lat":46.948996,
"departure":1417497540000,
"orig":"stop Bern, Hauptbahnhof",
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Zollikofen, Bahnhof",
"stopId":"000154:8571392:",
"lon":7.462378,
"lat":47.001282,
"arrival":1417499820000,
"departure":1417500120000,
"stopIndex":25,
"stopSequence":25
},
"legGeometry":{
"points":"evp}Gwykl@aEnLiS~VoIhPwEjUab@z}Fuf@pq@iMxu@qDhjAqMcHsSe^s^wl@{XmoAaIsUoSscBuVoE_Wme@oHu`@oFu[qL}e@S{yAUqTrE}d@dD_Z~DyUqBsX",
"length":26
},
"routeShortName":"107",
"routeLongName":"BUS 107",
"rentedBike":false,
"duration":2280.0,
"transitLeg":true,
"steps":[
]
},
{
"startTime":1417500120000,
"endTime":1417502580000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":19245.26088785577,
"pathway":false,
"mode":"BUS",
"route":"898",
"agencyName":"RBS Auto (Autobusbetrieb RBS)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"89805.000850",
"interlineWithPreviousLeg":false,
"tripShortName":"898",
"headsign":"Büren an der Aare, Bahnhof",
"agencyId":"000850",
"tripId":"445814",
"serviceDate":"20141202",
"from":{
"name":"Zollikofen, Bahnhof",
"stopId":"000154:8571392:",
"lon":7.462378,
"lat":47.001282,
"arrival":1417499820000,
"departure":1417500120000,
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Büren an der Aare, Bahnhof",
"stopId":"000154:8571479",
"stopCode":"BUBA",
"lon":7.369489,
"lat":47.138059,
"arrival":1417502580000,
"departure":1417506300000,
"stopIndex":18,
"stopSequence":18
},
"legGeometry":{
"points":"_}z}Gynpl@coB~z@wS`U{X|^uK|Xkc@taAi^mDc|Abx@_m@vz@{m@lYexA~n@wdD~t@uLs@wS}Xiu@{n@sb@qSai@nyCwNjXlFdq@",
"length":19
},
"routeShortName":"898",
"routeLongName":"NFB 898",
"rentedBike":false,
"duration":2460.0,
"transitLeg":true,
"steps":[
]
},
{
"startTime":1417506300000,
"endTime":1417507680000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":15230.96893060533,
"pathway":false,
"mode":"BUS",
"route":"8",
"agencyName":"RBS Auto (Autobusbetrieb RBS)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"08017.000850",
"interlineWithPreviousLeg":false,
"tripShortName":"8",
"headsign":"Solothurn, Amthausplatz",
"agencyId":"000850",
"tripId":"444136:1",
"serviceDate":"20141202",
"from":{
"name":"Büren an der Aare, Bahnhof",
"stopId":"000154:8571479",
"stopCode":"BUBA",
"lon":7.369489,
"lat":47.138059,
"arrival":1417502580000,
"departure":1417506300000,
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Solothurn, Hauptbahnhof",
"stopId":"000154:8572373:",
"stopCode":"SOHB",
"lon":7.542275,
"lat":47.204523,
"arrival":1417507680000,
"orig":"stop Solothurn, Hauptbahnhof",
"stopIndex":13,
"stopSequence":13
},
"legGeometry":{
"points":"ysu~Ggj~k@qJwL?ia@_Qaj@_|@q_C{_AsbBc^ct@uk@{}Cc@s`@kkAcuEsPwk@s\\y|@gk@{qCeNmn@",
"length":14
},
"routeShortName":"8",
"routeLongName":"NFB 8",
"rentedBike":false,
"duration":1380.0,
"transitLeg":true,
"steps":[
]
}
],
"tooSloped":false
},
{
"duration":10140,
"startTime":1417501140000,
"endTime":1417511280000,
"walkTime":0,
"transitTime":6120,
"waitingTime":4020,
"walkDistance":0.0,
"walkLimitExceeded":false,
"elevationLost":0.0,
"elevationGained":0.0,
"transfers":2,
"legs":[
{
"startTime":1417501140000,
"endTime":1417503420000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":16446.055303961028,
"pathway":false,
"mode":"BUS",
"route":"107",
"agencyName":"PAG (PostAuto Schweiz)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"10715.000801",
"interlineWithPreviousLeg":false,
"tripShortName":"107",
"headsign":"Zollikofen, Bahnhof",
"agencyId":"000801",
"tripId":"147093",
"serviceDate":"20141202",
"from":{
"name":"Bern, Hauptbahnhof",
"stopId":"000154:8507785:3",
"stopCode":"BNHO",
"platformCode":"3",
"lon":7.438527,
"lat":46.948996,
"departure":1417501140000,
"orig":"stop Bern, Hauptbahnhof",
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Zollikofen, Bahnhof",
"stopId":"000154:8571392:",
"lon":7.462378,
"lat":47.001282,
"arrival":1417503420000,
"departure":1417503720000,
"stopIndex":25,
"stopSequence":25
},
"legGeometry":{
"points":"evp}Gwykl@aEnLiS~VoIhPwEjUab@z}Fuf@pq@iMxu@qDhjAqMcHsSe^s^wl@{XmoAaIsUoSscBuVoE_Wme@oHu`@oFu[qL}e@S{yAUqTrE}d@dD_Z~DyUqBsX",
"length":26
},
"routeShortName":"107",
"routeLongName":"BUS 107",
"rentedBike":false,
"duration":2280.0,
"transitLeg":true,
"steps":[
]
},
{
"startTime":1417503720000,
"endTime":1417506180000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":26553.102809304924,
"pathway":false,
"mode":"BUS",
"route":"898",
"agencyName":"RBS Auto (Autobusbetrieb RBS)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"89809.000850",
"interlineWithPreviousLeg":false,
"tripShortName":"898",
"headsign":"Büren an der Aare, Bahnhof",
"agencyId":"000850",
"tripId":"445819",
"serviceDate":"20141202",
"from":{
"name":"Zollikofen, Bahnhof",
"stopId":"000154:8571392:",
"lon":7.462378,
"lat":47.001282,
"arrival":1417503420000,
"departure":1417503720000,
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Büren an der Aare, Bahnhof",
"stopId":"000154:8571479",
"stopCode":"BUBA",
"lon":7.369489,
"lat":47.138059,
"arrival":1417506180000,
"departure":1417509900000,
"stopIndex":25,
"stopSequence":25
},
"legGeometry":{
"points":"_}z}Gynpl@coB~z@wS`U{X|^uK|Xkc@taAi^mDc|Abx@_m@vz@{m@lYw~AbUaUo~@dAk_AuRyvBkDkY`XdqCeAj_Ar[jxAwdD~t@uLs@wS}Xiu@{n@sb@qSai@nyCwNjXlFdq@",
"length":26
},
"routeShortName":"898",
"routeLongName":"NFB 898",
"rentedBike":false,
"duration":2460.0,
"transitLeg":true,
"steps":[
]
},
{
"startTime":1417509900000,
"endTime":1417511280000,
"departureDelay":0,
"arrivalDelay":0,
"realTime":false,
"distance":15230.96893060533,
"pathway":false,
"mode":"BUS",
"route":"8",
"agencyName":"RBS Auto (Autobusbetrieb RBS)",
"agencyUrl":"http://www.sbb.ch",
"agencyTimeZoneOffset":3600000,
"routeType":3,
"routeId":"08021.000850",
"interlineWithPreviousLeg":false,
"tripShortName":"8",
"headsign":"Solothurn, Amthausplatz",
"agencyId":"000850",
"tripId":"444138:1",
"serviceDate":"20141202",
"from":{
"name":"Büren an der Aare, Bahnhof",
"stopId":"000154:8571479",
"stopCode":"BUBA",
"lon":7.369489,
"lat":47.138059,
"arrival":1417506180000,
"departure":1417509900000,
"stopIndex":0,
"stopSequence":0
},
"to":{
"name":"Solothurn, Hauptbahnhof",
"stopId":"000154:8572373:",
"stopCode":"SOHB",
"lon":7.542275,
"lat":47.204523,
"arrival":1417511280000,
"orig":"stop Solothurn, Hauptbahnhof",
"stopIndex":13,
"stopSequence":13
},
"legGeometry":{
"points":"ysu~Ggj~k@qJwL?ia@_Qaj@_|@q_C{_AsbBc^ct@uk@{}Cc@s`@kkAcuEsPwk@s\\y|@gk@{qCeNmn@",
"length":14
},
"routeShortName":"8",
"routeLongName":"NFB 8",
"rentedBike":false,
"duration":1380.0,
"transitLeg":true,
"steps":[
]
}
],
"tooSloped":false
}
]
},
"debugOutput":{
"precalculationTime":0,
"pathCalculationTime":10445,
"pathTimes":[
10030,
367,
46
],
"renderingTime":9,
"totalTime":10454,
"timedOut":false
}
}