Skip to content

Commit

Permalink
Add countryCode property to WOF configuration
Browse files Browse the repository at this point in the history
Now that the Who's on First downloader defaults to using SQLite
downloads and supports country-specific bundles thanks to
pelias/whosonfirst#487, we can start using that
new functionality.

This PR sets the `imports.whosonfirst.countryCode` property
appropriately across all our current projects.

This should not only help make all imports quite a bit faster, but it
will require much less disk space for everyone.

Since we're now sponsoring the Who's on First downloads here at Geocode
Earth, the bandwidth savings also make us happy :)

Along the way I made a few minor changes to remove some deprecated
config options like `importVenues` and `sqlite`.
  • Loading branch information
orangejulius committed Apr 23, 2020
1 parent 7164763 commit c85bf72
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion projects/australia/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": false,
"countryCode": "AU",
"importPostalcodes": true,
"importPlace": [
"85632793"
Expand Down
2 changes: 1 addition & 1 deletion projects/belgium/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": false,
"countryCode": "BE",
"importPostalcodes": true,
"importPlace": [ "85632997" ]
}
Expand Down
2 changes: 1 addition & 1 deletion projects/brazil/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": true,
"countryCode": "BR",
"importPostalcodes": true,
"importPlace": [
"85633009"
Expand Down
2 changes: 1 addition & 1 deletion projects/france/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true,
"countryCode": "FR",
"importPlace": [ "136253037", "85633147" ]
}
}
Expand Down
2 changes: 1 addition & 1 deletion projects/jamaica/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": true,
"countryCode": "JM",
"importPostalcodes": true,
"importPlace": [
"85632215"
Expand Down
3 changes: 2 additions & 1 deletion projects/los-angeles-metro/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"geonames": {
"datapath": "/data/geonames",
"countryCode": "ALL"
"countryCode": "US"
},
"openstreetmap": {
"download": [
Expand All @@ -67,6 +67,7 @@
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true,
"countryCode": "US",
"importPlace": [
"102086957"
]
Expand Down
4 changes: 2 additions & 2 deletions projects/netherlands/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": false,
"countryCode": "NL",
"importPostalcodes": true,
"importPlace": [ "85633337" ]
}
}
}
}
1 change: 1 addition & 0 deletions projects/north-america/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,7 @@
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importPostalcodes": true,
"countryCode": ["CA", "MX", "US"],
"importPlace": "102191575"
},
"interpolation": {
Expand Down
1 change: 0 additions & 1 deletion projects/planet/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true
},
"interpolation": {
Expand Down
1 change: 1 addition & 0 deletions projects/portland-metro/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true,
"countryCode": "US",
"importPlace": [
"85688513",
"85688623"
Expand Down
4 changes: 2 additions & 2 deletions projects/san-jose-metro/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"geonames": {
"datapath": "/data/geonames",
"countryCode": "ALL"
"countryCode": "US"
},
"openstreetmap": {
"download": [
Expand Down Expand Up @@ -71,8 +71,8 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true,
"countryCode": "US",
"importPlace": [
"1360665447"
]
Expand Down
3 changes: 1 addition & 2 deletions projects/singapore/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@
"files": [ "extract.0sv" ]
},
"whosonfirst": {
"sqlite": true,
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true,
"countryCode": "SG",
"importPlace": [
"85632605"
]
Expand Down
2 changes: 1 addition & 1 deletion projects/south-africa/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true,
"countryCode": "ZA",
"importPlace": [
"85633813"
]
Expand Down
2 changes: 1 addition & 1 deletion projects/south-america/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": true,
"importPostalcodes": true,
"countryCode": [ "AR", "BO", "BR", "CL", "GF", "EC", "GY", "PY", "PE", "SR", "UY", "VE" ],
"importPlace": [
"102191577"
]
Expand Down

0 comments on commit c85bf72

Please sign in to comment.