This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |