[GeoMoose-users] Geocode search by address not working
Jim Klassen
klassen.js at gmail.com
Fri Sep 12 08:12:13 PDT 2025
On 9/12/25 09:29, Jim Klassen wrote:
> 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.
Digging in more to hopefully find a fix for current versions of GeoMoose:
Bisecting between v3.10.1..v3.11.0, this gets broken in two different ways:
First, "Can't find layer geocoder/", blank map, but results still show in the Super Tab:
The first bad commit could be any of:
2d73d52c403d844b12c318e5a1447498647c0799
b102f2ae5dd0413964c80c48c732a074e105c53c
c93687b2ee3b48d5a58f9098c416a72ac57e94ff
Then, "mapSource is Undefined":
The first bad commit could be any of:
a3a61d0ad7b09db9f27b68d50dda02256872f09f
2c09a27310f3e221f8f284ec109ea6894c251a91
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20250912/8c91b600/attachment-0001.htm>
More information about the GeoMoose-users
mailing list