[GeoMoose-users] Geocode search by address not working
Jim Klassen
klassen.js at gmail.com
Fri Sep 12 07:29:52 PDT 2025
On 9/12/25 07:16, Dara Unglaube wrote:
> Any ideas on how to get the API call to OSM? This worked in the past so I'm not sure what is happening. Or if there are other versions I could download the code that could help debug? Any ideas or info to get this back up and working would be greatly appreciated.
> Miigwech,
> Dara
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sorry, I was on vacation last week and trying to catch up this week.
After some testing this morning I am seeing:
1) The "mapSource is undefined" (also shows up as "e is undefined" in the production build) error started between v3.10.1 and v3.11.0.
2) In v3.10.1 the URL generated for the OSM API call has an extra trailing slash. It is:
https://nominatim.openstreetmap.org/search/?format=json&q=25+4th+st+west%2C+st.+paul%2C+mn <https://nominatim.openstreetmap.org/search/?format=json&q=25+4th+st+west%2C+st.+paul%2C+mn>
and needs to be:
https://nominatim.openstreetmap.org/search?format=json&q=25+4th+st+west%2C+st.+paul%2C+mn <https://nominatim.openstreetmap.org/search?format=json&q=25+4th+st+west%2C+st.+paul%2C+mn>
This can be changed in services/geocode-osm.js on the line starting 'var osm_url ='. I suspect this change would also fix it in 3.7.0 and shouldn't require a rebuild.
3) Anything older than v3.9.0 and older won't build from git anymore due to changes in nodejs/npm.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20250912/dd2c7dea/attachment.htm>
More information about the GeoMoose-users
mailing list