NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello everyone.

I am interested in downloading all the toll_booth nodes from Italy regions.

On Python Jupyter, I am using the osmnx library. Specifically, I am using

tags = {'barrier': 'toll_booth'}
toll = ox.geometries_from_polygon(italy_prj.geometry[reg_index], tags)

where italy_prj.geometry[reg_index] is the shapefile of the region of which I am downloading data.

Now, I added myself the tag barrier:toll_booth to the node 8933486721 (Name: Casello di Ceparana), because it was not present in the map.

If I use the before mentioned code, the node cannot be found among the barrier:tool_booth tagged elements. However, if i use

tags = {'name': 'Casello di Ceparana'}

then the node is found, with barrier:tool_booth among its tags!

Can someone tell me what am I doing wrong?

Thanks a lot,

Luca

asked 22 May '23, 10:47

LucaMinzoni's gravatar image

LucaMinzoni
11112
accept rate: 0%

1

On IRC, someone with the exact same problem said "If i download the node using its name, i can see the tag barrier:toll_booth as well! That's why i don't understand why that tag is not working to download the node...."

I said there "sounds like an issue with osmnx..."

(22 May '23, 11:12) SomeoneElse ♦

Did you check whether the shapefile actually contains your changes, i.e. is it recent enough? If so, please create a bug report for osmnx as suggested by @SomeoneElse.

(22 May '23, 11:33) scai ♦

@SomeoneElse it was me indeed ahah @scai the shapefiles are the official ones from Italian government, and using the same files I can retrieve the point by using it's name, and I fail to do that using the barrier tag

(22 May '23, 11:37) LucaMinzoni

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:

×1

question asked: 22 May '23, 10:47

question was seen: 721 times

last updated: 22 May '23, 11:37

Related questions

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum