Return communication database rows from communication API

This is a pretty big refactor of how communication works to start moving
us in the direction we want to go long-term. This adds the new
communication row and migrates existing reports to add rows for
communication.

There's also a bunch of automatic fixes from the new linter. I should
have added them separately, but whatever.
This commit is contained in:
Eli Ribble 2026-05-01 20:49:37 +00:00
parent a6ce0b7e67
commit a82732a49c
No known key found for this signature in database
41 changed files with 365 additions and 220 deletions

View file

@ -51,9 +51,7 @@ func main() {
log.Printf("%d: %d meters, %d seconds, %s traffic delay", i, s.LengthInMeters, s.TravelTimeInSeconds, s.TrafficDelayInSeconds)
for _, leg := range route.Legs {
all_stops = append(all_stops, leg.Points[0])
for _, p := range leg.Points {
all_points = append(all_points, p)
}
all_points = append(all_points, leg.Points...)
}
}
lines := tomtom.PolylineToGeoJSON(all_points)

View file

@ -10,10 +10,7 @@ type PointShort struct {
}
func (ps PointShort) AsPoint() Point {
return Point{
Latitude: ps.Latitude,
Longitude: ps.Longitude,
}
return Point(ps)
}
type GeocodeResult struct {