Commit graph

7 commits

Author SHA1 Message Date
Ray Miller
f09fd9a418 Set a custom user-agent header when fetching CTC Cambridge stops data
This is required because their hosting provider is returning a 503
"service unavailable" when the user agent is Go-http-client.
2024-04-17 17:19:42 +01:00
Ray Miller
bd7eb246d5 Improvements to duplicate suppression, cafe stop search, and configurability.
When suppressing duplicate cafes and place names, look back a certain distance along
the route rather than just the previous point of interest.

When searching for cafes, use SearchIntersect() to return all entries in the
bounding rectangle, not just the nearest.

Remove (most) hard-coded constants and allow these to be overriden by options
to the NewGPXSummarizer() constructor.
2023-01-19 16:21:32 +00:00
Ray Miller
9ec3b2e980 Increase the search radius for cafe stops 2021-06-18 11:56:16 +01:00
Ray Miller
52c183cb20 Refactor to enable RWGPS handler to be consumed by other modules. 2020-04-22 14:55:53 +01:00
Ray Miller
507d20810d Add TTL cache for stops index. 2020-04-21 08:45:05 +01:00
Ray Miller
3caaf59506 Add missing file. 2020-04-20 23:09:27 +01:00
Ray Miller
52d41490f3 Annotate refreshment stops, improved logging and error handling. 2020-04-20 23:08:57 +01:00