I am new to API's and R, and I was wondering how to use this GraphHopper API.(https://graphhopper.com/api/1/docs/isochrone/https://graphhopper.com/api/1/docs/isochrone/) At the page above there is this:
curl "https://graphhopper.com/api/1/isochrone?point=51.131108,12.414551&key=[YOUR_KEY]"
Is there a way to make to convert the response to a polygon object?
So far i got here, but I don't know how to convert the request to a Polygon:
library(httr)
library(jsonlite)
a = GET("https://graphhopper.com/api/1/isochrone?point=51.131108,12.414551&key=KEY")
class(a)
a$status_code