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

RoutingGetRequest: [RoutingRequestBase](https://docs.maptiler.com/sdk-js/api-reference/types/RoutingRequestBase/) & { locations: [RoutingGetLocation](https://docs.maptiler.com/sdk-js/api-reference/interfaces/RoutingGetLocation/)\[\] } & [RoutingProfileSelection](https://docs.maptiler.com/sdk-js/api-reference/types/RoutingProfileSelection/)<  
    [RoutingCarOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/RoutingCarOptions/),  
    [RoutingTruckOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/RoutingTruckOptions/),  
    [RoutingBicycleOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/RoutingBicycleOptions/),  
    [RoutingPedestrianOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/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.maptiler.com/sdk-js/api-reference/interfaces/RoutingLocation/#heading), [RoutingLocation.waypoint](https://docs.maptiler.com/sdk-js/api-reference/interfaces/RoutingLocation/#waypoint) and `avoidLocations`. Use [routing.directionsPost](https://docs.maptiler.com/sdk-js/api-reference/variables/routing/#directionspost) if you need any of them.

#### Type Declaration

-   ##### locations: [RoutingGetLocation](https://docs.maptiler.com/sdk-js/api-reference/interfaces/RoutingGetLocation/)\[\]
    
    List of route locations (at least 2)
