Data sources: official and OpenStreetMap
Every address result comes from official data or, when you allow it, from OpenStreetMap. Each result says which.
The two sources
- Official (gov): Poșta Română postal codes with SIRUTA localities. Always on. Street-level detail mainly for the larger cities.
- OpenStreetMap (osm): community-maintained streets and localities, especially for small towns, communes and villages. Not official and not validated by Poșta Română.
Turning OpenStreetMap on or off
OpenStreetMap is on by default for every organisation. Owners and admins can turn it off in the dashboard under Settings → Data sources; the API applies the change within about a minute. A single request can override the setting: osm=true or osm=false on autocomplete, options.osm on verify and batch submit. Postal code lookup always uses official data only.
# Autocomplete: query parameter
curl "https://api.posty.ro/v1/addresses/autocomplete?q=floresti+avram+iancu&osm=false" \
-H "Authorization: Bearer psk_live_xxx"
# Verify (and batch submit): options.osm in the body
curl -X POST https://api.posty.ro/v1/addresses/verify \
-H "Authorization: Bearer psk_live_xxx" \
-H "Content-Type: application/json" \
-d '{ "address": { "locality": "Florești", "county_code": "CJ", "street": "Strada Avram Iancu" }, "options": { "osm": true } }'The source field
Every autocomplete suggestion, verify response, batch result row and postal code lookup carries source: "gov" or "osm". Filter on it, or treat OpenStreetMap results differently, if your process accepts only official data.
Attribution
When OpenStreetMap is used, the X-Data-Attribution header adds "(c) OpenStreetMap contributors (ODbL-1.0)". If you display results with source "osm", show "© OpenStreetMap contributors" with a link to openstreetmap.org/copyright. See posty.ro/legal/data-sources.