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

OSM loader - POIs that are ways in OSM #173

Open
JosephineRoper opened this issue Nov 7, 2021 · 1 comment
Open

OSM loader - POIs that are ways in OSM #173

JosephineRoper opened this issue Nov 7, 2021 · 1 comment

Comments

@JosephineRoper
Copy link

In my city there are many points of interest that are not represented as nodes in OpenStreetMap, but rather ways around a building area. I usually deal with this by taking the centroids of relevant closed ways and treating them as nodes.

I wrote a simple addition to the OSM loader tonight that uses a "way_query" to download ways using the Overpass output option 'center': "adds the center of the object's boundingbox to the output, not guaranteed to be on the object's area." I think this would work fine for the cases I am looking at. It might introduce inaccuracy for large or oddly shaped POIs (if someone requested parks, for example).

Is this something wanted in pandana? Should I raise a PR?

@Rikuoja
Copy link
Contributor

Rikuoja commented Nov 8, 2021

This sounds like a useful feature in my opinion too, we have a similar need for considering also polygon POIs.

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

No branches or pull requests

2 participants