aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2024-06-18Put in special cases to correct slightly misnamed stations.•••* rent.scm (lines-at-station): Handle misnamed Paddington and Hammersmith stations. HEADmainArun Isaac
2023-10-14Use list-transduce.•••list-transduce allows us to see desired house listings as soon as they are found. We don't have to wait until all desired house listings are processed. * rent.scm (main): Use list-transduce. Arun Isaac
2023-10-14Abstract JSON requests.•••* rent.scm (json-get): New function. (cycling-distances, lines-at-station): Use json-get. Arun Isaac
2023-10-14Query OSRM API for multiple destinations at once.•••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. Arun Isaac
2023-10-14Directly query TfL API to find tube lines at station.•••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. Arun Isaac
2023-10-13Show hours live in more human-readable units.•••* rent.scm (list-house): Show hours live in hours or days as appropriate. Arun Isaac
2023-10-07Never use exponential notation for latitudes and longitudes.•••* rent.scm (cycling-distance): Use ~f instead of ~a while formatting latitudes and longitudes. Arun Isaac
2023-10-07Construct OSRM URL using format.•••format is simpler and more readable, in this case. * rent.scm (cycling-distance): Construct OSRM URL using format. Arun Isaac
2023-09-26Add date constructor.•••* rent.scm (date): New function. Arun Isaac
2023-09-26Add date comparison predicates.•••* rent.scm (make-date-comparer, date<=?, date>=?): New functions. Arun Isaac
2023-09-26Re-indent main expression.•••* rent.scm (main): Re-indent. Arun Isaac
2023-09-26Print "available from" date in house listing.•••* rent.scm (list-house): Print "available from" date. Arun Isaac
2023-09-26Specify points explicitly in distance computation.•••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. Arun Isaac
2023-09-26Convert "available from" to date object.•••* rent.scm (date+): New function. (all-houses): Use date+. (http-get*): Use current-time from (srfi srfi-19). Arun Isaac
2023-09-26Add docstrings.•••* rent.scm: Add docstrings for functions that don't have them. Arun Isaac
2023-09-26Adapt maximum tenants extraction to latest HTML.•••The HTML specifying the maximum tenants has changed slightly. Adapt. * rent.scm (house-maximum-tenants): Adapt to latest HTML. Arun Isaac
2023-09-25Ensure atomic writes to cache.•••* rent.scm (call-with-atomic-output-file): New function. (http-get*): Use call-with-atomic-output-file instead of call-with-output-file. Arun Isaac
2022-12-11Mention OpenStreetMap in README.•••* README.org: Mention OpenStreetMap. Arun Isaac
2022-12-11Initial commitArun Isaac