---
title: "RoutingGetRequest | 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 RoutingGetRequest

RoutingGetRequest: [RoutingRequestBase](https://docs-qmgv.pages.dev/client-js/api/types/services_routing.RoutingRequestBase/) & { locations: [RoutingGetLocation](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingGetLocation/)\[\] } & [RoutingProfileSelection](https://docs-qmgv.pages.dev/client-js/api/types/services_routing.RoutingProfileSelection/)<  
    [RoutingCarOptions](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingCarOptions/),  
    [RoutingTruckOptions](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingTruckOptions/),  
    [RoutingBicycleOptions](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingBicycleOptions/),  
    [RoutingPedestrianOptions](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingPedestrianOptions/),  
\>

Routing request for GET /routing/v1/directions.

The GET endpoint takes a strict subset of what the POST body accepts, so this type deliberately omits the fields that cannot be expressed as query parameters: [RoutingLocation.heading](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingLocation/#heading), [RoutingLocation.waypoint](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingLocation/#waypoint) and `avoidLocations`. Use [routing.directionsPost](https://docs-qmgv.pages.dev/client-js/api/variables/services_routing.routing/#directionspost) if you need any of them.

#### Type Declaration

-   ##### locations: [RoutingGetLocation](https://docs-qmgv.pages.dev/client-js/api/interfaces/services_routing.RoutingGetLocation/)\[\]
    
    List of route locations (at least 2)
    

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