routeGeoJSON = ({
type: "FeatureCollection",
features: routePatternShapeColor.map(({ routePattern, route, shape }, i) => ({
id: i,
type: "Feature",
properties: {
route,
routePattern,
color: `#${route.attributes.color}`,
textColor: `#${route.attributes.text_color}`
},
geometry: {
type: "LineString",
coordinates: googlePolyline
.decode(shape)
.map(([lat, long]) => [long, lat])
}
}))
})