Connections

Mappedin SDK version 6 is currently in a beta state while Mappedin perfects new features and APIs. Open the v6 release notes to view the latest changes.

A Connection represents a traversable conduit between floors of a map, such as stairs or an elevator. The Connection includes details such as name, description, floors, coordinates and more.

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 CodeSandbox loops through all connections and adds a Label using the Connection.name for each Connection that is connected to the currently displayed floor. Zoom into the map to view all connection labels.

Maps for Good 🤍

© 2024 Mappedin Inc.

All Rights Reserved.

Sign up for developer updates

Get early access to release notes, major version changes, version migration guides, and our developer focused blog posts.

Loading...

For more information

Read the Developer Blog

Explore the Playground

Talk to Sales