blob: 7bd808a08ae2708be21faffc13b2b0ac41c7175f (
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, location: .address}
- }]}]'
|