osmlab / nycbikelanes

NYC bike lane cleanup and update
7 stars 3 forks source link

MapRoulette challenge: bike lanes in city data but not OSM #1

Open ebrelsford opened 9 years ago

ebrelsford commented 9 years ago

This seems like the easiest MapRoulette challenge to start with. Each task would be a line segment that is in the city's data but not OSM. Mappers will have to decide whether to include the line and how it should be tagged.

mvexel commented 9 years ago

Let me know if / how I can help with the MapRoulette integration!

On Wed Nov 19 2014 at 9:30:56 PM Eric Brelsford notifications@github.com wrote:

This seems like the easiest MapRoulette challenge to start with. Each task would be a line segment that is in the city's data but not OSM. Mappers will have to decide whether to include the line and how it should be tagged.

— Reply to this email directly or view it on GitHub https://github.com/osmlab/nycbikelanes/issues/1.

ebrelsford commented 9 years ago

There are some handy slides and scripts that should help with this.

mvexel commented 9 years ago

I can help out if needed! & happy to do so.

Martijn van Exel

On Sat, Feb 21, 2015 at 11:26 AM -0800, "Eric Brelsford" notifications@github.com wrote:

There are some handy slides and scripts that should help with this.

— Reply to this email directly or view it on GitHub.

ebrelsford commented 9 years ago

Thanks Martijn!

ebrelsford commented 9 years ago

@mvexel We're getting very close to posting our first challenge using maproulette-loader! One question that has come up (and apologies if this is already documented somewhere) is the location field on tasks. Is this automatically set using the populate_task_location command on the server, or is there something that should be done via the API to make this happen?

ebrelsford commented 9 years ago

As of 9e2fe7757 we are pretty set for getting the data into MapRoulette!

@clhenrick We should work together on making "instruction" strings for each feature that are really descriptive. Instructions can be specified for each feature and go here in MapRoulette:

selection_004

We just have to expand this function a bit and probably use some of Colin's advice in #2.

ebrelsford commented 9 years ago

Also, @mvexel, we're trying to upload tasks using maproulette-loader to dev.maproulette.org. This works fine locally, but when we try on dev we always get 502s (Bad Gateway). We can POST individual tasks fine to dev, but bulk task uploads always give a 502. We've tried with relatively small files, so we're pretty sure it's not a filesize thing. Do we need to tunnel into dev, or is there something else going on?

ebrelsford commented 9 years ago

Any thoughts on the above comments, @mvexel @emacsen ?

mvexel commented 9 years ago

@ebrelsford Thanks for reminding me.

mvexel commented 9 years ago

Your approach is correct, so I need to see what's going on. Can you send me a test file so I can mess around with it a little bit?

mvexel commented 9 years ago

Excited that you're doing a MapRoulette challenge!

ebrelsford commented 9 years ago

Thanks @mvexel we're excited too! Here's a quick two-liner with an example request that gets a 502 when "bulk" POSTing a single task. I can send you the whole file if you're interested.

REQUEST='[{"instruction": "Add this class III bike lane", "geometries": {"type": "FeatureCollection", "features": [{"geometry": {"type": "LineString", "coordinates": [[-73.89539380373947, 40.70313021420821], [-73.89520165688896, 40.70259268566495]]}, "type": "Feature", "id": 49019, "properties": {"segmentid": 49019, "facilitycl": "III", "allclasses": "III"}}]},"identifier": "nycbikelanes-49019-test2"}]'
curl -X POST -H "Content-Type: application/json" -d "$REQUEST" http://dev.maproulette.org/api/admin/challenge/nycbikelanes/tasks

Thanks so much for looking into it! Can't wait to get it on dev so we can get a better idea of what to put in the instructions for each task.

ebrelsford commented 9 years ago

@mvexel any thoughts? If you're not going to have a chance to look at this I might shift gears to posting the tasks one-by-one since it looks like that works.