ts-maps

09 · Geocoder (Nominatim)

Search anywhere on earth via the default NominatimGeocoder. Please respect Nominatim's usage policy in production — set a User-Agent and cache results.

Full source: 09-geocoder.ts

const geocoder = services.defaultGeocoder()
const results = await geocoder.search(q, { limit: 6 })
// → [{ text, center: { lat, lng }, bbox, placeType }, …]

← Symbols · Directions →