API Reference > linear-referencing-backend > LinearReferencing > LinearlyLocated > getFromToLocations getFromToLocations MethodStatic Query for LinearlyReferenced FromToLocation aspects owned by the specified LinearlyLocated Element. getFromToLocations(iModel: IModelDb, linearlyLocatedElementId: string): LinearlyReferencedFromToLocation[] throws IModelError Parameter Type Description iModel IModelDb The iModel to query from. linearlyLocatedElementId string The id of the LinearlyLocated Element to query aspects about. Returns - LinearlyReferencedFromToLocation[] Returns an array of LinearlyReferencedFromToLocation. Defined in domains/linear-referencing/backend/src/LinearReferencingElements.ts Line 646 Last Updated: 12 June, 2024