API Reference > linear-referencing-backend > LinearReferencing > LinearlyLocated > getLinearElementId getLinearElementId MethodStatic Query for the Id of the Linear-Element along which the specified LinearlyLocated Element is located. getLinearElementId(iModel: IModelDb, linearlyLocatedElementId: string): undefined | string Parameter Type Description iModel IModelDb The iModel to query from. linearlyLocatedElementId string The id of the LinearlyLocated Element to query a Linear-Element for. Returns - undefined | string Returns the Id of the Linear-Element or undefined is none is assigned. Defined in domains/linear-referencing/backend/src/LinearReferencingElements.ts Line 624 Last Updated: 12 June, 2024