Search a place by its name

To search for "Statue Of Liberty" from a position in Manhattan (40.7307999,-73.9973085), send the following request:

GET https://discover.search.hereapi.com/v1/
    discover
    ?at=40.7307999,-73.9973085
    &q=Statue+of+liberty
    &limit=2

Authorization: Bearer [your token]

The result lists detailed information about the related location objects:

{
  "items": [
    {
      "title": "Statue of Liberty-New York Access",
      "id": "here:pds:place:840dr5re-9f0b7cf123e84620a52771300e610edd",
      "resultType": "place",
      "address": {
        "label": "Statue of Liberty-New York Access, 1 Battery Pl, New York, NY 10004, United States",
        "countryCode": "USA",
        "countryName": "United States",
        "state": "New York",
        "county": "New York",
        "city": "New York",
        "district": "Financial District",
        "street": "Battery Pl",
        "postalCode": "10004",
        "houseNumber": "1"
      },
      "position": { "lat": 40.70484, "lng": -74.0145 },
      "access": [{ "lat": 40.70473, "lng": -74.01454 }],
      "distance": 3230,
      "categories": [
        { "id": "300-3000-0023", "primary": true },
        { "id": "300-3000-0025" },
        { "id": "300-3100-0000" }
      ],
      "contacts": [
        {
          "phone": [{ "value": "+12123633200" }],
          "www": [{ "value": "http://www.statueoflibertytickets.com" }]
        }
      ]
    },
    {
      "title": "Statue of Liberty",
      "id": "here:pds:place:840dr5r7-9df1349708914ceba912909970598cf7",
      "resultType": "place",
      "address": {
        "label": "Statue of Liberty, New York, NY 10004, United States",
        "countryCode": "USA",
        "countryName": "United States",
        "state": "New York",
        "county": "New York",
        "city": "New York",
        "district": "Liberty Island",
        "postalCode": "10004"
      },
      "position": { "lat": 40.68925, "lng": -74.04445 },
      "access": [{ "lat": 40.68971, "lng": -74.04357 }],
      "distance": 6094,
      "categories": [
        { "id": "300-3100-0000", "primary": true },
        { "id": "300-3000-0000" },
        { "id": "300-3000-0023" },
        { "id": "300-3000-0025" }
      ],
      "contacts": [{ "phone": [{ "value": "+12123633200" }], "www": [{ "value": "https://www.nps.gov" }] }]
    }
  ]
}

Since the end-user might be interested in either the Statue Of Liberty itself, or the access to it from New-York, those two items are returned

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

results matching ""

    No results matching ""