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