Skip to content

Nominatim-compatible endpoints

BuddyGeo answers /reverse and /search with Nominatim’s parameter names and the jsonv2 response. Most clients need only a new host and an API key. Check the parameters and formats you use against the tables below.

A new host and one header

Query parameters keep their Nominatim names, and the body keeps the jsonv2 field names. The tables below list the exceptions.

  • Base URL

    Point your client at https://www.buddygeo.com instead of the Nominatim host you run. The paths stay /reverse and /search.

  • Authentication header

    Send your key in X-API-Key with every request. A request without a key is answered with HTTP 401.

Your Nominatim today

Requestbash
curl "https://nominatim.internal.example/reverse?lat=43.6426&lon=-79.3871&format=jsonv2"

The same request to BuddyGeo

Requestbash
curl "https://www.buddygeo.com/reverse?lat=43.6426&lon=-79.3871&format=jsonv2" \
  -H "X-API-Key: YOUR_API_KEY"

nominatim.internal.example stands in for your server. Both compatible endpoints are live on the BuddyGeo API gateway at https://www.buddygeo.com/reverse and https://www.buddygeo.com/search, sharing the same organization rate limits and credit balance as /v1/*.

Supported parameters

The Nominatim parameters clients send to the two endpoints, and what BuddyGeo does with each. Parameters marked not supported are ignored. A structured search without q gets HTTP 400.

GET /reverse

  • latlonSupported

    Required. Decimal degrees, validated like /v1/reverse: a value out of range is rejected with HTTP 400.

  • formatPartly supported

    jsonv2 (the default here) and json are accepted. Both return the jsonv2 body, which names the field category (json called it class). geojson, geocodejson and xml are rejected with HTTP 400. For GeoJSON, call /v1/reverse and build the Feature from result.location.

  • accept-languageSupported

    As a query parameter or as the Accept-Language header. The first language tag is used. A place without that translation answers in its local language.

  • zoomPartly supported

    Reduced to three levels of detail: 18 and above returns the full address, 16 and 17 stop at the street, anything lower returns the locality. Left out, the full address is returned.

  • addressdetailsSupported

    1 (the default for /reverse) includes the address object. 0 leaves it out.

  • polygon_geojsonpolygon_kmlpolygon_svgpolygon_textpolygon_thresholdNot supported

    Ignored. No geometry is returned.

  • extratagsnamedetailsNot supported

    Ignored. The fields are not in the response.

  • layeremailjson_callbackdebugNot supported

    Ignored. JSONP callbacks and the debug page are not offered.

GET /search

  • qSupported

    Required. One free-form query. An empty query is rejected with HTTP 400.

  • formatPartly supported

    jsonv2 (the default here) and json are accepted, and both return the jsonv2 body. geojson, geocodejson and xml are rejected with HTTP 400.

  • limitPartly supported

    Honored from 1 to 10. The default is 5, where a stock Nominatim returns up to 10. Send limit explicitly if you rely on the old default.

  • accept-languageSupported

    As a query parameter or as the Accept-Language header. The first language tag is used.

  • countrycodesPartly supported

    Only the first code of a comma-separated list is applied. It must be a two-letter ISO 3166-1 code, otherwise the request is rejected with HTTP 400.

  • addressdetailsSupported

    0 (the default for /search, as upstream) leaves the address object out. 1 includes it.

  • streetcitycountystatecountrypostalcodeamenityNot supported

    Structured queries are not supported yet. A search with these parts and no q is rejected with HTTP 400. Join the parts into one free-form q.

  • viewboxboundedNot supported

    Ignored. Results are neither biased toward nor limited to the box.

  • polygon_geojsonpolygon_kmlpolygon_svgpolygon_textextratagsnamedetailsNot supported

    Ignored. The fields are not in the response.

  • exclude_place_idsdedupefeatureTypelayeremailjson_callbackdebugNot supported

    Ignored.

Live examples

Loading the examples…

Response differences

The compatible endpoints are for existing clients. BuddyGeo’s /v1 endpoints return the same places with stable field names, plus the request ID and the credit charge in the body.

  • Body

    BuddyGeo /v1An envelope: request_id, status, outcome, credits_charged, credits_remaining, result, error and attribution.

    CompatibilityThe bare Nominatim object for /reverse, the bare array for /search. Nothing wraps it.

  • Address line

    BuddyGeo /v1result.formatted, written the way the address is posted locally.

    Compatibilitydisplay_name, the comma-joined list of every address part.

  • Address parts

    BuddyGeo /v1result.components with fixed names: name, house_number, street, neighbourhood, locality, county, region, region_code, postcode, country, country_code.

    Compatibilityaddress with Nominatim names: road, city, state, ISO3166-2-lvl4 and a key named after the feature category. Controlled by addressdetails.

  • Coordinates

    BuddyGeo /v1result.location.lat and result.location.lon as numbers.

    Compatibilitylat and lon as strings.

  • Bounding box

    BuddyGeo /v1result.bounding_box as numbers: south, north, west, east.

    Compatibilityboundingbox as strings, in the same order.

  • Match quality

    BuddyGeo /v1result.match.level, a plain-language match.detail and match.distance_m.

    Compatibilityplace_rank, addresstype and importance.

  • Place id

    BuddyGeo /v1result.place_id, a stable text id.

    Compatibilityplace_id as a number. It does not match the ids of your own Nominatim database.

  • Request id and credits

    BuddyGeo /v1request_id, credits_charged and credits_remaining in the body.

    CompatibilityThe request id is in the X-Request-Id response header. Credits are not in the response.

  • No match

    BuddyGeo /v1HTTP 200 with outcome "no_match" and result null.

    CompatibilityHTTP 200 with {"error": "Unable to geocode"} for /reverse, and an empty array for /search.

  • Errors

    BuddyGeo /v1The HTTP status plus error.code, error.message and error.next_step.

    CompatibilityThe same HTTP status and the same BuddyGeo error object, not Nominatim’s error format. 401, 402 and 429 are new if you ran Nominatim yourself.

  • Attribution

    BuddyGeo /v1attribution.

    Compatibilitylicence.

Migration checklist

Eight steps, in the order we suggest.

  1. Create an API key

    Sign up, create a workspace and label a key for the service you are moving. Get an API key

  2. Swap the host

    Replace the Nominatim base URL with https://www.buddygeo.com in your configuration. Leave the paths alone.

  3. Add the header

    Send X-API-Key on every request and keep the key out of client-side code.

  4. Check the parameters you send

    Compare them with the tables on this page. Polygon output, extratags, namedetails and viewbox are ignored for now. Structured queries need to be rewritten as a single q.

  5. Check the format you parse

    Both json and jsonv2 return the jsonv2 body. If your code reads class, read category instead.

  6. Handle the three new statuses

    BuddyGeo can answer 401 when the key is rejected, 402 when the monthly credits are used up and 429 when you send too many requests per second. Rate limits and errors

  7. Compare a few of your own lookups

    Run them in the examples above or the playgrounds, and compare the address parts you depend on before switching traffic.

  8. Keep the attribution

    Results still come from OpenStreetMap data. Keep the credit you show today. Attribution requirements