Skip to content

Commit c787817

Browse files
committed
New PDOK location server URL's
1 parent 4cbcd5b commit c787817

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- PDOK Locatieserver is verhuisd naar een nieuw adres. Nieuwe URL's overgenomen voor de zoekdienst.
2+
13
**1.10.9 (2023-01-03)**
24

35
- Als Gutenberg gebruikt werd als editor voor locaties dan werd de kaart om een locatie te selecteren niet weergegeven. Dit is nu opgelost.

src/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const SEARCH_SUGGEST = 'SEARCH_SUGGEST';
9090
export function searchSuggest(q) {
9191
let thunk = (dispatch, getState) => {
9292
const state = getState();
93-
let url = 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/suggest?wt=json';
93+
let url = 'https://api.pdok.nl/bzk/locatieserver/search/v3_1/suggest?wt=json';
9494
const township = getState().search.township;
9595
if(township.length > 0) {
9696
q += ' AND gemeentecode:' + township;
@@ -124,7 +124,7 @@ export function setSearchResults(results) {
124124
export const FETCH_LOCATION = 'FETCH_LOCATION';
125125
export function fetchLocation(id) {
126126
let thunk = (dispatch, getState) => {
127-
let url = 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/lookup?wt=json';
127+
let url = 'https://api.pdok.nl/bzk/locatieserver/search/v3_1/lookup?wt=json';
128128
url += '&id=' + id;
129129
return fetch(url).
130130
then( response => {

0 commit comments

Comments
 (0)