Skip to content

Commit

Permalink
Adapta endpoint da API a issue 3134 do OSM(osm-search/Nominatim#3134)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbarcellos committed Nov 9, 2023
1 parent f79772e commit 53cd877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/get_addr.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

Expand Down

0 comments on commit 53cd877

Please sign in to comment.