https://osm2pgsql.org/doc/manual.html#geographical-extracts
Anonymous
Don't force yourself or others to reimplement functionality.