This appears to be a problem with OpenStreetMap Nominatim and possibly other geocoding services, but I'm posting it here for two reasons:
- to make sure the community's aware of it, to help in narrowing down problems in related issues
- to suggest an option to have Geocoder drop the suite, office, room, etc. when geocoding
Lookup appears to fail even if the suite/office/whatever is placed in the Address 2 line.
To reproduce:
set up a location field to geocode from another field
specify OpenStreetMap Nominatim as the Geocoder (the problem may exist with other services; this is the one I'm currently using)
enter an address containing a suite or office number, such as 490 post st suite 225, san francisco, ca 94109
Result:
No location is returned; the location field remains blank.
Note that this happens at the OpenStreetMap Nominatim lookup page as well - compare:
https://nominatim.openstreetmap.org/search.php?q=490+post+st+%23225%2C+s...
search for:
490 post st #225, san francisco, ca 94109
No results
but without the suite, it works correctly:
https://nominatim.openstreetmap.org/search.php?q=490+post+st%2C+san+fran...
So ...
If it's possible to strip the suite/office/room/apartment number before passing an address to a geolocation service, that would probably help;
and as other reports come in about problems with Geocoder, it might be a good idea to make sure the problem is not with the address itself.
Thank you for this incredibly useful module!
Comments