I am trying to use RStudio to perform geocoding and I cannot seem to do it.
My code is as follows:
url = “https://developers.onemap.sg/commonapi/search”
address = “650622”
body = list(searchVal = address, returnGeom = ‘Y’, getAddrDetails = ‘N’)
res = POST(url, body = body, encode = “json”, verbose())