Connections
Mappedin SDK for React Native version 6 is currently in an alpha state while Mappedin perfects new features and APIs. Open the v6 release notes to view the latest changes.
Using Mappedin SDK for React Native with your own map requires a Pro license. Try a demo map for free or refer to the Pricing page for more information.
Map connections are pathways in multi-floor and multi-building maps that enable vertical or horizontal movement between levels, spaces or buildings. They include stairs, elevators, and escalators, providing essential links for seamless navigation and spatial continuity across the map. The Mappedin.Connection includes details such as name, description, floors, coordinates and more.
Mappedin.Connection contains an array of coordinates
, with each coordinate
representing the location of the connection on a specific floor. In the case of an elevator, each coordinate
would have latitude
and longitude
values that are the same with different floorIds
. Stairs may have coordinates
with the same or different latitude
and longitude
values on each floor, depending on whether a building's stairs are vertically aligned.
The following code snippet retrieves all connections from the map.
const connections = mapData.getByType("connection");