I'm happy to announce a new API to match a Canadian address to its political districts.
At the moment it handles federal ridings, provincial ridings for all provinces save PEI (who've been quite helpful, and should be in soon) and Nova Scotia, and a handful of municipalities.
It's part of
vote.ca, a new site I did the coding on that's a prototype of a general-purpose polling-place locator.
michael