response element
Type: | response |
Namespace: | (default namespace) |
XML Schema: | ns0.xsd |
Represents a trip planner response, will be serialized into XML or JSON by Jersey
Example XML
<?xml version="1.0" encoding="UTF-8"?>
<response>
<requestParameters>
<entry>
<key>...</key>
<value>...</value>
</entry>
<entry>
<key>
<!--(another 'string' type)-->
</key>
<value>
<!--(another 'string' type)-->
</value>
</entry>
<!--...more entries...-->
</requestParameters>
<debugOutput>
<precalculationTime>...</precalculationTime>
<pathCalculationTime>...</pathCalculationTime>
<pathTimes>...</pathTimes>
<pathTimes>...</pathTimes>
<!--...more "pathTimes" elements...-->
<renderingTime>...</renderingTime>
<totalTime>...</totalTime>
<timedOut>...</timedOut>
</debugOutput>
<plan>
<date>...</date>
<from orig="..." zoneId="..." stopIndex="..." stopSequence="...">
<name>...</name>
<stopId>
<id>...</id>
<agencyId>...</agencyId>
</stopId>
<stopCode>...</stopCode>
<platformCode>...</platformCode>
<lon>...</lon>
<lat>...</lat>
<arrival>...</arrival>
<departure>...</departure>
</from>
<to orig="..." zoneId="..." stopIndex="..." stopSequence="...">
<name>...</name>
<stopId>
<id>...</id>
<agencyId>...</agencyId>
</stopId>
<stopCode>...</stopCode>
<platformCode>...</platformCode>
<lon>...</lon>
<lat>...</lat>
<arrival>...</arrival>
<departure>...</departure>
</to>
<itineraries>
<itinerary>
<duration>...</duration>
<startTime>...</startTime>
<endTime>...</endTime>
<walkTime>...</walkTime>
<transitTime>...</transitTime>
<waitingTime>...</waitingTime>
<walkDistance>...</walkDistance>
<walkLimitExceeded>...</walkLimitExceeded>
<elevationLost>...</elevationLost>
<elevationGained>...</elevationGained>
<transfers>...</transfers>
<fare>
<fare>
<entry>
<key>...</key>
<value>
<currency />
<cents>...</cents>
</value>
</entry>
<entry>
<key>
<!--(another 'fareType' type)-->
</key>
<value>
<!--(another 'money' type)-->
</value>
</entry>
<!--...more entries...-->
</fare>
</fare>
<legs>
<leg mode="..." route="..." agencyName="..." agencyUrl="..." agencyTimeZoneOffset="..." routeColor="..." routeType="..." routeId="..." routeTextColor="..." interlineWithPreviousLeg="..." tripShortName="..." tripBlockId="..." headsign="..." agencyId="..." tripId="..." serviceDate="..." routeShortName="..." routeLongName="..." boardRule="..." alightRule="..." rentedBike="...">
<startTime>...</startTime>
<endTime>...</endTime>
<departureDelay>...</departureDelay>
<arrivalDelay>...</arrivalDelay>
<realTime>...</realTime>
<isNonExactFrequency>...</isNonExactFrequency>
<headway>...</headway>
<distance>...</distance>
<pathway>...</pathway>
<from orig="..." zoneId="..." stopIndex="..." stopSequence="...">
<name>...</name>
<stopId>
<id>...</id>
<agencyId>...</agencyId>
</stopId>
<stopCode>...</stopCode>
<platformCode>...</platformCode>
<lon>...</lon>
<lat>...</lat>
<arrival>...</arrival>
<departure>...</departure>
</from>
<to orig="..." zoneId="..." stopIndex="..." stopSequence="...">
<name>...</name>
<stopId>
<id>...</id>
<agencyId>...</agencyId>
</stopId>
<stopCode>...</stopCode>
<platformCode>...</platformCode>
<lon>...</lon>
<lat>...</lat>
<arrival>...</arrival>
<departure>...</departure>
</to>
<intermediateStops>
<stop orig="..." zoneId="..." stopIndex="..." stopSequence="...">
<name>...</name>
<stopId>
<id>...</id>
<agencyId>...</agencyId>
</stopId>
<stopCode>...</stopCode>
<platformCode>...</platformCode>
<lon>...</lon>
<lat>...</lat>
<arrival>...</arrival>
<departure>...</departure>
</stop>
<stop orig="..." zoneId="..." stopIndex="..." stopSequence="...">
<!--...-->
</stop>
<!--...more "stop" elements...-->
</intermediateStops>
<legGeometry>
<points>...</points>
<levels>...</levels>
<length>...</length>
</legGeometry>
<steps>
<walkSteps>
<distance>...</distance>
<relativeDirection>...</relativeDirection>
<streetName>...</streetName>
<absoluteDirection>...</absoluteDirection>
<exit>...</exit>
<stayOn>...</stayOn>
<area>...</area>
<bogusName>...</bogusName>
<lon>...</lon>
<lat>...</lat>
<alerts>
<alertHeaderText>
<translations>
<entry key="..." value="..." />
<entry key="..." value="...">
<!--...-->
</entry>
<!--...more "entry" elements...-->
</translations>
</alertHeaderText>
<alertDescriptionText>
<translations>
<entry key="..." value="..." />
<entry key="..." value="...">
<!--...-->
</entry>
<!--...more "entry" elements...-->
</translations>
</alertDescriptionText>
<alertUrl>
<translations>
<entry key="..." value="..." />
<entry key="..." value="...">
<!--...-->
</entry>
<!--...more "entry" elements...-->
</translations>
</alertUrl>
<effectiveStartDate>...</effectiveStartDate>
</alerts>
<alerts>
<!--...-->
</alerts>
<!--...more "alerts" elements...-->
<elevation>...</elevation>
</walkSteps>
<walkSteps>
<!--...-->
</walkSteps>
<!--...more "walkSteps" elements...-->
</steps>
<notes>
<text>...</text>
</notes>
<notes>
<!--...-->
</notes>
<!--...more "notes" elements...-->
<alerts>
<alertHeaderText>
<translations>
<entry key="..." value="..." />
<entry key="..." value="...">
<!--...-->
</entry>
<!--...more "entry" elements...-->
</translations>
</alertHeaderText>
<alertDescriptionText>
<translations>
<entry key="..." value="..." />
<entry key="..." value="...">
<!--...-->
</entry>
<!--...more "entry" elements...-->
</translations>
</alertDescriptionText>
<alertUrl>
<translations>
<entry key="..." value="..." />
<entry key="..." value="...">
<!--...-->
</entry>
<!--...more "entry" elements...-->
</translations>
</alertUrl>
<effectiveStartDate>...</effectiveStartDate>
</alerts>
<alerts>
<!--...-->
</alerts>
<!--...more "alerts" elements...-->
<duration>...</duration>
</leg>
<leg mode="..." route="..." agencyName="..." agencyUrl="..." agencyTimeZoneOffset="..." routeColor="..." routeType="..." routeId="..." routeTextColor="..." interlineWithPreviousLeg="..." tripShortName="..." tripBlockId="..." headsign="..." agencyId="..." tripId="..." serviceDate="..." routeShortName="..." routeLongName="..." boardRule="..." alightRule="..." rentedBike="...">
<!--...-->
</leg>
<!--...more "leg" elements...-->
</legs>
<tooSloped>...</tooSloped>
</itinerary>
<itinerary>
<!--...-->
</itinerary>
<!--...more "itinerary" elements...-->
</itineraries>
</plan>
<error>
<id>...</id>
<msg>...</msg>
<message>...</message>
<missing>...</missing>
<missing>...</missing>
<!--...more "missing" elements...-->
<noPath>...</noPath>
</error>
</response>