kicking off the long weekend here in canada in style. friday with some openstreetmap! openstreetmap added a new feature called notes that allows anyone to create an annotated message of a feature/item that needs to be added/fixed etc without needing an account. basically someone with an account attempts to add the note. great way to lower the barrier to reach a larger community that might not want to invest in learning how to use an editor & tagging. i can certainly see this being the case for small business owners that just want to get their location on the map.
anyhow, there’s a great stats page listing contributors here. i’ve wanted to query ottawa & see how many notes there have been.
used to qgis dev (which is amazing! mac dev builds) to import openstreetmap, creating a bounding box polygon & extracting the bbox coordinates. this could definitely be refined. in a nut shell you pass the bbox to the osm notes api & it returns xml (default) or several other formats. the start represents the only note in the region in gpx.
single note details — red star in graphic:
<?xml version=”1.0″ encoding=”UTF-8″?> <osm version=”0.6″ generator=”OpenStreetMap server”> <note lon=”-75.6967664″ lat=”45.421061″> <id>3125</id> <url>http://api.openstreetmap.org/api/0.6/notes/3125</url> <comment_url>http://api.openstreetmap.org/api/0.6/notes/3125/comment</comment_url> <close_url>http://api.openstreetmap.org/api/0.6/notes/3125/close</close_url> <date_created>2013-05-14 22:33:23 UTC</date_created> <status>open</status> <comments> <comment> <date>2013-05-14 22:33:24 UTC</date> <uid>1679</uid> <user>andrewpmk</user> <user_url>http://api.openstreetmap.org/user/andrewpmk</user_url> <text>Ottawa light rail, construction will begin soon. Also missing major bus routes on transitway like #95.</text> <html><p>Ottawa light rail, construction will begin soon. Also missing major bus routes on transitway like #95.</p></html> </comment> </comments> </note> </osm>
really need to prompt the notes features in my neck of the woods. it’s a great feature. next steps would be to take this into python & clean it up, gives me a good excuse to keep learning python!