pdok-geoencoder
v0.1.1
Published
Minify (compress) a GeoJSON by replacing the attribute keys with a shorter representation (typically, its first letter). You can also reduce the number of decimals for coordinates, and whitelist and blacklist certain properties.
Downloads
7
Maintainers
Readme
pdok-geoencoder
Resolve zip code and house number to a latitude and longitude, and add them to the data. Works only in The Netherlands.
How to use
PDOK-GEOENCODER
Converts a CSV to a GeoJSON (default), or creates a new CSV with additional
colums for the latitude and longitude.
As it uses the PDOK API, it will only work for The Netherlands.
Options
-f, --file String Filename to parse
-z, --zip String Name of the input column that represents the zip code. By default, tries to
look for "zip", "pc", "pc6" or "postal".
-n, --housenumber String Name of the input column that represents the house number. By default,
"number", "house_number", "huisnummer" or "hn".
-y, --latitude Number Name of the output column for the latitude. By default, "lat".
-x, --longitude Number Name of the output column for the longitude. By default, "lon".
-c, --toCSV Boolean Converts the input CSV to a new CSV.
-o, --out String Optional output filename.
Examples
- Convert a CSV to a GeoJSON $ pdok-geoencoder input.csv
- Convert a CSV to a GeoJSON specyfing column names $ pdok-geoencoder -z pc -n hn input.csv
- Convert a CSV to a new CSV specifying column names $ pdok-geoencoder -c -x longitude -y latitude input.csv