Make replication server for changefiles
Problems with other replication servers:
-
Planet:
- Data is not trimmed
-
ways
andrelations
do not havelat/lon
boxes.
-
Geofabrik:
- Objects with
delete
actions have flawed information (Emailed bug to Geofabrik) -
ways
andrelations
do not havelat/lon
boxes.
- Objects with
-
France:
- Iran is not included
- Their method of generation (OSMSax) is way too old.
It's always better to get raw data from Planet replication and regenerate changefiles (like what OSMSax has done).
For this, we need to find lat/lon
for ways
and relations
.
There are two ways to do that:
-
To query bunch elements from Overpass API. If we work on Planet hourly replication, We need to query almost 32000 elements (numbers from
2020-07-02T12:13:18Z
). According to Overpass limitations, it's perfectly okay to do 10000 queries daily and download 5GB. If we bunch query 3000 elements each, we have to make((32000/3000)*24) = 240
queries per day which is okay. -
Make a local synced OSM database that opdates regurarly. Then query them locally. Using a docker container will be much easier.