aboutsummaryrefslogtreecommitdiff
BranchCommit messageAuthorAge
mainPut in special cases to correct slightly misnamed stations.Arun Isaac6 months
 
 
AgeCommit messageAuthor
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
[...]