English

How To: Interpret the time and duration values that are returned in the DetermineRouteResponse element

Summary

The DetermineRouteResponse element includes the estimated time to travel the route and the estimated time needed to complete each specific route instruction. These values may look cryptic at first glance. This article includes the procedure to determining these values.

Procedure

In the DetermineRouteResponse element, the TotalTime tag contains the estimated time to travel the complete route in hours and minutes:

Code:
<TotalTime>PT0H16M</TotalTime>

The RouteInstruction tag’s duration attribute contains the estimated time needed to complete each specific route instruction in hours and minutes:

Code:
<RouteInstruction duration="PT0H0M" description="Overview">

Both values are expressed as defined in the W3C definition. See the link in the Related Information section below for more information.

Related Information