Class

GeoCodeService

mapsindoors.services.GeoCodeService

Methods

# async static reverseGeoCode(locations) → {Promise:.<Array:.<ReverseGeoCodeResult:>>}

Gets which venue and building a point intersects with
Parameters:
Name Type Description
locations Object | Array:.<Object:> A object or a list of object specified like this: `{lat: number, lng: number}`
locations[#].lat number latitude in degrees.
locations[#].lng number longitude in degrees.
Promise:.<Array:.<ReverseGeoCodeResult:>>
Examples
mapsindoors.services.GeoCodeService.reverseGeoCode({lat: 57.0853456190001, lng: 9.95667949900007}).then(result => { ... });
[{
    "building": {
      "id": "5548c6583eb3c3080c4a92da",
      "name": "Main building",
      "floors": {
        "0": "G",
        "1": "L1"
      }
    },
    "venue": {
      "id": "550c286964617400a4100000",
      "name": "RTX"
    }
 }]