Skip to content

Add heatmap push command for city tracks#1195

Open
maltehuebner wants to merge 1 commit intomainfrom
feature/heatmap-push-city-tracks
Open

Add heatmap push command for city tracks#1195
maltehuebner wants to merge 1 commit intomainfrom
feature/heatmap-push-city-tracks

Conversation

@maltehuebner
Copy link
Copy Markdown
Contributor

Summary

  • Adds new Symfony command criticalmass:heatmap:push-city-tracks that takes a city slug as argument
  • Collects all high-resolution polylines from a city's tracks and pushes them to the maps.jetzt heatmap API
  • Creates a heatmap with identifier criticalmass-{slug} (e.g. criticalmass-hamburg)
  • Sends polylines in batches of 50 with progress bar output
  • Handles existing heatmaps gracefully (HTTP 409) by continuing to add polylines

Test plan

  • Run bin/console criticalmass:heatmap:push-city-tracks hamburg with a valid city slug
  • Verify heatmap is created on maps.jetzt with correct identifier
  • Verify polylines are sent as high-resolution (not reduced) encoded polylines
  • Test with invalid slug — should show error message
  • Test with city that has no tracks — should show warning
  • Run command twice — second run should handle 409 and still push polylines

🤖 Generated with Claude Code

Introduces `criticalmass:heatmap:push-city-tracks` which takes a city
slug, collects all high-resolution polylines and sends them in batches
to the maps.jetzt heatmap API with identifier `criticalmass-{slug}`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant