add example of zipcode statistics - osm-zipcodes - Extract (dutch) addresses from OpenStreetMap OSM XML
(HTM) git clone git://git.codemadness.org/osm-zipcodes
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3f0c088bd74d19d461502b70612b68877dc66185
(DIR) parent 2556bdd353403cafef058932f9e93c12bf9d4d34
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 22 May 2018 19:44:37 +0200
add example of zipcode statistics
Diffstat:
M README | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/README b/README
@@ -17,6 +17,36 @@ How to use
5. Unique entries, ignore node ID, latitude, longitude, see the file sort.sh
+Examples
+--------
+
+Count of addresses of numeric part of zipcode:
+
+ awk '{
+ a[substr($4, 0, 4)]++;
+ }
+ END {
+ for (k in a) {
+ print k "\t" a[k];
+ }
+ }' addr_sort_uniq.csv
+
+
+Count of addresses of street + city combination:
+
+ awk '{
+ a[$5 "|" $7]++;
+ }
+ END {
+ for (k in a) {
+ print k "\t" a[k];
+ }
+ }' addr_sort_uniq.csv
+
+
+Contributing
+------------
+
If you think this program is useful, please consider donating money or
other means of contributing to the OpenStreetMap project: