Skip to content

Instantly share code, notes, and snippets.

View frangz's full-sized avatar

Francisco González frangz

View GitHub Profile
### Keybase proof
I hereby claim:
* I am frangz on github.
* I am frangz (https://keybase.io/frangz) on keybase.
* I have a public key ASBCIpFHHWFCp8LYNw_1RI8K-tkBqV9PqGK0QR6gAMrZXgo
To claim this, I am signing this object:
@frangz
frangz / mondo.geojson.sh
Last active May 25, 2016 23:12
Your Mondo transactions as GeoJSON
echo "{ \"type\": \"FeatureCollection\", \"features\": $(\
curl 'https://api.getmondo.co.uk/transactions?expand\[\]=merchant&account_id=YOUR_ACCOUNT_ID' -H 'authorization: Bearer YOUR_AUTH_TOKEN' -s |\
jq '[.transactions[] | select(.merchant != null) | select(.merchant.address != null) | select(.merchant.address.latitude != null) | { "type": "Feature", "geometry": {"type": "Point", "coordinates": [.merchant.address.longitude, .merchant.address.latitude]}, "properties": {"amount": .amount, "label":.merchant.name, "created":.created} }]' \
)}" > data.json