Initial requirements

  • Setup a JigsawStack account (if you don’t have an account already)
  • Get your API key from here.
  • Install the Node.js SDK

Search by a search value

Narrow search to a specific country

Improve search result accuracy by providing latitude and longitude

Sample result

{
  "success": true,
  "data": [
    {
      "type": "poi",
      "full_address": "New York, New York, New York 10036, United States",
      "name": "Times Square",
      "place_formatted": "New York, New York 10036, United States",
      "postcode": "10036",
      "place": "New York City",
      "region": {
        "name": "New York",
        "region_code": "NY",
        "region_code_full": "US-NY"
      },
      "country": {
        "name": "United States",
        "country_code": "US",
        "country_code_alpha_3": "USA"
      },
      "language": "en",
      "geoloc": {
        "type": "Point",
        "coordinates": [-73.9851204, 40.75889]
      },
      "poi_category": ["historic site", "monument", "tourist attraction"],
      "addtional_properties": {
        "phone": "(212) 768-1560",
        "website": "https://www.timessquarenyc.org",
        "open_hours": {}
      }
    }
  ]
}