---
title: "RoutingLocation | 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.

# Interface RoutingLocation

A single routing location

interface RoutingLocation {  
    [heading](#heading)?: number;  
    [lat](#lat): number;  
    [lon](#lon): number;  
    [waypoint](#waypoint)?: boolean;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/client-js/api/hierarchy/#services/routing.RoutingLocation))

-   [RoutingGetLocation](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingGetLocation/)
    -   RoutingLocation

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

##### Index

### Properties

[heading?](#heading) [lat](#lat) [lon](#lon) [waypoint?](#waypoint)

## Properties

### `Optional`heading[](#heading)

heading?: number

Preferred direction of travel starting from this location.

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

### lat[](#lat)

lat: number

Latitude of the point

Inherited from [RoutingGetLocation](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingGetLocation/).[lat](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingGetLocation/#lat)

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

### lon[](#lon)

lon: number

Longitude of the point

Inherited from [RoutingGetLocation](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingGetLocation/).[lon](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingGetLocation/#lon)

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

### `Optional`waypoint[](#waypoint)

waypoint?: boolean

Whether this location is a waypoint (default: true). If false, the router may pass through without splitting legs.

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