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

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

# Type Alias RoutingRequestBase

RoutingRequestBase: [RoutingTime](https://docs-qmgv.pages.dev/client-js/api/types/services_routing.RoutingTime/) & {  
    id?: string;  
    response?: [RoutingResponseOptions](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingResponseOptions/);  
}

Request fields shared by both endpoints.

#### Type Declaration

-   ##### `Optional`id?: string
    
    Pass-through identifier returned in response
    
-   ##### `Optional`response?: [RoutingResponseOptions](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingResponseOptions/)
    
    Response formatting options
    

-   Defined in [services/routing.ts:223](https://github.com/maptiler/maptiler-client-js/blob/24dcae07591a8f57b9bf9fd7100fb66be5fdb76c/src/services/routing.ts#L223)
