Hi,
I try to use request planning area of a location from one map in R. Following is my code:
url <- "https://developers.onemap.sg/privateapi/popapi/getPlanningarea?"
body <- list(token = mytoken, lat=1.3, lng = 103.8)
res1 <- GET(url, body = body, verbose())
content(res1)
I always get an error says “Your token is invalid.”
The token was requested from one map one hour ago.
Can any one help with it? Thanks a lot.
Best,
Cheng