digidem / osm-p2p-server

Peer-to-peer OpenStreetMap API v0.6 Server for osm-p2p-db
BSD 2-Clause "Simplified" License
87 stars 10 forks source link

do not return duplicate nodes/ways/etc #26

Open hackergrrl opened 7 years ago

hackergrrl commented 7 years ago

The OSM API does not permit duplicate IDs to be returned. To this end, osm-p2p-server has a forks option to allow forking data to be opted in to.

However, there is an edge case where one bounding box query might include one fork of a node, and a subsequent bbox query nearby would include another fork of that node in another position.

@gmaclennan has suggested we patch the indexing logic in osm-p2p-db such that bounding box queries that grab a node that has forks will return all forks of that node: this will enable osm-p2p-server to deduplicate accurately on incoming requests.