GnistAI GnistAI
Log in

OpenStreetMap POI

Points of interest from OpenStreetMap — restaurants, shops, landmarks, and amenities.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Geography

Data source: OpenStreetMap / Overpass

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/osm-poi/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-osm-poi": {
      "url": "https://context.gnist.ai/mcp/osm-poi/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/osm-poi/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "nearby_pois", "arguments": {"lat": 1.0, "lon": 1.0}}}'

API REST API

API Root https://context.gnist.ai/rest/osm-poi/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/osm-poi/nearby_pois?lat=1.0&lon=1.0" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/osm-poi/nearby_pois",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "lat": 1.0,
        "lon": 1.0
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc osm-poi

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

nearby_pois
Find points of interest near a location.
ParameterTypeRequiredDescription
latnumberrequiredLatitude of the centre point (-90 to 90).
lonnumberrequiredLongitude of the centre point (-180 to 180).
radius_mintegeroptionalSearch radius in metres (1–50000, default 500). (default: 500)
poi_typeanyoptionalType of POI to filter by. Examples: "restaurant", "cafe", "hospital", "pharmacy", "hotel", "museum", "supermarket", "park", "ev_charger", "school", "bank", "parking". Omit t...
max_resultsintegeroptionalMaximum number of results (1–100, default 20). (default: 20)
search_poi
Search for POIs by name across OpenStreetMap.
ParameterTypeRequiredDescription
name_querystringrequiredName or partial name to search for (e.g. "Starbucks", "IKEA").
country_codeanyoptionalISO 3166-1 alpha-2 country code to restrict results (e.g. "NO" for Norway, "GB" for UK, "US" for United States). Omit for global search (slower, may time out for common names).
max_resultsintegeroptionalMaximum number of results (1–50, default 20). (default: 20)
get_poi_details
Get full OSM tag data for a specific POI.
ParameterTypeRequiredDescription
osm_idstringrequiredOSM element identifier in the format "type/id", e.g. "node/12345" or "way/67890". Obtained from nearby_pois or search_poi results.
count_pois
Count POIs within a bounding box.
ParameterTypeRequiredDescription
min_latnumberrequiredSouthern boundary latitude.
min_lonnumberrequiredWestern boundary longitude.
max_latnumberrequiredNorthern boundary latitude.
max_lonnumberrequiredEastern boundary longitude.
poi_typeanyoptionalPOI type to count (e.g. "restaurant", "ev_charger"). Omit to count all named POIs.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related