Search - Get Search Nearby

Nearby Search

Applies to: S0 and S1 pricing tiers.

If you have a use case for only retrieving POI results around a specific location, the nearby search method may be the right choice. This endpoint will only return POI results, and does not take in a search query parameter.

GET https://atlas.microsoft.com/search/nearby/{format}?api-version=1.0&lat={lat}&lon={lon}
GET https://atlas.microsoft.com/search/nearby/{format}?subscription-key={subscription-key}&api-version=1.0&lat={lat}&lon={lon}&limit={limit}&ofs={ofs}&countrySet={countrySet}&radius={radius}&language={language}&extendedPostalCodesFor={extendedPostalCodesFor}&brandSet={brandSet}&connectorSet={connectorSet}&view={view}

URI Parameters

Name In Required Type Description
format
path True

Desired format of the response. Value can be either json or xml.

subscription-key
query
  • string

One of the Azure Maps keys provided from an Azure Map Account. Refer to the subscription-key security definition.

api-version
query True
  • string

Version number of Azure Maps API. Current version is 1.0

lat
query True
  • number

Latitude where results should be biased. E.g. 37.337.

lon
query True
  • number

Longitude where results should be biased. E.g. -121.89.

limit
query
  • integer

Maximum number of responses that will be returned. Default: 10, minimum: 1 and maximum: 100

ofs
query
  • integer

Starting offset of returned results. Max value is 1900.

countrySet
query
  • array

Comma separated string of country codes, e.g. FR,ES. This will limit the search to the specified countries

radius
query
  • number

The radius in meters to for the results to be constrained to the defined area, Min value is 1, Max Value is 50000.

language
query
  • string

Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.

Please refer to Supported Languages for details.

extendedPostalCodesFor
query
  • string

Indexes for which extended postal codes should be included in the results.

Available indexes are:

Addr = Address ranges

Geo = Geographies

PAD = Point Addresses

POI = Points of Interest

Str = Streets

XStr = Cross Streets (intersections)

Value should be a comma separated list of index types (in any order) or None for no indexes.

By default extended postal codes are included for all indexes except Geo. Extended postal code lists for geographies can be quite long so they have to be explicitly requested when needed.

Usage examples:

extendedPostalCodesFor=POI

extendedPostalCodesFor=PAD,Addr,POI

extendedPostalCodesFor=None

Extended postal code is returned as an extendedPostalCode property of an address. Availability is region-dependent.

brandSet
query
  • array

A comma-separated list of brand names which could be used to restrict the result to specific brands. Item order does not matter. When multiple brands are provided, only results that belong to (at least) one of the provided list will be returned. Brands that contain a "," in their name should be put into quotes.

Usage examples:

brandSet=Foo

brandSet=Foo,Bar

brandSet="A,B,C Comma",Bar

connectorSet
query
  • array

A comma-separated list of connector types which could be used to restrict the result to Electric Vehicle Station supporting specific connector types. Item order does not matter. When multiple connector types are provided, only results that belong to (at least) one of the provided list will be returned.

Available connector types are:

  • StandardHouseholdCountrySpecific - These are the standard household connectors for a certain region. They are all AC single phase and the standard Voltage and standard Amperage. See also: Plug & socket types - World Standards.
  • IEC62196Type1 - Type 1 connector as defined in the IEC 62196-2 standard. Also called Yazaki after the original manufacturer or SAE J1772 after the standard that first published it. Mostly used in combination with 120V single phase or up to 240V single phase infrastructure.
  • IEC62196Type1CCS - Type 1 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 1 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging.
  • IEC62196Type2CableAttached - Type 2 connector as defined in the IEC 62196-2 standard. Provided as a cable and plug attached to the charging point.
  • IEC62196Type2Outlet - Type 2 connector as defined in the IEC 62196-2 standard. Provided as a socket set into the charging point.
  • IEC62196Type2CCS - Type 2 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 2 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging.
  • IEC62196Type3 - Type 3 connector as defined in the IEC 62196-2 standard. Also called Scame after the original manufacturer. Mostly used in combination with up to 240V single phase or up to 420V three phase infrastructure.
  • Chademo - CHAdeMO connector named after an association formed by the Tokyo Electric Power Company and industrial partners. Because of this is is also known as the TEPCO's connector. It supports fast DC charging.
  • IEC60309AC1PhaseBlue - Industrial Blue connector is a connector defined in the IEC 60309 standard. It is sometime referred to as by some combination of the standard, the color and the fact that is a single phase connector. The connector usually has the "P+N+E, 6h" configuration.
  • IEC60309DCWhite - Industrial White connector is a DC connector defined in the IEC 60309 standard.
  • Tesla - The Tesla connector is the regionally specific Tesla Supercharger connector. I.e. it refers to either Tesla's proprietary connector, sometimes referred to as Tesla Port mostly limited to North America or the modified Type 2 (DC over Type 2) in Europe.

Usage examples:

connectorSet=IEC62196Type2CableAttached connectorSet=IEC62196Type2Outlet,IEC62196Type2CableAttached

view
query
  • string

The View parameter specifies which set of geopolitically disputed content is returned via Azure Maps services, including borders and labels displayed on the map. The View parameter (also referred to as “user region parameter”) will show the correct maps for that country/region. By default, the View parameter is set to “Unified” even if you haven’t defined it in the request. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. Alternatively, you have the option to set ‘View=Auto’, which will return the map data based on the IP address of the request. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country where maps, images and other data and third party content that you are authorized to access via Azure Maps is made available. Example: view=IN.

Please refer to Supported Views for details and to see the available Views.

Request Header

Name Required Type Description
x-ms-client-id
  • string

Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following articles for guidance.

Responses

Name Type Description
200 OK

OK

Media Types: "application/json", "application/xml"

400 Bad Request

Bad request: one or more parameters were incorrectly specified or are mutually exclusive.

Media Types: "application/json", "application/xml"

401 Unauthorized

Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the WWW-Authenticate header for error code and description of the provided AAD bearer token.

Media Types: "application/json", "application/xml"

Headers

  • WWW-Authenticate: string
403 Forbidden

Permission, capacity, or authentication issues.

Media Types: "application/json", "application/xml"

404 Not Found

Not Found: the requested resource could not be found, but it may be available again in the future.

Media Types: "application/json", "application/xml"

500 Internal Server Error

An error occurred while processing the request. Please try again later.

Media Types: "application/json", "application/xml"

Security

azure_auth

These are the Azure Active Directory OAuth2 Flows. When paired with Azure Role Based Access control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.

To implement scenarios we recommend viewing authentication concepts. In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.

Note

  • This security definition requires the use of the x-ms-client-id header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the Maps management API.
  • The Authorization URL is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations.
  • The Azure role based access control is configured from the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.
  • Usage of the Azure Maps Web SDK allows for configuration based setup of an application for multiple use cases.
  • Currently Azure Active Directory v1.0 tokens are supported.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

subscription-key

This is a shared key which is provisioned when creating an Azure Maps resource through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.

Type: apiKey
In: query

Examples

Search for any points of interest (POI) within 5 miles of Manhattan NY and return the top 10 results

Sample Request

GET https://atlas.microsoft.com/search/nearby/json?subscription-key=[subscription-key]&api-version=1.0&lat=40.70627&lon=-74.011454&limit=10&radius=8046

Sample Response

{
  "summary": {
    "queryType": "NEARBY",
    "queryTime": 137,
    "numResults": 10,
    "offset": 0,
    "totalResults": 256620,
    "fuzzyLevel": 1,
    "geoBias": {
      "lat": 40.70627,
      "lon": -74.011454
    }
  },
  "results": [
    {
      "type": "POI",
      "id": "US/POI/p1/7652731",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840369002225435-US",
      "poi": {
        "name": "Ycd Multimedia",
        "phone": "+(1)-(212)-5091049",
        "categories": [
          "non governmental organization"
        ],
        "classifications": [
          {
            "code": "NON_GOVERNMENTAL_ORGANIZATION",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "non governmental organization"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p1/7652732",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840369001882610-US",
      "poi": {
        "name": "Grubb & Ellis Management Services",
        "phone": "+(1)-(212)-7851619",
        "categories": [
          "company",
          "services"
        ],
        "classifications": [
          {
            "code": "COMPANY",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "company"
              },
              {
                "nameLocale": "en-US",
                "name": "services"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p1/7652735",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840369001322824-US",
      "poi": {
        "name": "Hispanic Federation",
        "phone": "+(1)-(212)-7420480",
        "url": "Hispanicfederation.org",
        "categories": [
          "automotive dealer",
          "boat"
        ],
        "classifications": [
          {
            "code": "AUTOMOTIVE_DEALER",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "boat"
              },
              {
                "nameLocale": "en-US",
                "name": "automotive dealer"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p1/7652736",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840369000631230-US",
      "poi": {
        "name": "Edwin Gould Foundation",
        "phone": "+(1)-(212)-9825200",
        "url": "edwingouldfoundation.org",
        "categories": [
          "non governmental organization"
        ],
        "classifications": [
          {
            "code": "NON_GOVERNMENTAL_ORGANIZATION",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "non governmental organization"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p1/7652737",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840369001196585-US",
      "poi": {
        "name": "Newmark Grubb Knight Frank",
        "phone": "+(1)-(646)-6951990",
        "url": "www.newmarkkf.com",
        "categories": [
          "real estate agents",
          "shop"
        ],
        "classifications": [
          {
            "code": "SHOP",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "shop"
              },
              {
                "nameLocale": "en-US",
                "name": "real estate agents"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p1/7652738",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840369002164164-US",
      "poi": {
        "name": "Sponsors For Educational Opportunity",
        "phone": "+(1)-(212)-7851361",
        "url": "www.seo-usa.org",
        "categories": [
          "non governmental organization"
        ],
        "classifications": [
          {
            "code": "NON_GOVERNMENTAL_ORGANIZATION",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "non governmental organization"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p0/7373205",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840361001736646-US",
      "poi": {
        "name": "Visiting Nurse Service",
        "phone": "+(1)-(212)-7428259",
        "url": "www.vnsny.org",
        "categories": [
          "health care service"
        ],
        "classifications": [
          {
            "code": "HEALTH_CARE_SERVICE",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "health care service"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p0/7373206",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840361001326915-US",
      "poi": {
        "name": "Hispanic In Philanthropy",
        "phone": "+(1)-(646)-2777101",
        "url": "www.hiponline.org",
        "categories": [
          "non governmental organization"
        ],
        "classifications": [
          {
            "code": "NON_GOVERNMENTAL_ORGANIZATION",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "non governmental organization"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p0/7373207",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840369002316633-US",
      "poi": {
        "name": "Advantage Technical Resourcing",
        "phone": "+(1)-(212)-2691140",
        "categories": [
          "company",
          "services"
        ],
        "classifications": [
          {
            "code": "COMPANY",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "company"
              },
              {
                "nameLocale": "en-US",
                "name": "services"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    },
    {
      "type": "POI",
      "id": "US/POI/p0/7373208",
      "score": 1,
      "dist": 14.736843483489132,
      "info": "search:ta:840369002031974-US",
      "poi": {
        "name": "Workshop In Bus Opportunities",
        "phone": "+(1)-(212)-6840854",
        "url": "www.wibo.org",
        "categories": [
          "company",
          "services"
        ],
        "classifications": [
          {
            "code": "COMPANY",
            "names": [
              {
                "nameLocale": "en-US",
                "name": "company"
              },
              {
                "nameLocale": "en-US",
                "name": "services"
              }
            ]
          }
        ]
      },
      "address": {
        "streetNumber": "55",
        "streetName": "Exchange Pl",
        "municipalitySubdivision": "New York City, NYC, New York, Financial District",
        "municipality": "Wall Street, New York City, NYC, NY City, NY, Manhattan, Bowling Green, New York",
        "countrySecondarySubdivision": "New York",
        "countryTertiarySubdivision": "Manhattan",
        "countrySubdivision": "NY",
        "postalCode": "10004",
        "extendedPostalCode": "100042320",
        "countryCode": "US",
        "country": "United States Of America",
        "countryCodeISO3": "USA",
        "freeformAddress": "55 Exchange Pl, New York, NY 10004",
        "countrySubdivisionName": "New York"
      },
      "position": {
        "lat": 40.7064,
        "lon": -74.01142
      },
      "viewport": {
        "topLeftPoint": {
          "lat": 40.7073,
          "lon": -74.01261
        },
        "btmRightPoint": {
          "lat": 40.7055,
          "lon": -74.01023
        }
      },
      "entryPoints": [
        {
          "type": "main",
          "position": {
            "lat": 40.70636,
            "lon": -74.01145
          }
        }
      ]
    }
  ]
}
{
  "error": {
    "code": "400 BadRequest",
    "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
  }
}
{
  "error": {
    "code": "401 Unauthorized",
    "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."
  }
}
{
  "error": {
    "code": "403 Forbidden",
    "message": "Permission, capacity, or authentication issues."
  }
}
{
  "error": {
    "code": "404 NotFound",
    "message": "Not Found: the requested resource could not be found, but it may be available again in the future."
  }
}
{
  "error": {
    "code": "500 InternalServerError",
    "message": "An error occurred while processing the request. Please try again later."
  }
}

Definitions

CoordinateAbbreviated

A location represented as a latitude and longitude.

Error

This object is returned when an error occurs in the Maps API

ErrorResponse

This response object is returned when an error occurs in the Maps API

SearchNearbyResponse

This object is returned from a successful Search Nearby call

SearchNearbyResult
SearchNearbySummary

Summary object for a Search Nearby response

SearchResultAddress

The address of the result

SearchResultEntryPoint

The entry point for the POI being returned.

SearchResultPoi

Details of the poi including the name, phone, url, and categories.

SearchResultPoiBrand

The name of the brand for the POI being returned

SearchResultPoiClassification

The classification for the POI being returned

SearchResultPoiClassificationName

Name for the classification

SearchResultViewport

The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport.

SearchSummaryGeoBias

Indication when the internal search engine has applied a geospatial bias to improve the ranking of results. In some methods, this can be affected by setting the lat and lon parameters where available. In other cases it is purely internal.

TextFormat

Desired format of the response. Value can be either json or xml.

CoordinateAbbreviated

A location represented as a latitude and longitude.

Name Type Description
lat
  • number

Latitude property

lon
  • number

Longitude property

Error

This object is returned when an error occurs in the Maps API

Name Type Description
code
  • string

The HTTP status code.

message
  • string

If available, a human readable description of the error.

ErrorResponse

This response object is returned when an error occurs in the Maps API

Name Type Description
error

This object is returned when an error occurs in the Maps API

SearchNearbyResponse

This object is returned from a successful Search Nearby call

Name Type Description
results

Results array

summary

Summary object for a Search Nearby response

SearchNearbyResult

Name Type Description
address

The address of the result

dist
  • number

Straight line distance between the result and geobias location in meters.

entryPoints

Entry Points array

id
  • string

Id property

info
  • string

Info property

poi

Details of the poi including the name, phone, url, and categories.

position

A location represented as a latitude and longitude.

score
  • number

The value within a result set to indicate the relative matching score between results. You can use this to determine that result x is twice as likely to be as relevant as result y if the value of x is 2x the value of y. The values vary between queries and is only meant as a relative value for one result set.

type
  • string

Type property

viewport

The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport.

SearchNearbySummary

Summary object for a Search Nearby response

Name Type Description
fuzzyLevel
  • integer

FuzzyLevel property

geoBias

Indication when the internal search engine has applied a geospatial bias to improve the ranking of results. In some methods, this can be affected by setting the lat and lon parameters where available. In other cases it is purely internal.

numResults
  • integer

NumResults property

offset
  • integer

Offset property

queryTime
  • integer

QueryTime property

queryType
  • string

QueryType property

totalResults
  • integer

TotalResults property

SearchResultAddress

The address of the result

Name Type Description
buildingNumber
  • string

Building Number property

country
  • string

Country property

countryCode
  • string

Country Code property

countryCodeISO3
  • string

Country Code ISO3 property

countrySecondarySubdivision
  • string

Country Secondary Subdivision property

countrySubdivision
  • string

Country Subdivision property

countrySubdivisionName
  • string

Country Subdividion Name property

countryTertiarySubdivision
  • string

Country Tertiary Subdivision property

crossStreet
  • string

Cross Street property

extendedPostalCode
  • string

Extended Postal Code property

freeformAddress
  • string

Free form Address property

localName
  • string

An address component which represents the name of a geographic area or locality that groups a number of addressable objects for addressing purposes, without being an administrative unit. This field is used to build the freeformAddress property.

municipality
  • string

Municipality property

municipalitySubdivision
  • string

Municipality Subdivision property

postalCode
  • string

Postal Code property

routeNumbers
  • integer[]

number of routes

street
  • string

Street property

streetName
  • string

Street Name property

streetNameAndNumber
  • string

Street Name and Number property

streetNumber
  • string

Street Number property

SearchResultEntryPoint

The entry point for the POI being returned.

Name Type Description
position

A location represented as a latitude and longitude.

type enum:
  • main
  • minor

The type of entry point. Value can be either main or minor.

SearchResultPoi

Details of the poi including the name, phone, url, and categories.

Name Type Description
brands

Brands array

categories
  • string[]

[Deprecated] Use classifications instead. Categories array

classifications

Classification array

name
  • string

Name property

phone
  • string

Phone property

url
  • string

URL property

SearchResultPoiBrand

The name of the brand for the POI being returned

Name Type Description
name
  • string

Name of the brand

SearchResultPoiClassification

The classification for the POI being returned

Name Type Description
code
  • string

Code property

names

Names array

SearchResultPoiClassificationName

Name for the classification

Name Type Description
name
  • string

Name property

nameLocale
  • string

Name Locale property

SearchResultViewport

The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport.

Name Type Description
btmRightPoint

A location represented as a latitude and longitude.

topLeftPoint

A location represented as a latitude and longitude.

SearchSummaryGeoBias

Indication when the internal search engine has applied a geospatial bias to improve the ranking of results. In some methods, this can be affected by setting the lat and lon parameters where available. In other cases it is purely internal.

Name Type Description
lat
  • number

Latitude property

lon
  • number

Longitude property

TextFormat

Desired format of the response. Value can be either json or xml.

Name Type Description
json
  • string

The JavaScript Object Notation Data Interchange Format

xml
  • string

The Extensible Markup Language