Traffic area analytics

Display traffic area analytics for a geocoded city

View on GitHub
SDK 1.0.0-rc.7

A past week of Amsterdam’s traffic renders as extruded hexagons clipped to the city boundary, coloured by congestion level.

  • geocodeOne then geometryData turn a city name into the administrative polygon the analytics query wants, so the area is not yours to draw.
  • trafficAreaAnalytics takes that polygon, a date range and a metric list, and returns one cell grid covering all of them.
  • TrafficAreaAnalyticsModule.show takes that response unchanged. The grid, the extrusion and the colour ramp come with the module.

Related examples