> For the complete documentation index, see [llms.txt](https://dev.pointr.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.pointr.tech/features/wayfinding.md).

# Wayfinding

Pointr’s Deep Location® Platform offers a wayfinding feature that allows users to navigate from their live or chosen location to a specified destination. We support three types of wayfinding;

<table><thead><tr><th width="119.88671875">Category</th><th align="center">Dynamic Wayfinding  "Live Directions"</th><th align="center">Step-By-Step Wayfinding</th><th align="center">Hybrid Wayfinding</th></tr></thead><tbody><tr><td>Preview</td><td align="center"><img src="https://content.gitbook.com/content/X0ubTdDuDEByHfWtKKVg/blobs/6NgraafVA4mkaF5MvsGM/wayfinding-v9.png" alt=""></td><td align="center"><img src="https://content.gitbook.com/content/X0ubTdDuDEByHfWtKKVg/blobs/riMTG5558cb4Ii0Ejvvl/step-by-step-wayfinding%20(1).png" alt=""></td><td align="center"><img src="https://content.gitbook.com/content/X0ubTdDuDEByHfWtKKVg/blobs/cmNrivF3WhHJWmuWjhRX/Hybrid%20Wayfinding%20(1).png" alt=""></td></tr><tr><td>SDK support</td><td align="center">Mobile SDK</td><td align="center">Web SDK + Mobile SDK</td><td align="center">Mobile SDK</td></tr><tr><td>User live positioning (Blue Dot)</td><td align="center"><p>Required</p><p>(Live Blue Dot)</p></td><td align="center">Not used</td><td align="center"><p>Optional</p><p>(Used when available)</p></td></tr><tr><td>Positioning technology</td><td align="center">BLE when available, GPS fallback</td><td align="center">Not required</td><td align="center">BLE when available, GPS displayed but not used for wayfinding</td></tr><tr><td>Works without BLE</td><td align="center">Yes<br>(GPS Blue Dot)</td><td align="center">Yes<br>(No live positioning)</td><td align="center">Yes<br>(Step-by-Step + GPS Blue Dot)</td></tr><tr><td>Route start point</td><td align="center">Live detected position</td><td align="center">Selected POI or coordinate</td><td align="center">Live position if available, otherwise selected POI or coordinate</td></tr><tr><td>Guidance type</td><td align="center">Blue Dot + live directions</td><td align="center">Static route + step-by-step directions</td><td align="center">Live or step-by-step based on BLE coverage</td></tr><tr><td>Rerouting</td><td align="center">Automatic</td><td align="center">Not supported</td><td align="center">Automatic when positioned</td></tr><tr><td>When BLE is unavailable</td><td align="center">GPS Blue Dot<br>(Reduced accuracy)</td><td align="center">Step-by-step<br>(No positioning)</td><td align="center">Step-by-step + GPS Blue Dot</td></tr><tr><td>When BLE is available</td><td align="center">BLE Blue Dot</td><td align="center">BLE blue dot for Mobile only (Web N/A)</td><td align="center">BLE Blue Dot</td></tr><tr><td>Typical usage</td><td align="center">Fully BLE-covered indoor spaces</td><td align="center">Web, pre-trip, no-BLE areas</td><td align="center">Partial or mixed BLE coverage</td></tr></tbody></table>

### Hybrid Wayfinding <a href="#hybrid-wayfinding" id="hybrid-wayfinding"></a>

Hybrid Wayfinding combines Dynamic and Step-By-Step Wayfinding in a single route session.\
The system switches modes automatically based on BLE signal availability.

#### Mode switching logic

* BLE available → Dynamic Wayfinding (live Blue Dot)
* BLE unavailable → Step-By-Step Wayfinding (static route with Previous/Next buttons)
* Switching occurs when BLE is lost or detected without restarting the session

#### Constraints

* Available in Mobile SDK only
* Requires:
  * A configured wayfinding network via Pointr Cloud
  * BLE positioning (full coverage not required)

See the [Wayfinding Modes](https://dev.pointr.tech/features/wayfinding/wayfinding-modes.md) page for further details on the user experience of each mode.

***

### Getting Started with Wayfinding in the SDK

See the Getting Started section for sample code for Mobile SDK and Web SDK

* [Start Wayfinding in the Mobile SDK](broken://pages/Bi9ESnDxU8hWk3Fbu0Rr)
* [Stary Wayfinding in the Web SDK](broken://pages/rZqAg3m8zpTOhEC0dd9w)

***

### How are the routes calculated?

Pointr’s wayfinding algorithm determines routes by aiming for the **shortest** **travel time** between a start point and a destination point—both of which can be Points of Interest (POIs) or arbitrary geo-coordinates.&#x20;

The algorithm considers:

* **Walking time**
* **Travel times for transitions** (e.g., elevators, escalators, stairs)
* **Wayfinding mode**: `None`, `Accessible`, or `Comfortable`

Routes are generated using a **defined** [**Wayfinding Network**](https://dev.pointr.tech/features/wayfinding/managing-wayfinding-network.md), which models walkable paths and valid transitions.

{% hint style="info" %}
When [**Accessible Wayfinding Mode**](https://dev.pointr.tech/features/wayfinding/accessible-wayfinding/accessible-wayfinding-mode.md) is enabled, elevators (and transitions marked as accessible-friendly) are preferred over stairs and escalators. [**Accessible Transitions**](https://dev.pointr.tech/features/wayfinding/managing-wayfinding-network.md#accessible-transitions) can be set within the Wayfinding Network.&#x20;
{% endhint %}

### Live Directions

During wayfinding, the SDK displays the next action to take in the wayfinding header. The message shown in the header is called a Live Direction.

#### Live Direction updates

* Live Directions are updated continuously as the user progresses along the route.
* The current Live Direction is presented in the wayfinding header as the next action to take.

#### Level transitions

When a Live Direction includes a transition from one level to another, the level's Long Name property is used within the message.

***

### Configurable Parameters

#### Smart Rerouting (Pacman Wayfinding)

Pacman Wayfinding minimizes unnecessary rerouting by progressively shortening the route **only as the user follows it**.

<table><thead><tr><th width="358.3671875">Parameter</th><th width="141.6484375">Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>pathManagerConfiguration_rerouteDistance</code></td><td>10 meters</td><td>Triggers rerouting if the user strays beyond the defined threshold  (<em>for indoor wayfinding</em>).</td></tr><tr><td><code>pathManagerConfiguration_outdoorRerouteDistance</code></td><td>20 meters</td><td>Triggers rerouting if the user strays beyond the defined threshold (<em>for outdoor wayfinding</em>).</td></tr></tbody></table>

#### Indoor Route Smoothing

The actual calculated routes undergo post-processing as they can contain zig-zags. The routes are simplified and smoothed during the final stage of processing to improve the pedestrian wayfinding experience.&#x20;

<table><thead><tr><th width="356.67578125">Parameter</th><th width="139.9140625">Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>PathManagerConfiguration_isRouteSmoothingEnabled</code></td><td>True</td><td>Use this parameter to disable indoor route smoothing using to ensure the route adheres strictly to the defined wayfinding network, avoiding unintended shortcuts.</td></tr></tbody></table>

{% hint style="warning" %}
Outdoor routing strictly follows the defined paths (no smoothing) to ensure safety. If gaps appear near start or end points, add missing pedestrian paths to the outdoor network.
{% endhint %}

***

### Calculate Progress during Route Session

At the moment the mobile SDK does not offer an API to keep track of the user's progress during a route session, but we offer continuous route updates. There are many ways of calculating progress with the route updates, here's one example that can be used in case you want something similar to a progress bar.

```swift
// Example code for calculating route sessio progress
var remainingDistance: Double = -1.0
var coveredDistance: Double = 0.0
var progress: Double = 0.0
    
func handleRouteUpdate(_ route: PTRRoute) {
    if remainingDistance == -1.0 {
        remainingDistance = Double(route.walkingDistance)
    } else {
        if remainingDistance > Double(route.walkingDistance) {
            coveredDistance += (remainingDistance - Double(route.walkingDistance))
        }
        remainingDistance = Double(route.walkingDistance)
    }
    progress = coveredDistance / (coveredDistance + remainingDistance)
}
```

***

### Route Session Failure States

When a route session cannot calculate a route, it doesn't fail immediately — if the error condition persists beyond a configured timeout, the session transitions to `failed` and is terminated.&#x20;

<table><thead><tr><th width="223.27734375">Failure Reason</th><th>What it means</th></tr></thead><tbody><tr><td><code>invalid source</code></td><td>The user's live position is not within any site. Occurs when the user is out of any of the available sites. Applies to Dynamic Wayfinding only, which require a live position as the route start point.</td></tr><tr><td><code>no route found</code></td><td>The wayfinding algorithm could not find any path between the user's position and the destination through the Wayfinding Network. This typically means the source or destination is in an area not connected to the walkable path network.</td></tr><tr><td><code>source/destination at different sites</code></td><td>The user's position and destination belong to different client sites. Routing across different site IDs is not supported.</td></tr><tr><td></td><td></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.pointr.tech/features/wayfinding.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
