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

# 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/sdk-js/api-reference/hierarchy/#RoutingLocation))

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

##### Index

### Properties

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

## Properties

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

heading?: number

Preferred direction of travel starting from this location.

### lat[](#lat)

lat: number

Latitude of the point

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

### lon[](#lon)

lon: number

Longitude of the point

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

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

waypoint?: boolean

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