Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

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

Open
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Open

Comments

@openstreetmap-trac
Copy link

Reporter: drkrtz
[Submitted to the original trac issue database at 4.20pm, Monday, 16th September 2013]

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 http://www.openstreetmap.org/#map=12/38.9169/-77.0001

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

Thanks,
Derek

@openstreetmap-trac
Copy link
Author

Author: drkrtz
[Added to the original trac issue at 10.03pm, Monday, 16th September 2013]

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

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 10.21pm, Monday, 16th September 2013]

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 [http://nominatim.openstreetmap.org/details.php?place_id=98170241 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.

@openstreetmap-trac
Copy link
Author

Author: drkrtz
[Added to the original trac issue at 10.44pm, Monday, 16th September 2013]

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.
http://www.openstreetmap.org/browse/node/158368533

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.
http://www.openstreetmap.org/?note=43163

Best,
Derek

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 6.15am, Tuesday, 17th September 2013]

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant