summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-01 12:39:30 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-01 12:39:30 +0100
commit6dff0b435a059f0c66b842673677c13bfd95f7c4 (patch)
treef0179abf954788160ffeffff134c6307ff0f00c3 /objects.js
parent6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca (diff)
downloadsnap-yow-6dff0b435a059f0c66b842673677c13bfd95f7c4.tar.gz
snap-yow-6dff0b435a059f0c66b842673677c13bfd95f7c4.zip
add overpass API block
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index 3bdda48..0f77351 100644
--- a/objects.js
+++ b/objects.js
@@ -219,12 +219,16 @@ SpriteMorph.prototype.initBlocks = function () {
spec: 'lat, lon of %s',
defaults: ['Tiergarten Berlin']
},
- // TODO: move these to a 'map' category or so
reportGeocode: {
type: 'reporter',
category: 'motion',
spec: 'address at lon: %n lat: %n'
},
+ overpassQuerySucceeds: {
+ type: 'predicate',
+ category: 'motion',
+ spec: 'overpass query %s returns elements'
+ },
focusMap: {
type: 'command',
category: 'motion',
@@ -1778,9 +1782,14 @@ SpriteMorph.prototype.blockTemplates = function (category) {
if (cat === 'motion') {
blocks.push(block('userLon'));
blocks.push(block('userLat'));
+ blocks.push('-');
+ blocks.push(block('overpassQuerySucceeds'));
+ blocks.push('-');
blocks.push(block('reportGeocode'));
blocks.push(block('findLocation'));
+ blocks.push('-');
blocks.push(block('focusMap'));
+ blocks.push('-');
//if (this.world().isDevMode) {
blocks.push(block('addMarker'));