IsochroneResponse
geojsonobject
GeoJSON FeatureCollection. Each Feature corresponds to one contour
in request order. Feature properties include contour (time in minutes),
fill, and fill-opacity for direct map rendering.
Example:
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"contour":15,"fill":"#bf4040","fill-opacity":0.33},"geometry":{"type":"Polygon","coordinates":[[[-0.195,5.61],[-0.185,5.61],[-0.185,5.6],[-0.195,5.6],[-0.195,5.61]]]}}]}hex_codesstring[][]
Per-contour arrays of AfriHex codes (resolution 7) whose centroids fall
inside each contour polygon. Indexed the same as the request contours
array. Only present when hex_codes: true was set in the request.
Example:
[["AF-GH-7-0GXTJJB0ZZZZZ","AF-GH-7-0GXTJJ88ZZZZZ"],["AF-GH-7-0GXTJJB0ZZZZZ","AF-GH-7-0GXTJJ88ZZZZZ","AF-GH-7-0GXTJJAAZZZZZ"]]IsochroneResponse
{
"geojson": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"contour": 15,
"fill": "#bf4040",
"fill-opacity": 0.33
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-0.195,
5.61
],
[
-0.185,
5.61
],
[
-0.185,
5.6
],
[
-0.195,
5.6
],
[
-0.195,
5.61
]
]
]
}
}
]
},
"hex_codes": [
[
"AF-GH-7-0GXTJJB0ZZZZZ",
"AF-GH-7-0GXTJJ88ZZZZZ"
],
[
"AF-GH-7-0GXTJJB0ZZZZZ",
"AF-GH-7-0GXTJJ88ZZZZZ",
"AF-GH-7-0GXTJJAAZZZZZ"
]
]
}