A number of people have created tools to improve accessibility to the NextMuni service, including Mikhail P's yourmuni which I use constantly and is perfect for frequent commuters with a data phone. As far as I can tell, no one has written a NextMuni command for ubiquity yet, and it seemed an ideal candidate to benefit from command-line access, especially considering the somewhat-clunky interface on the current site.
Writing the command was, indeed, impressively straight-forward. Despite NextMuni's inexplicable lack of an API, extracting the relevant data from the simplified lookup pages was a task well-suited to jquery.
For those interested in trying out this rugged code, it can be subscribed to with the link at bottom. The command has some definite issues (cross streets must be capitalized and there's some flakiness in the preview update that I don't yet understand) but perhaps it will be useful to someone as an example or a tool.
- muni command (hosted at github, requires ubiquity)
Edit: the nextmuni website has changed since the programming of this command, and it is no longer working. Any developers interested in updating the code to work with the new layout are welcome to do so.
No comments:
Post a Comment