# Duration information

Routing response can have several types of duration:

• duration - total duration of the action, section, and so on
• baseDuration - duration without dynamic traffic information
• typicalDuration - duration with typical traffic information for the given time of day
• mlDuration - duration based on the region-specific machine learning model

baseDuration, typicalDuration, and mlDuration do not exist for transit sections or actions because these are always equal to duration.

In order to obtain typicalDuration or mlDuration, request this information explicitly return=summary,typicalDuration.

If you need to calculate baseDuration, typicalDuration or mlDuration for the whole route, you need to add duration to the sum in places where only duration exists.

For code samples to calculate duration, see these tutorials: