From 53cd8776b89d4cff5d2d189d6605f866c62667ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20de=20Siervi=20Barcellos?= Date: Thu, 9 Nov 2023 10:13:43 -0300 Subject: [PATCH] Adapta endpoint da API a issue 3134 do OSM(https://github.com/osm-search/Nominatim/issues/3134) --- R/get_addr.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/get_addr.R b/R/get_addr.R index e5676f1..3d0baf9 100644 --- a/R/get_addr.R +++ b/R/get_addr.R @@ -29,8 +29,8 @@ get_addr <- function(address = NULL){ address <- gsub("\\s+", "\\%20", address) tryCatch( d <- jsonlite::fromJSON( - glue::glue("http://nominatim.openstreetmap.org/search/", - "{address}?format=json&addressdetails=0&limit=1") + glue::glue("http://nominatim.openstreetmap.org/search?q=", + "{address}&format=json&addressdetails=0&limit=1") ), error = function(c) return(vazio) )