 
 ;; TODO:
 ;;
-;;  - Allow timetable list to be configurable.
 ;;  - Add tests.
 ;;  - Allow sorting by different columns (especially arrival time).
 


Regexp: https://regex101.com/r/hX7aU1/1")

(defvar 1188-default-bus-from-id "5492086"
  "Default departure stop id for buses.")
(defvar 1188-default-bus-to-id "5495843"
  "Default arrival stop id for buses.")
(defvar 1188-default-train-from-id "2051548"
  "Default departure stop id for trains.")
(defvar 1188-default-train-to-id "2051475"
  "Default arrival stop id for trains.")

(defun 1188--perpare-args (args)
  "Prepare GET arguments from ARGS."

location id.  TO-ID is the arrival location id.  DATE is the date
for which to get the timetables.  It will call the CALLBACK with
list of results one download is done."
  (url-retrieve
   (concat url "?"
           (1188--perpare-args
