You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2019-01-24 13:12:48
- sabyasachi_gupta
- Member
- Registered: 2019-01-24
- Posts: 4
How to extract OSM(PBF) data for the entire country Of USA
I have the following project requirements :
Create a database of zip codes, latitude & longitude for the country of unites states.
I wanted to get this data from OSM(PBF Format ).
My concerns/queries:
When I used https://extract.bbbike.org/ to extract US data, I got an error message that “Area too large” , when I selected the US country in the map.
When I used http://download.geofabrik.de to extract data, I did not get OSM files for the entire country of the United States of America. However, I got data for subregions such as Central America,North America , South America.
I wanted to extract OSM (PBF) data for the entire country of United States which contains the following data :
Zip code
Latitude
Longitude
Street address
Can anyone help me with this?
Offline
#2 2019-01-24 14:26:23
- GerdP
- Member
- Registered: 2015-12-18
- Posts: 1,972
Re: How to extract OSM(PBF) data for the entire country Of USA
What is your problem here? Do you have a working process but not the wanted input file? In that case you might want to download planet.osm.pbf, see https://planet.osm.org/pbf/
For me it sounds more like you have no idea what information you have to extract. In that case you should be more specific what you want to do with the data.
Offline
#3 2019-01-24 15:17:38
- SomeoneElse
- Member
- Registered: 2010-10-13
- Posts: 1,601
Re: How to extract OSM(PBF) data for the entire country Of USA
Crosspost of https://help.openstreetmap.org/question … of-america ?
Offline
#4 2019-01-24 15:31:39
- sabyasachi_gupta
- Member
- Registered: 2019-01-24
- Posts: 4
Re: How to extract OSM(PBF) data for the entire country Of USA
What is your problem here? Do you have a working process but not the wanted input file? In that case you might want to download planet.osm.pbf, see https://planet.osm.org/pbf/
For me it sounds more like you have no idea what information you have to extract. In that case you should be more specific what you want to do with the data.
I wanted to extract the OSM (PBF ) file for only the country of united states of America .
I wanted to know if this OSM file would contain all the zipcodes in america , their corresponding latitude and longitude information.
It would take a long time to download the entire planet from https://planet.osm.org/pbf/.
Can you help me with this .
Offline
#5 2019-01-24 15:47:40
- GerdP
- Member
- Registered: 2015-12-18
- Posts: 1,972
Re: How to extract OSM(PBF) data for the entire country Of USA
Hmm, you can extract objects which have a zipcode but I think in the USA the zip codes are not mapped as such. In Germany you have polygons which have postal_code, so all objects inside that polygon would have the same postal_code unless they have there own tag.
Such a polygon is a list of nodes and each node has a latitude and longitude.
I think in the USA there are no such polygons, so you might want to compute them somehow. As a starter try this overpass query
http://overpass-turbo.eu/s/Fvl
Note that some areas are poorly mapped while others look quite complete.
Offline
#6 2019-01-24 15:54:58
- TZorn
- Member
- From: Leverkusen
- Registered: 2015-06-02
- Posts: 700
Re: How to extract OSM(PBF) data for the entire country Of USA
The TIGER data seem to be a more complete source of zip codes in the US. I have no idea, though, how easily they are extractable for your purposes. Nominatim (the search engine on openstreetmap.org) uses that data to supplement OSM data.
Offline
#7 2019-01-26 10:55:06
- wambacher
- Member
- From: Schlangenbad/Wambach, Germany
- Registered: 2009-12-16
- Posts: 16,769
- Website
Re: How to extract OSM(PBF) data for the entire country Of USA
It would take a long time to download the entire planet from https://planet.osm.org/pbf/.
Goto https://download.geofabrik.de/north-america.html and fetch those 6 "Special Sub Regions" listed at the bottom.
Regards
walter
Better: fetch a small area (e.g. Delaware https://download.geofabrik.de/north-ame … aware.html) for testing. Just 9.4 Mb
Last edited by wambacher (2019-01-26 10:58:34)
Offline
#8 2019-01-28 11:37:05
- sabyasachi_gupta
- Member
- Registered: 2019-01-24
- Posts: 4
Re: How to extract OSM(PBF) data for the entire country Of USA
sabyasachi_gupta wrote:It would take a long time to download the entire planet from https://planet.osm.org/pbf/.
Goto https://download.geofabrik.de/north-america.html and fetch those 6 "Special Sub Regions" listed at the bottom.
Regards
walterBetter: fetch a small area (e.g. Delaware https://download.geofabrik.de/north-ame … aware.html) for testing. Just 9.4 Mb
Thanks Walter ..Will download the same.
Offline