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.cominstead of the Nominatim host you run. The paths stay/reverseand/search.Authentication header
Send your key in
X-API-Keywith every request. A request without a key is answered with HTTP 401.
Your Nominatim today
curl "https://nominatim.internal.example/reverse?lat=43.6426&lon=-79.3871&format=jsonv2"The same request to BuddyGeo
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
latlonSupportedRequired. Decimal degrees, validated like /v1/reverse: a value out of range is rejected with HTTP 400.
formatPartly supportedjsonv2 (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-languageSupportedAs 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 supportedReduced 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.
addressdetailsSupported1 (the default for /reverse) includes the address object. 0 leaves it out.
polygon_geojsonpolygon_kmlpolygon_svgpolygon_textpolygon_thresholdNot supportedIgnored. No geometry is returned.
extratagsnamedetailsNot supportedIgnored. The fields are not in the response.
layeremailjson_callbackdebugNot supportedIgnored. JSONP callbacks and the debug page are not offered.
GET /search
qSupportedRequired. One free-form query. An empty query is rejected with HTTP 400.
formatPartly supportedjsonv2 (the default here) and json are accepted, and both return the jsonv2 body. geojson, geocodejson and xml are rejected with HTTP 400.
limitPartly supportedHonored 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-languageSupportedAs a query parameter or as the Accept-Language header. The first language tag is used.
countrycodesPartly supportedOnly 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.
addressdetailsSupported0 (the default for /search, as upstream) leaves the address object out. 1 includes it.
streetcitycountystatecountrypostalcodeamenityNot supportedStructured 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 supportedIgnored. Results are neither biased toward nor limited to the box.
polygon_geojsonpolygon_kmlpolygon_svgpolygon_textextratagsnamedetailsNot supportedIgnored. The fields are not in the response.
exclude_place_idsdedupefeatureTypelayeremailjson_callbackdebugNot supportedIgnored.
Live 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.
Create an API key
Sign up, create a workspace and label a key for the service you are moving. Get an API key
Swap the host
Replace the Nominatim base URL with
https://www.buddygeo.comin your configuration. Leave the paths alone.Add the header
Send
X-API-Keyon every request and keep the key out of client-side code.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.
Check the format you parse
Both
jsonandjsonv2return the jsonv2 body. If your code readsclass, readcategoryinstead.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
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.
Keep the attribution
Results still come from OpenStreetMap data. Keep the credit you show today. Attribution requirements