News for hackers. Stuff that matters.
Re:OpenStreetMap gets new, easier to use in-browser editor by jfirebaugh on Friday August 23, 2013 @02:04PM (#6265220)
Re:OpenStreetMap gets new, easier to use in-browser editor by iirvine on Friday August 23, 2013 @03:30PM (#6265805)
I've been following iD development on github (https://github.com/systemed/iD/) since last year, and I honestly think that reading through its source is the single best case study I've come across for application development with D3. It's pretty phenomenal. Perhaps I'm a bit biased since I work on map stuff as well, but I think pretty much anyone thinking about using D3 to build anything larger than one-off visualizations would do well to see how it's put to use in iD.

Hats off to you guys, great work!

Re:OpenStreetMap gets new, easier to use in-browser editor by agumonkey on Friday August 23, 2013 @03:34PM (#6265820)
Just added my first changes through iD, I didn't expect something so simple, functional and ergonomic. Little details like contextual ~pie-menus, geometric operation suggestion for instance segment midpoint as a trigger for insertion, very pretty. Did you work on modeling tools prior to that ?
Re:OpenStreetMap gets new, easier to use in-browser editor by aluhut on Saturday August 24, 2013 @08:05AM (#6268415)
Thank you for your great work. You just gave me a new hobby!
Re:OpenStreetMap gets new, easier to use in-browser editor by jlgreco on Friday August 23, 2013 @02:10PM (#6265260)
The iD editor is really slick. Glad to see this is becoming the default editor on openstreetmap.org. It deserves it.

For the impatient, here is what it looks like: http://blog.openstreetmap.org/wp-content/uploads/2013/05/id_...

Re:OpenStreetMap gets new, easier to use in-browser editor by santa_boy on Friday August 23, 2013 @11:04PM (#6267421)
Unrelated .... but did you create that animated gif on a mac? Which tool did you use?
Re:OpenStreetMap gets new, easier to use in-browser editor by barrkel on Sunday August 25, 2013 @01:09AM (#6270984)
FWIW...

    $ ffmpeg -i input.mp4 -r 30 -f image2 frame-%5d.jpg
    $ gm convert -delay 20 -loop 0 frame-*.jpg output.gif
Ffmpeg is probably able to convert a video directly into gif, but I couldn't get it to work from a single Google search.
Re:OpenStreetMap gets new, easier to use in-browser editor by dbaupp on Friday August 23, 2013 @11:41PM (#6267515)
I think that's the PR gif that the OSM blog posted a while ago when first announcing iD.
Re:OpenStreetMap gets new, easier to use in-browser editor by jlgreco on Saturday August 24, 2013 @03:40AM (#6268022)
@dbaupp is correct, I didn't make the gif. If I had to guess though I would say that photoshop can probably convert video files to gifs. Not sure.
Re:OpenStreetMap gets new, easier to use in-browser editor by Pxtl on Friday August 23, 2013 @02:50PM (#6265548)
Since I obviously have some OSM developers in the room, can somebody point me to the right place to query against OSM mapping data? That is, if I want to get all one-way streets and stop-lights within my area, how do I do that? I've tried the various tools that send you a subset of the map (they don't seem to work) and the "download the whole OSM map and play with the XML" seems like a good way to choke on the data... Anybody got pointers?
Re:OpenStreetMap gets new, easier to use in-browser editor by jfirebaugh on Friday August 23, 2013 @02:53PM (#6265564)
A query like "one-way streets and stop-lights within my area" is perfect for the Overpass API: http://wiki.openstreetmap.org/wiki/Overpass_API

The best UI for Overpass is http://overpass-turbo.eu/

Re:OpenStreetMap gets new, easier to use in-browser editor by Firefishy on Friday August 23, 2013 @03:01PM (#6265619)
Overpass is great: All hospitals in Western Cape of South Africa: http://overpass-turbo.eu/s/on

Else there are more manageable regional extracts of OpenStreetMap XML: http://download.geofabrik.de/

Re:OpenStreetMap gets new, easier to use in-browser editor by olefoo on Friday August 23, 2013 @03:21PM (#6265743)
If you're wanting to query the data importing into PostGIS is a fairly straightforward way to do it. And you don't have to download the whole planet in one go.
Re:OpenStreetMap gets new, easier to use in-browser editor by bdon on Friday August 23, 2013 @03:59PM (#6265939)
+1 to this. Metro Extracts: http://metro.teczno.com/ along with osm2pgsql: http://wiki.openstreetmap.org/wiki/Osm2pgsql is the way to go.
Re:OpenStreetMap gets new, easier to use in-browser editor by JamesChevalier on Friday August 23, 2013 @04:17PM (#6266015)
Be aware that those extracts are squares around the cities - they're not exact city border outlines. This means that you can't just use the data without concern for whether the things you're gathering are actually within the city or not.

I haven't found a very simple way to get everything within exact city borders, yet. This is the process I've been going with so far: https://github.com/JamesChevalier/cities#cities

Re:OpenStreetMap gets new, easier to use in-browser editor by olefoo on Friday August 23, 2013 @05:37PM (#6266391)
That is a very useful resource; thank you.

Some cities make shapefiles available for urban growth boundaries and city limits. It's worth enquiring. But be aware that some cities city limits are not simple polygons; depending on local ordinances you can see islands, internal voids and peninsulas attached with zero width stems.

Re:OpenStreetMap gets new, easier to use in-browser editor by JamesChevalier on Friday August 23, 2013 @06:52PM (#6266677)
True! Like Houston, TX ... which looks a little like the flying spaghetti monster ... http://nominatim.openstreetmap.org/details.php?place_id=3675...

The poly files that you get from the process outlined in the readme file will include islands/voids. It's pretty cool.

Re:OpenStreetMap gets new, easier to use in-browser editor by rmc on Friday August 23, 2013 @05:51PM (#6266447)
Well remember OSM is an international project, so trying to find one definition of "city" and "border of a city" is hard. Some places (like USA) seem to use "city" as a hard solid thing, other places (eg UK / ireland) don't.
Re:OpenStreetMap gets new, easier to use in-browser editor by JamesChevalier on Friday August 23, 2013 @06:55PM (#6266689)
Yeah - OSM goes a long way in categorizing different levels of "area in which people live" based on population density. http://wiki.openstreetmap.org/wiki/Key:place
Re:OpenStreetMap gets new, easier to use in-browser editor by rmc on Saturday August 24, 2013 @01:35PM (#6269219)
Except that the place tag isn't always based on population size. In some places, (e.g. UK), a common cultural definition of a "city" is archaic, and depends if the place has a Cathedral and/or charter from the monarch.

I give you the "city" of St. David's: http://www.openstreetmap.org/browse/node/3216768 It's in Wales, UK, and is tagged as "place=city". It's a small town of ~2,000 people. It has a charter from the monarch, and a cathedral. The "note" tag in OSM says: "the "city" is on paper, what's on the ground is a small town".

Humanity is complicated. :)

Re:OpenStreetMap gets new, easier to use in-browser editor by huxley on Saturday August 24, 2013 @05:57PM (#6269948)
UK isn't the only place with weird "cities".

Greenhorn, Oregon is designated as a city but has a 2010 census population of zero. Though now unicorporated, Tenny, Minnesota, was a city and had a peak population of 180 people in 1910 but now is down to 5 (2010 census).

Re:OpenStreetMap gets new, easier to use in-browser editor by JamesChevalier on Saturday August 24, 2013 @05:39PM (#6269883)
heh, true!

I've been playing with place names & http://overpass-turbo.eu/ ... I seem to be getting the best results with "city|hamlet|metropolis|town|village", although some states like Alaska & Hawaii still don't return much with this scope.

In Alaska, a lot of places are labeled as County. In Hawaii, a lot of places are labeled as Other.

Re:OpenStreetMap gets new, easier to use in-browser editor by revorad on Friday August 23, 2013 @07:33PM (#6266832)
A friend of mine has recently started a service for providing processed OSM data based on user's requirements for a small fee. Check it out - http://opencagedata.com/
Re:OpenStreetMap gets new, easier to use in-browser editor by JamesChevalier on Sunday August 25, 2013 @11:45AM (#6272404)
I've been speaking to them a bit about city-specific data, and they've been incredibly helpful & knowledgable.
Re:OpenStreetMap gets new, easier to use in-browser editor by RyanMcGreal on Friday August 23, 2013 @09:39PM (#6267212)
Why am I not surprised that you're interested in seeing data on one-way streets in your area? :)

I've been meaning to dig more deeply into OSM for a while now, and this may be the kick I need to do it.

Re:OpenStreetMap gets new, easier to use in-browser editor by s-phi-nl on Friday August 23, 2013 @09:24PM (#6267179)
Note that this is partially a result of the Knight Foundation grant to Development Seed that was reported a couple of years ago. http://www.mapbox.com/blog/knight-invests-openstreetmap/

Nice work!

Re:OpenStreetMap gets new, easier to use in-browser editor by mixmastamyk on Friday August 23, 2013 @02:33PM (#6265431)
Nice. In the older editors, I always had trouble figuring out how to categorize points of interest. For example making a node a restaurant/bank/etc was always a hit or miss operation. Most of them wouldn't stick, if they even had one that made sense. I hope that's been fixed.
Re:OpenStreetMap gets new, easier to use in-browser editor by Firefishy on Friday August 23, 2013 @03:09PM (#6265661)
Sure has.

iD has large number of built in presets and also transparently queries http://taginfo.openstreetmap.org/ for the more eccentric stuff.

Re:OpenStreetMap gets new, easier to use in-browser editor by freyfogle on Tuesday August 27, 2013 @11:38AM (#6284081)
BTW if anyone is looking for an area to dive in, please feel free to help me map Andhra Pradesh http://freyfogle.tumblr.com/post/57007174879/mapping-andhra-...
Re:OpenStreetMap gets new, easier to use in-browser editor by sjwright on Saturday August 24, 2013 @09:28AM (#6268570)
Is it easy to add a roundabout yet? I've wanted to make a whole bunch of improvements to OSM and keep getting stuck when trying to turn an intersection into a roundabout.
Re:OpenStreetMap gets new, easier to use in-browser editor by rmc on Saturday August 24, 2013 @12:11PM (#6268999)
You need to draw a circle and mark it one way, and tag it junction=roundabout
Re:OpenStreetMap gets new, easier to use in-browser editor by sjwright on Tuesday August 27, 2013 @03:01AM (#6281917)
And then do I have to bisect the existing roads and rejoin them to the circle somehow?

Why can't I just change an intersection into a roundabout, perhaps with a slider to select the diameter?

Surely from a metadata point of view it makes more sense to store the describable facts rather than a bunch of road segments that emulate a circle.

Re:OpenStreetMap gets new, easier to use in-browser editor by ris on Saturday August 24, 2013 @02:25PM (#6269349)
You don't need to mark it oneway: that's implicit in the junction=roundabout tag.