Search a place by its phone number

To search for the Asthma & Allergy Center in the Johns Hopkins Bayview Medical Center, one can use its phone number against Discover. That phone number has various forms:

  • international forms: +14105502301, 0014105502301
  • local forms: (410) 550-2301, 4105502301

A person searching for this place with "(410) 550-2301" from a position in the nearby parking (39.28808,-76.54617) would send the following request:

GET https://discover.search.hereapi.com/v1/
    discover
    ?at=39.28808,-76.54617
    &lang=es-ES
    &q=59+53+30+N+30+21+11+E

Authorization: Bearer [your token]

The result lists detailed information about the related location objects:

{
  "items": [
    {
      "title": "Volkovskiy prospekt 61, San Petersburgo, Rusia, 192102",
      "id": "here:af:streetsection:KjyjeR89GuuvRuAyOf2BtD:CgcIBCCxhuE0EAEaAjYx",
      "resultType": "houseNumber",
      "houseNumberType": "PA",
      "address": {
        "label": "Volkovskiy prospekt 61, San Petersburgo, Rusia, 192102",
        "countryCode": "RUS",
        "countryName": "Rusia",
        "state": "Distrito Federal del Noroeste",
        "county": "San Petersburgo",
        "city": "San Petersburgo",
        "district": "Frunzenskiy rayon",
        "street": "Volkovskiy prospekt",
        "postalCode": "192102",
        "houseNumber": "61"
      },
      "position": { "lat": 59.89076, "lng": 30.35442 },
      "access": [{ "lat": 59.89081, "lng": 30.35489 }],
      "distance": 7141017,
      "mapView": { "west": 30.3549, "south": 59.87979, "east": 30.36541, "north": 59.90181 }
    }
  ]
}

More details about /discover parameters can be found in the API Reference.

results matching ""

    No results matching ""