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
4ef3eca5a4
Fix default to match docs
2023-01-19 16:43:09 +00: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
4de001c867
Fix bug in logging: need Printf as string contains format directives.
2023-01-19 16:20:22 +00:00
Ray Miller
9ec3b2e980
Increase the search radius for cafe stops
2021-06-18 11:56:16 +01:00
Ray Miller
f38029736c
Use just the English name for Welsh counties
2020-12-29 13:24:56 +00:00
Ray Miller
e407cf308e
Updated counties data
2020-12-23 08:26:24 +00:00
Ray Miller
af15ee6707
Allow start point to be within 500m of bounding box of its nearest neighbour
2020-12-14 09:49:28 +00:00
Ray Miller
617b12ff64
Check that the start point is within the bounding box of its nearest neighbour
2020-12-12 13:02:07 +00:00
Ray Miller
340612e566
Add counties to output (% of ride spent in each county)
2020-10-31 16:17:36 +00:00
Ray Miller
f0b45fd4c6
Allow minimum distance between POI and minimum settlement to be overridden
2020-07-14 09:15:08 +01:00
Ray Miller
4ae3bcbd37
Use smoothing algorithm when computing ascent/descent
2020-04-30 06:31:58 +01:00
Ray Miller
96d105ccad
Add direction to summary
2020-04-26 20:18:21 +01:00
Ray Miller
b126a08a92
Add generate file to version control
2020-04-22 15:24:27 +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
Ray Miller
7d3b208e5c
Logging and better handling of RideWithGPS route not found.
2020-04-20 12:43:41 +01:00
Ray Miller
a51a3634bd
Add type to points of interest.
2020-04-20 12:14:24 +01:00
Ray Miller
2f9e0e66e3
Add filters to opennames processing. Filter out suburban areas.
2020-04-19 14:57:02 +01:00
Ray Miller
86022818da
Store subset of opennames data in gob format and use that to restore index.
2020-04-18 12:58:53 +01:00
Ray Miller
66d4c6243a
Remove extraneous nesting.
2020-04-17 17:23:38 +01:00
Ray Miller
d1934a0e85
Add rudimentary HTTP server for RideWithGPS routes.
2020-04-17 13:01:05 +01:00
Ray Miller
f879acf25d
Fix error handling, attempt to stop POI flapping.
2020-04-16 09:07:59 +01:00
Ray Miller
e4e4ac260f
Refactor to pull useful functionailty into a package.
2020-04-16 08:52:37 +01:00
Ray Miller
f41b1a01e3
Initial check-in.
2020-04-15 09:46:58 +01:00