Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from PDOK/PDOK-15240-locatieserver-nieuw-url
Browse files Browse the repository at this point in the history
nieuw locatieserver url
  • Loading branch information
Robbert2407 authored Apr 17, 2023
2 parents 0cbde3c + 6536096 commit 64a3c4a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/js/pdok-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2930,7 +2930,7 @@ OpenLayers.Control.GeocoderControl =
OpenLayers.Class(OpenLayers.Control, {

// PDOK
geocoderUrl: 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/suggest?',
geocoderUrl: 'https://api.pdok.nl/bzk/locatieserver/search/v3_1/suggest?',
geocoderParameter: 'q',

zoomScale : {
Expand Down Expand Up @@ -3135,9 +3135,9 @@ OpenLayers.Control.GeocoderControl =
resultClick: function(id, event) {
//console.log(id);
// retrieve the id, and get full info from
// https://geodata.nationaalgeoregister.nl/locatieserver/v3/lookup?id=
// https://api.pdok.nl/bzk/locatieserver/search/v3_1/lookup?id=
event.preventDefault();
lookupUrl = 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/lookup?';
lookupUrl = 'https://api.pdok.nl/bzk/locatieserver/search/v3_1/lookup?';
OpenLayers.Request.GET({
url: lookupUrl,
params: {id:id},
Expand All @@ -3150,8 +3150,8 @@ OpenLayers.Control.GeocoderControl =
resultClickAdres: function(id) {
//console.log(id);
// retrieve the id, and get full info from
// https://geodata.nationaalgeoregister.nl/locatieserver/v3/lookup?id=
lookupUrl = 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/lookup?';
// https://api.pdok.nl/bzk/locatieserver/search/v3_1/lookup?id=
lookupUrl = 'https://api.pdok.nl/bzk/locatieserver/search/v3_1/lookup?';
OpenLayers.Request.GET({
url: lookupUrl,
params: {id:id},
Expand Down

0 comments on commit 64a3c4a

Please sign in to comment.