Bixi on the iPhone
May 16, 2009.
Last updated September 7th, 2011
(… and ipod touch, and blackberry…)
Update July 2011: The code is open on github.
Update September 2011: The map should now work not only for Montreal, but Toronto too.
Update 28 October 2011: Access to the toronto map is broken. Looks like Bixi Toronto is blocking access to their station data from my server. Sorry, Toronto! :(
Update December 2011: That's it, I give up. The Montreal bixi site has changed the location of their map files, again. Probably following a shiny "redesign" where they also broke access to map.bixi.com. And in the new location, they are blocking access from my server, just as they do for Toronto. By now, I hope this hack has served its purpose, anyway: show that using data to build useful mobile access wasn't so hard, and show the importance of a commitment to open, documented data access. I will be decomissioning my script from today on - if you want it back, feel free to nag bixi until they understand why it would make sense for them to provide an open data feed or an API.
Bixi is the new community bike service here in Montreal. Lots of brewhaha around launchtime, but to me, the really annoying shortcoming of the system so far was not being able to check the status of stations on the go.
According to a message I read on the facebook group for bixi a few weeks ago, there is “no plan to provide an API, iphone app or mobile access to the map of bixi stations”. That’s rather silly, knowing that the users will want to know, in real time and on the go, whether they can get or return a bike nearby.
I’m too lazy to build a real iphone app over the week-end, but I wanted to prove that it doesn’t cost tens of thousands of dollars to provide bixi users mobile access to the status of the stations.
30 minutes and about as many lines of python later, I had a working hack to include a map of all stations in google earth, google maps or the map application on my iphone.
iPhone Instructions
Here’s how to use it on the iphone (or networked iPod Touch):
- 1) Launch the iphone map application
- 2) Enter the address http://ot.zoy.org/bixi ( http://bit.ly/bixi should also work, and is shorter to type) in the search bar
- 3) Tada! all active stations show on the map, with the number of available bikes and parking slots
Disclaimer: I built this using only publicly available data – not a public, official API, though. If the powers-that-be at bixi decide they don’t like it, or change the way they organise their data, or any other silly move, I’ll have to pull the plug on this little hack. In the meantime, I intend to use it and provide it for free. Enjoy.
Update Dec 2nd, 2010: I originally used the bit.ly service to have users of this little hack have as few characters to type as possible. A year and a half later, I notice that the map wasn’t loading any more… because bit.ly no longer redirected to the kml file on my server, but to a news item that has nothing in common with the bixi map. Two hours later, it was back.
Glitch? No glitch? I don’t know, but I have learned my lesson learned: URL shorteners don’t guarantee that their service will be stable and that they won’t recycle their preciously short identifiers: links going through them may well lead to uncomfortable surprises. Meanwhile, I have made the kml available through http://ot.zoy.org/bixi, which arguably is 5 characters longer than http://bit.ly/bixi – the price of stability.



Can I suggest putting a heading of “Instructions” over the screenshots? I thought they were just screenshots and totally missed that the texts underneath were the instructions. Karl had to point it out. :)
Many thanks to you, if it could make Bixi move faster.
On a side note, I’m toying with the idea of logging my personal data I’m generating by using the system by saving the transcripts they put in my Bixi webspace. I’d love to have a way to extract it and save it automaticaly. !D And it would provide wonderful raw data for a visualisation application, why not on android phones… ? ;)
No problem with the translation – I guess I could have done it myself, but am happy someone beat me to it.
It would indeed be awesome if bixi allowed us to export our usage data for visualization/massaging purpose :).
For the time being, the URL is stored in the “recent” bookmarks in the Google Maps app, but that will only work as long as it’s a recent search. Any tips?
Thanks again for your great work!
I tried similar things, and came to the same conclusion.
The maps app remembers the past search strings, so when I type “http” it shows me the http://bit.ly/bixi choice. Imperfect, but it seems to be the only functional solution… If you find a better way, let us know!
The map is updated every few minutes. Unfortunately once loaded in the app it does not refresh automatically, one has to re-load the map. That’s somewhat annoying. I should look into this:
http://code.google.com/apis/kml/documentation/kml_21tutorial.html#expiration
It really helps for iPhone users and I find it useful even from a computer, since google maps seems faster than the google map application of Bixi’ website.
One question, I still cannot figure out exacty how this really works, but would it be possible (and easy!) to show the name of the station together with the numbers of available bikes/slots?
Thanks again for your work!
Thank you!
I’m on a jailbroken iPhone; need it for development.
everything else seems thought out…
Companies (e.g. Stationnement Montreal) thus seem to consider mobile apps as a waste of time, or a “nice to have” for later.
Merci encore…
1. Does anyone know how to pull up a larger version of the google map on the bixi website, or to get the stations to overlay on the regular maps.google.com page?
2. It’d be really neat to see graphical data of our user bike usage.
3. How about a google map interface that shows each Bixi station as a number, instead of having to click on each station to find out how many bikes/spots are there. It could be done with just simple numbers, using a different color for bikes/spaces, or a visible fraction. ie 2/10 for 2 bikes and 8 available spots.
4. Anyone know how, or want to start a freelance Bixi user forum/wiki to be the ‘go to’ place for all this type of stuff?
To know if your phone supports google maps try visiting m.google.com/maps
Just put bit.ly/bixi in the search and google maps should show you the latest status for all stations.
The info on old montreal is there, as far as I can tell. Are you using the iphone Maps app?
However, this problem seems to be intermittent since the map did load entirely the fourth time I tried!
One more thing, would it be possible (and easy!) to show the name of the station together with the numbers of available bikes/slots?
Belle trouvaille. Je vous cite dans mon blogue!
http://bixifan.wetpaint.com
It’s quite hack right now, but I’ve been pretty obsessed with Bixi ever since it started and hope this wet paint page will become a forum of sorts where people can find all things Bixi. I’ve already uncovered some cool Bixi mapping apps people have made, etc. Anyone can join and add to it. It’s really just a Bixi Wiki. Hope you enjoy it.
(It would have been so helpful last Friday when I spent 30 minutes trying to find a slot in Quartier Latin where each one of them in every stations in the area was taken!)
Merci!
that biximobile webapp is so ghetto, and just as slow as the map on bixi’s site on iPhone OS.
bixi informed me by email they are working on their own iPhone app that will be released later this summer. i just hope the official bixi iphone app isn’t as ugly as the bixi website.
From Google maps it works perfectly. Now I only have to find out how to make a bookmark in Google Maps for the iPhone…
If the information on the Bixi website is not correct and up-to-date, you can’t plan a trip. Without my iPhone, I wouldn’t even have known the locations of the “nearby” stations. Bixi is nice, but you shoukldn’t want to use it to desinations, like the Jean Talon market, or a cinema downtown or things like that. The bike/stand ratio is just not good, there should be three times more parking spaces than bikes.
Thank you!!
Thanks for putting this together!
I’m working on a BIXI iPhone application
I’m not planning on doing the same thing as Spark and publish anything without the conscent of BIXI.. I’m working on that for my personnal usage.
But in the eventuality that BIXI are interested on the app. I will not mind selling it to them or putting it on the App Store.
Here is the video of the development status on 2009-06-06: http://www.youtube.com/watch?v=8Lu_wDvsK5I
http://www.youtube.com/watch?v=LYWakaSE97E
Fantastic work. I hope you can sell it to StatdeM!
Been using it all week now and I prefer it to their slow-loading map.
http://maps.google.com/maps?q=http://mobile.bixi.com
etc etc :)
If you have an iPhone, your best bet is iBixi.
I can’t wait for the OS 3.0 version…
http://bit.ly/1SO5q
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=324012117&mt=8
Works great on the symbian app.
Previous/Next
Being a Web Architect
2009-04-28
For the first decade I spent working in Technology and the Web, I never really had a Job title. My roles and responsibilities varied from project to project, and I never felt like a single title would do my work justice. So it is with a certain feeling of excitement that, in 2009, I signed for a job with a clear title: “Web Architect”.In hindsight and with a little honesty, I had very little idea what that meant.
… Read more
Ruskin and Slow Travel
2009-05-20
No changing of place at a hundred miles an hour will make us one whit stronger, happier, or wiser. There was always more in the world than men could see, walked they ever so slowly; they will see it no better for going fast. The really precious things are thought and sight, not pace.
… Read more
2 Neurones & 1 Camera – ©/CC 2000-2026 Olivier Thereaux. Some rights reserved.