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
Is your feature request related to a problem? Please describe.
I'd like to add a buffer to all search results. e.g., instead of returning a polygon for North Carolina, I want the ability to return a polygon representing the border plus a customizable buffer, like 20 miles.
Describe the solution you'd like
Make it an API parameter that can be used to transform all search results. Defaults to 0 (unused) if not supplied.
Describe alternatives you've considered
Do it in my own source code afterwards (depending on the programming language, it was more painful than what PostGIS can do natively it seemed).
Reach into the Nominatim database and query it out myself. i.e., something like this: SELECT ST_Buffer(ST_Transform(geometry, 3857), buffer_distance) FROM placex WHERE osm_id = in_osm_id;.
Additional context
None
The text was updated successfully, but these errors were encountered:
This is a rather specific request. Libraries for buffering are widely available, thus making it fairly easy to do on the client side. In addition there is no real upside like saving bandwidth when doing on the server side. The obvious downside is the introduction of a new API parameter that needs to be maintained for many versions to come. So, I'm sorry to say that the downside outweighs the upside here.
Is your feature request related to a problem? Please describe.
I'd like to add a buffer to all search results. e.g., instead of returning a polygon for North Carolina, I want the ability to return a polygon representing the border plus a customizable buffer, like 20 miles.
Describe the solution you'd like
Make it an API parameter that can be used to transform all search results. Defaults to 0 (unused) if not supplied.
Describe alternatives you've considered
SELECT ST_Buffer(ST_Transform(geometry, 3857), buffer_distance) FROM placex WHERE osm_id = in_osm_id;
.Additional context
None
The text was updated successfully, but these errors were encountered: