---
title: "NavigationTransition | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

# Interface NavigationTransition

The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)

interface NavigationTransition {  
    [committed](#committed): Promise<void\>;  
    [finished](#finished): Promise<void\>;  
    [from](#from): [NavigationHistoryEntry](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NavigationHistoryEntry/);  
    [navigationType](#navigationtype): [NavigationType](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.NavigationType/);  
}

##### Index

### Properties[](#properties)

[committed](#committed) [finished](#finished) [from](#from) [navigationType](#navigationtype)

## Properties[](#properties-1)

### `Readonly`committed[](#committed)

committed: Promise<void\>

### `Readonly`finished[](#finished)

finished: Promise<void\>

The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/finished)

### `Readonly`from[](#from)

from: [NavigationHistoryEntry](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NavigationHistoryEntry/)

The **`from`** read-only property of the NavigationTransition interface returns the NavigationHistoryEntry that the transition is coming from.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/from)

### `Readonly`navigationType[](#navigationtype)

navigationType: [NavigationType](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.NavigationType/)

The **`navigationType`** read-only property of the NavigationTransition interface returns the type of the ongoing navigation.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/navigationType)
