function getFeatures(bbox) {
const hexagons = ['608293930559078399',
'608293930626187263',
'608296719737683967',
'608296719804792831',
'608296727958519807',
'603790331166588927',
'603793126250774527',
'603793128129822719',
'603793125713903615',
'599289533200072703'];
const hexPolygon = geojson2h3.h3SetToMultiPolygonFeature(hexagons);
const points = {
"type": "FeatureCollection",
"features": hexagons.map(hex => (
{
"type": "Feature",
"properties": {
"hex": hex
},
"geometry": {
"type": "Point",
"coordinates": h3.h3ToGeo(hex).reverse()
}
}
))
}
return [hexPolygon, points];
}