getLocation(id) → {Promise.<Location>}

Get a location by it's id
Name Type Description
id string Id of the location
mapsindoors.LocationsService.getLocation('5666f75bc1843a08b81bef72').then(location => { ... });

getLocations(argsopt) → {Promise.<Array.<Location>>}

Search for locations
Name Type Attributes Default Description
args object <optional>
The query parameters
q string <optional>
Use a text query to search for one or more locations.
fields string <optional>
Fields to search in when using the search string parameter 'q'. Empty/default: "name,description,aliases,categories"
types Array.<string> <optional>
Filter by types in a comma separated list e.g. office,kitchen,etc. A location only has one type.
categories Array.<string> <optional>
Filter by categories in a comma separated list e.g. meeting_room,office,etc. A location can be in multiple categories.
bbox object <optional>
Limits the result to inside the boundingbox. `{east: number, north: number, south: number, west: number}`
bbox.east number Max longitude of the bounds in degrees.
bbox.north number Max latitude of the bounds in degrees.
bbox.south number Min latitude of the bounds in degrees.
bbox.west number Min longitude of the bounds in degrees.
take number Max number of locations to get
skip number Skip the first number of entries
near object | string <optional>
Can either be a coordinate `{lat: number, lng: number}` or a string in the format "type:id" e.g. "venue:586ca9f1bc1f5702406442b6" number Latitude in degrees.
near.lng number Longitude in degrees.
radius number <optional>
A radius in meters. When using near with a point a radius must be supplied to limit the search to within that radius from the point.
includeOutsidePOI boolean <optional>
false When set to true all POIs that are outside buildings will be included in the result regartles of floor level specifiend in the path.
orderBy string Which property the result should be sorted by.
sortOrder string <optional>
ASC Specifies in which order the results is sorted either "ASC" or "DESC"
lr string <optional>
Sets the preferred language that the result should be returned in.
- Retuns an array of locations.
mapsindoors.LocationsService.getLocations({q: 'S102', lr: 'en' }).then(locations => { ... });