Export (0) Print
Expand All

Transit Route Example

Bing

The following example shows how to request a transit route between the Golden Gate Bridge and Fisherman’s Wharf in San Francisco for 3 PM on the current day. Responses are shown for both XML and JSON formats.

http://dev.virtualearth.net/REST/V1/Routes/Transit?wp.0=Golden%20Gate%20Bridge&wp.1=Fishermans%20Wharf&timeType=Departure&dateTime=3:00:00PM&output=xml&key=BingMapsKey

XML Response

The response for this example contains a Route resource that provides walking instructions and transit information for the route.

<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/search/local/ws/rest/v1">
  <Copyright>
    Copyright © 2011 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.
  </Copyright>
  <BrandLogoUri>
    http://dev.virtualearth.net/Branding/logo_powered_by.png
  </BrandLogoUri>
  <StatusCode>200</StatusCode>
  <StatusDescription>OK</StatusDescription>
  <AuthenticationResultCode>ValidCredentials</AuthenticationResultCode>
  <TraceId>
    5449c40063b0462596698e263e235aa7
  </TraceId>
  <ResourceSets>
    <ResourceSet>
      <EstimatedTotal>1</EstimatedTotal>
      <Resources>
        <Route>
          <Id>
            v62,i0,a0,cen-US,dANjBD75mzgg=,y1,s1,m4,o1,t0,wjpNcA4TvHPU=~rrD3jQAAAAAAAAAAAAAAAAA=~R29sZGVuIEdhdGUgQnJpZGdlLCBDQQ==~~~,wHE9cA+mTHvU=~rrD3jQAAAAAAAAAAAAAAAAA=~RmlzaGVybWFuJ3MgV2hhcmYsIENB~~~,k1,u
          </Id>
          <BoundingBox>
            <SouthLatitude>37.798793</SouthLatitude>
            <WestLongitude>-122.478416</WestLongitude>
            <NorthLatitude>37.818312</NorthLatitude>
            <EastLongitude>-122.40625</EastLongitude>
          </BoundingBox>
          <DistanceUnit>Kilometer</DistanceUnit>
          <DurationUnit>Second</DurationUnit>
          <TravelDistance>2.363</TravelDistance>
          <TravelDuration>3416</TravelDuration>
          <RouteLeg>
            <TravelDistance>2.363</TravelDistance>
            <TravelDuration>3416</TravelDuration>
            <ActualStart>
              <Latitude>37.807561</Latitude>
              <Longitude>-122.475024</Longitude>
            </ActualStart>
            <ActualEnd>
              <Latitude>37.80551</Latitude>
              <Longitude>-122.41784</Longitude>
            </ActualEnd>
            <StartLocation>
              <Name>Golden Gate Bridge, CA</Name>
              <Point>
                <Latitude>37.818298</Latitude>
                <Longitude>-122.478416</Longitude>
              </Point>
              <BoundingBox>
                <SouthLatitude>37.789328</SouthLatitude>
                <WestLongitude>-122.527295</WestLongitude>
                <NorthLatitude>37.847269</NorthLatitude>
                <EastLongitude>-122.429538</EastLongitude>
              </BoundingBox>
              <EntityType>Bridge</EntityType>
              <Address>
                <AdminDistrict>CA</AdminDistrict>
                <CountryRegion>United States</CountryRegion>
                <FormattedAddress>Golden Gate Bridge, CA</FormattedAddress>
                <Landmark>Golden Gate Bridge</Landmark>
              </Address>
              <Confidence>High</Confidence>
              <MatchCode>Good</MatchCode>
              <GeocodePoint>
                <Latitude>37.818298</Latitude>
                <Longitude>-122.478416</Longitude>
                <CalculationMethod>Rooftop</CalculationMethod>
                <UsageType>Display</UsageType>
              </GeocodePoint>
            </StartLocation>
            <EndLocation>
              <Name>Fisherman's Wharf, CA</Name>
              <Point>
                <Latitude>37.806549</Latitude>
                <Longitude>-122.40625</Longitude>
              </Point>
              <BoundingBox>
                <SouthLatitude>37.777579</SouthLatitude>
                <WestLongitude>-122.455121</WestLongitude>
                <NorthLatitude>37.835519</NorthLatitude>
                <EastLongitude>-122.357379</EastLongitude>
              </BoundingBox>
              <EntityType>PopulatedPlace</EntityType>
              <Address>
                <AdminDistrict>CA</AdminDistrict>
                <AdminDistrict2>San Francisco Co.</AdminDistrict2>
                <CountryRegion>United States</CountryRegion>
                <FormattedAddress>Fisherman's Wharf, CA</FormattedAddress>
                <Locality>Fisherman's Wharf</Locality>
              </Address>
              <Confidence>High</Confidence>
              <MatchCode>Good</MatchCode>
              <GeocodePoint>
                <Latitude>37.806549</Latitude>
                <Longitude>-122.40625</Longitude>
                <CalculationMethod>Rooftop</CalculationMethod>
                <UsageType>Display</UsageType>
              </GeocodePoint>
            </EndLocation>
            <ItineraryItem>
              <TravelMode>Transit</TravelMode>
              <TravelDistance>1.307</TravelDistance>
              <TravelDuration>941</TravelDuration>
              <ManeuverPoint>
                <Latitude>37.818298</Latitude>
                <Longitude>-122.478416</Longitude>
              </ManeuverPoint>
              <Instruction maneuverType="DepartStart">
                Walk: From Golden Gate Bridge, CA to Golden Gate Bridge/Parking Lot
              </Instruction>
              <CompassDirection/>
              <Detail>
                <ManeuverType>Walk</ManeuverType>
                <StartPathIndex>0</StartPathIndex>
                <EndPathIndex>8</EndPathIndex>
                <CompassDegrees>0</CompassDegrees>
                <Mode>Transit</Mode>
                <PreviousEntityId>0</PreviousEntityId>
                <NextEntityId>0</NextEntityId>
                <RoadType>NotApplicable</RoadType>
              </Detail>
              <Exit/>
              <TollZone/>
              <TransitTerminus/>
              <IconType>Walk</IconType>
              <Time>0001-01-01T00:00:00</Time>
              <TransitStopId>0</TransitStopId>
              <SideOfStreet>Unknown</SideOfStreet>
            </ItineraryItem>
            <ItineraryItem>
              <TravelMode>Transit</TravelMode>
              <TravelDistance>0</TravelDistance>
              <TravelDuration>711</TravelDuration>
              <ManeuverPoint>
                <Latitude>37.807561</Latitude>
                <Longitude>-122.475024</Longitude>
              </ManeuverPoint>
              <Instruction maneuverType="TakeTransit">Bus: Take 28 - Fort Mason</Instruction>
              <CompassDirection/>
              <Hint>Previous stop is Lombard St & Fillmore St</Hint>
              <Hint>
                If you reach Buchanan St & Bay St, you've gone too far
              </Hint>
              <Detail>
                <ManeuverType>TakeTransit</ManeuverType>
                <StartPathIndex>8</StartPathIndex>
                <EndPathIndex>35</EndPathIndex>
                <CompassDegrees>0</CompassDegrees>
                <Mode>Transit</Mode>
                <PreviousEntityId>0</PreviousEntityId>
                <NextEntityId>0</NextEntityId>
                <RoadType>NotApplicable</RoadType>
              </Detail>
              <ChildItineraryItems>
                <ItineraryItem>
                  <TravelMode>Driving</TravelMode>
                  <TravelDistance>0</TravelDistance>
                  <TravelDuration>0</TravelDuration>
                  <ManeuverPoint>
                    <Latitude>0</Latitude>
                    <Longitude>0</Longitude>
                  </ManeuverPoint>
                  <Instruction maneuverType="TransitDepart">Depart: Golden Gate Bridge/Parking Lot</Instruction>
                  <CompassDirection/>
                  <Detail>
                    <ManeuverType>TransitDepart</ManeuverType>
                    <Name>Golden Gate Bridge/Parking Lot</Name>
                    <CompassDegrees>0</CompassDegrees>
                    <Mode>Driving</Mode>
                    <PreviousEntityId>0</PreviousEntityId>
                    <NextEntityId>0</NextEntityId>
                    <RoadType>None</RoadType>
                  </Detail>
                  <Exit/>
                  <TollZone/>
                  <TransitTerminus/>
                  <IconType>None</IconType>
                  <Time>2011-11-01T15:17:43</Time>
                  <TransitStopId>100966</TransitStopId>
                  <SideOfStreet>Unknown</SideOfStreet>
                </ItineraryItem>
                <ItineraryItem>
                  <TravelMode>Driving</TravelMode>
                  <TravelDistance>0</TravelDistance>
                  <TravelDuration>0</TravelDuration>
                  <ManeuverPoint>
                    <Latitude>0</Latitude>
                    <Longitude>0</Longitude>
                  </ManeuverPoint>
                  <Instruction maneuverType="TransitArrive">Arrive: Laguna St & Chestnut St</Instruction>
                  <CompassDirection/>
                  <Detail>
                    <ManeuverType>TransitArrive</ManeuverType>
                    <Name>Laguna St & Chestnut St</Name>
                    <CompassDegrees>0</CompassDegrees>
                    <Mode>Driving</Mode>
                    <PreviousEntityId>0</PreviousEntityId>
                    <NextEntityId>0</NextEntityId>
                    <RoadType>None</RoadType>
                  </Detail>
                  <Exit/>
                  <TollZone/>
                  <TransitTerminus/>
                  <IconType>None</IconType>
                  <Time>2011-11-01T15:29:34</Time>
                  <TransitStopId>101446</TransitStopId>
                  <SideOfStreet>Unknown</SideOfStreet>
                </ItineraryItem>
              </ChildItineraryItems>
              <Exit/>
              <TollZone/>
              <TransitTerminus>Fort Mason</TransitTerminus>
              <IconType>Bus</IconType>
              <Time>0001-01-01T00:00:00</Time>
              <TransitStopId>0</TransitStopId>
              <TransitLine>
                <VerboseName>19TH AVENUE</VerboseName>
                <AbbreviatedName>28</AbbreviatedName>
                <AgencyId>30</AgencyId>
                <AgencyName>San Francisco Municipal Transportation Agency</AgencyName>
                <LineColor>16777215</LineColor>
                <LineTextColor>16777215</LineTextColor>
                <Uri>http://www.sfmta.com</Uri>
                <PhoneNumber/>
                <ProviderInfo>
                  Service Provider: San Francisco Municipal Transportation Agency
                </ProviderInfo>
              </TransitLine>
              <SideOfStreet>Unknown</SideOfStreet>
            </ItineraryItem>
            <ItineraryItem>
              <TravelMode>Transit</TravelMode>
              <TravelDistance>0.011</TravelDistance>
              <TravelDuration>60</TravelDuration>
              <ManeuverPoint>
                <Latitude>37.80135</Latitude>
                <Longitude>-122.43123</Longitude>
              </ManeuverPoint>
              <Instruction maneuverType="Walk">
                Walk: From Laguna St & Chestnut St to Chestnut St & Laguna St
              </Instruction>
              <CompassDirection/>
              <Hint>8 minutes to make the connection</Hint>
              <Detail>
                <ManeuverType>Walk</ManeuverType>
                <StartPathIndex>35</StartPathIndex>
                <EndPathIndex>38</EndPathIndex>
                <CompassDegrees>0</CompassDegrees>
                <Mode>Transit</Mode>
                <PreviousEntityId>0</PreviousEntityId>
                <NextEntityId>0</NextEntityId>
                <RoadType>NotApplicable</RoadType>
              </Detail>
              <Exit/>
              <TollZone/>
              <TransitTerminus/>
              <IconType>Walk</IconType>
              <Time>0001-01-01T00:00:00</Time>
              <TransitStopId>0</TransitStopId>
              <SideOfStreet>Unknown</SideOfStreet>
            </ItineraryItem>
            <ItineraryItem>
              <TravelMode>Transit</TravelMode>
              <TravelDistance>0</TravelDistance>
              <TravelDuration>532</TravelDuration>
              <ManeuverPoint>
                <Latitude>37.80137</Latitude>
                <Longitude>-122.431406</Longitude>
              </ManeuverPoint>
              <Instruction maneuverType="TakeTransit">Bus: Take 30 - Townsend & 4 th St.</Instruction>
              <CompassDirection/>
              <Hint>Previous stop is North Point St & Hyde St</Hint>
              <Hint>
                If you reach Columbus Ave & Francisco St, you've gone too far
              </Hint>
              <Detail>
                <ManeuverType>TakeTransit</ManeuverType>
                <StartPathIndex>38</StartPathIndex>
                <EndPathIndex>46</EndPathIndex>
                <CompassDegrees>0</CompassDegrees>
                <Mode>Transit</Mode>
                <PreviousEntityId>0</PreviousEntityId>
                <NextEntityId>0</NextEntityId>
                <RoadType>NotApplicable</RoadType>
              </Detail>
              <ChildItineraryItems>
                <ItineraryItem>
                  <TravelMode>Driving</TravelMode>
                  <TravelDistance>0</TravelDistance>
                  <TravelDuration>0</TravelDuration>
                  <ManeuverPoint>
                    <Latitude>0</Latitude>
                    <Longitude>0</Longitude>
                  </ManeuverPoint>
                  <Instruction maneuverType="TransitDepart">Depart: Chestnut St & Laguna St</Instruction>
                  <CompassDirection/>
                  <Detail>
                    <ManeuverType>TransitDepart</ManeuverType>
                    <Name>Chestnut St & Laguna St</Name>
                    <CompassDegrees>0</CompassDegrees>
                    <Mode>Driving</Mode>
                    <PreviousEntityId>0</PreviousEntityId>
                    <NextEntityId>0</NextEntityId>
                    <RoadType>None</RoadType>
                  </Detail>
                  <Exit/>
                  <TollZone/>
                  <TransitTerminus/>
                  <IconType>None</IconType>
                  <Time>2011-11-01T15:37:34</Time>
                  <TransitStopId>100197</TransitStopId>
                  <SideOfStreet>Unknown</SideOfStreet>
                </ItineraryItem>
                <ItineraryItem>
                  <TravelMode>Driving</TravelMode>
                  <TravelDistance>0</TravelDistance>
                  <TravelDuration>0</TravelDuration>
                  <ManeuverPoint>
                    <Latitude>0</Latitude>
                    <Longitude>0</Longitude>
                  </ManeuverPoint>
                  <Instruction maneuverType="TransitArrive">Arrive: Columbus Ave & Bay St</Instruction>
                  <CompassDirection/>
                  <Detail>
                    <ManeuverType>TransitArrive</ManeuverType>
                    <Name>Columbus Ave & Bay St</Name>
                    <CompassDegrees>0</CompassDegrees>
                    <Mode>Driving</Mode>
                    <PreviousEntityId>0</PreviousEntityId>
                    <NextEntityId>0</NextEntityId>
                    <RoadType>None</RoadType>
                  </Detail>
                  <Exit/>
                  <TollZone/>
                  <TransitTerminus/>
                  <IconType>None</IconType>
                  <Time>2011-11-01T15:46:26</Time>
                  <TransitStopId>100337</TransitStopId>
                  <SideOfStreet>Unknown</SideOfStreet>
                </ItineraryItem>
              </ChildItineraryItems>
              <Exit/>
              <TollZone/>
              <TransitTerminus>Townsend & 4 th St.</TransitTerminus>
              <IconType>Bus</IconType>
              <Time>0001-01-01T00:00:00</Time>
              <TransitStopId>0</TransitStopId>
              <TransitLine>
                <VerboseName>STOCKTON</VerboseName>
                <AbbreviatedName>30</AbbreviatedName>
                <AgencyId>30</AgencyId>
                <AgencyName>San Francisco Municipal Transportation Agency</AgencyName>
                <LineColor>16777215</LineColor>
                <LineTextColor>16777215</LineTextColor>
                <Uri>http://www.sfmta.com</Uri>
                <PhoneNumber/>
                <ProviderInfo>
                  Service Provider: San Francisco Municipal Transportation Agency
                </ProviderInfo>
              </TransitLine>
              <SideOfStreet>Unknown</SideOfStreet>
            </ItineraryItem>
            <ItineraryItem>
              <TravelMode>Transit</TravelMode>
              <TravelDistance>1.045</TravelDistance>
              <TravelDuration>752</TravelDuration>
              <ManeuverPoint>
                <Latitude>37.80551</Latitude>
                <Longitude>-122.41784</Longitude>
              </ManeuverPoint>
              <Instruction maneuverType="ArriveFinish">
                Walk: From Columbus Ave & Bay St to Fisherman's Wharf, CA
              </Instruction>
              <CompassDirection/>
              <Detail>
                <ManeuverType>Walk</ManeuverType>
                <StartPathIndex>46</StartPathIndex>
                <EndPathIndex>50</EndPathIndex>
                <CompassDegrees>0</CompassDegrees>
                <Mode>Transit</Mode>
                <PreviousEntityId>0</PreviousEntityId>
                <NextEntityId>0</NextEntityId>
                <RoadType>NotApplicable</RoadType>
              </Detail>
              <Exit/>
              <TollZone/>
              <TransitTerminus/>
              <IconType>Walk</IconType>
              <Time>0001-01-01T00:00:00</Time>
              <TransitStopId>0</TransitStopId>
              <SideOfStreet>Unknown</SideOfStreet>
            </ItineraryItem>
            <StartTime>2011-11-01T15:02:02</StartTime>
            <EndTime>2011-11-01T15:58:58</EndTime>
          </RouteLeg>
        </Route>
      </Resources>
    </ResourceSet>
  </ResourceSets>
</Response>

JSON Response

You would receive the following JSON response if the output=xml parameter was not set in this example.

{
   "authenticationResultCode":"ValidCredentials",
   "brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png",
   "copyright":"Copyright © 2011 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.",
   "resourceSets":[
      {
         "estimatedTotal":1,
         "resources":[
            {
               "__type":"Route:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1",
               "bbox":[
                  37.798793,
                  -122.478416,
                  37.818312,
                  -122.40625
               ],
               "id":"v62,i0,a0,cen-US,dANjBD75mzgg=,y1,s1,m4,o1,t0,wjpNcA4TvHPU=~rrD3jQAAAAAAAAAAAAAAAAA=~R29sZGVuIEdhdGUgQnJpZGdlLCBDQQ==~~~,wHE9cA+mTHvU=~rrD3jQAAAAAAAAAAAAAAAAA=~RmlzaGVybWFuJ3MgV2hhcmYsIENB~~~,k1,u",
               "distanceUnit":"Kilometer",
               "durationUnit":"Second",
               "routeLegs":[
                  {
                     "actualEnd":{
                        "type":"Point",
                        "coordinates":[
                           37.80551,
                           -122.41784
                        ]
                     },
                     "actualStart":{
                        "type":"Point",
                        "coordinates":[
                           37.807561,
                           -122.475024
                        ]
                     },
                     "endLocation":{
                        "bbox":[
                           37.777579,
                           -122.455121,
                           37.835519,
                           -122.357379
                        ],
                        "name":"Fisherman's Wharf, CA",
                        "point":{
                           "type":"Point",
                           "coordinates":[
                              37.806549,
                              -122.40625
                           ]
                        },
                        "address":{
                           "adminDistrict":"CA",
                           "adminDistrict2":"San Francisco Co.",
                           "countryRegion":"United States",
                           "formattedAddress":"Fisherman's Wharf, CA",
                           "locality":"Fisherman's Wharf"
                        },
                        "confidence":"High",
                        "entityType":"PopulatedPlace",
                        "geocodePoints":[
                           {
                              "type":"Point",
                              "coordinates":[
                                 37.806549,
                                 -122.40625
                              ],
                              "calculationMethod":"Rooftop",
                              "usageTypes":[
                                 "Display"
                              ]
                           }
                        ],
                        "matchCodes":[
                           "Good"
                        ]
                     },
                     "endTime":"\/Date(1320188338000-0700)\/",
                     "itineraryItems":[
                        {
                           "compassDirection":"",
                           "details":[
                              {
                                 "endPathIndices":[
                                    8
                                 ],
                                 "maneuverType":"Walk",
                                 "mode":"Transit",
                                 "roadType":"NotApplicable",
                                 "startPathIndices":[
                                    0
                                 ]
                              }
                           ],
                           "exit":"",
                           "iconType":"Walk",
                           "instruction":{
                              "maneuverType":"DepartStart",
                              "text":"Walk: From Golden Gate Bridge, CA to Golden Gate Bridge\/Parking Lot"
                           },
                           "maneuverPoint":{
                              "type":"Point",
                              "coordinates":[
                                 37.818298,
                                 -122.478416
                              ]
                           },
                           "sideOfStreet":"Unknown",
                           "tollZone":"",
                           "transitTerminus":"",
                           "travelDistance":1.307,
                           "travelDuration":941,
                           "travelMode":"Transit"
                        },
                        {
                           "childItineraryItems":[
                              {
                                 "compassDirection":"",
                                 "details":[
                                    {
                                       "maneuverType":"TransitDepart",
                                       "mode":"Driving",
                                       "names":[
                                          "Golden Gate Bridge\/Parking Lot"
                                       ],
                                       "roadType":"None"
                                    }
                                 ],
                                 "exit":"",
                                 "iconType":"None",
                                 "instruction":{
                                    "maneuverType":"TransitDepart",
                                    "text":"Depart: Golden Gate Bridge\/Parking Lot"
                                 },
                                 "maneuverPoint":{
                                    "type":"Point",
                                    "coordinates":[
                                       0,
                                       0
                                    ]
                                 },
                                 "sideOfStreet":"Unknown",
                                 "time":"\/Date(1320185863000-0700)\/",
                                 "tollZone":"",
                                 "transitStopId":100966,
                                 "transitTerminus":"",
                                 "travelDistance":0,
                                 "travelDuration":0,
                                 "travelMode":"Driving"
                              },
                              {
                                 "compassDirection":"",
                                 "details":[
                                    {
                                       "maneuverType":"TransitArrive",
                                       "mode":"Driving",
                                       "names":[
                                          "Laguna St & Chestnut St"
                                       ],
                                       "roadType":"None"
                                    }
                                 ],
                                 "exit":"",
                                 "iconType":"None",
                                 "instruction":{
                                    "maneuverType":"TransitArrive",
                                    "text":"Arrive: Laguna St & Chestnut St"
                                 },
                                 "maneuverPoint":{
                                    "type":"Point",
                                    "coordinates":[
                                       0,
                                       0
                                    ]
                                 },
                                 "sideOfStreet":"Unknown",
                                 "time":"\/Date(1320186574000-0700)\/",
                                 "tollZone":"",
                                 "transitStopId":101446,
                                 "transitTerminus":"",
                                 "travelDistance":0,
                                 "travelDuration":0,
                                 "travelMode":"Driving"
                              }
                           ],
                           "compassDirection":"",
                           "details":[
                              {
                                 "endPathIndices":[
                                    35
                                 ],
                                 "maneuverType":"TakeTransit",
                                 "mode":"Transit",
                                 "roadType":"NotApplicable",
                                 "startPathIndices":[
                                    8
                                 ]
                              }
                           ],
                           "exit":"",
                           "hints":[
                              {
                                 "hintType":null,
                                 "text":"Previous stop is Lombard St & Fillmore St"
                              },
                              {
                                 "hintType":null,
                                 "text":"If you reach Buchanan St & Bay St, you've gone too far"
                              }
                           ],
                           "iconType":"Bus",
                           "instruction":{
                              "maneuverType":"TakeTransit",
                              "text":"Bus: Take 28 - Fort Mason"
                           },
                           "maneuverPoint":{
                              "type":"Point",
                              "coordinates":[
                                 37.807561,
                                 -122.475024
                              ]
                           },
                           "sideOfStreet":"Unknown",
                           "tollZone":"",
                           "transitLine":{
                              "abbreviatedName":"28",
                              "agencyId":30,
                              "agencyName":"San Francisco Municipal Transportation Agency",
                              "lineColor":16777215,
                              "lineTextColor":16777215,
                              "phoneNumber":"",
                              "providerInfo":"Service Provider: San Francisco Municipal Transportation Agency ",
                              "uri":"http:\/\/www.sfmta.com",
                              "verboseName":"19TH AVENUE"
                           },
                           "transitTerminus":"Fort Mason",
                           "travelDistance":0,
                           "travelDuration":711,
                           "travelMode":"Transit"
                        },
                        {
                           "compassDirection":"",
                           "details":[
                              {
                                 "endPathIndices":[
                                    38
                                 ],
                                 "maneuverType":"Walk",
                                 "mode":"Transit",
                                 "roadType":"NotApplicable",
                                 "startPathIndices":[
                                    35
                                 ]
                              }
                           ],
                           "exit":"",
                           "hints":[
                              {
                                 "hintType":null,
                                 "text":"8 minutes to make the connection"
                              }
                           ],
                           "iconType":"Walk",
                           "instruction":{
                              "maneuverType":"Walk",
                              "text":"Walk: From Laguna St & Chestnut St to Chestnut St & Laguna St"
                           },
                           "maneuverPoint":{
                              "type":"Point",
                              "coordinates":[
                                 37.80135,
                                 -122.43123
                              ]
                           },
                           "sideOfStreet":"Unknown",
                           "tollZone":"",
                           "transitTerminus":"",
                           "travelDistance":0.011,
                           "travelDuration":60,
                           "travelMode":"Transit"
                        },
                        {
                           "childItineraryItems":[
                              {
                                 "compassDirection":"",
                                 "details":[
                                    {
                                       "maneuverType":"TransitDepart",
                                       "mode":"Driving",
                                       "names":[
                                          "Chestnut St & Laguna St"
                                       ],
                                       "roadType":"None"
                                    }
                                 ],
                                 "exit":"",
                                 "iconType":"None",
                                 "instruction":{
                                    "maneuverType":"TransitDepart",
                                    "text":"Depart: Chestnut St & Laguna St"
                                 },
                                 "maneuverPoint":{
                                    "type":"Point",
                                    "coordinates":[
                                       0,
                                       0
                                    ]
                                 },
                                 "sideOfStreet":"Unknown",
                                 "time":"\/Date(1320187054000-0700)\/",
                                 "tollZone":"",
                                 "transitStopId":100197,
                                 "transitTerminus":"",
                                 "travelDistance":0,
                                 "travelDuration":0,
                                 "travelMode":"Driving"
                              },
                              {
                                 "compassDirection":"",
                                 "details":[
                                    {
                                       "maneuverType":"TransitArrive",
                                       "mode":"Driving",
                                       "names":[
                                          "Columbus Ave & Bay St"
                                       ],
                                       "roadType":"None"
                                    }
                                 ],
                                 "exit":"",
                                 "iconType":"None",
                                 "instruction":{
                                    "maneuverType":"TransitArrive",
                                    "text":"Arrive: Columbus Ave & Bay St"
                                 },
                                 "maneuverPoint":{
                                    "type":"Point",
                                    "coordinates":[
                                       0,
                                       0
                                    ]
                                 },
                                 "sideOfStreet":"Unknown",
                                 "time":"\/Date(1320187586000-0700)\/",
                                 "tollZone":"",
                                 "transitStopId":100337,
                                 "transitTerminus":"",
                                 "travelDistance":0,
                                 "travelDuration":0,
                                 "travelMode":"Driving"
                              }
                           ],
                           "compassDirection":"",
                           "details":[
                              {
                                 "endPathIndices":[
                                    46
                                 ],
                                 "maneuverType":"TakeTransit",
                                 "mode":"Transit",
                                 "roadType":"NotApplicable",
                                 "startPathIndices":[
                                    38
                                 ]
                              }
                           ],
                           "exit":"",
                           "hints":[
                              {
                                 "hintType":null,
                                 "text":"Previous stop is North Point St & Hyde St"
                              },
                              {
                                 "hintType":null,
                                 "text":"If you reach Columbus Ave & Francisco St, you've gone too far"
                              }
                           ],
                           "iconType":"Bus",
                           "instruction":{
                              "maneuverType":"TakeTransit",
                              "text":"Bus: Take 30 - Townsend & 4 th St."
                           },
                           "maneuverPoint":{
                              "type":"Point",
                              "coordinates":[
                                 37.80137,
                                 -122.431406
                              ]
                           },
                           "sideOfStreet":"Unknown",
                           "tollZone":"",
                           "transitLine":{
                              "abbreviatedName":"30",
                              "agencyId":30,
                              "agencyName":"San Francisco Municipal Transportation Agency",
                              "lineColor":16777215,
                              "lineTextColor":16777215,
                              "phoneNumber":"",
                              "providerInfo":"Service Provider: San Francisco Municipal Transportation Agency ",
                              "uri":"http:\/\/www.sfmta.com",
                              "verboseName":"STOCKTON"
                           },
                           "transitTerminus":"Townsend & 4 th St.",
                           "travelDistance":0,
                           "travelDuration":532,
                           "travelMode":"Transit"
                        },
                        {
                           "compassDirection":"",
                           "details":[
                              {
                                 "endPathIndices":[
                                    50
                                 ],
                                 "maneuverType":"Walk",
                                 "mode":"Transit",
                                 "roadType":"NotApplicable",
                                 "startPathIndices":[
                                    46
                                 ]
                              }
                           ],
                           "exit":"",
                           "iconType":"Walk",
                           "instruction":{
                              "maneuverType":"ArriveFinish",
                              "text":"Walk: From Columbus Ave & Bay St to Fisherman's Wharf, CA"
                           },
                           "maneuverPoint":{
                              "type":"Point",
                              "coordinates":[
                                 37.80551,
                                 -122.41784
                              ]
                           },
                           "sideOfStreet":"Unknown",
                           "tollZone":"",
                           "transitTerminus":"",
                           "travelDistance":1.045,
                           "travelDuration":752,
                           "travelMode":"Transit"
                        }
                     ],
                     "startLocation":{
                        "bbox":[
                           37.789328,
                           -122.527295,
                           37.847269,
                           -122.429538
                        ],
                        "name":"Golden Gate Bridge, CA",
                        "point":{
                           "type":"Point",
                           "coordinates":[
                              37.818298,
                              -122.478416
                           ]
                        },
                        "address":{
                           "adminDistrict":"CA",
                           "countryRegion":"United States",
                           "formattedAddress":"Golden Gate Bridge, CA",
                           "landmark":"Golden Gate Bridge"
                        },
                        "confidence":"High",
                        "entityType":"Bridge",
                        "geocodePoints":[
                           {
                              "type":"Point",
                              "coordinates":[
                                 37.818298,
                                 -122.478416
                              ],
                              "calculationMethod":"Rooftop",
                              "usageTypes":[
                                 "Display"
                              ]
                           }
                        ],
                        "matchCodes":[
                           "Good"
                        ]
                     },
                     "startTime":"\/Date(1320184922000-0700)\/",
                     "travelDistance":2.363,
                     "travelDuration":3416
                  }
               ],
               "travelDistance":2.363,
               "travelDuration":3416
            }
         ]
      }
   ],
   "statusCode":200,
   "statusDescription":"OK",
   "traceId":"ce523ad2a0b84f23b27176d428e29298|BR1M007702|02.00.70.2800|BR1MSNVM007519, BR1MSNVM007509, BR1MSNVM007522, BR1MSNVM007520"
}

See Also

Show:
© 2014 Microsoft