diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-04 17:07:24 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-09 22:48:55 +0200 |
| commit | be7ec90b500ac68e053f2b58feb085247ef95817 (patch) | |
| tree | aef7732ce0bbe505c6bc8486e1d0da2c06990e6a /README.adoc | |
| parent | a4ed99a370930b1a0c0f065906ed99c15a015fd4 (diff) | |
| download | housing-be7ec90b500ac68e053f2b58feb085247ef95817.tar.zst | |
Refactor application to use couchbase
Diffstat (limited to 'README.adoc')
| -rw-r--r-- | README.adoc | 58 |
1 files changed, 1 insertions, 57 deletions
diff --git a/README.adoc b/README.adoc index 3893c81..d84decf 100644 --- a/README.adoc +++ b/README.adoc @@ -82,60 +82,4 @@ https://kartta.hel.fi/avoindata/dokumentit/Aineistolista_wfs_avoindata.html WFS Capabilities can be found from: https://kartta.hel.fi/ws/geoserver/avoindata/wfs?version=2.0.0&request=GetCapabilities -The data can then be downloaded with CURL. Examples below: - -=== Roads -[source,bash] ----- -# First download the full dataset -curl -X GET \ - "https://kartta.hel.fi/ws/geoserver/avoindata/wfs?\ -service=WFS&\ -version=2.0.0&\ -request=GetFeature&\ -typeNames=avoindata:Liikennevaylat&\ -outputFormat=application/json" \ - -o liikennevaylat_full.geojson - -# Then filter with jq -jq '{ - type: .type, - features: [.features[] | select(.properties.alatyyppi == "Moottoriväylä")], - crs: .crs -}' liikennevaylat_full.geojson > moottorivaylat.geojson ----- - -[source,bash] ----- -jq '[.features[].properties.paatyyppi | select(. != null)] | unique' liikennevaylat_full.geojson ----- - -=== Train stations -[source,bash] ----- -curl -X GET \ - "https://kartta.hel.fi/ws/geoserver/avoindata/wfs?\ -service=WFS&\ -version=2.0.0&\ -request=GetFeature&\ -typeNames=avoindata:Seutukartta_liikenne_juna_asema&\ -outputFormat=application/json&\ -srsName=EPSG:4326" \ - -o juna_asemat.geojson ----- - - -=== Railway lines - -[source,bash] ----- -curl -X GET \ - "https://kartta.hel.fi/ws/geoserver/avoindata/wfs?\ -service=WFS&\ -version=2.0.0&\ -request=GetFeature&\ -typeNames=avoindata:Seutukartta_liikenne_juna_rata&\ -outputFormat=application/json&\ -srsName=EPSG:4326" \ - -o juna_radat.geojson ----- +The node.js script `download.js` downloads the material. |
