Api
Geocoding
Pelias-backed forward, reverse, and autocomplete routes.
Geocoding API
Geocoding requires PELIAS_URL to point at a Pelias-compatible service.
Routes
GET /geocoding/v1/forward?q={query}
GET /geocoding/v1/reverse?lon={lon}&lat={lat}
GET /geocoding/v1/autocomplete?text={text}Parameters
Forward supports q, limit up to 25, bbox, language, and country.
Reverse supports lon, lat, limit up to 10, and language.
Autocomplete supports text, limit up to 10, language, focus.lon, and focus.lat.
Auth And Errors
Requests require an API key or session. If Pelias is not configured, the API returns 503 GEOCODER_NOT_CONFIGURED.