TripPlannerResponse Data Type

Represents a trip planner response, will be serialized into XML or JSON by Jersey

Properties
name data type description
requestParameters map of string A dictionary of the parameters provided in the request that triggered this response.
debugOutput DebugOutput Debugging and profiling information
elevationMetadata ElevationMetadata
plan ApiTripPlan The actual trip plan.
metadata ApiTripSearchMetadata
error PlannerError The error (if any) that this response raised.

Example

{
  "requestParameters" : {
    "property1" : "...",
    "property2" : "..."
  },
  "debugOutput" : {
    "precalculationTime" : 12345,
    "directStreetRouterTime" : 12345,
    "transitRouterTime" : 12345,
    "filteringTime" : 12345,
    "renderingTime" : 12345,
    "totalTime" : 12345,
    "transitRouterTimes" : {
      "tripPatternFilterTime" : 12345,
      "accessEgressTime" : 12345,
      "raptorSearchTime" : 12345,
      "itineraryCreationTime" : 12345
    }
  },
  "elevationMetadata" : {
    "ellipsoidToGeoidDifference" : 12345.0,
    "geoidElevation" : true
  },
  "plan" : {
    "date" : 12345,
    "from" : {
      "name" : "...",
      "stopId" : "...",
      "stopCode" : "...",
      "platformCode" : "...",
      "lon" : 12345.0,
      "lat" : 12345.0,
      "arrival" : 12345,
      "departure" : 12345,
      "orig" : "...",
      "zoneId" : "...",
      "stopIndex" : 12345,
      "stopSequence" : 12345,
      "vertexType" : "NORMAL",
      "bikeShareId" : "..."
    },
    "to" : {
      "name" : "...",
      "stopId" : "...",
      "stopCode" : "...",
      "platformCode" : "...",
      "lon" : 12345.0,
      "lat" : 12345.0,
      "arrival" : 12345,
      "departure" : 12345,
      "orig" : "...",
      "zoneId" : "...",
      "stopIndex" : 12345,
      "stopSequence" : 12345,
      "vertexType" : "BIKEPARK",
      "bikeShareId" : "..."
    },
    "itineraries" : [ {
      "duration" : 12345,
      "startTime" : 12345,
      "endTime" : 12345,
      "walkTime" : 12345,
      "transitTime" : 12345,
      "waitingTime" : 12345,
      "walkDistance" : 12345.0,
      "walkLimitExceeded" : true,
      "elevationLost" : 12345.0,
      "elevationGained" : 12345.0,
      "transfers" : 12345,
      "fare" : { },
      "legs" : [ { }, { } ],
      "systemNotices" : [ { }, { } ],
      "tooSloped" : true
    }, {
      "duration" : 12345,
      "startTime" : 12345,
      "endTime" : 12345,
      "walkTime" : 12345,
      "transitTime" : 12345,
      "waitingTime" : 12345,
      "walkDistance" : 12345.0,
      "walkLimitExceeded" : true,
      "elevationLost" : 12345.0,
      "elevationGained" : 12345.0,
      "transfers" : 12345,
      "fare" : { },
      "legs" : [ { }, { } ],
      "systemNotices" : [ { }, { } ],
      "tooSloped" : true
    } ]
  },
  "metadata" : {
    "searchWindowUsed" : 12345,
    "nextDateTime" : 12345,
    "prevDateTime" : 12345
  },
  "error" : {
    "id" : 12345,
    "msg" : "...",
    "message" : "PLAN_OK",
    "missing" : [ "...", "..." ]
  }
}