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
{ | |
"version": 0.6, | |
"generator": "Overpass API", | |
"osm3s": { | |
"timestamp_osm_base": "2016-10-12T08:24:02Z", | |
"timestamp_areas_base": "2016-10-12T06:08:02Z", | |
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL." | |
}, | |
"elements": [ |
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
package de.appwerft.overpass; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
public class PostProcess { | |
private JSONObject foo; | |
private JSONArray elements; |
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
package de.appwerft.overpass; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
public class PostProcess { | |
private JSONObject foo; | |
private JSONArray elements; |
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
Ti.Media.createSound({ | |
url : "Silent.wav", | |
looping : true | |
}).play(); | |
Ti.Geolocation.trackSignificantLocationChange=true; | |
Ti.Geolocation.pauseLocationUpdateAutomatically = true; | |
Ti.Geolocation.addEventListener("location", function() { | |
}); | |
var i = 0; |
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
function bgServiceStart() { | |
console.log("bgServiceStart"); | |
Ti.Geolocation.allowsBackgroundLocationUpdates = true; | |
Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_LOW; | |
Ti.Geolocation.trackSignificantLocationChange = true; | |
var service = Ti.App.iOS.registerBackgroundService({ | |
url : 'bg-service.js' | |
}); | |
console.log("bgService registered"); |
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
function getCoords() { | |
Ti.Geolocation.getCurrentPosition(function(e) { | |
Ti.API.warn(e); | |
}); | |
} | |
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
var TiBeacons = require('org.beuckman.tibeacons'); | |
var UUID = "636f3f8f-6491-4bee-95f7-d8cc64a863b5"; | |
var LCAT = "🙃"; | |
module.exports = function(label) { | |
TiBeacons.enableAutoRanging(); | |
function enterRegion(e) { | |
label.setText(e); | |
} | |
function exitRegion(e) { | |
label.setText(e); |
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
/* | |
* L.TileLayer is used for standard xyz-numbered tile layers. | |
*/ | |
L.Google = L.Class.extend({ | |
includes: L.Mixin.Events, | |
options: { | |
minZoom: 0, | |
maxZoom: 16, |
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
var activity = $.getActivity(); | |
if (activity) { | |
activity.onCreateOptionsMenu = function(e) { | |
activity.actionBar.displayHomeAsUp = true; | |
e.menu.clear(); | |
e.menu | |
.add( | |
{ | |
title : 'Weg damit!', | |
showAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS, |
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
module.exports = function(options, callbacks) { | |
var start = new Date().getTime(); | |
if (!TouchId.isSupported()) { | |
alert("This device doesn't support fingerprint sensor"); | |
return; | |
} | |
var dialog = null; | |
if (Ti.Platform.osname == "android") { | |
var timer = 0; | |
var cronHandler = function() { |