Skip to content

fl parameter generates error #1

@FrieseWoudloper

Description

@FrieseWoudloper

When I specify the fl parameter for the nl_geocode, it generates an error message.

res <- nl_geocode("Martinikerkhof 3 Groningen", fl = "woonplaatsnaam", messaging = TRUE)

The request is correct, so this isn't the problem:
https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&fl=woonplaatsnaam

But the fields centroide_ll and centroide_rd is missing, so st_as_sf generates an error:

Error in UseMethod("st_as_sf") : 
  no applicable method for 'st_as_sf' applied to an object of class "c('array', 'character')"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions