Find all geometry objects (Spaces, MapObjects, Areas, Floors) at the given coordinate. If the coordinate has a floorId, only that floor is searched. If no floorId is provided, all floors are searched.
The coordinate to search at
Array of Spaces, MapObjects, Areas, and Floors that contain the coordinate
// Find all geometry at a coordinate with a floor
const coord = new Coordinate({ latitude: 43.861, longitude: -78.947, floorId: 'floor1' });
const results = await mapData.Query.at(coord);
// results may contain [Space, Floor, Area, ...]
// Find all geometry at a coordinate across all floors
const coordNoFloor = new Coordinate({ latitude: 43.861, longitude: -78.947 });
const allResults = await mapData.Query.at(coordNoFloor);
Find the nearest feature to the origin
The origin object
The features to include in the query
Optionaloptions: TFindNearestOptionsThe options for the query
Objects with the distance and the feature, sorted by distance
Query allows users to query for nodes, locations, categories, and other points of interest within the venue.