geo-frontend/nlmaps

nlmaps search doesn't work because it uses old PDOK Locatieserver URLs

Closed this issue ยท 4 comments

On https://nlmaps.nl/:

  • Scroll down to '5. Kies een zoekfunctie' and enable the 'zoekbalk'
  • Try to search for an address in the search field in the map below
  • Nothing happens
  • When you open your browser's "network" tab and try to search again you'll see HTTP 410 status codes for URLs like https://geodata.nationaalgeoregister.nl/locatieserver/v3/suggest?q=dorpstraat

PDOK has deprecated these URLs since August 2nd (issue #151 already seems to mention this as well).

I guess that many people who use nlmaps together with the search field are now broken. Can this be fixed?

@emacgillavry, we are using nlmaps for https://waarismijnstemlokaal.nl/, which is visited ~1 million times during elections. We want the search to work for the upcoming elections :). Could you tell us if you don't have time to fix it? I will then fix it locally for our website.

@siccovansas thanks for highlighting this. I suggest you simply use LeafletJS and a standalone autocomplete library iso NLMaps which is based on older versions.

Thanks for your reply and advice @emacgillavry ๐Ÿ™!

I've created pull request #168 which changes the deprecated URLs. This at least works for me on https://waarismijnstemlokaal.nl/.

Given that you recommend using Leaflet directly instead of NLMaps, is this project no longer maintained? If yes, it would be great if that could be announced on nlmaps.nl and in the readme of this repo.

Fixed in release 3.0.0