Hello,

I'm using the pyrosm package in python and I read with it a bdf file for Bristol city. I want to filter and query all the shops and couple of amenities. However, every time I filter only for all shops I've 3,367 records. When I filter for all shops and some amenities, instead of having more records I have less (2,059). It seems in the data that I miss some of the shops. Below my code.

from pyrosm import OSM
osm_path ='bristol-latest.osm.pbf' # downloaded from geofabrik
osm = OSM(osm_path)
custom_filter = {"shop":True, "amenity":["bar", "cafe", "fast_food", "ice_cream", "pub", "cinema"]}
pois = osm.get_pois(custom_filter=custom_filter)

Any idea what's wrong please?

Thank you.

asked 19 Feb, 15:21

Katerina_Kourou's gravatar image

Katerina_Kourou
1115
accept rate: 0%

edited 19 Feb, 15:57

MarcoR's gravatar image

MarcoR
4873717

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×634
×67
×53
×2

question asked: 19 Feb, 15:21

question was seen: 167 times

last updated: 19 Feb, 15:57

powered by OSQA