Commit graph

42 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
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
f740686d2f Improved duplicate suppression 2021-04-12 09:15:20 +01:00
Ray Miller
34bdaeab71 Suppress duplicates in the output 2021-04-11 18:39:17 +01:00
Ray Miller
bc6affbce1 Call the executable exe 2021-04-10 14:22:22 +01:00
Ray Miller
08f37e8592 Add CI/CD config 2021-04-10 14:15:03 +01:00
Ray Miller
a3e30a5a3c Add gpx-anomalies command 2021-04-10 14:01:23 +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
88336110e0 Use district when county is not available. 2020-12-23 08:25:57 +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
76fa20d0c1 Remove extraneous 0 from subslice 2020-04-30 06:30:24 +01:00
Ray Miller
6135951d08 Bugfix tool for condensing POI. 2020-04-27 07:41:25 +01:00
Ray Miller
3e68fd6f9a Add experimental tool for condensing POI. 2020-04-27 07:35:52 +01:00
Ray Miller
6001479eaf Add git-semver config 2020-04-26 20:20:19 +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
ec4c5dbc4b Add information about refreshment stops to README. 2020-04-22 15:00:33 +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
9296c8441e Use consistent copyright symbol. 2020-04-18 18:28:33 +01:00
Ray Miller
c001587877 Update README 2020-04-18 18:07:50 +01:00
Ray Miller
98cd890766 Simplify usage. 2020-04-18 14:26:48 +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
fb816c3132 Analyze all files in a directory, output JSON. 2020-04-15 20:56:10 +01:00
Ray Miller
f41b1a01e3 Initial check-in. 2020-04-15 09:46:58 +01:00