danvk / comparea

Compare geographic features
13 stars 4 forks source link

Add support for OSM shapes #10

Closed danvk closed 9 years ago

danvk commented 9 years ago

OSM is a great source for smaller-scale polygons, e.g. Golden Gate Park and Central Park. It would be great if Comparea could support these shapes, too.

Possible ways to support:

It would be great to get city outlines, too, but it's not clear to me if these are simple ways in OSM.

danvk commented 9 years ago

This command will fetch all the lat/lon pairs for an OSM way:

curl 'http://overpass.osm.rambler.ru/cgi/interpreter?data=%5Bout:json%5D;(way(158602261);%3E;);out;'
danvk commented 9 years ago

I implemented this by importing a few select ways and relations from OSM and removing water. The criteria were: