Skip to content

Instantly share code, notes, and snippets.

@maks
Created July 30, 2017 00:31
Show Gist options
  • Select an option

  • Save maks/e6bc3d98ed624966f7b197908486c2d1 to your computer and use it in GitHub Desktop.

Select an option

Save maks/e6bc3d98ed624966f7b197908486c2d1 to your computer and use it in GitHub Desktop.
jasonette map example
actions:
=========
"fetch" : {
"type" : "$require",
"options" : {
"stops" : "http://10.0.2.2:8080/fake_stops.json"
},
"success" : {
"type" : "$global.set",
"options" : {
"pins" : "{{ $jason.stops }}"
},
"success" : {
"type": "$render"
}
}
},
eg. data:
=========
[
{
"coord" : "-37.907404, 145.069975",
"title" : "Oasis Bakery",
"description" : "Awesome Middle Eastern food, sweets, coffees and groceries."
},
{
"coord" : "-37.907274, 145.068395",
"title" : "Some other place",
"description" : "Bad coffee, no cakes."
},
{
"coord" : "-37.906622, 145.070755",
"title" : "Another place",
"description" : "Bread and water only."
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment