Age | Commit message (Collapse) | Author |
|
* rent.scm (json-get): New function.
(cycling-distances, lines-at-station): Use json-get.
|
|
Batching OSRM queries so that distances to multiple points are queried
at once is more efficient.
* rent.scm (cycling-distance): Delete function.
(cycling-distances): New function.
(%wembley-stadium): New variable.
(list-house): Use cycling-distances with multiple destinations.
|
|
Earlier, we were laboriously building a lookup table mapping all tube
lines to the stations they serve, and inverting that lookup table.
* rent.scm (all-tube-lines, stations-on-line): Delete functions.
(lines-at-station): Rewrite to directly query TfL API.
|
|
* rent.scm (list-house): Show hours live in hours or days as
appropriate.
|
|
* rent.scm (cycling-distance): Use ~f instead of ~a while formatting
latitudes and longitudes.
|
|
format is simpler and more readable, in this case.
* rent.scm (cycling-distance): Construct OSRM URL using format.
|
|
* rent.scm (date): New function.
|
|
* rent.scm (make-date-comparer, date<=?, date>=?): New functions.
|
|
* rent.scm (main): Re-indent.
|
|
* rent.scm (list-house): Print "available from" date.
|
|
Previously, work coordinates were implicit in cycling distance
computation. Pass it explicitly as an argument.
* rent.scm (house-cycling-distance): Rename to ...
(cycling-distance): ... this. Pass start and end points explicitly.
(list-house): Use cycling-distance instead of house-cycling-distance.
|
|
* rent.scm (date+): New function.
(all-houses): Use date+.
(http-get*): Use current-time from (srfi srfi-19).
|
|
* rent.scm: Add docstrings for functions that don't have them.
|
|
The HTML specifying the maximum tenants has changed
slightly. Adapt.
* rent.scm (house-maximum-tenants): Adapt to latest HTML.
|
|
* rent.scm (call-with-atomic-output-file): New function.
(http-get*): Use call-with-atomic-output-file instead of
call-with-output-file.
|
|
|