Add Open Address Data To OSMAND Part 2

2019-09-24

After you add your first county things become easier since you probably only need to change the translation file to grab the column names that the county used. I've been doing some manual quality assurance(QA) by opening the osm file generated by ogr2osm using Josm and Nano to spot check that the translation works as expected. Then you'll add the new osm file to your osmium merge command. QA the output of that using osmium diff -qs newfile.osm.pbf oldfile.osm.pbf. This will show the number of objects that are different from the last time you performed your merge, the left number should roughly correspond to the number of addresses you've added, right 0 since you're not deleting. My WA file is currenly up to 1.33 million addresses added from 6 counties. Osmand map creator took 44min on a 2C/4T 3.7Ghz cpu with a max of 6.3GB ram allowed. You can check out the files I'm generating for WA at WA Map Releases

Lessons Learned:

  • ids need to be unique for proper merging using Osmium, use negative numbers and set --id option for ogr2osm to last line number of previous file

More Investigation Needed:

  • how osmium merge deduplication works.
    • number of objects in OSM files doesn't match amount of objects changed in pbf files
  • Spokane County addresses are viewable, but not searchable
    • UPDATE restarting app fixes this