This commit is contained in:
Victor Fors 2022-04-20 16:51:32 +02:00
parent 10f2225bdd
commit 81b697a602

View File

@ -61,8 +61,8 @@
(with-input-from-file "key-parking" read-line))
(define (get-parking-lots)
(let ((result (simple-json-request (string-append "http://parkering.linkoping.se/Parkeringsdata/ParkeringsdataV1.svc/GetParkeringsYtaList/" parking-key "/0"))))
(value 'parkingareanewlist result)))
(value 'parkingareanewlist
(simple-json-request (string-append "http://parkering.linkoping.se/Parkeringsdata/ParkeringsdataV1.svc/GetParkeringsYtaList/" parking-key "/0"))))
(define (computerized? lot)
(has-key? 'parkingspacesavailable lot))