-
Notifications
You must be signed in to change notification settings - Fork 0
0.18 versus 1.0 JSON responses on trip planner
Ed Groth edited this page May 19, 2017
·
1 revision
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: false
Content-Length: 7465
Content-Type: application/json
Date: Fri, 19 May 2017 23:49:38 GMT
{
"debugOutput": {
"pathCalculationTime": 2,
"pathTimes": [
0,
1,
1
],
"precalculationTime": 1,
"renderingTime": 1,
"timedOut": false,
"totalTime": 4
},
"elevationMetadata": {
"ellipsoidToGeoidDifference": -35.08394092762026,
"geoidElevation": false
},
"plan": {
"date": 1495114320000,
"from": {
"lat": 33.803032,
"lon": -117.914127,
"name": "Origin",
"orig": "",
"vertexType": "NORMAL"
},
"itineraries": [
{
"duration": 1911,
"elevationGained": 0.0,
"elevationLost": 0.0,
"endTime": 1495116231000,
"fare": {
"details": {
"regular": [
{
"fareId": "1:1150",
"price": {
"cents": 300,
"currency": {
"currency": "USD",
"currencyCode": "USD",
"defaultFractionDigits": 2,
"symbol": "$"
}
},
"routes": [
"1:1708"
]
}
]
},
"fare": {
"regular": {
"cents": 300,
"currency": {
"currency": "USD",
"currencyCode": "USD",
"defaultFractionDigits": 2,
"symbol": "$"
}
}
}
},
"legs": [
{
"agencyTimeZoneOffset": -25200000,
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 421.35349187677775,
"duration": 319.0,
"endTime": 1495114639000,
"from": {
"departure": 1495114320000,
"lat": 33.803032,
"lon": -117.914127,
"name": "Origin",
"orig": "",
"vertexType": "NORMAL"
},
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 2,
"points": "{fimEdbunUuS{L"
},
"mode": "WALK",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "",
"startTime": 1495114320000,
"steps": [
{
"absoluteDirection": "NORTHEAST",
"area": false,
"bogusName": false,
"distance": 421.35349187677775,
"elevation": [],
"lat": 33.8035,
"lon": -117.91411,
"relativeDirection": "DEPART",
"stayOn": false,
"streetName": "Ramada Plaza => Gardenwalk-Disney Way"
}
],
"to": {
"arrival": 1495114639000,
"departure": 1495115839000,
"lat": 33.80681,
"lon": -117.91189,
"name": "Gardenwalk-Disney Way",
"stopCode": "2009",
"stopId": "1:780166",
"stopIndex": 1,
"stopSequence": 2,
"vertexType": "TRANSIT"
},
"transitLeg": false
},
{
"agencyId": "248",
"agencyName": "Anaheim Resort Transportation",
"agencyTimeZoneOffset": -25200000,
"agencyUrl": "http://www.rideart.org/",
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 2167.9294699519132,
"duration": 360.0,
"endTime": 1495116199000,
"from": {
"arrival": 1495114639000,
"departure": 1495115839000,
"lat": 33.80681,
"lon": -117.91189,
"name": "Gardenwalk-Disney Way",
"stopCode": "2009",
"stopId": "1:780166",
"stopIndex": 1,
"stopSequence": 2,
"vertexType": "TRANSIT"
},
"headsign": "Disneyland Resort",
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 65,
"points": "_|imEhttnU?????yC?eA?gB?A?QA_@?Q?E?S@S@U@UBUBUBUBSDQBUH]Xy@FUHUj@oBPs@DKLc@j@gBFSPk@PURYJSLSJOd@i@DExBmBPQ|AsAXYHGLMr@G^F@]?uDC_J?_C?wE?aBAiA@sCA_@FgR@gC@qBEiR?WCcFAi@?c@??"
},
"mode": "BUS",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "14",
"routeColor": "8f898b",
"routeId": "1:1708",
"routeLongName": "ARTIC Sports Complex Line",
"routeShortName": "14",
"routeTextColor": "ffffff",
"routeType": 3,
"serviceDate": "20170518",
"startTime": 1495115839000,
"steps": [],
"to": {
"arrival": 1495116199000,
"departure": 1495116199000,
"lat": 33.80321,
"lon": -117.88883,
"name": "Stadium Crossings",
"stopCode": "4017",
"stopId": "1:780165",
"stopIndex": 2,
"stopSequence": 3,
"vertexType": "TRANSIT"
},
"transitLeg": true,
"tripId": "1:t_73470_b_2145_tn_frequencies_trip"
},
{
"agencyTimeZoneOffset": -25200000,
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 38.79637288048598,
"duration": 32.0,
"endTime": 1495116231000,
"from": {
"arrival": 1495116199000,
"departure": 1495116199000,
"lat": 33.80321,
"lon": -117.88883,
"name": "Stadium Crossings",
"stopCode": "4017",
"stopId": "1:780165",
"stopIndex": 2,
"stopSequence": 3,
"vertexType": "TRANSIT"
},
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 2,
"points": "aeimEddpnUq@w@"
},
"mode": "WALK",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "",
"startTime": 1495116199000,
"steps": [
{
"absoluteDirection": "NORTHEAST",
"area": false,
"bogusName": false,
"distance": 38.79637288048598,
"elevation": [],
"lat": 33.80321,
"lon": -117.88883,
"relativeDirection": "DEPART",
"stayOn": false,
"streetName": "Stadium Crossings => Stadium Crossings"
}
],
"to": {
"arrival": 1495116231000,
"lat": 33.801825,
"lon": -117.886538,
"name": "Destination",
"orig": "",
"vertexType": "NORMAL"
},
"transitLeg": false
}
],
"startTime": 1495114320000,
"tooSloped": false,
"transfers": 0,
"transitTime": 360,
"waitingTime": 1200,
"walkDistance": 460.14986475726374,
"walkLimitExceeded": false,
"walkTime": 351
},
{
"duration": 2815,
"elevationGained": 0.0,
"elevationLost": 0.0,
"endTime": 1495117135000,
"fare": {
"details": {
"regular": [
{
"fareId": "1:1150",
"price": {
"cents": 300,
"currency": {
"currency": "USD",
"currencyCode": "USD",
"defaultFractionDigits": 2,
"symbol": "$"
}
},
"routes": [
"1:1709"
]
}
]
},
"fare": {
"regular": {
"cents": 300,
"currency": {
"currency": "USD",
"currencyCode": "USD",
"defaultFractionDigits": 2,
"symbol": "$"
}
}
}
},
"legs": [
{
"agencyTimeZoneOffset": -25200000,
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 548.7304168648532,
"duration": 415.0,
"endTime": 1495114735000,
"from": {
"departure": 1495114320000,
"lat": 33.803032,
"lon": -117.914127,
"name": "Origin",
"orig": "",
"vertexType": "NORMAL"
},
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 2,
"points": "{fimEdbunUdWbV"
},
"mode": "WALK",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "",
"startTime": 1495114320000,
"steps": [
{
"absoluteDirection": "SOUTHWEST",
"area": false,
"bogusName": false,
"distance": 548.7304168648532,
"elevation": [],
"lat": 33.8035,
"lon": -117.91411,
"relativeDirection": "DEPART",
"stayOn": false,
"streetName": "Ramada Plaza => Anaheim Convention Center Grand Plaza"
}
],
"to": {
"arrival": 1495114735000,
"departure": 1495115935000,
"lat": 33.79964,
"lon": -117.91781,
"name": "Anaheim Convention Center Grand Plaza",
"stopCode": "2008",
"stopId": "1:778201",
"stopIndex": 1,
"stopSequence": 2,
"vertexType": "TRANSIT"
},
"transitLeg": false
},
{
"agencyId": "248",
"agencyName": "Anaheim Resort Transportation",
"agencyTimeZoneOffset": -25200000,
"agencyUrl": "http://www.rideart.org/",
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 5090.704765641089,
"duration": 1200.0,
"endTime": 1495117135000,
"from": {
"arrival": 1495114735000,
"departure": 1495115935000,
"lat": 33.79964,
"lon": -117.91781,
"name": "Anaheim Convention Center Grand Plaza",
"stopCode": "2008",
"stopId": "1:778201",
"stopIndex": 1,
"stopSequence": 2,
"vertexType": "TRANSIT"
},
"headsign": "Disneyland Resort",
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 185,
"points": "mnhmEhyunUA??P?`A@L?^@PDDX?J?XAHGF[?i@KYEGc@?CO?UBY?KAQ?Q?Mi@??E?GCABQ?{B?m@?ICS?E?O?kBA]?W?c@S?WA]@{EDsA@oCDM?sC@_@@?_@?eK?sA?WAmJ?iC?iH?eA?aA@mA?oDAkH?gAAiB@]?uDC_J?_C?wE?aBAiA@sCA_@FgR@gC@qBEiR?WCcF_@@[UeB?{A@?w@?m@???C?oA?e@?ODWDe@@KFYJe@T]NKHGnBs@XCAIMc@i@yAu@uAuA_CwAuBeA{Ai@{@Q[OSe@}AUqAQsAGy@AcB?uB@aDA}A?uCAc@@kAl@Db@@?@pAHCf@t@PLgDcFS@eBBgB?Q?oBf@?j@@nAb@x@VnDhAnBv@@@fC~@Gf@El@Qn@O\\CDIJU@mBe@a@MMAG?]V[QUIWIa@Kg@GgAGC?uCIY@CxEDtF?`DA~B@xAJdBDb@RbATr@Rj@Tb@fAjBvBfDdA~A~@vAZp@Ph@j@bBPdADx@FpAAh@?b@?jA?@"
},
"mode": "BUS",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "15",
"routeColor": "8f898b",
"routeId": "1:1709",
"routeLongName": "ARTIC Sports Complex Line",
"routeShortName": "15",
"routeTextColor": "ffffff",
"routeType": 3,
"serviceDate": "20170518",
"startTime": 1495115935000,
"steps": [],
"to": {
"arrival": 1495117135000,
"lat": 33.80347,
"lon": -117.88855,
"name": "Stadium Crossings",
"orig": "",
"stopCode": "5018",
"stopId": "1:778198",
"stopIndex": 5,
"stopSequence": 6,
"vertexType": "TRANSIT"
},
"transitLeg": true,
"tripId": "1:t_73414_b_2145_tn_frequencies_trip"
}
],
"startTime": 1495114320000,
"tooSloped": false,
"transfers": 0,
"transitTime": 1200,
"waitingTime": 1200,
"walkDistance": 548.7304168648532,
"walkLimitExceeded": false,
"walkTime": 415
}
],
"to": {
"lat": 33.801825,
"lon": -117.886538,
"name": "Destination",
"orig": "",
"vertexType": "NORMAL"
}
},
"requestParameters": {
"date": "05-18-2017",
"fromPlace": "33.803032,-117.914127",
"time": "6:32am",
"toPlace": "33.801825,-117.886538"
}
}
$ http 'http://anaheim-otp.groth-geodata.com/otp-0.18/routers/default/plan?fromPlace=33.803032%2C-117.914127&toPlace=33.801825%2C-117.886538&date=5-18-2017&time=6%3A33am&mode=TRANSIT,WALK&bannedRoutes=248__1711&maxWalkDistance=1000&walkReluctance=2&walkSpeed=0.3&arriveBy=false&showIntermediateStops=false&maxDuration=100'
HTTP/1.1 200 OK
Accept-Ranges: none
Access-Control-Allow-Credentials: false
Connection: close
Content-Length: 5872
Content-Type: application/json
Date: Fri, 19 May 2017 23:50:45 GMT
Via: 1.1 anaheim-otp.groth-geodata.com
{
"debugOutput": {
"pathCalculationTime": 12,
"pathTimes": [
4,
4,
3
],
"precalculationTime": 12,
"renderingTime": 1,
"timedOut": false,
"totalTime": 25
},
"plan": {
"date": 1495114380000,
"from": {
"lat": 33.80324114886596,
"lon": -117.91412771512206,
"name": "West Katella Avenue",
"orig": "",
"vertexType": "NORMAL"
},
"itineraries": [
{
"duration": 5356,
"elevationGained": 0.0,
"elevationLost": 0.0,
"endTime": 1495119736000,
"fare": {
"fare": {
"regular": {
"cents": 500,
"currency": {
"currency": "USD",
"currencyCode": "USD",
"defaultFractionDigits": 2,
"symbol": "$"
}
}
}
},
"legs": [
{
"agencyTimeZoneOffset": -25200000,
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 84.784,
"duration": 283.0,
"endTime": 1495114663000,
"from": {
"departure": 1495114380000,
"lat": 33.80324114886596,
"lon": -117.91412771512206,
"name": "West Katella Avenue",
"orig": "",
"vertexType": "NORMAL"
},
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 2,
"points": "geimEhbunU?uD"
},
"mode": "WALK",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "",
"startTime": 1495114380000,
"steps": [
{
"absoluteDirection": "EAST",
"area": false,
"bogusName": false,
"distance": 84.784,
"elevation": [],
"lat": 33.80324114886596,
"lon": -117.91412771512206,
"relativeDirection": "DEPART",
"stayOn": false,
"streetName": "West Katella Avenue"
}
],
"to": {
"arrival": 1495114663000,
"departure": 1495115864000,
"lat": 33.80321,
"lon": -117.91321,
"name": "Islander Inn",
"stopCode": "2019",
"stopId": "248:778165",
"stopIndex": 1,
"stopSequence": 2,
"vertexType": "TRANSIT"
},
"transitLeg": false
},
{
"agencyId": "248",
"agencyName": "Anaheim Resort Transportation",
"agencyTimeZoneOffset": -25200000,
"agencyUrl": "http://www.rideart.org/",
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 1840.7326671615056,
"duration": 840.0,
"endTime": 1495116704000,
"from": {
"arrival": 1495114663000,
"departure": 1495115864000,
"lat": 33.80321,
"lon": -117.91321,
"name": "Islander Inn",
"stopCode": "2019",
"stopId": "248:778165",
"stopIndex": 1,
"stopSequence": 2,
"vertexType": "TRANSIT"
},
"headsign": "Disneyland Resort",
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 66,
"points": "geimEp|tnU?W?aRa@GeD?u@CU??k@?E????@yC@{CiC??tF???@??CpB_LB]NuAAcAM_C{@q@I{@T[ZeP~Pa@hAQhAAhA?????n@?\\AVCt@?`ACj@?N?N\\?`B@zA@|DB@j@@PA^Ij@NQFELAb@@l@@|@AXT\\@HRAbFSP?TNHPG@[?W?Y"
},
"mode": "BUS",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "7",
"routeColor": "ec8c38",
"routeId": "1702",
"routeLongName": "Hotel Circle Clementine Line",
"routeShortName": "7",
"routeTextColor": "000000",
"routeType": 3,
"serviceDate": "20170518",
"startTime": 1495115864000,
"steps": [],
"to": {
"arrival": 1495116704000,
"departure": 1495117904000,
"lat": 33.80938,
"lon": -117.91719,
"name": "Disneyland Main Transportation Center",
"stopCode": "1",
"stopId": "248:778148",
"stopIndex": 5,
"stopSequence": 6,
"vertexType": "TRANSIT"
},
"transitLeg": true,
"tripId": "t_72582_b_2145_tn_frequencies_trip"
},
{
"agencyId": "248",
"agencyName": "Anaheim Resort Transportation",
"agencyTimeZoneOffset": -25200000,
"agencyUrl": "http://www.rideart.org/",
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 2734.897621964319,
"duration": 540.0,
"endTime": 1495118444000,
"from": {
"arrival": 1495116704000,
"departure": 1495117904000,
"lat": 33.80938,
"lon": -117.91719,
"name": "Disneyland Main Transportation Center",
"stopCode": "1",
"stopId": "248:778148",
"stopIndex": 0,
"stopSequence": 1,
"vertexType": "TRANSIT"
},
"headsign": "Disneyland Resort",
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 84,
"points": "qkjmEluunUCyEJSDY?eAASL?n@?zC?~EAR@V??a@?[?mA?g@?sH?e@?Y?yC?????yC?eA?gB?A?QA_@?Q?E?S@S@U@UBUBUBUBSDQBUH]Xy@FUHUj@oBPs@DKLc@j@gBFSPk@PURYJSLSJOd@i@DExBmBPQ|AsAXYHGLMr@G^F@]?uDC_J?_C?wE?aBAiA@sCA_@FgR@gC@qBEiR?WCcFAi@?c@??"
},
"mode": "BUS",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "14",
"routeColor": "8f898b",
"routeId": "1708",
"routeLongName": "ARTIC Sports Complex Line",
"routeShortName": "14",
"routeTextColor": "ffffff",
"routeType": 3,
"serviceDate": "20170518",
"startTime": 1495117904000,
"steps": [],
"to": {
"arrival": 1495118444000,
"departure": 1495118445000,
"lat": 33.80321,
"lon": -117.88883,
"name": "Stadium Crossings",
"stopCode": "4017",
"stopId": "248:780165",
"stopIndex": 2,
"stopSequence": 3,
"vertexType": "TRANSIT"
},
"transitLeg": true,
"tripId": "t_73470_b_2145_tn_frequencies_trip"
},
{
"agencyTimeZoneOffset": -25200000,
"arrivalDelay": 0,
"departureDelay": 0,
"distance": 381.397,
"duration": 1291.0,
"endTime": 1495119736000,
"from": {
"arrival": 1495118444000,
"departure": 1495118445000,
"lat": 33.80321,
"lon": -117.88883,
"name": "Stadium Crossings",
"stopCode": "4017",
"stopId": "248:780165",
"stopIndex": 2,
"stopSequence": 3,
"vertexType": "TRANSIT"
},
"interlineWithPreviousLeg": false,
"legGeometry": {
"length": 15,
"points": "qeimEddpnU@yB?wACsAI{@Im@GYJAXA|@@zAA~A?PCLGFK"
},
"mode": "WALK",
"pathway": false,
"realTime": false,
"rentedBike": false,
"route": "",
"startTime": 1495118445000,
"steps": [
{
"absoluteDirection": "EAST",
"area": false,
"bogusName": false,
"distance": 199.30599999999998,
"elevation": [],
"lat": 33.80329267127974,
"lon": -117.88882845568838,
"relativeDirection": "DEPART",
"stayOn": false,
"streetName": "East Katella Avenue"
},
{
"absoluteDirection": "SOUTH",
"area": false,
"bogusName": false,
"distance": 182.091,
"elevation": [],
"lat": 33.8034412,
"lon": -117.8866933,
"relativeDirection": "RIGHT",
"stayOn": false,
"streetName": "service road"
}
],
"to": {
"arrival": 1495119736000,
"lat": 33.801803923764986,
"lon": -117.88655805790323,
"name": "service road",
"orig": "",
"vertexType": "NORMAL"
},
"transitLeg": false
}
],
"startTime": 1495114380000,
"tooSloped": false,
"transfers": 1,
"transitTime": 1380,
"waitingTime": 2402,
"walkDistance": 466.36099999284744,
"walkLimitExceeded": false,
"walkTime": 1574
}
],
"to": {
"lat": 33.801803923764986,
"lon": -117.88655805790323,
"name": "service road",
"orig": "",
"vertexType": "NORMAL"
}
},
"requestParameters": {
"arriveBy": "false",
"bannedRoutes": "248__1711",
"date": "5-18-2017",
"fromPlace": "33.803032,-117.914127",
"maxDuration": "100",
"maxWalkDistance": "1000",
"mode": "TRANSIT,WALK",
"showIntermediateStops": "false",
"time": "6:33am",
"toPlace": "33.801825,-117.886538",
"walkReluctance": "2",
"walkSpeed": "0.3"
}
}