polygon-city / polygon-city-cli

Converts a CityGML file into GeoJSON footprint indexes and 3D models (obj & collada)
6 stars 1 forks source link

Use Mapzen Who's On First for unique location lookup (and more?) #10

Closed robhawkes closed 8 years ago

robhawkes commented 8 years ago

As we've spoken about before, it makes sense to look into how Who's On First could be used with the Polygon City CLI, for example:

robhawkes commented 8 years ago

An initial implementation of this has been completed and has been pushed to the repo and NPM (0.1.13). It queries a Who's On First endpoint provided via the -w option in the CLI (without a trailing slash) and add the WoF results to the GeoJSON.

For example:

polygon-city -e 31255 -m "elevation-key" -w "http://wof.somedomain.com" -o /path/to/output/dir/ /path/to/input.gml

It's really slow at the moment due to rate limiting on the private API, so I've set the CLI to only process one WoF request at a time. We can increase this if and when the rate limits change.

meetar commented 8 years ago

Marking as complete barring a decision about unique building ids