Closed RobertMyles closed 4 years ago
@edumucelli do we need lat & lng for estado/cidade requests, Eduardo?
GET("http://www.cepaberto.com/api/v3/nearest?cidade=Ubatuba&estado=SP", add_headers(Authorization = auth)) %>% content("parsed")
$message
[1] "Atributos \"lat\" e \"lng\" necessários"
nearest
only takes lat
and lng
. The semantic behind it is that it will find the nearby CEPs from a point centered on this very coordinate formed by the lat
and lng
.
I could indeed make it accept a cidade
and estado
but I have not thought about it beforehand.
Ah, understood, my mistake, I was confusing it with the cidade/estado request.
Closing, CRAN submission underway.
Seems there is an API issue. Running the code from the site examples gives me:
Result:
This is not an R issue. Copying directly from the site:
Result: