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

Hi! I'm need to get all street name, house number and city. I'm using osmconvert with the next query: osmconvert chile-latest.osm --csv="addr:street addr:housenumber addr:city" -o=1.csv

The problem is I can't get every street and house number, for example, if I get all lat and long, I can get 7.000.000 records, but when I use below query, I can get just 5.000 records. If i look at the map, show a lot more than what I can get. How I can get all the street name, house number and city? Thanks!

asked 01 Dec '14, 18:33

patriciodilet's gravatar image

patriciodilet
1111
accept rate: 0%

1

do you have the same "error if you try your query on another raw OSM file from another area in the world? for example Luxembourg or similar?

Maybe in the result file you only have elements that have all three tags with any value, any all others are skipped?

(02 Dec '14, 17:20) stephan75

Maybe you want to run osmconvert with the additional parameter --all-to-nodes

(04 Dec '14, 22:13) mmd

"if I get all lat and long, I can get 7.000.000 records"

That sounds a lot - I suspect that this includes every node in Chile, not just those places that have addresses (every park bench, every tree, every node of every way that makes up every road, etc.)

(04 Dec '14, 22:59) SomeoneElse ♦

How you did it in overpass-turbo?

permanent link

answered 16 Jul '19, 14:54

Sterben_123's gravatar image

Sterben_123
1
accept rate: 0%

@Sterben_123: Please create a new question for your issue.

(16 Jul '19, 16:45) TZorn

Using your slightly modified command (with the file being from December 5th)

osmconvert chile-latest.osm.pbf  --csv="addr:street addr:housenumber addr:city" -o=1.csv

I get a file with 235.934 lines which each contains a more or less address (sometimes only a street name or a housenumber)

In short: works for me. (at least it seems so)

permanent link

answered 05 Dec '14, 14:51

malenki's gravatar image

malenki
4.7k24683
accept rate: 6%

Your answer
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:

×47

question asked: 01 Dec '14, 18:33

question was seen: 5,481 times

last updated: 16 Jul '19, 16:45

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