blob: a9fac05752a6f9d9086bc2fe81c030a6dea9da2d (
plain)
- #!/bin/sh
- jq "$@" '[{type: "FeatureCollection", features: [.data.pois[] | {
- type: "Feature",
- geometry: {type: "Point", coordinates: [.point.lng, .point.lat]},
- properties: {type: (
- if .iconid == "green-dot" then "center"
- elif .iconid == "green" then "center-begin"
- elif .iconid == "yellow-dot" then "member"
- elif .iconid == "pink-dot" then "diploma"
- elif .iconid == "ltblue-dot" then "diploma-aspiring"
- else null end
- ), title: (.title | @html), location: (.address | @html)}
- }]}]'
|