Back to all examples
Traffic area analytics
Display traffic area analytics for a geocoded city
A past week of Amsterdam’s traffic renders as extruded hexagons clipped to the city boundary, coloured by congestion level.
geocodeOnethengeometryDataturn a city name into the administrative polygon the analytics query wants, so the area is not yours to draw.trafficAreaAnalyticstakes that polygon, a date range and a metric list, and returns one cell grid covering all of them.TrafficAreaAnalyticsModule.showtakes that response unchanged: the grid, the extrusion and the colour ramp come with the module.
Related examples
Traffic flow map
Display a traffic flow map
Getting Started
Traffic
Web
Traffic incidents map
Display a traffic incidents map
Getting Started
Traffic
Web
3D terrain map
Render the map surface in 3D using terrain elevation data
Getting Started
Map Style
Plugins
Web
Basic geometry
Show geometry around the search area
Getting Started
Places and Search
Map Style
Geometry
Web