---
title: "RoutingTime | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> 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
        

-   Defined in [services/routing.ts:204](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L204)
