Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landfill, mine/quarry map data via OpenStreetMap #50

Closed
jywarren opened this issue Sep 4, 2018 · 2 comments
Closed

Landfill, mine/quarry map data via OpenStreetMap #50

jywarren opened this issue Sep 4, 2018 · 2 comments
Milestone

Comments

@jywarren
Copy link
Member

jywarren commented Sep 4, 2018

I found that there is a landuse=landfill tag, from https://wiki.openstreetmap.org/wiki/Map_Features

Using that, I made a query on this page: http://harrywood.co.uk/maps/uixapi/xapi.html

http://www.overpass-api.de/api/xapi?*[landuse=landfill][bbox=-118.66693,34.41951,-118.57801,34.46906]

Note this can only be used for very zoomed-in areas, so not for a view of a whole continent or country.

It shows this output in XML: https://gist.github.com/jywarren/5c0251c0ea3e4c38933bbf0a0d12fc7f

Including:

    <tag k="name" v="Chiquita Canyon Landfill"/>
    <tag k="operator" v="Waste Connections Inc"/>

Looking for how this could be gotten in JSON; docs here: http://www.overpass-api.de/output_formats.html#json

And it works! See:

https://www.overpass-api.de/api/interpreter?data=[out:json];way[landuse=landfill](34.41951,-118.66693,34.46906,-118.57801);out%20meta;

It's a polygon, the outline of the landfill.

@sagarpreet-chadha, could we use this as an additional layer?

@jywarren
Copy link
Member Author

For mines/quarries: http://www.overpass-api.de/api/xapi?*[landuse=quarry][bbox=-91,44,-90,45]

That helped me find one here: https://www.openstreetmap.org/#map=16/44.6346/-90.1409

@jywarren jywarren changed the title Landfill map data via OpenStreetMap Landfill, mine/quarry map data via OpenStreetMap Sep 11, 2018
@jywarren jywarren added this to the UI project milestone Nov 14, 2018
@sagarpreet-chadha
Copy link
Collaborator

Solved in #94 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants