Home > @magiclane/maps-sdk > LandmarkBrowseSession > getLandmarkPosition

LandmarkBrowseSession.getLandmarkPosition() method

Get the position of the landmark with the specified Landmark.id

The position is 0 based

Signature:

getLandmarkPosition(landmarkId: number): number;

Parameters

Parameter

Type

Description

landmarkId

number

The id of the landmark

Returns:

number

The position of the landmark if it is in the session, GemError.notFound.code otherwise

Exceptions

An exception if it fails.