Opened 7 years ago

Last modified 7 years ago

#4985 new defect

query "washington, D.C." result shows "Johnson City, Tennessee"

Reported by: drkrtz Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:


I am new to openstreetmap so don't know how to fix this query issue. When searching for "washington, d.c." the result is a GIS office in Johnson City, Tennessee. The search term should result in the US Capital city of Wasthington, D.C. located here

I am unsure of how to resolve the query issue, or indicate which result is preferred.

Thanks, Derek

Change History (4)

comment:1 Changed 7 years ago by drkrtz

*Capitol city. Sorry for the spelling error. :)

comment:2 Changed 7 years ago by Sarah Hoffmann

You seem to have found the one variant that does not work. ;) "washington d.c." works fine, as does "washington dc" and "washington, dc".

Basically, Nominatim does not know that "d.c." is an abbreviation for the District of Columbia as there is only "DC" given as reference. It should be a bit more clever in handling these optional full stops, might be doable with some regex magic in the normalization stage.

comment:3 Changed 7 years ago by drkrtz

Can "Wasghington, D.C." be added as an alternate name for the node? Short of spelling out "Washington, Disctrict of Columbia", this really is the most accurate spelling so we probably shouldn't rely on regex magic to return the correct result.

Looking at the node details, it seems like all the other punctuation variants are captured by various language translations. Perhaps simply changing one of the translation results to "Wasghington, D.C.", or updating the stated "alt_name" to this spelling, will fix the issue.

I've added a note to the map as well. Feel free to delete/resolve along with this bug report.

Best, Derek

comment:4 Changed 7 years ago by Sarah Hoffmann

This will unfortunately not work either because of bug #4449 (no commas allowed in names) that is more or less a wontfix. You might get away with adding alt_name=D.C. to the District of Columbia.

Note: See TracTickets for help on using tickets.