GetTravelDirections Transient Update SOAP Example - main

Spectrum OnDemand Web Services (SOAP)

Product type
Software
Portfolio
Verify
Product family
Product
Spectrum OnDemand
Version
main
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (SOAP)
First publish date
2006

The following shows a standard GetTravelDirections SOAP request with all of the transient update options available (not a working example, this is used to show all the syntax). You can have multiple Update definitions within a TravelDirectionTransientUpdate. You can only have a single update type (PointUpdate, SegmentUpdate, or RoadTypeUpdate) within an Update. You can also only have a single update within one of the update types (PointUpdate, SegmentUpdate, or RoadTypeUpdate).

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:get="http://<server>:<port>/spectrum/services/GetTravelDirections"
xmlns:typ="http://www.g1.com/services/erm/types">
   <soapenv:Header/>
   <soapenv:Body>
      <get:GetTravelDirectionsRequest>
         <get:input_port>
            <get:PointToPointRequest>
               <get:RoutePoints>
                  <get:RoutePoint>
                     <get:Latitude>33.751748</get:Latitude>                            
                     <get:Longitude>-84.364014</get:Longitude>
                  </get:RoutePoint>
                   <get:RoutePoint>
                     <get:Latitude>33.664925</get:Latitude>
                     <get:Longitude>-80.90332</get:Longitude>
                  </get:RoutePoint>
               </get:RoutePoints>
			   <get:Language>en-US</get:Language>
			   <get:TravelDirectionTransientUpdate>
                  <typ:Update>
                           <typ:PointUpdate>
                              <typ:Point>
                                 <typ:Latitude>?</typ:Latitude>
                                 <typ:Longitude>?</typ:Longitude>
                              </typ:Point>
                              <typ:SpeedUpdate>
                                 <typ:Velocity VelocityUnit=""/>
                                 <typ:SpeedIncrease>
                                    <typ:Velocity VelocityUnit=""/>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedIncrease>
                                 <typ:SpeedDecrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedDecrease>
                              </typ:SpeedUpdate>
                              <typ:Exclude>?</typ:Exclude>
                           </typ:PointUpdate>
                           <typ:SegmentUpdate>
                              <typ:RoutingSegmentID>?</typ:RoutingSegmentID>
                              <typ:SpeedUpdate>
                                 <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                 <typ:SpeedIncrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedIncrease>
                                 <typ:SpeedDecrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedDecrease>
                              </typ:SpeedUpdate>
                              <typ:RoadType>?</typ:RoadType>
                              <typ:Exclude>?</typ:Exclude>
                           </typ:SegmentUpdate>
                           <typ:RoadTypeUpdate>
                              <typ:RoadType>?</typ:RoadType>
                              <typ:SpeedUpdate>
                                 <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                 <typ:SpeedIncrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedIncrease>
                                 <typ:SpeedDecrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedDecrease>
                              </typ:SpeedUpdate>
                           </typ:RoadTypeUpdate>
                        </typ:Update>
               </get:TravelDirectionTransientUpdate>
            </get:PointToPointRequest>
         </get:input_port>
      </get:GetTravelDirectionsRequest>
   </soapenv:Body>
</soapenv:Envelope>