UDST / pandana

Pandas Network Analysis by UrbanSim: fast accessibility metrics and shortest paths, using contraction hierarchies :world_map:
http://udst.github.io/pandana
GNU Affero General Public License v3.0
385 stars 84 forks source link

[Question] How to get different Key|Value combinations in osm.node_query #156

Open davidsvale opened 3 years ago

davidsvale commented 3 years ago

First of all, thanks for the great job with Pandana!

I am trying to get destinations from a group of different key|value combinations to measure accessibility. For instance:

tag1 = '"amenity"~"animal_boarding|animal_shelter|archive"'
tag2 = '"shop"~"agrarian|alcohol|anime|antiques"'

If I use one of them individually in osm.node_query I get good results, but I was wondering if it is possible (and how to do it) to get both at the same time, i.e. all POIS that match any of the two conditions (tag1 OR tag2). I have try to combine them in several different ways, but couldn't find the right way to do it.

Thanks