aboutsummaryrefslogtreecommitdiff
path: root/resources/data.js
diff options
context:
space:
mode:
authorHarry Cutts <eternal.linux@gmail.com>2013-02-02 17:36:30 +0000
committerHarry Cutts <eternal.linux@gmail.com>2013-02-02 17:36:30 +0000
commitb4ee6a2fc76e0ad29e61a5c8646599ca9547d400 (patch)
treeb9c2391b0b705b0bbc5c4c86ded5946dc0251a32 /resources/data.js
parentfd37256e27c22d1bfa551895d2f5d347b14846bc (diff)
downloadhealth-map-b4ee6a2fc76e0ad29e61a5c8646599ca9547d400.tar
health-map-b4ee6a2fc76e0ad29e61a5c8646599ca9547d400.tar.gz
Begin work on data analysis
Diffstat (limited to 'resources/data.js')
-rw-r--r--resources/data.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/data.js b/resources/data.js
new file mode 100644
index 0000000..85a77c2
--- /dev/null
+++ b/resources/data.js
@@ -0,0 +1,9 @@
+function getVillages(area, zoom) {
+ var poly = "12.3 -12.3 12.4 -12.3 12.48 -12.25 12.35 -12.19";
+ var query = 'data=[out:json];(node(poly:"' + poly + '");<;);out;';
+
+ converter = new op2geojson();
+ converter.fetch("http://overpass-api.de/api/interpreter", query, zoom, function(data) {
+
+ });
+}