This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

how to extract all address from PBF in exactly one city?

1

I have PBF file from geofabrik with my country with many cities Now I want extract address names with building numbers and coordinates for autocompete service in one city I newbie in OSM and I have to learn many things ))

asked 23 Aug '18, 09:10

Stremovskyy's gravatar image

Stremovskyy
36225
accept rate: 0%


One Answer:

3

The basic outline is to use a tool like osmium to slice out the city and then to dump out the objects you are interested in.

The documentation has sections called "Creating geographic extracts" and "Filtering by tags" so I won't say more here:

https://osmcode.org/osmium-tool/manual.html

There's a variety of similar tools.

answered 23 Aug '18, 12:04

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

edited 23 Aug '18, 15:27

Source code available on GitHub .