https://github.com/trescube/openaddresses-data-cache
https://github.com/trescube/openaddresses-data-cache
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/trescube/openaddresses-data-cache
- Owner: trescube
- Created: 2024-02-14T18:14:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-14T18:56:32.000Z (over 1 year ago)
- Last Synced: 2025-01-30T01:14:12.786Z (4 months ago)
- Language: JSONiq
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Country-wide Netherlands
Using [pyesridump](https://github.com/openaddresses/pyesridump), run:
```bash
esri2geojson https://basisregistraties.arcgisonline.nl/arcgis/rest/services/BAG/BAGv3/MapServer/0 netherlands_addresses.geojson
```This source is ~9.7m records, so if it times out, pick back up where it left off by finding the last object returned:
```bash
tail -1 netherlands_addresses.geojson | jq '.properties.objectid'
```Then run `esri2geojson` to pick back up where it left off:
```bash
esri2geojson -p "WHERE=objectid > <# from above>" https://basisregistraties.arcgisonline.nl/arcgis/rest/services/BAG/BAGv3/MapServer/0 netherlands_addresses.geojson.2
```If multiple attempts are needed to download all the data, then combine them into a single GeoJSON `FeatureCollection`.
I then removed the properties not in the `addresses` layer conform by running this `jq` command:
```bash
jq -c -f netherlands.jq netherlands_addresses.geojson > netherlands_addresses.geojson.final
```Then zipped with:
```bash
zip nl-countrywide.addresses.geojson.zip netherlands_addresses.geojson.final
```