You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/Search.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,7 @@ to the address layer (see above).
231
231
232
232
| Parameter | Value | Default |
233
233
|-----------| ----- | ------- |
234
-
| exclude_place_ids | comma-separated list of ids (OSM IDs where possible, otherwise place_ids) |
234
+
| exclude_place_ids | comma-separated list of ids (OSM IDs where possible, otherwise place_ids or stable postcode refs) |
235
235
236
236
If you do not want certain OSM objects to appear in the search
237
237
result, give a comma separated list of the ids you want to skip.
@@ -240,8 +240,9 @@ Each entry may be one of:
240
240
241
241
* a Nominatim internal `place_id` (for example `125279639`)
242
242
* an OSM object reference in the form `<osm_type><osm_id>` where `<osm_type>` is one of `N` (node), `W` (way) or `R` (relation), for example `N107775`
243
+
* a stable postcode reference in the form `P<country_code>:<postcode_id>`, for example `Pus:94110` or `Pgb:EH4_7EA`
243
244
244
-
Usage of OSM IDs is recommended because they are server independent. `place_id`s are stil required for results without an OSM object reference (for example, postcodes and countries). When a street is excluded via its OSM ID, then interpolations and TIGER data derived from that street are excluded as well.
245
+
Usage of OSM IDs is recommended because they are server independent. Stable postcode refs should be used for artificial postcode results without an OSM object reference. In postcode refs, spaces are replaced with underscores. `place_id`s are still required for results without either kind of stable reference (for example, countries). When a street is excluded via its OSM ID, then interpolations and TIGER data derived from that street are excluded as well.
245
246
246
247
This can be used to retrieve additional search results. For example, if a
247
248
previous query only returned a few results, then including those here would
0 commit comments