---
title: "RoutingTime | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias RoutingTime

RoutingTime:  
    | { arrivalTime?: never; departureTime?: string }  
    | { arrivalTime?: string; departureTime?: never }

Either the departure or the arrival time. The API treats them as alternative time types, so setting both is a type error.

#### Type Declaration

-   { arrivalTime?: never; departureTime?: string }
    -   ##### `Optional`arrivalTime?: never
        
    -   ##### `Optional`departureTime?: string
        
        Time of departure. Format: YYYY-MM-DDTHH:MM
        
-   { arrivalTime?: string; departureTime?: never }
    -   ##### `Optional`arrivalTime?: string
        
        Desired arrival time. Format: YYYY-MM-DDTHH:MM
        
    -   ##### `Optional`departureTime?: never
