Skip to content

Commit

Permalink
Merge pull request #1207 from maykinmedia/issue/2466-product-location
Browse files Browse the repository at this point in the history
[#2466] Update query parameter for PDOK API
  • Loading branch information
alextreme authored May 16, 2024
2 parents 8ff2dd1 + eca41ea commit ff317be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/open_inwoner/utils/geocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def geocode(
query,
timeout=DEFAULT_SENTINEL,
fq="bron:bag AND type:adres",
ln="id,bron,weergavenaam,rdf_seealso,centroide_ll",
fl="id,bron,weergavenaam,rdf_seealso,centroide_ll",
):
"""
Return a location point by address.
Expand All @@ -62,10 +62,10 @@ def geocode(
:param fq: Allows to specify a filter query, e.g. fq=bron:BAG.
:param ln: List of fields to display
:param fl: List of fields to display
"""

url = furl(self.api).add({"q": query, "fq": fq, "ln": ln}).url
url = furl(self.api).add({"q": query, "fq": fq, "fl": fl}).url
logger.debug("%s.geocode: %s", self.__class__.__name__, url)
callback = self._parse_json
return self._call_geocoder(url, callback, timeout=timeout)
Expand Down

0 comments on commit ff317be

Please sign in to comment.