GNOME Bugzilla – Bug 747017
Weird results searching for "Rio de"
Last modified: 2015-04-17 00:48:15 UTC
Searching for "Rio de " (note the trailing space), shows towns like "Brandywine Creek" and "Fork branch". Searching for "Rio de" shows towns in the state of Rio de Janeiro (including the eponymous city).
Searching for "Rio de " with the trailing space for some reason triggers a geocode-glib instead of the local db search, so the problem is that geocode-glib (or nominatim, really) returns those for "rio de ". Maybe it matches on the Mexican name of nearby rivers? They seem to be American cities near the southern border.
Created attachment 301769 [details] [review] LocationEntry: fix database matching in the presence of whitespace Trailing whitespace should prevent prefix matches but not cause matching failures altoghether (trying to call find_word with a length of 0)
The previous patch fixed the specific case of whitespace, the remaining bug is that geocode-glib has nonsensical results for "rio de" but I'm closing this one.