revent's diary

Recent diary entries

US County boundary relations

Posted by revent on 14 February 2014 in English (English)

Just a quick note, re my previous one about the 'project' to fix the duplicate search results for US counties by linking the boundary relations.

I'm keeping a 'informal' worklist here... because I'm OCD and want to know they are all done.

Currently we have over 1100 counties done (out of about 3400), so approximately 1/3. More volunteers to do your local state welcome! :P Letting me know that an area has been done would also be nice, so I can mark it off the list.

ToeBee has a nice blog post about an efficient 'workflow' for fixing a state with JOSM here...

Boundary relations, place/label nodes, and addressing (How to get Nominatim to link things)

Posted by revent on 2 February 2014 in English (English)

After lots of Googling, talking on IRC, and futzing with things, I've learned how to get Nominatim to properly link boundaries and place nodes, and thus get addressing to work correctly (at least on the county level). I'm assuming this also works at the city level, though I'm still in the process of fixing Texas counties and haven't tried it with cities yet.

The 'key' is in the names and alt_name, and using the 'label' role on the boundary relation. For example, "Anderson County, Texas" has 'name=Anderson County' and 'alt_name=Anderson', while the county node has 'place=county' and 'name=Anderson". Also, importantly, the county node is a member of the boundary relation, with the role 'label'.

This is how it looks in Nominatim when working right.... the boundary: the county node:

This is an example of one I haven't fixed yet, that is still working wrong... the boundary: the county node:

As you can see, in the one that works right, the county node is listed as a 'linked place' in the boundary relation entry, and all of the places in the county are 'addressed' to the boundary relation instead of split between it and the county node. Also, if you look at the places located in the county, such as you can see that Nominatim is no longer having to 'guess' at the county addressing, as it's now explicit.

I'm also setting the boundary ways as "boundary=administrative and admin_level=6", but I don't think this is really's more a backup for if those keys get removed from the relation.

Thanks to the people who've talked this out with me on IRC, and especially lonvia, who gave the final part of getting it to work correctly. Now, we get to fix lots of counties...


Posted by revent on 24 January 2014 in English (English)

Spam, sorry, nevermind. I though the recent entries thing would chop it off. My apologies.

Texas Post Offices

Posted by revent on 24 January 2014 in English (English)

(chopping this off into an offline file)

Older Entries | Newer Entries