})(this);
!function(){
- var d3 = {version: "3.4.6"}; // semver
+ var d3 = {version: "3.5.5"}; // semver
d3.ascending = d3_ascending;
function d3_ascending(a, b) {
a,
b;
if (arguments.length === 1) {
- while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined;
+ while (++i < n) if ((b = array[i]) != null && b >= b) { a = b; break; }
while (++i < n) if ((b = array[i]) != null && a > b) a = b;
} else {
- while (++i < n && !((a = f.call(array, array[i], i)) != null && a <= a)) a = undefined;
+ while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) { a = b; break; }
while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b;
}
return a;
a,
b;
if (arguments.length === 1) {
- while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined;
+ while (++i < n) if ((b = array[i]) != null && b >= b) { a = b; break; }
while (++i < n) if ((b = array[i]) != null && b > a) a = b;
} else {
- while (++i < n && !((a = f.call(array, array[i], i)) != null && a <= a)) a = undefined;
+ while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) { a = b; break; }
while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b;
}
return a;
b,
c;
if (arguments.length === 1) {
- while (++i < n && !((a = c = array[i]) != null && a <= a)) a = c = undefined;
+ while (++i < n) if ((b = array[i]) != null && b >= b) { a = c = b; break; }
while (++i < n) if ((b = array[i]) != null) {
if (a > b) a = b;
if (c < b) c = b;
}
} else {
- while (++i < n && !((a = c = f.call(array, array[i], i)) != null && a <= a)) a = undefined;
+ while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) { a = c = b; break; }
while (++i < n) if ((b = f.call(array, array[i], i)) != null) {
if (a > b) a = b;
if (c < b) c = b;
}
return [a, c];
};
+function d3_number(x) {
+ return x === null ? NaN : +x;
+}
+
+function d3_numeric(x) {
+ return !isNaN(x);
+}
+
d3.sum = function(array, f) {
var s = 0,
n = array.length,
a,
i = -1;
-
if (arguments.length === 1) {
- while (++i < n) if (!isNaN(a = +array[i])) s += a;
+ while (++i < n) if (d3_numeric(a = +array[i])) s += a; // zero and null are equivalent
} else {
- while (++i < n) if (!isNaN(a = +f.call(array, array[i], i))) s += a;
+ while (++i < n) if (d3_numeric(a = +f.call(array, array[i], i))) s += a;
}
-
return s;
};
-function d3_number(x) {
- return x != null && !isNaN(x);
-}
d3.mean = function(array, f) {
var s = 0,
i = -1,
j = n;
if (arguments.length === 1) {
- while (++i < n) if (d3_number(a = array[i])) s += a; else --j;
+ while (++i < n) if (d3_numeric(a = d3_number(array[i]))) s += a; else --j;
} else {
- while (++i < n) if (d3_number(a = f.call(array, array[i], i))) s += a; else --j;
+ while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) s += a; else --j;
}
- return j ? s / j : undefined;
+ if (j) return s / j;
};
// R-7 per <http://en.wikipedia.org/wiki/Quantile>
d3.quantile = function(values, p) {
};
d3.median = function(array, f) {
- if (arguments.length > 1) array = array.map(f);
- array = array.filter(d3_number);
- return array.length ? d3.quantile(array.sort(d3_ascending), .5) : undefined;
+ var numbers = [],
+ n = array.length,
+ a,
+ i = -1;
+ if (arguments.length === 1) {
+ while (++i < n) if (d3_numeric(a = d3_number(array[i]))) numbers.push(a);
+ } else {
+ while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) numbers.push(a);
+ }
+ if (numbers.length) return d3.quantile(numbers.sort(d3_ascending), .5);
+};
+
+d3.variance = function(array, f) {
+ var n = array.length,
+ m = 0,
+ a,
+ d,
+ s = 0,
+ i = -1,
+ j = 0;
+ if (arguments.length === 1) {
+ while (++i < n) {
+ if (d3_numeric(a = d3_number(array[i]))) {
+ d = a - m;
+ m += d / ++j;
+ s += d * (a - m);
+ }
+ }
+ } else {
+ while (++i < n) {
+ if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) {
+ d = a - m;
+ m += d / ++j;
+ s += d * (a - m);
+ }
+ }
+ }
+ if (j > 1) return s / (j - 1);
+};
+
+d3.deviation = function() {
+ var v = d3.variance.apply(this, arguments);
+ return v ? Math.sqrt(v) : v;
};
function d3_bisector(compare) {
? function(d, x) { return d3_ascending(f(d), x); }
: f);
};
-d3.shuffle = function(array) {
- var m = array.length, t, i;
+d3.shuffle = function(array, i0, i1) {
+ if ((m = arguments.length) < 3) { i1 = array.length; if (m < 2) i0 = 0; }
+ var m = i1 - i0, t, i;
while (m) {
i = Math.random() * m-- | 0;
- t = array[m], array[m] = array[i], array[i] = t;
+ t = array[m + i0], array[m + i0] = array[i + i0], array[i + i0] = t;
}
return array;
};
return k;
}
function d3_class(ctor, properties) {
- try {
- for (var key in properties) {
- Object.defineProperty(ctor.prototype, key, {
- value: properties[key],
- enumerable: false
- });
- }
- } catch (e) {
- ctor.prototype = properties;
+ for (var key in properties) {
+ Object.defineProperty(ctor.prototype, key, {
+ value: properties[key],
+ enumerable: false
+ });
}
}
-d3.map = function(object) {
+d3.map = function(object, f) {
var map = new d3_Map;
- if (object instanceof d3_Map) object.forEach(function(key, value) { map.set(key, value); });
- else for (var key in object) map.set(key, object[key]);
+ if (object instanceof d3_Map) {
+ object.forEach(function(key, value) { map.set(key, value); });
+ } else if (Array.isArray(object)) {
+ var i = -1,
+ n = object.length,
+ o;
+ if (arguments.length === 1) while (++i < n) map.set(i, object[i]);
+ else while (++i < n) map.set(f.call(object, o = object[i], i), o);
+ } else {
+ for (var key in object) map.set(key, object[key]);
+ }
return map;
};
-function d3_Map() {}
+function d3_Map() {
+ this._ = Object.create(null);
+}
+
+var d3_map_proto = "__proto__",
+ d3_map_zero = "\0";
d3_class(d3_Map, {
has: d3_map_has,
get: function(key) {
- return this[d3_map_prefix + key];
+ return this._[d3_map_escape(key)];
},
set: function(key, value) {
- return this[d3_map_prefix + key] = value;
+ return this._[d3_map_escape(key)] = value;
},
remove: d3_map_remove,
keys: d3_map_keys,
values: function() {
var values = [];
- this.forEach(function(key, value) { values.push(value); });
+ for (var key in this._) values.push(this._[key]);
return values;
},
entries: function() {
var entries = [];
- this.forEach(function(key, value) { entries.push({key: key, value: value}); });
+ for (var key in this._) entries.push({key: d3_map_unescape(key), value: this._[key]});
return entries;
},
size: d3_map_size,
empty: d3_map_empty,
forEach: function(f) {
- for (var key in this) if (key.charCodeAt(0) === d3_map_prefixCode) f.call(this, key.substring(1), this[key]);
+ for (var key in this._) f.call(this, d3_map_unescape(key), this._[key]);
}
});
-var d3_map_prefix = "\0", // prevent collision with built-ins
- d3_map_prefixCode = d3_map_prefix.charCodeAt(0);
+function d3_map_escape(key) {
+ return (key += "") === d3_map_proto || key[0] === d3_map_zero ? d3_map_zero + key : key;
+}
+
+function d3_map_unescape(key) {
+ return (key += "")[0] === d3_map_zero ? key.slice(1) : key;
+}
function d3_map_has(key) {
- return d3_map_prefix + key in this;
+ return d3_map_escape(key) in this._;
}
function d3_map_remove(key) {
- key = d3_map_prefix + key;
- return key in this && delete this[key];
+ return (key = d3_map_escape(key)) in this._ && delete this._[key];
}
function d3_map_keys() {
var keys = [];
- this.forEach(function(key) { keys.push(key); });
+ for (var key in this._) keys.push(d3_map_unescape(key));
return keys;
}
function d3_map_size() {
var size = 0;
- for (var key in this) if (key.charCodeAt(0) === d3_map_prefixCode) ++size;
+ for (var key in this._) ++size;
return size;
}
function d3_map_empty() {
- for (var key in this) if (key.charCodeAt(0) === d3_map_prefixCode) return false;
+ for (var key in this._) return false;
return true;
}
return set;
};
-function d3_Set() {}
+function d3_Set() {
+ this._ = Object.create(null);
+}
d3_class(d3_Set, {
has: d3_map_has,
- add: function(value) {
- this[d3_map_prefix + value] = true;
- return value;
- },
- remove: function(value) {
- value = d3_map_prefix + value;
- return value in this && delete this[value];
+ add: function(key) {
+ this._[d3_map_escape(key += "")] = true;
+ return key;
},
+ remove: d3_map_remove,
values: d3_map_keys,
size: d3_map_size,
empty: d3_map_empty,
forEach: function(f) {
- for (var value in this) if (value.charCodeAt(0) === d3_map_prefixCode) f.call(this, value.substring(1));
+ for (var key in this._) f.call(this, d3_map_unescape(key));
}
});
d3.behavior = {};
-var d3_arraySlice = [].slice,
- d3_array = function(list) { return d3_arraySlice.call(list); }; // conversion for NodeLists
+var d3_document = this.document;
-var d3_document = document,
- d3_documentElement = d3_document.documentElement,
- d3_window = window;
-
-// Redefine d3_array if the browser doesn’t support slice-based conversion.
-try {
- d3_array(d3_documentElement.childNodes)[0].nodeType;
-} catch(e) {
- d3_array = function(list) {
- var i = list.length, array = new Array(i);
- while (i--) array[i] = list[i];
- return array;
- };
+function d3_documentElement(node) {
+ return node
+ && (node.ownerDocument // node is a Node
+ || node.document // node is a Window
+ || node).documentElement; // node is a Document
+}
+
+function d3_window(node) {
+ return node
+ && ((node.ownerDocument && node.ownerDocument.defaultView) // node is a Node
+ || (node.document && node) // node is a Window
+ || node.defaultView); // node is a Document
}
// Copies a variable number of methods from source to target.
d3.rebind = function(target, source) {
return value === source ? target : value;
};
}
-
function d3_vendorSymbol(object, name) {
if (name in object) return name;
- name = name.charAt(0).toUpperCase() + name.substring(1);
+ name = name.charAt(0).toUpperCase() + name.slice(1);
for (var i = 0, n = d3_vendorPrefixes.length; i < n; ++i) {
var prefixName = d3_vendorPrefixes[i] + name;
if (prefixName in object) return prefixName;
}
var d3_vendorPrefixes = ["webkit", "ms", "moz", "Moz", "o", "O"];
+var d3_arraySlice = [].slice,
+ d3_array = function(list) { return d3_arraySlice.call(list); }; // conversion for NodeLists
function d3_noop() {}
d3.dispatch = function() {
// Extract optional namespace, e.g., "click.foo"
if (i >= 0) {
- name = type.substring(i + 1);
- type = type.substring(0, i);
+ name = type.slice(i + 1);
+ type = type.slice(0, i);
}
if (type) return arguments.length < 2
var d3_select = function(s, n) { return n.querySelector(s); },
d3_selectAll = function(s, n) { return n.querySelectorAll(s); },
- d3_selectMatcher = d3_documentElement[d3_vendorSymbol(d3_documentElement, "matchesSelector")],
- d3_selectMatches = function(n, s) { return d3_selectMatcher.call(n, s); };
+ d3_selectMatches = function(n, s) {
+ var d3_selectMatcher = n.matches || n[d3_vendorSymbol(n, "matchesSelector")];
+ d3_selectMatches = function(n, s) {
+ return d3_selectMatcher.call(n, s);
+ };
+ return d3_selectMatches(n, s);
+ };
// Prefer Sizzle, if available.
if (typeof Sizzle === "function") {
}
d3.selection = function() {
- return d3_selectionRoot;
+ return d3.select(d3_document.documentElement);
};
var d3_selectionPrototype = d3.selection.prototype = [];
var i = name.indexOf(":"),
prefix = name;
if (i >= 0) {
- prefix = name.substring(0, i);
- name = name.substring(i + 1);
+ prefix = name.slice(0, i);
+ name = name.slice(i + 1);
}
return d3_nsPrefix.hasOwnProperty(prefix)
? {space: d3_nsPrefix[prefix], local: name}
}
function d3_selection_classes(name) {
- return name.trim().split(/^|\s+/);
+ return (name + "").trim().split(/^|\s+/);
}
// Multiple class names are allowed (e.g., "foo bar").
}
// For style(string), return the computed style value for the first node.
- if (n < 2) return d3_window.getComputedStyle(this.node(), null).getPropertyValue(name);
+ if (n < 2) {
+ var node = this.node();
+ return d3_window(node).getComputedStyle(node, null).getPropertyValue(name);
+ }
// For style(string, string) or style(string, function), use the default
// priority. The priority is ignored for style(string, null).
};
function d3_selection_creator(name) {
+
+ function create() {
+ var document = this.ownerDocument,
+ namespace = this.namespaceURI;
+ return namespace
+ ? document.createElementNS(namespace, name)
+ : document.createElement(name);
+ }
+
+ function createNS() {
+ return this.ownerDocument.createElementNS(name.space, name.local);
+ }
+
return typeof name === "function" ? name
- : (name = d3.ns.qualify(name)).local ? function() { return this.ownerDocument.createElementNS(name.space, name.local); }
- : function() { return this.ownerDocument.createElementNS(this.namespaceURI, name); };
+ : (name = d3.ns.qualify(name)).local ? createNS
+ : create;
}
d3_selectionPrototype.insert = function(name, before) {
// TODO remove(node)?
// TODO remove(function)?
d3_selectionPrototype.remove = function() {
- return this.each(function() {
- var parent = this.parentNode;
- if (parent) parent.removeChild(this);
- });
+ return this.each(d3_selectionRemove);
};
+function d3_selectionRemove() {
+ var parent = this.parentNode;
+ if (parent) parent.removeChild(this);
+}
+
d3_selectionPrototype.data = function(value, key) {
var i = -1,
n = this.length,
if (key) {
var nodeByKeyValue = new d3_Map,
- dataByKeyValue = new d3_Map,
- keyValues = [],
+ keyValues = new Array(n),
keyValue;
for (i = -1; ++i < n;) {
- keyValue = key.call(node = group[i], node.__data__, i);
- if (nodeByKeyValue.has(keyValue)) {
+ if (nodeByKeyValue.has(keyValue = key.call(node = group[i], node.__data__, i))) {
exitNodes[i] = node; // duplicate selection key
} else {
nodeByKeyValue.set(keyValue, node);
}
- keyValues.push(keyValue);
+ keyValues[i] = keyValue;
}
for (i = -1; ++i < m;) {
- keyValue = key.call(groupData, nodeData = groupData[i], i);
- if (node = nodeByKeyValue.get(keyValue)) {
+ if (!(node = nodeByKeyValue.get(keyValue = key.call(groupData, nodeData = groupData[i], i)))) {
+ enterNodes[i] = d3_selection_dataNode(nodeData);
+ } else if (node !== true) { // no duplicate data key
updateNodes[i] = node;
node.__data__ = nodeData;
- } else if (!dataByKeyValue.has(keyValue)) { // no duplicate data key
- enterNodes[i] = d3_selection_dataNode(nodeData);
}
- dataByKeyValue.set(keyValue, nodeData);
- nodeByKeyValue.remove(keyValue);
+ nodeByKeyValue.set(keyValue, true);
}
for (i = -1; ++i < n;) {
- if (nodeByKeyValue.has(keyValues[i])) {
+ if (nodeByKeyValue.get(keyValues[i]) !== true) {
exitNodes[i] = group[i];
}
}
d3_selectionPrototype.size = function() {
var n = 0;
- this.each(function() { ++n; });
+ d3_selection_each(this, function() { ++n; });
return n;
};
};
}
-// import "../transition/transition";
-
-d3_selectionPrototype.transition = function() {
- var id = d3_transitionInheritId || ++d3_transitionId,
- subgroups = [],
- subgroup,
- node,
- transition = d3_transitionInherit || {time: Date.now(), ease: d3_ease_cubicInOut, delay: 0, duration: 250};
-
- for (var j = -1, m = this.length; ++j < m;) {
- subgroups.push(subgroup = []);
- for (var group = this[j], i = -1, n = group.length; ++i < n;) {
- if (node = group[i]) d3_transitionNode(node, i, id, transition);
- subgroup.push(node);
- }
- }
-
- return d3_transition(subgroups, id);
-};
-// import "../transition/transition";
-
-d3_selectionPrototype.interrupt = function() {
- return this.each(d3_selection_interrupt);
-};
-
-function d3_selection_interrupt() {
- var lock = this.__transition__;
- if (lock) ++lock.active;
-}
-
// TODO fast singleton implementation?
d3.select = function(node) {
- var group = [typeof node === "string" ? d3_select(node, d3_document) : node];
- group.parentNode = d3_documentElement;
+ var group;
+ if (typeof node === "string") {
+ group = [d3_select(node, d3_document)];
+ group.parentNode = d3_document.documentElement;
+ } else {
+ group = [node];
+ group.parentNode = d3_documentElement(node);
+ }
return d3_selection([group]);
};
d3.selectAll = function(nodes) {
- var group = d3_array(typeof nodes === "string" ? d3_selectAll(nodes, d3_document) : nodes);
- group.parentNode = d3_documentElement;
+ var group;
+ if (typeof nodes === "string") {
+ group = d3_array(d3_selectAll(nodes, d3_document));
+ group.parentNode = d3_document.documentElement;
+ } else {
+ group = nodes;
+ group.parentNode = null;
+ }
return d3_selection([group]);
};
-var d3_selectionRoot = d3.select(d3_documentElement);
-
d3_selectionPrototype.on = function(type, listener, capture) {
var n = arguments.length;
if (n < 3) {
i = type.indexOf("."),
wrap = d3_selection_onListener;
- if (i > 0) type = type.substring(0, i);
+ if (i > 0) type = type.slice(0, i);
var filter = d3_selection_onFilters.get(type);
if (filter) type = filter, wrap = d3_selection_onFilter;
mouseleave: "mouseout"
});
-d3_selection_onFilters.forEach(function(k) {
- if ("on" + k in d3_document) d3_selection_onFilters.remove(k);
-});
+if (d3_document) {
+ d3_selection_onFilters.forEach(function(k) {
+ if ("on" + k in d3_document) d3_selection_onFilters.remove(k);
+ });
+}
function d3_selection_onListener(listener, argumentz) {
return function(e) {
};
}
-var d3_event_dragSelect = "onselectstart" in d3_document ? null : d3_vendorSymbol(d3_documentElement.style, "userSelect"),
+var d3_event_dragSelect,
d3_event_dragId = 0;
-function d3_event_dragSuppress() {
+function d3_event_dragSuppress(node) {
var name = ".dragsuppress-" + ++d3_event_dragId,
click = "click" + name,
- w = d3.select(d3_window)
+ w = d3.select(d3_window(node))
.on("touchmove" + name, d3_eventPreventDefault)
.on("dragstart" + name, d3_eventPreventDefault)
.on("selectstart" + name, d3_eventPreventDefault);
+
+ if (d3_event_dragSelect == null) {
+ d3_event_dragSelect = "onselectstart" in node ? false
+ : d3_vendorSymbol(node.style, "userSelect");
+ }
+
if (d3_event_dragSelect) {
- var style = d3_documentElement.style,
+ var style = d3_documentElement(node).style,
select = style[d3_event_dragSelect];
style[d3_event_dragSelect] = "none";
}
+
return function(suppressClick) {
w.on(name, null);
if (d3_event_dragSelect) style[d3_event_dragSelect] = select;
if (suppressClick) { // suppress the next click, but only if it’s immediate
- function off() { w.on(click, null); }
+ var off = function() { w.on(click, null); };
w.on(click, function() { d3_eventCancel(); off(); }, true);
setTimeout(off, 0);
}
return d3_mousePoint(container, d3_eventSource());
};
+// https://bugs.webkit.org/show_bug.cgi?id=44083
+var d3_mouse_bug44083 = this.navigator && /WebKit/.test(this.navigator.userAgent) ? -1 : 0;
+
function d3_mousePoint(container, e) {
if (e.changedTouches) e = e.changedTouches[0];
var svg = container.ownerSVGElement || container;
if (svg.createSVGPoint) {
var point = svg.createSVGPoint();
- point.x = e.clientX, point.y = e.clientY;
+ if (d3_mouse_bug44083 < 0) {
+ var window = d3_window(container);
+ if (window.scrollX || window.scrollY) {
+ svg = d3.select("body").append("svg").style({
+ position: "absolute",
+ top: 0,
+ left: 0,
+ margin: 0,
+ padding: 0,
+ border: "none"
+ }, "important");
+ var ctm = svg[0][0].getScreenCTM();
+ d3_mouse_bug44083 = !(ctm.f || ctm.e);
+ svg.remove();
+ }
+ }
+ if (d3_mouse_bug44083) point.x = e.pageX, point.y = e.pageY;
+ else point.x = e.clientX, point.y = e.clientY;
point = point.matrixTransform(container.getScreenCTM().inverse());
return [point.x, point.y];
}
return point;
}) : [];
};
-var π = Math.PI,
+var ε = 1e-6,
+ ε2 = ε * ε,
+ π = Math.PI,
τ = 2 * π,
+ τε = τ - ε,
halfπ = π / 2,
- ε = 1e-6,
- ε2 = ε * ε,
d3_radians = π / 180,
d3_degrees = 180 / π;
d3.behavior.zoom = function() {
var view = {x: 0, y: 0, k: 1},
translate0, // translate when we started zooming (to avoid drift)
- center, // desired position of translate0 after zooming
+ center0, // implicit desired position of translate0 after zooming
+ center, // explicit desired position of translate0 after zooming
size = [960, 500], // viewport size; required for zoom interpolation
scaleExtent = d3_behavior_zoomInfinity,
+ duration = 250,
+ zooming = 0,
mousedown = "mousedown.zoom",
mousemove = "mousemove.zoom",
mouseup = "mouseup.zoom",
y0,
y1;
+ // Lazily determine the DOM’s support for Wheel events.
+ // https://developer.mozilla.org/en-US/docs/Mozilla_event_reference/wheel
+ if (!d3_behavior_zoomWheel) {
+ d3_behavior_zoomWheel = "onwheel" in d3_document ? (d3_behavior_zoomDelta = function() { return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1); }, "wheel")
+ : "onmousewheel" in d3_document ? (d3_behavior_zoomDelta = function() { return d3.event.wheelDelta; }, "mousewheel")
+ : (d3_behavior_zoomDelta = function() { return -d3.event.detail; }, "MozMousePixelScroll");
+ }
+
function zoom(g) {
g .on(mousedown, mousedowned)
.on(d3_behavior_zoomWheel + ".zoom", mousewheeled)
- .on(mousemove, mousewheelreset)
.on("dblclick.zoom", dblclicked)
.on(touchstart, touchstarted);
}
.tween("zoom:zoom", function() {
var dx = size[0],
dy = size[1],
- cx = dx / 2,
- cy = dy / 2,
+ cx = center0 ? center0[0] : dx / 2,
+ cy = center0 ? center0[1] : dy / 2,
i = d3.interpolateZoom(
[(cx - view.x) / view.k, (cy - view.y) / view.k, dx / view.k],
[(cx - view1.x) / view1.k, (cy - view1.y) / view1.k, dx / view1.k]
zoomed(dispatch);
};
})
+ .each("interrupt.zoom", function() {
+ zoomended(dispatch);
+ })
.each("end.zoom", function() {
zoomended(dispatch);
});
return zoom;
};
+ zoom.duration = function(_) {
+ if (!arguments.length) return duration;
+ duration = +_; // TODO function based on interpolateZoom distance?
+ return zoom;
+ };
+
zoom.x = function(z) {
if (!arguments.length) return x1;
x1 = z;
view.y += p[1] - l[1];
}
+ function zoomTo(that, p, l, k) {
+ that.__chart__ = {x: view.x, y: view.y, k: view.k};
+
+ scaleTo(Math.pow(2, k));
+ translateTo(center0 = p, l);
+
+ that = d3.select(that);
+ if (duration > 0) that = that.transition().duration(duration);
+ that.call(zoom.event);
+ }
+
function rescale() {
if (x1) x1.domain(x0.range().map(function(x) { return (x - view.x) / view.k; }).map(x0.invert));
if (y1) y1.domain(y0.range().map(function(y) { return (y - view.y) / view.k; }).map(y0.invert));
}
function zoomstarted(dispatch) {
- dispatch({type: "zoomstart"});
+ if (!zooming++) dispatch({type: "zoomstart"});
}
function zoomed(dispatch) {
}
function zoomended(dispatch) {
- dispatch({type: "zoomend"});
+ if (!--zooming) dispatch({type: "zoomend"});
+ center0 = null;
}
function mousedowned() {
target = d3.event.target,
dispatch = event.of(that, arguments),
dragged = 0,
- subject = d3.select(d3_window).on(mousemove, moved).on(mouseup, ended),
+ subject = d3.select(d3_window(that)).on(mousemove, moved).on(mouseup, ended),
location0 = location(d3.mouse(that)),
- dragRestore = d3_event_dragSuppress();
+ dragRestore = d3_event_dragSuppress(that);
d3_selection_interrupt.call(that);
zoomstarted(dispatch);
}
function ended() {
- subject.on(mousemove, d3_window === that ? mousewheelreset : null).on(mouseup, null);
+ subject.on(mousemove, null).on(mouseup, null);
dragRestore(dragged && d3.event.target === target);
zoomended(dispatch);
}
zoomName = ".zoom-" + d3.event.changedTouches[0].identifier,
touchmove = "touchmove" + zoomName,
touchend = "touchend" + zoomName,
- target = d3.select(d3.event.target).on(touchmove, moved).on(touchend, ended),
- subject = d3.select(that).on(mousedown, null).on(touchstart, started), // prevent duplicate events
- dragRestore = d3_event_dragSuppress();
+ targets = [],
+ subject = d3.select(that),
+ dragRestore = d3_event_dragSuppress(that);
- d3_selection_interrupt.call(that);
started();
zoomstarted(dispatch);
+ // Workaround for Chrome issue 412723: the touchstart listener must be set
+ // after the touchmove listener.
+ subject.on(mousedown, null).on(touchstart, started); // prevent duplicate events
+
// Updates locations of any touches in locations0.
function relocate() {
var touches = d3.touches(that);
// Temporarily override touchstart while gesture is active.
function started() {
- // Only track touches started on the target element.
+
+ // Listen for touchmove and touchend on the target of touchstart.
+ var target = d3.event.target;
+ d3.select(target).on(touchmove, moved).on(touchend, ended);
+ targets.push(target);
+
+ // Only track touches started on the same subject element.
var changed = d3.event.changedTouches;
for (var i = 0, n = changed.length; i < n; ++i) {
locations0[changed[i].identifier] = null;
if (touches.length === 1) {
if (now - touchtime < 500) { // dbltap
- var p = touches[0], l = locations0[p.identifier];
- scaleTo(view.k * 2);
- translateTo(p, l);
+ var p = touches[0];
+ zoomTo(that, p, locations0[p.identifier], Math.floor(Math.log(view.k) / Math.LN2) + 1);
d3_eventPreventDefault();
- zoomed(dispatch);
}
touchtime = now;
} else if (touches.length > 1) {
var touches = d3.touches(that),
p0, l0,
p1, l1;
+
+ d3_selection_interrupt.call(that);
+
for (var i = 0, n = touches.length; i < n; ++i, l1 = null) {
p1 = touches[i];
if (l1 = locations0[p1.identifier]) {
}
}
// Otherwise, remove touchmove and touchend listeners.
- target.on(zoomName, null);
+ d3.selectAll(targets).on(zoomName, null);
subject.on(mousedown, mousedowned).on(touchstart, touchstarted);
dragRestore();
zoomended(dispatch);
function mousewheeled() {
var dispatch = event.of(this, arguments);
if (mousewheelTimer) clearTimeout(mousewheelTimer);
- else d3_selection_interrupt.call(this), zoomstarted(dispatch);
+ else translate0 = location(center0 = center || d3.mouse(this)), d3_selection_interrupt.call(this), zoomstarted(dispatch);
mousewheelTimer = setTimeout(function() { mousewheelTimer = null; zoomended(dispatch); }, 50);
d3_eventPreventDefault();
- var point = center || d3.mouse(this);
- if (!translate0) translate0 = location(point);
scaleTo(Math.pow(2, d3_behavior_zoomDelta() * .002) * view.k);
- translateTo(point, translate0);
+ translateTo(center0, translate0);
zoomed(dispatch);
}
- function mousewheelreset() {
- translate0 = null;
- }
-
function dblclicked() {
- var dispatch = event.of(this, arguments),
- p = d3.mouse(this),
- l = location(p),
+ var p = d3.mouse(this),
k = Math.log(view.k) / Math.LN2;
- zoomstarted(dispatch);
- scaleTo(Math.pow(2, d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1));
- translateTo(p, l);
- zoomed(dispatch);
- zoomended(dispatch);
+
+ zoomTo(this, p, location(p), d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1);
}
return d3.rebind(zoom, event, "on");
};
-var d3_behavior_zoomInfinity = [0, Infinity]; // default scale extent
-
-// https://developer.mozilla.org/en-US/docs/Mozilla_event_reference/wheel
-var d3_behavior_zoomDelta, d3_behavior_zoomWheel
- = "onwheel" in d3_document ? (d3_behavior_zoomDelta = function() { return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1); }, "wheel")
- : "onmousewheel" in d3_document ? (d3_behavior_zoomDelta = function() { return d3.event.wheelDelta; }, "mousewheel")
- : (d3_behavior_zoomDelta = function() { return -d3.event.detail; }, "MozMousePixelScroll");
+var d3_behavior_zoomInfinity = [0, Infinity], // default scale extent
+ d3_behavior_zoomDelta, // initialized lazily
+ d3_behavior_zoomWheel;
function d3_functor(v) {
return typeof v === "function" ? v : function() { return v; };
}
d3_timer_interval, // is an interval (or frame) active?
d3_timer_timeout, // is a timeout active?
d3_timer_active, // active timer object
- d3_timer_frame = d3_window[d3_vendorSymbol(d3_window, "requestAnimationFrame")] || function(callback) { setTimeout(callback, 17); };
+ d3_timer_frame = this[d3_vendorSymbol(this, "requestAnimationFrame")] || function(callback) { setTimeout(callback, 17); };
// The timer will continue to fire until callback returns true.
d3.timer = function(callback, delay, then) {
return time;
}
d3.geo = {};
-function d3_identity(d) {
- return d;
-}
-function d3_true() {
- return true;
-}
-
-function d3_geo_spherical(cartesian) {
- return [
- Math.atan2(cartesian[1], cartesian[0]),
- d3_asin(cartesian[2])
- ];
-}
-
-function d3_geo_sphericalEqual(a, b) {
- return abs(a[0] - b[0]) < ε && abs(a[1] - b[1]) < ε;
-}
-
-// General spherical polygon clipping algorithm: takes a polygon, cuts it into
-// visible line segments and rejoins the segments by interpolating along the
-// clip edge.
-function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
- var subject = [],
- clip = [];
-
- segments.forEach(function(segment) {
- if ((n = segment.length - 1) <= 0) return;
- var n, p0 = segment[0], p1 = segment[n];
-
- // If the first and last points of a segment are coincident, then treat as
- // a closed ring.
- // TODO if all rings are closed, then the winding order of the exterior
- // ring should be checked.
- if (d3_geo_sphericalEqual(p0, p1)) {
- listener.lineStart();
- for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]);
- listener.lineEnd();
- return;
- }
-
- var a = new d3_geo_clipPolygonIntersection(p0, segment, null, true),
- b = new d3_geo_clipPolygonIntersection(p0, null, a, false);
- a.o = b;
- subject.push(a);
- clip.push(b);
- a = new d3_geo_clipPolygonIntersection(p1, segment, null, false);
- b = new d3_geo_clipPolygonIntersection(p1, null, a, true);
- a.o = b;
- subject.push(a);
- clip.push(b);
- });
- clip.sort(compare);
- d3_geo_clipPolygonLinkCircular(subject);
- d3_geo_clipPolygonLinkCircular(clip);
- if (!subject.length) return;
-
- for (var i = 0, entry = clipStartInside, n = clip.length; i < n; ++i) {
- clip[i].e = entry = !entry;
- }
-
- var start = subject[0],
- points,
- point;
- while (1) {
- // Find first unvisited intersection.
- var current = start,
- isSubject = true;
- while (current.v) if ((current = current.n) === start) return;
- points = current.z;
- listener.lineStart();
- do {
- current.v = current.o.v = true;
- if (current.e) {
- if (isSubject) {
- for (var i = 0, n = points.length; i < n; ++i) listener.point((point = points[i])[0], point[1]);
- } else {
- interpolate(current.x, current.n.x, 1, listener);
- }
- current = current.n;
- } else {
- if (isSubject) {
- points = current.p.z;
- for (var i = points.length - 1; i >= 0; --i) listener.point((point = points[i])[0], point[1]);
- } else {
- interpolate(current.x, current.p.x, -1, listener);
- }
- current = current.p;
- }
- current = current.o;
- points = current.z;
- isSubject = !isSubject;
- } while (!current.v);
- listener.lineEnd();
- }
-}
-
-function d3_geo_clipPolygonLinkCircular(array) {
- if (!(n = array.length)) return;
- var n,
- i = 0,
- a = array[0],
- b;
- while (++i < n) {
- a.n = b = array[i];
- b.p = a;
- a = b;
- }
- a.n = b = array[0];
- b.p = a;
-}
-
-function d3_geo_clipPolygonIntersection(point, points, other, entry) {
- this.x = point;
- this.z = points;
- this.o = other; // another intersection
- this.e = entry; // is an entry?
- this.v = false; // visited
- this.n = this.p = null; // next & previous
-}
-
-function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) {
- return function(rotate, listener) {
- var line = clipLine(listener),
- rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]);
-
- var clip = {
- point: point,
- lineStart: lineStart,
- lineEnd: lineEnd,
- polygonStart: function() {
- clip.point = pointRing;
- clip.lineStart = ringStart;
- clip.lineEnd = ringEnd;
- segments = [];
- polygon = [];
- },
- polygonEnd: function() {
- clip.point = point;
- clip.lineStart = lineStart;
- clip.lineEnd = lineEnd;
-
- segments = d3.merge(segments);
- var clipStartInside = d3_geo_pointInPolygon(rotatedClipStart, polygon);
- if (segments.length) {
- if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
- d3_geo_clipPolygon(segments, d3_geo_clipSort, clipStartInside, interpolate, listener);
- } else if (clipStartInside) {
- if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
- listener.lineStart();
- interpolate(null, null, 1, listener);
- listener.lineEnd();
- }
- if (polygonStarted) listener.polygonEnd(), polygonStarted = false;
- segments = polygon = null;
- },
- sphere: function() {
- listener.polygonStart();
- listener.lineStart();
- interpolate(null, null, 1, listener);
- listener.lineEnd();
- listener.polygonEnd();
- }
- };
-
- function point(λ, φ) {
- var point = rotate(λ, φ);
- if (pointVisible(λ = point[0], φ = point[1])) listener.point(λ, φ);
- }
- function pointLine(λ, φ) {
- var point = rotate(λ, φ);
- line.point(point[0], point[1]);
- }
- function lineStart() { clip.point = pointLine; line.lineStart(); }
- function lineEnd() { clip.point = point; line.lineEnd(); }
-
- var segments;
-
- var buffer = d3_geo_clipBufferListener(),
- ringListener = clipLine(buffer),
- polygonStarted = false,
- polygon,
- ring;
-
- function pointRing(λ, φ) {
- ring.push([λ, φ]);
- var point = rotate(λ, φ);
- ringListener.point(point[0], point[1]);
- }
-
- function ringStart() {
- ringListener.lineStart();
- ring = [];
- }
-
- function ringEnd() {
- pointRing(ring[0][0], ring[0][1]);
- ringListener.lineEnd();
-
- var clean = ringListener.clean(),
- ringSegments = buffer.buffer(),
- segment,
- n = ringSegments.length;
-
- ring.pop();
- polygon.push(ring);
- ring = null;
-
- if (!n) return;
-
- // No intersections.
- if (clean & 1) {
- segment = ringSegments[0];
- var n = segment.length - 1,
- i = -1,
- point;
- if (n > 0) {
- if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
- listener.lineStart();
- while (++i < n) listener.point((point = segment[i])[0], point[1]);
- listener.lineEnd();
- }
- return;
- }
-
- // Rejoin connected segments.
- // TODO reuse bufferListener.rejoin()?
- if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
-
- segments.push(ringSegments.filter(d3_geo_clipSegmentLength1));
- }
-
- return clip;
- };
-}
-
-function d3_geo_clipSegmentLength1(segment) {
- return segment.length > 1;
-}
-
-function d3_geo_clipBufferListener() {
- var lines = [],
- line;
- return {
- lineStart: function() { lines.push(line = []); },
- point: function(λ, φ) { line.push([λ, φ]); },
- lineEnd: d3_noop,
- buffer: function() {
- var buffer = lines;
- lines = [];
- line = null;
- return buffer;
- },
- rejoin: function() {
- if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
- }
- };
-}
-
-// Intersection points are sorted along the clip edge. For both antimeridian
-// cutting and circle clipping, the same comparison is used.
-function d3_geo_clipSort(a, b) {
- return ((a = a.x)[0] < 0 ? a[1] - halfπ - ε : halfπ - a[1])
- - ((b = b.x)[0] < 0 ? b[1] - halfπ - ε : halfπ - b[1]);
-}
-// Adds floating point numbers with twice the normal precision.
-// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and
-// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)
-// 305–363 (1997).
-// Code adapted from GeographicLib by Charles F. F. Karney,
-// http://geographiclib.sourceforge.net/
-// See lib/geographiclib/LICENSE for details.
-
-function d3_adder() {}
-
-d3_adder.prototype = {
- s: 0, // rounded value
- t: 0, // exact error
- add: function(y) {
- d3_adderSum(y, this.t, d3_adderTemp);
- d3_adderSum(d3_adderTemp.s, this.s, this);
- if (this.s) this.t += d3_adderTemp.t;
- else this.s = d3_adderTemp.t;
- },
- reset: function() {
- this.s = this.t = 0;
- },
- valueOf: function() {
- return this.s;
- }
-};
-
-var d3_adderTemp = new d3_adder;
-
-function d3_adderSum(a, b, o) {
- var x = o.s = a + b, // a + b
- bv = x - a, av = x - bv; // b_virtual & a_virtual
- o.t = (a - av) + (b - bv); // a_roundoff + b_roundoff
-}
d3.geo.stream = function(object, listener) {
if (object && d3_geo_streamObjectType.hasOwnProperty(object.type)) {
listener.polygonEnd();
}
-d3.geo.area = function(object) {
- d3_geo_areaSum = 0;
- d3.geo.stream(object, d3_geo_area);
- return d3_geo_areaSum;
+d3.geo.length = function(object) {
+ d3_geo_lengthSum = 0;
+ d3.geo.stream(object, d3_geo_length);
+ return d3_geo_lengthSum;
};
-var d3_geo_areaSum,
- d3_geo_areaRingSum = new d3_adder;
+var d3_geo_lengthSum;
-var d3_geo_area = {
- sphere: function() { d3_geo_areaSum += 4 * π; },
+var d3_geo_length = {
+ sphere: d3_noop,
point: d3_noop,
- lineStart: d3_noop,
+ lineStart: d3_geo_lengthLineStart,
lineEnd: d3_noop,
-
- // Only count area for polygon rings.
- polygonStart: function() {
- d3_geo_areaRingSum.reset();
- d3_geo_area.lineStart = d3_geo_areaRingStart;
- },
- polygonEnd: function() {
- var area = 2 * d3_geo_areaRingSum;
- d3_geo_areaSum += area < 0 ? 4 * π + area : area;
- d3_geo_area.lineStart = d3_geo_area.lineEnd = d3_geo_area.point = d3_noop;
- }
+ polygonStart: d3_noop,
+ polygonEnd: d3_noop
};
-function d3_geo_areaRingStart() {
- var λ00, φ00, λ0, cosφ0, sinφ0; // start point and previous point
+function d3_geo_lengthLineStart() {
+ var λ0, sinφ0, cosφ0;
- // For the first point, …
- d3_geo_area.point = function(λ, φ) {
- d3_geo_area.point = nextPoint;
- λ0 = (λ00 = λ) * d3_radians, cosφ0 = Math.cos(φ = (φ00 = φ) * d3_radians / 2 + π / 4), sinφ0 = Math.sin(φ);
+ d3_geo_length.point = function(λ, φ) {
+ λ0 = λ * d3_radians, sinφ0 = Math.sin(φ *= d3_radians), cosφ0 = Math.cos(φ);
+ d3_geo_length.point = nextPoint;
};
- // For subsequent points, …
- function nextPoint(λ, φ) {
- λ *= d3_radians;
- φ = φ * d3_radians / 2 + π / 4; // half the angular distance from south pole
+ d3_geo_length.lineEnd = function() {
+ d3_geo_length.point = d3_geo_length.lineEnd = d3_noop;
+ };
- // Spherical excess E for a spherical triangle with vertices: south pole,
- // previous point, current point. Uses a formula derived from Cagnoli’s
- // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).
- var dλ = λ - λ0,
- sdλ = dλ >= 0 ? 1 : -1,
- adλ = sdλ * dλ,
+ function nextPoint(λ, φ) {
+ var sinφ = Math.sin(φ *= d3_radians),
cosφ = Math.cos(φ),
- sinφ = Math.sin(φ),
- k = sinφ0 * sinφ,
- u = cosφ0 * cosφ + k * Math.cos(adλ),
- v = k * sdλ * Math.sin(adλ);
- d3_geo_areaRingSum.add(Math.atan2(v, u));
-
- // Advance the previous points.
- λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ;
+ t = abs((λ *= d3_radians) - λ0),
+ cosΔλ = Math.cos(t);
+ d3_geo_lengthSum += Math.atan2(Math.sqrt((t = cosφ * Math.sin(t)) * t + (t = cosφ0 * sinφ - sinφ0 * cosφ * cosΔλ) * t), sinφ0 * sinφ + cosφ0 * cosφ * cosΔλ);
+ λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ;
}
-
- // For the last point, return to the start.
- d3_geo_area.lineEnd = function() {
- nextPoint(λ00, φ00);
- };
}
-// TODO
-// cross and scale return new vectors,
-// whereas add and normalize operate in-place
+function d3_identity(d) {
+ return d;
+}
+function d3_true() {
+ return true;
+}
-function d3_geo_cartesian(spherical) {
- var λ = spherical[0],
- φ = spherical[1],
- cosφ = Math.cos(φ);
+function d3_geo_spherical(cartesian) {
return [
- cosφ * Math.cos(λ),
- cosφ * Math.sin(λ),
- Math.sin(φ)
+ Math.atan2(cartesian[1], cartesian[0]),
+ d3_asin(cartesian[2])
];
}
-function d3_geo_cartesianDot(a, b) {
- return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
+function d3_geo_sphericalEqual(a, b) {
+ return abs(a[0] - b[0]) < ε && abs(a[1] - b[1]) < ε;
}
-function d3_geo_cartesianCross(a, b) {
- return [
- a[1] * b[2] - a[2] * b[1],
- a[2] * b[0] - a[0] * b[2],
- a[0] * b[1] - a[1] * b[0]
- ];
-}
+// General spherical polygon clipping algorithm: takes a polygon, cuts it into
+// visible line segments and rejoins the segments by interpolating along the
+// clip edge.
+function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
+ var subject = [],
+ clip = [];
-function d3_geo_cartesianAdd(a, b) {
- a[0] += b[0];
- a[1] += b[1];
- a[2] += b[2];
+ segments.forEach(function(segment) {
+ if ((n = segment.length - 1) <= 0) return;
+ var n, p0 = segment[0], p1 = segment[n];
+
+ // If the first and last points of a segment are coincident, then treat as
+ // a closed ring.
+ // TODO if all rings are closed, then the winding order of the exterior
+ // ring should be checked.
+ if (d3_geo_sphericalEqual(p0, p1)) {
+ listener.lineStart();
+ for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]);
+ listener.lineEnd();
+ return;
+ }
+
+ var a = new d3_geo_clipPolygonIntersection(p0, segment, null, true),
+ b = new d3_geo_clipPolygonIntersection(p0, null, a, false);
+ a.o = b;
+ subject.push(a);
+ clip.push(b);
+ a = new d3_geo_clipPolygonIntersection(p1, segment, null, false);
+ b = new d3_geo_clipPolygonIntersection(p1, null, a, true);
+ a.o = b;
+ subject.push(a);
+ clip.push(b);
+ });
+ clip.sort(compare);
+ d3_geo_clipPolygonLinkCircular(subject);
+ d3_geo_clipPolygonLinkCircular(clip);
+ if (!subject.length) return;
+
+ for (var i = 0, entry = clipStartInside, n = clip.length; i < n; ++i) {
+ clip[i].e = entry = !entry;
+ }
+
+ var start = subject[0],
+ points,
+ point;
+ while (1) {
+ // Find first unvisited intersection.
+ var current = start,
+ isSubject = true;
+ while (current.v) if ((current = current.n) === start) return;
+ points = current.z;
+ listener.lineStart();
+ do {
+ current.v = current.o.v = true;
+ if (current.e) {
+ if (isSubject) {
+ for (var i = 0, n = points.length; i < n; ++i) listener.point((point = points[i])[0], point[1]);
+ } else {
+ interpolate(current.x, current.n.x, 1, listener);
+ }
+ current = current.n;
+ } else {
+ if (isSubject) {
+ points = current.p.z;
+ for (var i = points.length - 1; i >= 0; --i) listener.point((point = points[i])[0], point[1]);
+ } else {
+ interpolate(current.x, current.p.x, -1, listener);
+ }
+ current = current.p;
+ }
+ current = current.o;
+ points = current.z;
+ isSubject = !isSubject;
+ } while (!current.v);
+ listener.lineEnd();
+ }
}
-function d3_geo_cartesianScale(vector, k) {
- return [
- vector[0] * k,
- vector[1] * k,
- vector[2] * k
- ];
+function d3_geo_clipPolygonLinkCircular(array) {
+ if (!(n = array.length)) return;
+ var n,
+ i = 0,
+ a = array[0],
+ b;
+ while (++i < n) {
+ a.n = b = array[i];
+ b.p = a;
+ a = b;
+ }
+ a.n = b = array[0];
+ b.p = a;
}
-function d3_geo_cartesianNormalize(d) {
- var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
- d[0] /= l;
- d[1] /= l;
- d[2] /= l;
+function d3_geo_clipPolygonIntersection(point, points, other, entry) {
+ this.x = point;
+ this.z = points;
+ this.o = other; // another intersection
+ this.e = entry; // is an entry?
+ this.v = false; // visited
+ this.n = this.p = null; // next & previous
}
-function d3_geo_pointInPolygon(point, polygon) {
- var meridian = point[0],
- parallel = point[1],
- meridianNormal = [Math.sin(meridian), -Math.cos(meridian), 0],
- polarAngle = 0,
- winding = 0;
- d3_geo_areaRingSum.reset();
+function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) {
+ return function(rotate, listener) {
+ var line = clipLine(listener),
+ rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]);
- for (var i = 0, n = polygon.length; i < n; ++i) {
- var ring = polygon[i],
- m = ring.length;
- if (!m) continue;
- var point0 = ring[0],
- λ0 = point0[0],
- φ0 = point0[1] / 2 + π / 4,
- sinφ0 = Math.sin(φ0),
- cosφ0 = Math.cos(φ0),
- j = 1;
+ var clip = {
+ point: point,
+ lineStart: lineStart,
+ lineEnd: lineEnd,
+ polygonStart: function() {
+ clip.point = pointRing;
+ clip.lineStart = ringStart;
+ clip.lineEnd = ringEnd;
+ segments = [];
+ polygon = [];
+ },
+ polygonEnd: function() {
+ clip.point = point;
+ clip.lineStart = lineStart;
+ clip.lineEnd = lineEnd;
- while (true) {
- if (j === m) j = 0;
- point = ring[j];
- var λ = point[0],
- φ = point[1] / 2 + π / 4,
- sinφ = Math.sin(φ),
- cosφ = Math.cos(φ),
- dλ = λ - λ0,
- sdλ = dλ >= 0 ? 1 : -1,
- adλ = sdλ * dλ,
- antimeridian = adλ > π,
- k = sinφ0 * sinφ;
- d3_geo_areaRingSum.add(Math.atan2(k * sdλ * Math.sin(adλ), cosφ0 * cosφ + k * Math.cos(adλ)));
+ segments = d3.merge(segments);
+ var clipStartInside = d3_geo_pointInPolygon(rotatedClipStart, polygon);
+ if (segments.length) {
+ if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
+ d3_geo_clipPolygon(segments, d3_geo_clipSort, clipStartInside, interpolate, listener);
+ } else if (clipStartInside) {
+ if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
+ listener.lineStart();
+ interpolate(null, null, 1, listener);
+ listener.lineEnd();
+ }
+ if (polygonStarted) listener.polygonEnd(), polygonStarted = false;
+ segments = polygon = null;
+ },
+ sphere: function() {
+ listener.polygonStart();
+ listener.lineStart();
+ interpolate(null, null, 1, listener);
+ listener.lineEnd();
+ listener.polygonEnd();
+ }
+ };
- polarAngle += antimeridian ? dλ + sdλ * τ : dλ;
+ function point(λ, φ) {
+ var point = rotate(λ, φ);
+ if (pointVisible(λ = point[0], φ = point[1])) listener.point(λ, φ);
+ }
+ function pointLine(λ, φ) {
+ var point = rotate(λ, φ);
+ line.point(point[0], point[1]);
+ }
+ function lineStart() { clip.point = pointLine; line.lineStart(); }
+ function lineEnd() { clip.point = point; line.lineEnd(); }
- // Are the longitudes either side of the point's meridian, and are the
- // latitudes smaller than the parallel?
- if (antimeridian ^ λ0 >= meridian ^ λ >= meridian) {
- var arc = d3_geo_cartesianCross(d3_geo_cartesian(point0), d3_geo_cartesian(point));
- d3_geo_cartesianNormalize(arc);
- var intersection = d3_geo_cartesianCross(meridianNormal, arc);
- d3_geo_cartesianNormalize(intersection);
- var φarc = (antimeridian ^ dλ >= 0 ? -1 : 1) * d3_asin(intersection[2]);
- if (parallel > φarc || parallel === φarc && (arc[0] || arc[1])) {
- winding += antimeridian ^ dλ >= 0 ? 1 : -1;
+ var segments;
+
+ var buffer = d3_geo_clipBufferListener(),
+ ringListener = clipLine(buffer),
+ polygonStarted = false,
+ polygon,
+ ring;
+
+ function pointRing(λ, φ) {
+ ring.push([λ, φ]);
+ var point = rotate(λ, φ);
+ ringListener.point(point[0], point[1]);
+ }
+
+ function ringStart() {
+ ringListener.lineStart();
+ ring = [];
+ }
+
+ function ringEnd() {
+ pointRing(ring[0][0], ring[0][1]);
+ ringListener.lineEnd();
+
+ var clean = ringListener.clean(),
+ ringSegments = buffer.buffer(),
+ segment,
+ n = ringSegments.length;
+
+ ring.pop();
+ polygon.push(ring);
+ ring = null;
+
+ if (!n) return;
+
+ // No intersections.
+ if (clean & 1) {
+ segment = ringSegments[0];
+ var n = segment.length - 1,
+ i = -1,
+ point;
+ if (n > 0) {
+ if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
+ listener.lineStart();
+ while (++i < n) listener.point((point = segment[i])[0], point[1]);
+ listener.lineEnd();
}
+ return;
}
- if (!j++) break;
- λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ, point0 = point;
+
+ // Rejoin connected segments.
+ // TODO reuse bufferListener.rejoin()?
+ if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
+
+ segments.push(ringSegments.filter(d3_geo_clipSegmentLength1));
}
- }
- // First, determine whether the South pole is inside or outside:
- //
- // It is inside if:
- // * the polygon winds around it in a clockwise direction.
- // * the polygon does not (cumulatively) wind around it, but has a negative
- // (counter-clockwise) area.
- //
- // Second, count the (signed) number of times a segment crosses a meridian
- // from the point to the South pole. If it is zero, then the point is the
- // same side as the South pole.
+ return clip;
+ };
+}
- return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < 0) ^ (winding & 1);
+function d3_geo_clipSegmentLength1(segment) {
+ return segment.length > 1;
+}
+
+function d3_geo_clipBufferListener() {
+ var lines = [],
+ line;
+ return {
+ lineStart: function() { lines.push(line = []); },
+ point: function(λ, φ) { line.push([λ, φ]); },
+ lineEnd: d3_noop,
+ buffer: function() {
+ var buffer = lines;
+ lines = [];
+ line = null;
+ return buffer;
+ },
+ rejoin: function() {
+ if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
+ }
+ };
+}
+
+// Intersection points are sorted along the clip edge. For both antimeridian
+// cutting and circle clipping, the same comparison is used.
+function d3_geo_clipSort(a, b) {
+ return ((a = a.x)[0] < 0 ? a[1] - halfπ - ε : halfπ - a[1])
+ - ((b = b.x)[0] < 0 ? b[1] - halfπ - ε : halfπ - b[1]);
}
var d3_geo_clipAntimeridian = d3_geo_clip(
listener.point(to[0], to[1]);
}
}
+// TODO
+// cross and scale return new vectors,
+// whereas add and normalize operate in-place
+
+function d3_geo_cartesian(spherical) {
+ var λ = spherical[0],
+ φ = spherical[1],
+ cosφ = Math.cos(φ);
+ return [
+ cosφ * Math.cos(λ),
+ cosφ * Math.sin(λ),
+ Math.sin(φ)
+ ];
+}
+
+function d3_geo_cartesianDot(a, b) {
+ return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
+}
+
+function d3_geo_cartesianCross(a, b) {
+ return [
+ a[1] * b[2] - a[2] * b[1],
+ a[2] * b[0] - a[0] * b[2],
+ a[0] * b[1] - a[1] * b[0]
+ ];
+}
+
+function d3_geo_cartesianAdd(a, b) {
+ a[0] += b[0];
+ a[1] += b[1];
+ a[2] += b[2];
+}
+
+function d3_geo_cartesianScale(vector, k) {
+ return [
+ vector[0] * k,
+ vector[1] * k,
+ vector[2] * k
+ ];
+}
+
+function d3_geo_cartesianNormalize(d) {
+ var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
+ d[0] /= l;
+ d[1] /= l;
+ d[2] /= l;
+}
+function d3_geo_compose(a, b) {
+
+ function compose(x, y) {
+ return x = a(x, y), b(x[0], x[1]);
+ }
+
+ if (a.invert && b.invert) compose.invert = function(x, y) {
+ return x = b.invert(x, y), x && a.invert(x[0], x[1]);
+ };
+
+ return compose;
+}
function d3_geo_equirectangular(λ, φ) {
return [λ, φ];
var angle = d3_acos(-a[1]);
return ((-a[2] < 0 ? -angle : angle) + 2 * Math.PI - ε) % (2 * Math.PI);
}
+// Adds floating point numbers with twice the normal precision.
+// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and
+// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)
+// 305–363 (1997).
+// Code adapted from GeographicLib by Charles F. F. Karney,
+// http://geographiclib.sourceforge.net/
+// See lib/geographiclib/LICENSE for details.
+
+function d3_adder() {}
+
+d3_adder.prototype = {
+ s: 0, // rounded value
+ t: 0, // exact error
+ add: function(y) {
+ d3_adderSum(y, this.t, d3_adderTemp);
+ d3_adderSum(d3_adderTemp.s, this.s, this);
+ if (this.s) this.t += d3_adderTemp.t;
+ else this.s = d3_adderTemp.t;
+ },
+ reset: function() {
+ this.s = this.t = 0;
+ },
+ valueOf: function() {
+ return this.s;
+ }
+};
+
+var d3_adderTemp = new d3_adder;
+
+function d3_adderSum(a, b, o) {
+ var x = o.s = a + b, // a + b
+ bv = x - a, av = x - bv; // b_virtual & a_virtual
+ o.t = (a - av) + (b - bv); // a_roundoff + b_roundoff
+}
-// Clip features against a small circle centered at [0°, 0°].
-function d3_geo_clipCircle(radius) {
- var cr = Math.cos(radius),
- smallRadius = cr > 0,
- notHemisphere = abs(cr) > ε, // TODO optimise for this common case
- interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);
+d3.geo.area = function(object) {
+ d3_geo_areaSum = 0;
+ d3.geo.stream(object, d3_geo_area);
+ return d3_geo_areaSum;
+};
- return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-π, radius - π]);
+var d3_geo_areaSum,
+ d3_geo_areaRingSum = new d3_adder;
- function visible(λ, φ) {
- return Math.cos(λ) * Math.cos(φ) > cr;
+var d3_geo_area = {
+ sphere: function() { d3_geo_areaSum += 4 * π; },
+ point: d3_noop,
+ lineStart: d3_noop,
+ lineEnd: d3_noop,
+
+ // Only count area for polygon rings.
+ polygonStart: function() {
+ d3_geo_areaRingSum.reset();
+ d3_geo_area.lineStart = d3_geo_areaRingStart;
+ },
+ polygonEnd: function() {
+ var area = 2 * d3_geo_areaRingSum;
+ d3_geo_areaSum += area < 0 ? 4 * π + area : area;
+ d3_geo_area.lineStart = d3_geo_area.lineEnd = d3_geo_area.point = d3_noop;
}
+};
- // Takes a line and cuts into visible segments. Return values used for
- // polygon clipping:
- // 0: there were intersections or the line was empty.
- // 1: no intersections.
+function d3_geo_areaRingStart() {
+ var λ00, φ00, λ0, cosφ0, sinφ0; // start point and previous point
+
+ // For the first point, …
+ d3_geo_area.point = function(λ, φ) {
+ d3_geo_area.point = nextPoint;
+ λ0 = (λ00 = λ) * d3_radians, cosφ0 = Math.cos(φ = (φ00 = φ) * d3_radians / 2 + π / 4), sinφ0 = Math.sin(φ);
+ };
+
+ // For subsequent points, …
+ function nextPoint(λ, φ) {
+ λ *= d3_radians;
+ φ = φ * d3_radians / 2 + π / 4; // half the angular distance from south pole
+
+ // Spherical excess E for a spherical triangle with vertices: south pole,
+ // previous point, current point. Uses a formula derived from Cagnoli’s
+ // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).
+ var dλ = λ - λ0,
+ sdλ = dλ >= 0 ? 1 : -1,
+ adλ = sdλ * dλ,
+ cosφ = Math.cos(φ),
+ sinφ = Math.sin(φ),
+ k = sinφ0 * sinφ,
+ u = cosφ0 * cosφ + k * Math.cos(adλ),
+ v = k * sdλ * Math.sin(adλ);
+ d3_geo_areaRingSum.add(Math.atan2(v, u));
+
+ // Advance the previous points.
+ λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ;
+ }
+
+ // For the last point, return to the start.
+ d3_geo_area.lineEnd = function() {
+ nextPoint(λ00, φ00);
+ };
+}
+
+function d3_geo_pointInPolygon(point, polygon) {
+ var meridian = point[0],
+ parallel = point[1],
+ meridianNormal = [Math.sin(meridian), -Math.cos(meridian), 0],
+ polarAngle = 0,
+ winding = 0;
+ d3_geo_areaRingSum.reset();
+
+ for (var i = 0, n = polygon.length; i < n; ++i) {
+ var ring = polygon[i],
+ m = ring.length;
+ if (!m) continue;
+ var point0 = ring[0],
+ λ0 = point0[0],
+ φ0 = point0[1] / 2 + π / 4,
+ sinφ0 = Math.sin(φ0),
+ cosφ0 = Math.cos(φ0),
+ j = 1;
+
+ while (true) {
+ if (j === m) j = 0;
+ point = ring[j];
+ var λ = point[0],
+ φ = point[1] / 2 + π / 4,
+ sinφ = Math.sin(φ),
+ cosφ = Math.cos(φ),
+ dλ = λ - λ0,
+ sdλ = dλ >= 0 ? 1 : -1,
+ adλ = sdλ * dλ,
+ antimeridian = adλ > π,
+ k = sinφ0 * sinφ;
+ d3_geo_areaRingSum.add(Math.atan2(k * sdλ * Math.sin(adλ), cosφ0 * cosφ + k * Math.cos(adλ)));
+
+ polarAngle += antimeridian ? dλ + sdλ * τ : dλ;
+
+ // Are the longitudes either side of the point's meridian, and are the
+ // latitudes smaller than the parallel?
+ if (antimeridian ^ λ0 >= meridian ^ λ >= meridian) {
+ var arc = d3_geo_cartesianCross(d3_geo_cartesian(point0), d3_geo_cartesian(point));
+ d3_geo_cartesianNormalize(arc);
+ var intersection = d3_geo_cartesianCross(meridianNormal, arc);
+ d3_geo_cartesianNormalize(intersection);
+ var φarc = (antimeridian ^ dλ >= 0 ? -1 : 1) * d3_asin(intersection[2]);
+ if (parallel > φarc || parallel === φarc && (arc[0] || arc[1])) {
+ winding += antimeridian ^ dλ >= 0 ? 1 : -1;
+ }
+ }
+ if (!j++) break;
+ λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ, point0 = point;
+ }
+ }
+
+ // First, determine whether the South pole is inside or outside:
+ //
+ // It is inside if:
+ // * the polygon winds around it in a clockwise direction.
+ // * the polygon does not (cumulatively) wind around it, but has a negative
+ // (counter-clockwise) area.
+ //
+ // Second, count the (signed) number of times a segment crosses a meridian
+ // from the point to the South pole. If it is zero, then the point is the
+ // same side as the South pole.
+
+ return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < 0) ^ (winding & 1);
+}
+
+// Clip features against a small circle centered at [0°, 0°].
+function d3_geo_clipCircle(radius) {
+ var cr = Math.cos(radius),
+ smallRadius = cr > 0,
+ notHemisphere = abs(cr) > ε, // TODO optimise for this common case
+ interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);
+
+ return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-π, radius - π]);
+
+ function visible(λ, φ) {
+ return Math.cos(λ) * Math.cos(φ) > cr;
+ }
+
+ // Takes a line and cuts into visible segments. Return values used for
+ // polygon clipping:
+ // 0: there were intersections or the line was empty.
+ // 1: no intersections.
// 2: there were intersections, and the first and last segments should be
// rejoined.
function clipLine(listener) {
: b[0] - a[0];
}
}
-function d3_geo_compose(a, b) {
-
- function compose(x, y) {
- return x = a(x, y), b(x[0], x[1]);
- }
-
- if (a.invert && b.invert) compose.invert = function(x, y) {
- return x = b.invert(x, y), x && a.invert(x[0], x[1]);
- };
-
- return compose;
-}
function d3_geo_conic(projectAt) {
var φ0 = 0,
};
function point(x, y) {
- context.moveTo(x, y);
+ context.moveTo(x + pointRadius, y);
context.arc(x, y, pointRadius, 0, τ);
}
}
/**
- * Computes the 2D convex hull of a set of points using Graham's scanning
- * algorithm. The algorithm has been implemented as described in Cormen,
- * Leiserson, and Rivest's Introduction to Algorithms. The running time of
- * this algorithm is O(n log n), where n is the number of input points.
+ * Computes the 2D convex hull of a set of points using the monotone chain
+ * algorithm:
+ * http://en.wikibooks.org/wiki/Algorithm_Implementation/Geometry/Convex_hull/Monotone_chain)
*
- * @param vertices [[x1, y1], [x2, y2], …]
- * @returns polygon [[x1, y1], [x2, y2], …]
+ * The runtime of this algorithm is O(n log n), where n is the number of input
+ * points. However in practice it outperforms other O(n log n) hulls.
+ *
+ * @param vertices [[x1, y1], [x2, y2], ...]
+ * @returns polygon [[x1, y1], [x2, y2], ...]
*/
d3.geom.hull = function(vertices) {
var x = d3_geom_pointX,
if (arguments.length) return hull(vertices);
function hull(data) {
+ // Hull of < 3 points is not well-defined
if (data.length < 3) return [];
var fx = d3_functor(x),
fy = d3_functor(y),
+ i,
n = data.length,
- vertices, // TODO use parallel arrays
- plen = n - 1,
- points = [],
- stack = [],
- d,
- i, j, h = 0, x1, y1, x2, y2, u, v, a, sp;
-
- if (fx === d3_geom_pointX && y === d3_geom_pointY) vertices = data;
- else for (i = 0, vertices = []; i < n; ++i) {
- vertices.push([+fx.call(this, d = data[i], i), +fy.call(this, d, i)]);
- }
-
- // find the starting ref point: leftmost point with the minimum y coord
- for (i = 1; i < n; ++i) {
- if (vertices[i][1] < vertices[h][1]
- || vertices[i][1] == vertices[h][1]
- && vertices[i][0] < vertices[h][0]) h = i;
- }
-
- // calculate polar angles from ref point and sort
- for (i = 0; i < n; ++i) {
- if (i === h) continue;
- y1 = vertices[i][1] - vertices[h][1];
- x1 = vertices[i][0] - vertices[h][0];
- points.push({angle: Math.atan2(y1, x1), index: i});
- }
- points.sort(function(a, b) { return a.angle - b.angle; });
-
- // toss out duplicate angles
- a = points[0].angle;
- v = points[0].index;
- u = 0;
- for (i = 1; i < plen; ++i) {
- j = points[i].index;
- if (a == points[i].angle) {
- // keep angle for point most distant from the reference
- x1 = vertices[v][0] - vertices[h][0];
- y1 = vertices[v][1] - vertices[h][1];
- x2 = vertices[j][0] - vertices[h][0];
- y2 = vertices[j][1] - vertices[h][1];
- if (x1 * x1 + y1 * y1 >= x2 * x2 + y2 * y2) {
- points[i].index = -1;
- continue;
- } else {
- points[u].index = -1;
- }
- }
- a = points[i].angle;
- u = i;
- v = j;
- }
+ points = [], // of the form [[x0, y0, 0], ..., [xn, yn, n]]
+ flippedPoints = [];
- // initialize the stack
- stack.push(h);
- for (i = 0, j = 0; i < 2; ++j) {
- if (points[j].index > -1) {
- stack.push(points[j].index);
- i++;
- }
+ for (i = 0 ; i < n; i++) {
+ points.push([+fx.call(this, data[i], i), +fy.call(this, data[i], i), i]);
}
- sp = stack.length;
- // do graham's scan
- for (; j < plen; ++j) {
- if (points[j].index < 0) continue; // skip tossed out points
- while (!d3_geom_hullCCW(stack[sp - 2], stack[sp - 1], points[j].index, vertices)) {
- --sp;
- }
- stack[sp++] = points[j].index;
- }
+ // sort ascending by x-coord first, y-coord second
+ points.sort(d3_geom_hullOrder);
+
+ // we flip bottommost points across y axis so we can use the upper hull routine on both
+ for (i = 0; i < n; i++) flippedPoints.push([points[i][0], -points[i][1]]);
+
+ var upper = d3_geom_hullUpper(points),
+ lower = d3_geom_hullUpper(flippedPoints);
+
+ // construct the polygon, removing possible duplicate endpoints
+ var skipLeft = lower[0] === upper[0],
+ skipRight = lower[lower.length - 1] === upper[upper.length - 1],
+ polygon = [];
+
+ // add upper hull in r->l order
+ // then add lower hull in l->r order
+ for (i = upper.length - 1; i >= 0; --i) polygon.push(data[points[upper[i]][2]]);
+ for (i = +skipLeft; i < lower.length - skipRight; ++i) polygon.push(data[points[lower[i]][2]]);
- // construct the hull
- var poly = [];
- for (i = sp - 1; i >= 0; --i) poly.push(data[stack[i]]);
- return poly;
+ return polygon;
}
hull.x = function(_) {
return hull;
};
-// are three points in counter-clockwise order?
-function d3_geom_hullCCW(i1, i2, i3, v) {
- var t, a, b, c, d, e, f;
- t = v[i1]; a = t[0]; b = t[1];
- t = v[i2]; c = t[0]; d = t[1];
- t = v[i3]; e = t[0]; f = t[1];
- return (f - b) * (c - a) - (d - b) * (e - a) > 0;
-}
-
-var d3_ease_default = function() { return d3_identity; };
-
-var d3_ease = d3.map({
- linear: d3_ease_default,
- poly: d3_ease_poly,
- quad: function() { return d3_ease_quad; },
- cubic: function() { return d3_ease_cubic; },
- sin: function() { return d3_ease_sin; },
- exp: function() { return d3_ease_exp; },
- circle: function() { return d3_ease_circle; },
- elastic: d3_ease_elastic,
- back: d3_ease_back,
- bounce: function() { return d3_ease_bounce; }
-});
-
-var d3_ease_mode = d3.map({
- "in": d3_identity,
- "out": d3_ease_reverse,
- "in-out": d3_ease_reflect,
- "out-in": function(f) { return d3_ease_reflect(d3_ease_reverse(f)); }
-});
-
-d3.ease = function(name) {
- var i = name.indexOf("-"),
- t = i >= 0 ? name.substring(0, i) : name,
- m = i >= 0 ? name.substring(i + 1) : "in";
- t = d3_ease.get(t) || d3_ease_default;
- m = d3_ease_mode.get(m) || d3_identity;
- return d3_ease_clamp(m(t.apply(null, d3_arraySlice.call(arguments, 1))));
-};
-
-function d3_ease_clamp(f) {
- return function(t) {
- return t <= 0 ? 0 : t >= 1 ? 1 : f(t);
- };
-}
-
-function d3_ease_reverse(f) {
- return function(t) {
- return 1 - f(1 - t);
- };
-}
-
-function d3_ease_reflect(f) {
- return function(t) {
- return .5 * (t < .5 ? f(2 * t) : (2 - f(2 - 2 * t)));
- };
-}
+// finds the 'upper convex hull' (see wiki link above)
+// assumes points arg has >=3 elements, is sorted by x, unique in y
+// returns array of indices into points in left to right order
+function d3_geom_hullUpper(points) {
+ var n = points.length,
+ hull = [0, 1],
+ hs = 2; // hull size
-function d3_ease_quad(t) {
- return t * t;
-}
+ for (var i = 2; i < n; i++) {
+ while (hs > 1 && d3_cross2d(points[hull[hs-2]], points[hull[hs-1]], points[i]) <= 0) --hs;
+ hull[hs++] = i;
+ }
-function d3_ease_cubic(t) {
- return t * t * t;
+ // we slice to make sure that the points we 'popped' from hull don't stay behind
+ return hull.slice(0, hs);
}
-// Optimized clamp(reflect(poly(3))).
-function d3_ease_cubicInOut(t) {
- if (t <= 0) return 0;
- if (t >= 1) return 1;
- var t2 = t * t, t3 = t2 * t;
- return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75);
+// comparator for ascending sort by x-coord first, y-coord second
+function d3_geom_hullOrder(a, b) {
+ return a[0] - b[0] || a[1] - b[1];
}
+// import "../transition/transition";
-function d3_ease_poly(e) {
- return function(t) {
- return Math.pow(t, e);
- };
-}
+d3_selectionPrototype.transition = function(name) {
+ var id = d3_transitionInheritId || ++d3_transitionId,
+ ns = d3_transitionNamespace(name),
+ subgroups = [],
+ subgroup,
+ node,
+ transition = d3_transitionInherit || {time: Date.now(), ease: d3_ease_cubicInOut, delay: 0, duration: 250};
-function d3_ease_sin(t) {
- return 1 - Math.cos(t * halfπ);
-}
+ for (var j = -1, m = this.length; ++j < m;) {
+ subgroups.push(subgroup = []);
+ for (var group = this[j], i = -1, n = group.length; ++i < n;) {
+ if (node = group[i]) d3_transitionNode(node, i, ns, id, transition);
+ subgroup.push(node);
+ }
+ }
-function d3_ease_exp(t) {
- return Math.pow(2, 10 * (t - 1));
-}
+ return d3_transition(subgroups, ns, id);
+};
+// import "../transition/transition";
-function d3_ease_circle(t) {
- return 1 - Math.sqrt(1 - t * t);
-}
+// TODO Interrupt transitions for all namespaces?
+d3_selectionPrototype.interrupt = function(name) {
+ return this.each(name == null
+ ? d3_selection_interrupt
+ : d3_selection_interruptNS(d3_transitionNamespace(name)));
+};
-function d3_ease_elastic(a, p) {
- var s;
- if (arguments.length < 2) p = 0.45;
- if (arguments.length) s = p / τ * Math.asin(1 / a);
- else a = 1, s = p / 4;
- return function(t) {
- return 1 + a * Math.pow(2, -10 * t) * Math.sin((t - s) * τ / p);
- };
-}
+var d3_selection_interrupt = d3_selection_interruptNS(d3_transitionNamespace());
-function d3_ease_back(s) {
- if (!s) s = 1.70158;
- return function(t) {
- return t * t * ((s + 1) * t - s);
+function d3_selection_interruptNS(ns) {
+ return function() {
+ var lock, active;
+ if ((lock = this[ns]) && (active = lock[lock.active])) {
+ if (--lock.count) delete lock[lock.active];
+ else delete this[ns];
+ lock.active += .5;
+ active.event && active.event.interrupt.call(this, this.__data__, active.index);
+ }
};
}
-function d3_ease_bounce(t) {
- return t < 1 / 2.75 ? 7.5625 * t * t
- : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75
- : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375
- : 7.5625 * (t -= 2.625 / 2.75) * t + .984375;
-}
-
-function d3_transition(groups, id) {
+function d3_transition(groups, ns, id) {
d3_subclass(groups, d3_transitionPrototype);
- groups.id = id; // Note: read-only!
+ // Note: read-only!
+ groups.namespace = ns;
+ groups.id = id;
return groups;
}
d3_transitionPrototype.node = d3_selectionPrototype.node;
d3_transitionPrototype.size = d3_selectionPrototype.size;
-d3.transition = function(selection) {
- return arguments.length
- ? (d3_transitionInheritId ? selection.transition() : selection)
- : d3_selectionRoot.transition();
+d3.transition = function(selection, name) {
+ return selection && selection.transition
+ ? (d3_transitionInheritId ? selection.transition(name) : selection)
+ : d3.selection().transition(selection);
};
d3.transition.prototype = d3_transitionPrototype;
d3_transitionPrototype.select = function(selector) {
var id = this.id,
+ ns = this.namespace,
subgroups = [],
subgroup,
subnode,
for (var group = this[j], i = -1, n = group.length; ++i < n;) {
if ((node = group[i]) && (subnode = selector.call(node, node.__data__, i, j))) {
if ("__data__" in node) subnode.__data__ = node.__data__;
- d3_transitionNode(subnode, i, id, node.__transition__[id]);
+ d3_transitionNode(subnode, i, ns, id, node[ns][id]);
subgroup.push(subnode);
} else {
subgroup.push(null);
}
}
- return d3_transition(subgroups, id);
+ return d3_transition(subgroups, ns, id);
};
d3_transitionPrototype.selectAll = function(selector) {
var id = this.id,
+ ns = this.namespace,
subgroups = [],
subgroup,
subnodes,
for (var j = -1, m = this.length; ++j < m;) {
for (var group = this[j], i = -1, n = group.length; ++i < n;) {
if (node = group[i]) {
- transition = node.__transition__[id];
+ transition = node[ns][id];
subnodes = selector.call(node, node.__data__, i, j);
subgroups.push(subgroup = []);
for (var k = -1, o = subnodes.length; ++k < o;) {
- if (subnode = subnodes[k]) d3_transitionNode(subnode, k, id, transition);
+ if (subnode = subnodes[k]) d3_transitionNode(subnode, k, ns, id, transition);
subgroup.push(subnode);
}
}
}
}
- return d3_transition(subgroups, id);
+ return d3_transition(subgroups, ns, id);
};
d3_transitionPrototype.filter = function(filter) {
}
}
- return d3_transition(subgroups, this.id);
+ return d3_transition(subgroups, this.namespace, this.id);
};
-function d3_Color() {}
+d3.color = d3_color;
-d3_Color.prototype.toString = function() {
+function d3_color() {}
+
+d3_color.prototype.toString = function() {
return this.rgb() + "";
};
-d3.hsl = function(h, s, l) {
- return arguments.length === 1
- ? (h instanceof d3_Hsl ? d3_hsl(h.h, h.s, h.l)
- : d3_rgb_parse("" + h, d3_rgb_hsl, d3_hsl))
- : d3_hsl(+h, +s, +l);
-};
+d3.hsl = d3_hsl;
function d3_hsl(h, s, l) {
- return new d3_Hsl(h, s, l);
-}
-
-function d3_Hsl(h, s, l) {
- this.h = h;
- this.s = s;
- this.l = l;
+ return this instanceof d3_hsl ? void (this.h = +h, this.s = +s, this.l = +l)
+ : arguments.length < 2 ? (h instanceof d3_hsl ? new d3_hsl(h.h, h.s, h.l)
+ : d3_rgb_parse("" + h, d3_rgb_hsl, d3_hsl))
+ : new d3_hsl(h, s, l);
}
-var d3_hslPrototype = d3_Hsl.prototype = new d3_Color;
+var d3_hslPrototype = d3_hsl.prototype = new d3_color;
d3_hslPrototype.brighter = function(k) {
k = Math.pow(0.7, arguments.length ? k : 1);
- return d3_hsl(this.h, this.s, this.l / k);
+ return new d3_hsl(this.h, this.s, this.l / k);
};
d3_hslPrototype.darker = function(k) {
k = Math.pow(0.7, arguments.length ? k : 1);
- return d3_hsl(this.h, this.s, k * this.l);
+ return new d3_hsl(this.h, this.s, k * this.l);
};
d3_hslPrototype.rgb = function() {
return Math.round(v(h) * 255);
}
- return d3_rgb(vv(h + 120), vv(h), vv(h - 120));
+ return new d3_rgb(vv(h + 120), vv(h), vv(h - 120));
}
-d3.hcl = function(h, c, l) {
- return arguments.length === 1
- ? (h instanceof d3_Hcl ? d3_hcl(h.h, h.c, h.l)
- : (h instanceof d3_Lab ? d3_lab_hcl(h.l, h.a, h.b)
- : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b)))
- : d3_hcl(+h, +c, +l);
-};
+d3.hcl = d3_hcl;
function d3_hcl(h, c, l) {
- return new d3_Hcl(h, c, l);
-}
-
-function d3_Hcl(h, c, l) {
- this.h = h;
- this.c = c;
- this.l = l;
+ return this instanceof d3_hcl ? void (this.h = +h, this.c = +c, this.l = +l)
+ : arguments.length < 2 ? (h instanceof d3_hcl ? new d3_hcl(h.h, h.c, h.l)
+ : (h instanceof d3_lab ? d3_lab_hcl(h.l, h.a, h.b)
+ : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b)))
+ : new d3_hcl(h, c, l);
}
-var d3_hclPrototype = d3_Hcl.prototype = new d3_Color;
+var d3_hclPrototype = d3_hcl.prototype = new d3_color;
d3_hclPrototype.brighter = function(k) {
- return d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)));
+ return new d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)));
};
d3_hclPrototype.darker = function(k) {
- return d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)));
+ return new d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)));
};
d3_hclPrototype.rgb = function() {
function d3_hcl_lab(h, c, l) {
if (isNaN(h)) h = 0;
if (isNaN(c)) c = 0;
- return d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c);
+ return new d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c);
}
-d3.lab = function(l, a, b) {
- return arguments.length === 1
- ? (l instanceof d3_Lab ? d3_lab(l.l, l.a, l.b)
- : (l instanceof d3_Hcl ? d3_hcl_lab(l.l, l.c, l.h)
- : d3_rgb_lab((l = d3.rgb(l)).r, l.g, l.b)))
- : d3_lab(+l, +a, +b);
-};
+d3.lab = d3_lab;
function d3_lab(l, a, b) {
- return new d3_Lab(l, a, b);
-}
-
-function d3_Lab(l, a, b) {
- this.l = l;
- this.a = a;
- this.b = b;
+ return this instanceof d3_lab ? void (this.l = +l, this.a = +a, this.b = +b)
+ : arguments.length < 2 ? (l instanceof d3_lab ? new d3_lab(l.l, l.a, l.b)
+ : (l instanceof d3_hcl ? d3_hcl_lab(l.h, l.c, l.l)
+ : d3_rgb_lab((l = d3_rgb(l)).r, l.g, l.b)))
+ : new d3_lab(l, a, b);
}
// Corresponds roughly to RGB brighter/darker
d3_lab_Y = 1,
d3_lab_Z = 1.088830;
-var d3_labPrototype = d3_Lab.prototype = new d3_Color;
+var d3_labPrototype = d3_lab.prototype = new d3_color;
d3_labPrototype.brighter = function(k) {
- return d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
+ return new d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
};
d3_labPrototype.darker = function(k) {
- return d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
+ return new d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
};
d3_labPrototype.rgb = function() {
x = d3_lab_xyz(x) * d3_lab_X;
y = d3_lab_xyz(y) * d3_lab_Y;
z = d3_lab_xyz(z) * d3_lab_Z;
- return d3_rgb(
+ return new d3_rgb(
d3_xyz_rgb( 3.2404542 * x - 1.5371385 * y - 0.4985314 * z),
d3_xyz_rgb(-0.9692660 * x + 1.8760108 * y + 0.0415560 * z),
d3_xyz_rgb( 0.0556434 * x - 0.2040259 * y + 1.0572252 * z)
function d3_lab_hcl(l, a, b) {
return l > 0
- ? d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l)
- : d3_hcl(NaN, NaN, l);
+ ? new d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l)
+ : new d3_hcl(NaN, NaN, l);
}
function d3_lab_xyz(x) {
return Math.round(255 * (r <= 0.00304 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - 0.055));
}
-d3.rgb = function(r, g, b) {
- return arguments.length === 1
- ? (r instanceof d3_Rgb ? d3_rgb(r.r, r.g, r.b)
+d3.rgb = d3_rgb;
+
+function d3_rgb(r, g, b) {
+ return this instanceof d3_rgb ? void (this.r = ~~r, this.g = ~~g, this.b = ~~b)
+ : arguments.length < 2 ? (r instanceof d3_rgb ? new d3_rgb(r.r, r.g, r.b)
: d3_rgb_parse("" + r, d3_rgb, d3_hsl_rgb))
- : d3_rgb(~~r, ~~g, ~~b);
-};
+ : new d3_rgb(r, g, b);
+}
function d3_rgbNumber(value) {
- return d3_rgb(value >> 16, value >> 8 & 0xff, value & 0xff);
+ return new d3_rgb(value >> 16, value >> 8 & 0xff, value & 0xff);
}
function d3_rgbString(value) {
return d3_rgbNumber(value) + "";
}
-function d3_rgb(r, g, b) {
- return new d3_Rgb(r, g, b);
-}
-
-function d3_Rgb(r, g, b) {
- this.r = r;
- this.g = g;
- this.b = b;
-}
-
-var d3_rgbPrototype = d3_Rgb.prototype = new d3_Color;
+var d3_rgbPrototype = d3_rgb.prototype = new d3_color;
d3_rgbPrototype.brighter = function(k) {
k = Math.pow(0.7, arguments.length ? k : 1);
g = this.g,
b = this.b,
i = 30;
- if (!r && !g && !b) return d3_rgb(i, i, i);
+ if (!r && !g && !b) return new d3_rgb(i, i, i);
if (r && r < i) r = i;
if (g && g < i) g = i;
if (b && b < i) b = i;
- return d3_rgb(Math.min(255, ~~(r / k)), Math.min(255, ~~(g / k)), Math.min(255, ~~(b / k)));
+ return new d3_rgb(Math.min(255, r / k), Math.min(255, g / k), Math.min(255, b / k));
};
d3_rgbPrototype.darker = function(k) {
k = Math.pow(0.7, arguments.length ? k : 1);
- return d3_rgb(~~(k * this.r), ~~(k * this.g), ~~(k * this.b));
+ return new d3_rgb(k * this.r, k * this.g, k * this.b);
};
d3_rgbPrototype.hsl = function() {
}
/* Named colors. */
- if (color = d3_rgb_names.get(format)) return rgb(color.r, color.g, color.b);
+ if (color = d3_rgb_names.get(format.toLowerCase())) {
+ return rgb(color.r, color.g, color.b);
+ }
/* Hexadecimal colors: #rgb and #rrggbb. */
- if (format != null && format.charAt(0) === "#" && !isNaN(color = parseInt(format.substring(1), 16))) {
+ if (format != null && format.charAt(0) === "#" && !isNaN(color = parseInt(format.slice(1), 16))) {
if (format.length === 4) {
r = (color & 0xf00) >> 4; r = (r >> 4) | r;
g = (color & 0xf0); g = (g >> 4) | g;
h = NaN;
s = l > 0 && l < 1 ? 0 : h;
}
- return d3_hsl(h, s, l);
+ return new d3_hsl(h, s, l);
}
function d3_rgb_lab(r, g, b) {
plum: 0xdda0dd,
powderblue: 0xb0e0e6,
purple: 0x800080,
+ rebeccapurple: 0x663399,
red: 0xff0000,
rosybrown: 0xbc8f8f,
royalblue: 0x4169e1,
d3.interpolateNumber = d3_interpolateNumber;
function d3_interpolateNumber(a, b) {
- b -= a = +a;
- return function(t) { return a + b * t; };
+ a = +a, b = +b;
+ return function(t) { return a * (1 - t) + b * t; };
}
d3.interpolateString = d3_interpolateString;
while ((am = d3_interpolate_numberA.exec(a))
&& (bm = d3_interpolate_numberB.exec(b))) {
if ((bs = bm.index) > bi) { // a string precedes the next number in b
- bs = b.substring(bi, bs);
+ bs = b.slice(bi, bs);
if (s[i]) s[i] += bs; // coalesce with previous string
else s[++i] = bs;
}
// Add remains of b.
if (bi < b.length) {
- bs = b.substring(bi);
+ bs = b.slice(bi);
if (s[i]) s[i] += bs; // coalesce with previous string
else s[++i] = bs;
}
function(a, b) {
var t = typeof b;
return (t === "string" ? (d3_rgb_names.has(b) || /^(#|rgb\(|hsl\()/.test(b) ? d3_interpolateRgb : d3_interpolateString)
- : b instanceof d3_Color ? d3_interpolateRgb
+ : b instanceof d3_color ? d3_interpolateRgb
: Array.isArray(b) ? d3_interpolateArray
: t === "object" && isNaN(b) ? d3_interpolateObject
: d3_interpolateNumber)(a, b);
}
d3_transitionPrototype.tween = function(name, tween) {
- var id = this.id;
- if (arguments.length < 2) return this.node().__transition__[id].tween.get(name);
+ var id = this.id, ns = this.namespace;
+ if (arguments.length < 2) return this.node()[ns][id].tween.get(name);
return d3_selection_each(this, tween == null
- ? function(node) { node.__transition__[id].tween.remove(name); }
- : function(node) { node.__transition__[id].tween.set(name, tween); });
+ ? function(node) { node[ns][id].tween.remove(name); }
+ : function(node) { node[ns][id].tween.set(name, tween); });
};
function d3_transition_tween(groups, name, value, tween) {
- var id = groups.id;
+ var id = groups.id, ns = groups.namespace;
return d3_selection_each(groups, typeof value === "function"
- ? function(node, i, j) { node.__transition__[id].tween.set(name, tween(value.call(node, node.__data__, i, j))); }
- : (value = tween(value), function(node) { node.__transition__[id].tween.set(name, value); }));
+ ? function(node, i, j) { node[ns][id].tween.set(name, tween(value.call(node, node.__data__, i, j))); }
+ : (value = tween(value), function(node) { node[ns][id].tween.set(name, value); }));
}
d3_transitionPrototype.attr = function(nameNS, value) {
// Otherwise, a name, value and priority are specified, and handled as below.
function styleString(b) {
return b == null ? styleNull : (b += "", function() {
- var a = d3_window.getComputedStyle(this, null).getPropertyValue(name), i;
+ var a = d3_window(this).getComputedStyle(this, null).getPropertyValue(name), i;
return a !== b && (i = d3_interpolate(a, b), function(t) { this.style.setProperty(name, i(t), priority); });
});
}
if (arguments.length < 3) priority = "";
function styleTween(d, i) {
- var f = tween.call(this, d, i, d3_window.getComputedStyle(this, null).getPropertyValue(name));
+ var f = tween.call(this, d, i, d3_window(this).getComputedStyle(this, null).getPropertyValue(name));
return f && function(t) { this.style.setProperty(name, f(t), priority); };
}
}
d3_transitionPrototype.remove = function() {
+ var ns = this.namespace;
return this.each("end.transition", function() {
var p;
- if (this.__transition__.count < 2 && (p = this.parentNode)) p.removeChild(this);
+ if (this[ns].count < 2 && (p = this.parentNode)) p.removeChild(this);
});
};
+var d3_ease_default = function() { return d3_identity; };
+
+var d3_ease = d3.map({
+ linear: d3_ease_default,
+ poly: d3_ease_poly,
+ quad: function() { return d3_ease_quad; },
+ cubic: function() { return d3_ease_cubic; },
+ sin: function() { return d3_ease_sin; },
+ exp: function() { return d3_ease_exp; },
+ circle: function() { return d3_ease_circle; },
+ elastic: d3_ease_elastic,
+ back: d3_ease_back,
+ bounce: function() { return d3_ease_bounce; }
+});
+
+var d3_ease_mode = d3.map({
+ "in": d3_identity,
+ "out": d3_ease_reverse,
+ "in-out": d3_ease_reflect,
+ "out-in": function(f) { return d3_ease_reflect(d3_ease_reverse(f)); }
+});
+
+d3.ease = function(name) {
+ var i = name.indexOf("-"),
+ t = i >= 0 ? name.slice(0, i) : name,
+ m = i >= 0 ? name.slice(i + 1) : "in";
+ t = d3_ease.get(t) || d3_ease_default;
+ m = d3_ease_mode.get(m) || d3_identity;
+ return d3_ease_clamp(m(t.apply(null, d3_arraySlice.call(arguments, 1))));
+};
+
+function d3_ease_clamp(f) {
+ return function(t) {
+ return t <= 0 ? 0 : t >= 1 ? 1 : f(t);
+ };
+}
+
+function d3_ease_reverse(f) {
+ return function(t) {
+ return 1 - f(1 - t);
+ };
+}
+
+function d3_ease_reflect(f) {
+ return function(t) {
+ return .5 * (t < .5 ? f(2 * t) : (2 - f(2 - 2 * t)));
+ };
+}
+
+function d3_ease_quad(t) {
+ return t * t;
+}
+
+function d3_ease_cubic(t) {
+ return t * t * t;
+}
+
+// Optimized clamp(reflect(poly(3))).
+function d3_ease_cubicInOut(t) {
+ if (t <= 0) return 0;
+ if (t >= 1) return 1;
+ var t2 = t * t, t3 = t2 * t;
+ return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75);
+}
+
+function d3_ease_poly(e) {
+ return function(t) {
+ return Math.pow(t, e);
+ };
+}
+
+function d3_ease_sin(t) {
+ return 1 - Math.cos(t * halfπ);
+}
+
+function d3_ease_exp(t) {
+ return Math.pow(2, 10 * (t - 1));
+}
+
+function d3_ease_circle(t) {
+ return 1 - Math.sqrt(1 - t * t);
+}
+
+function d3_ease_elastic(a, p) {
+ var s;
+ if (arguments.length < 2) p = 0.45;
+ if (arguments.length) s = p / τ * Math.asin(1 / a);
+ else a = 1, s = p / 4;
+ return function(t) {
+ return 1 + a * Math.pow(2, -10 * t) * Math.sin((t - s) * τ / p);
+ };
+}
+
+function d3_ease_back(s) {
+ if (!s) s = 1.70158;
+ return function(t) {
+ return t * t * ((s + 1) * t - s);
+ };
+}
+
+function d3_ease_bounce(t) {
+ return t < 1 / 2.75 ? 7.5625 * t * t
+ : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75
+ : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375
+ : 7.5625 * (t -= 2.625 / 2.75) * t + .984375;
+}
+
d3_transitionPrototype.ease = function(value) {
- var id = this.id;
- if (arguments.length < 1) return this.node().__transition__[id].ease;
+ var id = this.id, ns = this.namespace;
+ if (arguments.length < 1) return this.node()[ns][id].ease;
if (typeof value !== "function") value = d3.ease.apply(d3, arguments);
- return d3_selection_each(this, function(node) { node.__transition__[id].ease = value; });
+ return d3_selection_each(this, function(node) { node[ns][id].ease = value; });
};
d3_transitionPrototype.delay = function(value) {
- var id = this.id;
- if (arguments.length < 1) return this.node().__transition__[id].delay;
+ var id = this.id, ns = this.namespace;
+ if (arguments.length < 1) return this.node()[ns][id].delay;
return d3_selection_each(this, typeof value === "function"
- ? function(node, i, j) { node.__transition__[id].delay = +value.call(node, node.__data__, i, j); }
- : (value = +value, function(node) { node.__transition__[id].delay = value; }));
+ ? function(node, i, j) { node[ns][id].delay = +value.call(node, node.__data__, i, j); }
+ : (value = +value, function(node) { node[ns][id].delay = value; }));
};
d3_transitionPrototype.duration = function(value) {
- var id = this.id;
- if (arguments.length < 1) return this.node().__transition__[id].duration;
+ var id = this.id, ns = this.namespace;
+ if (arguments.length < 1) return this.node()[ns][id].duration;
return d3_selection_each(this, typeof value === "function"
- ? function(node, i, j) { node.__transition__[id].duration = Math.max(1, value.call(node, node.__data__, i, j)); }
- : (value = Math.max(1, value), function(node) { node.__transition__[id].duration = value; }));
+ ? function(node, i, j) { node[ns][id].duration = Math.max(1, value.call(node, node.__data__, i, j)); }
+ : (value = Math.max(1, value), function(node) { node[ns][id].duration = value; }));
};
d3_transitionPrototype.each = function(type, listener) {
- var id = this.id;
+ var id = this.id, ns = this.namespace;
if (arguments.length < 2) {
var inherit = d3_transitionInherit,
inheritId = d3_transitionInheritId;
- d3_transitionInheritId = id;
- d3_selection_each(this, function(node, i, j) {
- d3_transitionInherit = node.__transition__[id];
- type.call(node, node.__data__, i, j);
- });
- d3_transitionInherit = inherit;
- d3_transitionInheritId = inheritId;
+ try {
+ d3_transitionInheritId = id;
+ d3_selection_each(this, function(node, i, j) {
+ d3_transitionInherit = node[ns][id];
+ type.call(node, node.__data__, i, j);
+ });
+ } finally {
+ d3_transitionInherit = inherit;
+ d3_transitionInheritId = inheritId;
+ }
} else {
d3_selection_each(this, function(node) {
- var transition = node.__transition__[id];
- (transition.event || (transition.event = d3.dispatch("start", "end"))).on(type, listener);
+ var transition = node[ns][id];
+ (transition.event || (transition.event = d3.dispatch("start", "end", "interrupt"))).on(type, listener);
});
}
return this;
d3_transitionPrototype.transition = function() {
var id0 = this.id,
id1 = ++d3_transitionId,
+ ns = this.namespace,
subgroups = [],
subgroup,
group,
subgroups.push(subgroup = []);
for (var group = this[j], i = 0, n = group.length; i < n; i++) {
if (node = group[i]) {
- transition = Object.create(node.__transition__[id0]);
- transition.delay += transition.duration;
- d3_transitionNode(node, i, id1, transition);
+ transition = node[ns][id0];
+ d3_transitionNode(node, i, ns, id1, {time: transition.time, ease: transition.ease, delay: transition.delay + transition.duration, duration: transition.duration});
}
subgroup.push(node);
}
}
- return d3_transition(subgroups, id1);
+ return d3_transition(subgroups, ns, id1);
};
-function d3_transitionNode(node, i, id, inherit) {
- var lock = node.__transition__ || (node.__transition__ = {active: 0, count: 0}),
+function d3_transitionNamespace(name) {
+ return name == null ? "__transition__" : "__transition_" + name + "__";
+}
+
+function d3_transitionNode(node, i, ns, id, inherit) {
+ var lock = node[ns] || (node[ns] = {active: 0, count: 0}),
transition = lock[id];
if (!transition) {
transition = lock[id] = {
tween: new d3_Map,
time: time,
- ease: inherit.ease,
delay: inherit.delay,
- duration: inherit.duration
+ duration: inherit.duration,
+ ease: inherit.ease,
+ index: i
};
+ inherit = null; // allow gc
+
++lock.count;
d3.timer(function(elapsed) {
- var d = node.__data__,
- ease = transition.ease,
- delay = transition.delay,
- duration = transition.duration,
+ var delay = transition.delay,
+ duration,
+ ease,
timer = d3_timer_active,
tweened = [];
function start(elapsed) {
if (lock.active > id) return stop();
+
+ var active = lock[lock.active];
+ if (active) {
+ --lock.count;
+ delete lock[lock.active];
+ active.event && active.event.interrupt.call(node, node.__data__, active.index);
+ }
+
lock.active = id;
- transition.event && transition.event.start.call(node, d, i);
+
+ transition.event && transition.event.start.call(node, node.__data__, i);
transition.tween.forEach(function(key, value) {
- if (value = value.call(node, d, i)) {
+ if (value = value.call(node, node.__data__, i)) {
tweened.push(value);
}
});
+ // Deferred capture to allow tweens to initialize ease & duration.
+ ease = transition.ease;
+ duration = transition.duration;
+
d3.timer(function() { // defer to end of current frame
timer.c = tick(elapsed || 1) ? d3_true : tick;
return 1;
}
function tick(elapsed) {
- if (lock.active !== id) return stop();
+ if (lock.active !== id) return 1;
var t = elapsed / duration,
e = ease(t),
}
if (t >= 1) {
- transition.event && transition.event.end.call(node, d, i);
+ transition.event && transition.event.end.call(node, node.__data__, i);
return stop();
}
}
function stop() {
if (--lock.count) delete lock[id];
- else delete node.__transition__;
+ else delete node[ns];
return 1;
}
}, 0, time);
responseType = null;
// If IE does not support CORS, use XDomainRequest.
- if (d3_window.XDomainRequest
+ if (this.XDomainRequest
&& !("withCredentials" in request)
&& /^(http(s)?:)?\/\//.test(url)) request = new XDomainRequest;
function respond() {
var status = request.status, result;
- if (!status && request.responseText || status >= 200 && status < 300 || status === 304) {
+ if (!status && d3_xhrHasResponse(request) || status >= 200 && status < 300 || status === 304) {
try {
result = response.call(xhr, request);
} catch (e) {
: callback;
}
+function d3_xhrHasResponse(request) {
+ var type = request.responseType;
+ return type && type !== "text"
+ ? request.response // null on error
+ : request.responseText; // "" on error
+}
+
d3.text = d3_xhrType(function(request) {
return request.responseText;
});
d3.xml = d3_xhrType(function(request) {
return request.responseXML;
});
- if (typeof define === "function" && define.amd) {
- define(d3);
- } else if (typeof module === "object" && module.exports) {
- module.exports = d3;
- } else {
- this.d3 = d3;
- }
+ if (typeof define === "function" && define.amd) define(d3);
+ else if (typeof module === "object" && module.exports) module.exports = d3;
+ this.d3 = d3;
}();
d3.combobox = function() {
var event = d3.dispatch('accept'),
// Up Arrow Key, or ↓
'↓': 40, down: 40, 'arrow-down': 40,
// odities, printing characters that come out wrong:
+ // Firefox Equals
+ 'ffequals': 61,
// Num-Multiply, or *
'*': 106, star: 106, asterisk: 106, multiply: 106,
// Num-Plus or +
'+': 107, 'plus': 107,
// Num-Subtract, or -
'-': 109, subtract: 109,
+ // Firefox Minus
+ 'ffplus': 171,
+ // Firefox Minus
+ 'ffminus': 173,
// Semicolon
- ';': 186, semicolon:186,
+ ';': 186, semicolon: 186,
// = or equals
'=': 187, 'equals': 187,
// Comma, or ,
if (!arguments.length) return this.property('value');
return this.each(d3_selection_value(value));
};
+// Copyright (c) 2006, 2008 Tony Garnock-Jones <tonyg@lshift.net>
+// Copyright (c) 2006, 2008 LShift Ltd. <query@lshift.net>
+//
+// Permission is hereby granted, free of charge, to any person
+// obtaining a copy of this software and associated documentation files
+// (the "Software"), to deal in the Software without restriction,
+// including without limitation the rights to use, copy, modify, merge,
+// publish, distribute, sublicense, and/or sell copies of the Software,
+// and to permit persons to whom the Software is furnished to do so,
+// subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+
+// source: https://bitbucket.org/lshift/synchrotron/src
+
+Diff3 = (function() {
+ 'use strict';
+
+ var diff3 = {
+ longest_common_subsequence: function(file1, file2) {
+ /* Text diff algorithm following Hunt and McIlroy 1976.
+ * J. W. Hunt and M. D. McIlroy, An algorithm for differential file
+ * comparison, Bell Telephone Laboratories CSTR #41 (1976)
+ * http://www.cs.dartmouth.edu/~doug/
+ *
+ * Expects two arrays of strings.
+ */
+ var equivalenceClasses;
+ var file2indices;
+ var newCandidate;
+ var candidates;
+ var line;
+ var c, i, j, jX, r, s;
+
+ equivalenceClasses = {};
+ for (j = 0; j < file2.length; j++) {
+ line = file2[j];
+ if (equivalenceClasses[line]) {
+ equivalenceClasses[line].push(j);
+ } else {
+ equivalenceClasses[line] = [j];
+ }
+ }
+
+ candidates = [{file1index: -1,
+ file2index: -1,
+ chain: null}];
+
+ for (i = 0; i < file1.length; i++) {
+ line = file1[i];
+ file2indices = equivalenceClasses[line] || [];
+
+ r = 0;
+ c = candidates[0];
+
+ for (jX = 0; jX < file2indices.length; jX++) {
+ j = file2indices[jX];
+
+ for (s = 0; s < candidates.length; s++) {
+ if ((candidates[s].file2index < j) &&
+ ((s == candidates.length - 1) ||
+ (candidates[s + 1].file2index > j)))
+ break;
+ }
+
+ if (s < candidates.length) {
+ newCandidate = {file1index: i,
+ file2index: j,
+ chain: candidates[s]};
+ if (r == candidates.length) {
+ candidates.push(c);
+ } else {
+ candidates[r] = c;
+ }
+ r = s + 1;
+ c = newCandidate;
+ if (r == candidates.length) {
+ break; // no point in examining further (j)s
+ }
+ }
+ }
+
+ candidates[r] = c;
+ }
+
+ // At this point, we know the LCS: it's in the reverse of the
+ // linked-list through .chain of
+ // candidates[candidates.length - 1].
+
+ return candidates[candidates.length - 1];
+ },
+
+ diff_comm: function(file1, file2) {
+ // We apply the LCS to build a "comm"-style picture of the
+ // differences between file1 and file2.
+
+ var result = [];
+ var tail1 = file1.length;
+ var tail2 = file2.length;
+ var common = {common: []};
+
+ function processCommon() {
+ if (common.common.length) {
+ common.common.reverse();
+ result.push(common);
+ common = {common: []};
+ }
+ }
+
+ for (var candidate = Diff3.longest_common_subsequence(file1, file2);
+ candidate !== null;
+ candidate = candidate.chain)
+ {
+ var different = {file1: [], file2: []};
+
+ while (--tail1 > candidate.file1index) {
+ different.file1.push(file1[tail1]);
+ }
+
+ while (--tail2 > candidate.file2index) {
+ different.file2.push(file2[tail2]);
+ }
+
+ if (different.file1.length || different.file2.length) {
+ processCommon();
+ different.file1.reverse();
+ different.file2.reverse();
+ result.push(different);
+ }
+
+ if (tail1 >= 0) {
+ common.common.push(file1[tail1]);
+ }
+ }
+
+ processCommon();
+
+ result.reverse();
+ return result;
+ },
+
+ diff_patch: function(file1, file2) {
+ // We apply the LCD to build a JSON representation of a
+ // diff(1)-style patch.
+
+ var result = [];
+ var tail1 = file1.length;
+ var tail2 = file2.length;
+
+ function chunkDescription(file, offset, length) {
+ var chunk = [];
+ for (var i = 0; i < length; i++) {
+ chunk.push(file[offset + i]);
+ }
+ return {offset: offset,
+ length: length,
+ chunk: chunk};
+ }
+
+ for (var candidate = Diff3.longest_common_subsequence(file1, file2);
+ candidate !== null;
+ candidate = candidate.chain)
+ {
+ var mismatchLength1 = tail1 - candidate.file1index - 1;
+ var mismatchLength2 = tail2 - candidate.file2index - 1;
+ tail1 = candidate.file1index;
+ tail2 = candidate.file2index;
+
+ if (mismatchLength1 || mismatchLength2) {
+ result.push({file1: chunkDescription(file1,
+ candidate.file1index + 1,
+ mismatchLength1),
+ file2: chunkDescription(file2,
+ candidate.file2index + 1,
+ mismatchLength2)});
+ }
+ }
+
+ result.reverse();
+ return result;
+ },
+
+ strip_patch: function(patch) {
+ // Takes the output of Diff3.diff_patch(), and removes
+ // information from it. It can still be used by patch(),
+ // below, but can no longer be inverted.
+ var newpatch = [];
+ for (var i = 0; i < patch.length; i++) {
+ var chunk = patch[i];
+ newpatch.push({file1: {offset: chunk.file1.offset,
+ length: chunk.file1.length},
+ file2: {chunk: chunk.file2.chunk}});
+ }
+ return newpatch;
+ },
+
+ invert_patch: function(patch) {
+ // Takes the output of Diff3.diff_patch(), and inverts the
+ // sense of it, so that it can be applied to file2 to give
+ // file1 rather than the other way around.
+
+ for (var i = 0; i < patch.length; i++) {
+ var chunk = patch[i];
+ var tmp = chunk.file1;
+ chunk.file1 = chunk.file2;
+ chunk.file2 = tmp;
+ }
+ },
+
+ patch: function (file, patch) {
+ // Applies a patch to a file.
+ //
+ // Given file1 and file2, Diff3.patch(file1,
+ // Diff3.diff_patch(file1, file2)) should give file2.
+
+ var result = [];
+ var commonOffset = 0;
+
+ function copyCommon(targetOffset) {
+ while (commonOffset < targetOffset) {
+ result.push(file[commonOffset]);
+ commonOffset++;
+ }
+ }
+
+ for (var chunkIndex = 0; chunkIndex < patch.length; chunkIndex++) {
+ var chunk = patch[chunkIndex];
+ copyCommon(chunk.file1.offset);
+ for (var lineIndex = 0; lineIndex < chunk.file2.chunk.length; lineIndex++) {
+ result.push(chunk.file2.chunk[lineIndex]);
+ }
+ commonOffset += chunk.file1.length;
+ }
+
+ copyCommon(file.length);
+ return result;
+ },
+
+ diff_indices: function(file1, file2) {
+ // We apply the LCS to give a simple representation of the
+ // offsets and lengths of mismatched chunks in the input
+ // files. This is used by diff3_merge_indices below.
+
+ var result = [];
+ var tail1 = file1.length;
+ var tail2 = file2.length;
+
+ for (var candidate = Diff3.longest_common_subsequence(file1, file2);
+ candidate !== null;
+ candidate = candidate.chain)
+ {
+ var mismatchLength1 = tail1 - candidate.file1index - 1;
+ var mismatchLength2 = tail2 - candidate.file2index - 1;
+ tail1 = candidate.file1index;
+ tail2 = candidate.file2index;
+
+ if (mismatchLength1 || mismatchLength2) {
+ result.push({file1: [tail1 + 1, mismatchLength1],
+ file2: [tail2 + 1, mismatchLength2]});
+ }
+ }
+
+ result.reverse();
+ return result;
+ },
+
+ diff3_merge_indices: function (a, o, b) {
+ // Given three files, A, O, and B, where both A and B are
+ // independently derived from O, returns a fairly complicated
+ // internal representation of merge decisions it's taken. The
+ // interested reader may wish to consult
+ //
+ // Sanjeev Khanna, Keshav Kunal, and Benjamin C. Pierce. "A
+ // Formal Investigation of Diff3." In Arvind and Prasad,
+ // editors, Foundations of Software Technology and Theoretical
+ // Computer Science (FSTTCS), December 2007.
+ //
+ // (http://www.cis.upenn.edu/~bcpierce/papers/diff3-short.pdf)
+ var i;
+
+ var m1 = Diff3.diff_indices(o, a);
+ var m2 = Diff3.diff_indices(o, b);
+
+ var hunks = [];
+ function addHunk(h, side) {
+ hunks.push([h.file1[0], side, h.file1[1], h.file2[0], h.file2[1]]);
+ }
+ for (i = 0; i < m1.length; i++) { addHunk(m1[i], 0); }
+ for (i = 0; i < m2.length; i++) { addHunk(m2[i], 2); }
+ hunks.sort();
+
+ var result = [];
+ var commonOffset = 0;
+ function copyCommon(targetOffset) {
+ if (targetOffset > commonOffset) {
+ result.push([1, commonOffset, targetOffset - commonOffset]);
+ commonOffset = targetOffset;
+ }
+ }
+
+ for (var hunkIndex = 0; hunkIndex < hunks.length; hunkIndex++) {
+ var firstHunkIndex = hunkIndex;
+ var hunk = hunks[hunkIndex];
+ var regionLhs = hunk[0];
+ var regionRhs = regionLhs + hunk[2];
+ while (hunkIndex < hunks.length - 1) {
+ var maybeOverlapping = hunks[hunkIndex + 1];
+ var maybeLhs = maybeOverlapping[0];
+ if (maybeLhs > regionRhs) break;
+ regionRhs = maybeLhs + maybeOverlapping[2];
+ hunkIndex++;
+ }
+
+ copyCommon(regionLhs);
+ if (firstHunkIndex == hunkIndex) {
+ // The "overlap" was only one hunk long, meaning that
+ // there's no conflict here. Either a and o were the
+ // same, or b and o were the same.
+ if (hunk[4] > 0) {
+ result.push([hunk[1], hunk[3], hunk[4]]);
+ }
+ } else {
+ // A proper conflict. Determine the extents of the
+ // regions involved from a, o and b. Effectively merge
+ // all the hunks on the left into one giant hunk, and
+ // do the same for the right; then, correct for skew
+ // in the regions of o that each side changed, and
+ // report appropriate spans for the three sides.
+ var regions = {
+ 0: [a.length, -1, o.length, -1],
+ 2: [b.length, -1, o.length, -1]
+ };
+ for (i = firstHunkIndex; i <= hunkIndex; i++) {
+ hunk = hunks[i];
+ var side = hunk[1];
+ var r = regions[side];
+ var oLhs = hunk[0];
+ var oRhs = oLhs + hunk[2];
+ var abLhs = hunk[3];
+ var abRhs = abLhs + hunk[4];
+ r[0] = Math.min(abLhs, r[0]);
+ r[1] = Math.max(abRhs, r[1]);
+ r[2] = Math.min(oLhs, r[2]);
+ r[3] = Math.max(oRhs, r[3]);
+ }
+ var aLhs = regions[0][0] + (regionLhs - regions[0][2]);
+ var aRhs = regions[0][1] + (regionRhs - regions[0][3]);
+ var bLhs = regions[2][0] + (regionLhs - regions[2][2]);
+ var bRhs = regions[2][1] + (regionRhs - regions[2][3]);
+ result.push([-1,
+ aLhs, aRhs - aLhs,
+ regionLhs, regionRhs - regionLhs,
+ bLhs, bRhs - bLhs]);
+ }
+ commonOffset = regionRhs;
+ }
+
+ copyCommon(o.length);
+ return result;
+ },
+
+ diff3_merge: function (a, o, b, excludeFalseConflicts) {
+ // Applies the output of Diff3.diff3_merge_indices to actually
+ // construct the merged file; the returned result alternates
+ // between "ok" and "conflict" blocks.
+
+ var result = [];
+ var files = [a, o, b];
+ var indices = Diff3.diff3_merge_indices(a, o, b);
+
+ var okLines = [];
+ function flushOk() {
+ if (okLines.length) {
+ result.push({ok: okLines});
+ }
+ okLines = [];
+ }
+ function pushOk(xs) {
+ for (var j = 0; j < xs.length; j++) {
+ okLines.push(xs[j]);
+ }
+ }
+
+ function isTrueConflict(rec) {
+ if (rec[2] != rec[6]) return true;
+ var aoff = rec[1];
+ var boff = rec[5];
+ for (var j = 0; j < rec[2]; j++) {
+ if (a[j + aoff] != b[j + boff]) return true;
+ }
+ return false;
+ }
+
+ for (var i = 0; i < indices.length; i++) {
+ var x = indices[i];
+ var side = x[0];
+ if (side == -1) {
+ if (excludeFalseConflicts && !isTrueConflict(x)) {
+ pushOk(files[0].slice(x[1], x[1] + x[2]));
+ } else {
+ flushOk();
+ result.push({conflict: {a: a.slice(x[1], x[1] + x[2]),
+ aIndex: x[1],
+ o: o.slice(x[3], x[3] + x[4]),
+ oIndex: x[3],
+ b: b.slice(x[5], x[5] + x[6]),
+ bIndex: x[5]}});
+ }
+ } else {
+ pushOk(files[side].slice(x[1], x[1] + x[2]));
+ }
+ }
+
+ flushOk();
+ return result;
+ }
+ };
+ return diff3;
+})();
+
+if (typeof module !== 'undefined') module.exports = Diff3;
var JXON = new (function () {
var
sValueProp = "keyValue", sAttributesProp = "keyAttributes", sAttrPref = "@", /* you can customize these values */
// we got our Document instance! try: alert((new XMLSerializer()).serializeToString(newDoc));
/**
* @license
- * Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
- * Build: `lodash --debug --output js/lib/lodash.js include="any,assign,bind,clone,compact,contains,debounce,difference,each,every,extend,filter,find,first,forEach,groupBy,indexOf,intersection,isEmpty,isEqual,isFunction,keys,last,map,omit,pairs,pluck,reject,some,throttle,union,uniq,unique,values,without,flatten,value,chain,cloneDeep,merge,pick,reduce" exports="global,node"`
- * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
- * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
- * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- * Available under MIT license <http://lodash.com/license>
+ * lodash 3.9.3 (Custom Build) <https://lodash.com/>
+ * Build: `lodash --development --output js/lib/lodash.js include="any,assign,bind,chunk,clone,compact,contains,debounce,difference,each,every,extend,filter,find,first,forEach,forOwn,groupBy,indexOf,intersection,isEmpty,isEqual,isFunction,keys,last,map,omit,pairs,pluck,reject,some,throttle,union,uniq,unique,values,without,flatten,value,chain,cloneDeep,merge,pick,reduce" exports="global,node"`
+ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
+ * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ * Available under MIT license <https://lodash.com/license>
*/
;(function() {
- /** Used as a safe reference for `undefined` in pre ES5 environments */
+ /** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
- /** Used to pool arrays and objects used internally */
- var arrayPool = [],
- objectPool = [];
+ /** Used as the semantic version number. */
+ var VERSION = '3.9.3';
+
+ /** Used to compose bitmasks for wrapper metadata. */
+ var BIND_FLAG = 1,
+ BIND_KEY_FLAG = 2,
+ CURRY_BOUND_FLAG = 4,
+ CURRY_FLAG = 8,
+ CURRY_RIGHT_FLAG = 16,
+ PARTIAL_FLAG = 32,
+ PARTIAL_RIGHT_FLAG = 64,
+ ARY_FLAG = 128,
+ REARG_FLAG = 256;
+
+ /** Used to detect when a function becomes hot. */
+ var HOT_COUNT = 150,
+ HOT_SPAN = 16;
+
+ /** Used to indicate the type of lazy iteratees. */
+ var LAZY_DROP_WHILE_FLAG = 0,
+ LAZY_FILTER_FLAG = 1,
+ LAZY_MAP_FLAG = 2;
+
+ /** Used as the `TypeError` message for "Functions" methods. */
+ var FUNC_ERROR_TEXT = 'Expected a function';
+
+ /** Used as the internal argument placeholder. */
+ var PLACEHOLDER = '__lodash_placeholder__';
+
+ /** `Object#toString` result references. */
+ var argsTag = '[object Arguments]',
+ arrayTag = '[object Array]',
+ boolTag = '[object Boolean]',
+ dateTag = '[object Date]',
+ errorTag = '[object Error]',
+ funcTag = '[object Function]',
+ mapTag = '[object Map]',
+ numberTag = '[object Number]',
+ objectTag = '[object Object]',
+ regexpTag = '[object RegExp]',
+ setTag = '[object Set]',
+ stringTag = '[object String]',
+ weakMapTag = '[object WeakMap]';
+
+ var arrayBufferTag = '[object ArrayBuffer]',
+ float32Tag = '[object Float32Array]',
+ float64Tag = '[object Float64Array]',
+ int8Tag = '[object Int8Array]',
+ int16Tag = '[object Int16Array]',
+ int32Tag = '[object Int32Array]',
+ uint8Tag = '[object Uint8Array]',
+ uint8ClampedTag = '[object Uint8ClampedArray]',
+ uint16Tag = '[object Uint16Array]',
+ uint32Tag = '[object Uint32Array]';
+
+ /** Used to match property names within property paths. */
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
+ reIsPlainProp = /^\w*$/,
+ rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g;
- /** Used internally to indicate various things */
- var indicatorObject = {};
-
- /** Used to prefix keys to avoid issues with `__proto__` and properties on `Object.prototype` */
- var keyPrefix = +new Date + '';
-
- /** Used as the size when optimizations are enabled for large arrays */
- var largeArraySize = 75;
+ /**
+ * Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special).
+ * In addition to special characters the forward slash is escaped to allow for
+ * easier `eval` use and `Function` compilation.
+ */
+ var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g,
+ reHasRegExpChars = RegExp(reRegExpChars.source);
- /** Used as the max size of the `arrayPool` and `objectPool` */
- var maxPoolSize = 40;
+ /** Used to match backslashes in property paths. */
+ var reEscapeChar = /\\(\\)?/g;
- /** Used to match regexp flags from their coerced string values */
+ /** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;
- /** Used to detected named functions */
- var reFuncName = /^\s*function[ \n\r\t]+\w/;
+ /** Used to detect host constructors (Safari > 5). */
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
- /** Used to detect functions containing a `this` reference */
- var reThis = /\bthis\b/;
+ /** Used to detect unsigned integer values. */
+ var reIsUint = /^\d+$/;
- /** Used to fix the JScript [[DontEnum]] bug */
- var shadowedProps = [
+ /** Used to fix the JScript `[[DontEnum]]` bug. */
+ var shadowProps = [
'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable',
'toLocaleString', 'toString', 'valueOf'
];
- /** `Object#toString` result shortcuts */
- var argsClass = '[object Arguments]',
- arrayClass = '[object Array]',
- boolClass = '[object Boolean]',
- dateClass = '[object Date]',
- errorClass = '[object Error]',
- funcClass = '[object Function]',
- numberClass = '[object Number]',
- objectClass = '[object Object]',
- regexpClass = '[object RegExp]',
- stringClass = '[object String]';
-
- /** Used to identify object classifications that `_.clone` supports */
- var cloneableClasses = {};
- cloneableClasses[funcClass] = false;
- cloneableClasses[argsClass] = cloneableClasses[arrayClass] =
- cloneableClasses[boolClass] = cloneableClasses[dateClass] =
- cloneableClasses[numberClass] = cloneableClasses[objectClass] =
- cloneableClasses[regexpClass] = cloneableClasses[stringClass] = true;
-
- /** Used as an internal `_.debounce` options object */
+ /** Used to identify `toStringTag` values of typed arrays. */
+ var typedArrayTags = {};
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
+ typedArrayTags[uint32Tag] = true;
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
+ typedArrayTags[dateTag] = typedArrayTags[errorTag] =
+ typedArrayTags[funcTag] = typedArrayTags[mapTag] =
+ typedArrayTags[numberTag] = typedArrayTags[objectTag] =
+ typedArrayTags[regexpTag] = typedArrayTags[setTag] =
+ typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
+
+ /** Used to identify `toStringTag` values supported by `_.clone`. */
+ var cloneableTags = {};
+ cloneableTags[argsTag] = cloneableTags[arrayTag] =
+ cloneableTags[arrayBufferTag] = cloneableTags[boolTag] =
+ cloneableTags[dateTag] = cloneableTags[float32Tag] =
+ cloneableTags[float64Tag] = cloneableTags[int8Tag] =
+ cloneableTags[int16Tag] = cloneableTags[int32Tag] =
+ cloneableTags[numberTag] = cloneableTags[objectTag] =
+ cloneableTags[regexpTag] = cloneableTags[stringTag] =
+ cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
+ cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
+ cloneableTags[errorTag] = cloneableTags[funcTag] =
+ cloneableTags[mapTag] = cloneableTags[setTag] =
+ cloneableTags[weakMapTag] = false;
+
+ /** Used as an internal `_.debounce` options object by `_.throttle`. */
var debounceOptions = {
'leading': false,
'maxWait': 0,
'trailing': false
};
- /** Used as the property descriptor for `__bindData__` */
- var descriptor = {
- 'configurable': false,
- 'enumerable': false,
- 'value': null,
- 'writable': false
- };
-
- /** Used as the data object for `iteratorTemplate` */
- var iteratorData = {
- 'args': '',
- 'array': null,
- 'bottom': '',
- 'firstArg': '',
- 'init': '',
- 'keys': null,
- 'loop': '',
- 'shadowedProps': null,
- 'support': null,
- 'top': '',
- 'useHas': false
- };
-
- /** Used to determine if values are of the language type Object */
+ /** Used to determine if values are of the language type `Object`. */
var objectTypes = {
- 'boolean': false,
'function': true,
- 'object': true,
- 'number': false,
- 'string': false,
- 'undefined': false
+ 'object': true
};
- /** Used as a reference to the global object */
- var root = (objectTypes[typeof window] && window) || this;
-
- /** Detect free variable `exports` */
+ /** Detect free variable `exports`. */
var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
- /** Detect free variable `module` */
+ /** Detect free variable `module`. */
var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;
- /** Detect the popular CommonJS extension `module.exports` */
+ /** Detect free variable `global` from Node.js. */
+ var freeGlobal = freeExports && freeModule && typeof global == 'object' && global && global.Object && global;
+
+ /** Detect free variable `self`. */
+ var freeSelf = objectTypes[typeof self] && self && self.Object && self;
+
+ /** Detect free variable `window`. */
+ var freeWindow = objectTypes[typeof window] && window && window.Object && window;
+
+ /** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports && freeExports;
- /** Detect free variable `global` from Node.js or Browserified code and use it as `root` */
- var freeGlobal = objectTypes[typeof global] && global;
- if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {
- root = freeGlobal;
- }
+ /**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+ var root = freeGlobal || ((freeWindow !== (this && this.window)) && freeWindow) || freeSelf || this;
/*--------------------------------------------------------------------------*/
/**
- * The base implementation of `_.indexOf` without support for binary searches
- * or `fromIndex` constraints.
+ * The base implementation of `_.findIndex` and `_.findLastIndex` without
+ * support for callback shorthands and `this` binding.
*
* @private
* @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value or `-1`.
+ * @param {Function} predicate The function invoked per iteration.
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {number} Returns the index of the matched value, else `-1`.
*/
- function baseIndexOf(array, value, fromIndex) {
- var index = (fromIndex || 0) - 1,
- length = array ? array.length : 0;
+ function baseFindIndex(array, predicate, fromRight) {
+ var length = array.length,
+ index = fromRight ? length : -1;
- while (++index < length) {
- if (array[index] === value) {
+ while ((fromRight ? index-- : ++index < length)) {
+ if (predicate(array[index], index, array)) {
return index;
}
}
}
/**
- * An implementation of `_.contains` for cache objects that mimics the return
- * signature of `_.indexOf` by returning `0` if the value is found, else `-1`.
+ * The base implementation of `_.indexOf` without support for binary searches.
*
* @private
- * @param {Object} cache The cache object to inspect.
+ * @param {Array} array The array to search.
* @param {*} value The value to search for.
- * @returns {number} Returns `0` if `value` is found, else `-1`.
+ * @param {number} fromIndex The index to search from.
+ * @returns {number} Returns the index of the matched value, else `-1`.
*/
- function cacheIndexOf(cache, value) {
- var type = typeof value;
- cache = cache.cache;
-
- if (type == 'boolean' || value == null) {
- return cache[value] ? 0 : -1;
- }
- if (type != 'number' && type != 'string') {
- type = 'object';
+ function baseIndexOf(array, value, fromIndex) {
+ if (value !== value) {
+ return indexOfNaN(array, fromIndex);
}
- var key = type == 'number' ? value : keyPrefix + value;
- cache = (cache = cache[type]) && cache[key];
+ var index = fromIndex - 1,
+ length = array.length;
- return type == 'object'
- ? (cache && baseIndexOf(cache, value) > -1 ? 0 : -1)
- : (cache ? 0 : -1);
+ while (++index < length) {
+ if (array[index] === value) {
+ return index;
+ }
+ }
+ return -1;
}
/**
- * Adds a given value to the corresponding cache object.
+ * The base implementation of `_.isFunction` without support for environments
+ * with incorrect `typeof` results.
*
* @private
- * @param {*} value The value to add to the cache.
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
*/
- function cachePush(value) {
- var cache = this.cache,
- type = typeof value;
-
- if (type == 'boolean' || value == null) {
- cache[value] = true;
- } else {
- if (type != 'number' && type != 'string') {
- type = 'object';
- }
- var key = type == 'number' ? value : keyPrefix + value,
- typeCache = cache[type] || (cache[type] = {});
-
- if (type == 'object') {
- (typeCache[key] || (typeCache[key] = [])).push(value);
- } else {
- typeCache[key] = true;
- }
- }
+ function baseIsFunction(value) {
+ // Avoid a Chakra JIT bug in compatibility modes of IE 11.
+ // See https://github.com/jashkenas/underscore/issues/1621 for more details.
+ return typeof value == 'function' || false;
}
/**
- * Creates a cache object to optimize linear searches of large arrays.
+ * Converts `value` to a string if it's not one. An empty string is returned
+ * for `null` or `undefined` values.
*
* @private
- * @param {Array} [array=[]] The array to search.
- * @returns {null|Object} Returns the cache object or `null` if caching should not be used.
+ * @param {*} value The value to process.
+ * @returns {string} Returns the string.
*/
- function createCache(array) {
- var index = -1,
- length = array.length,
- first = array[0],
- mid = array[(length / 2) | 0],
- last = array[length - 1];
-
- if (first && typeof first == 'object' &&
- mid && typeof mid == 'object' && last && typeof last == 'object') {
- return false;
- }
- var cache = getObject();
- cache['false'] = cache['null'] = cache['true'] = cache['undefined'] = false;
-
- var result = getObject();
- result.array = array;
- result.cache = cache;
- result.push = cachePush;
-
- while (++index < length) {
- result.push(array[index]);
+ function baseToString(value) {
+ if (typeof value == 'string') {
+ return value;
}
- return result;
+ return value == null ? '' : (value + '');
}
/**
- * Gets an array from the array pool or creates a new one if the pool is empty.
+ * Gets the index at which the first occurrence of `NaN` is found in `array`.
*
* @private
- * @returns {Array} The array from the pool.
+ * @param {Array} array The array to search.
+ * @param {number} fromIndex The index to search from.
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {number} Returns the index of the matched `NaN`, else `-1`.
*/
- function getArray() {
- return arrayPool.pop() || [];
+ function indexOfNaN(array, fromIndex, fromRight) {
+ var length = array.length,
+ index = fromIndex + (fromRight ? 0 : -1);
+
+ while ((fromRight ? index-- : ++index < length)) {
+ var other = array[index];
+ if (other !== other) {
+ return index;
+ }
+ }
+ return -1;
}
/**
- * Gets an object from the object pool or creates a new one if the pool is empty.
+ * Checks if `value` is a host object in IE < 9.
*
* @private
- * @returns {Object} The object from the pool.
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
*/
- function getObject() {
- return objectPool.pop() || {
- 'array': null,
- 'cache': null,
- 'false': false,
- 'null': false,
- 'number': null,
- 'object': null,
- 'push': null,
- 'string': null,
- 'true': false,
- 'undefined': false
+ var isHostObject = (function() {
+ try {
+ Object({ 'toString': 0 } + '');
+ } catch(e) {
+ return function() { return false; };
+ }
+ return function(value) {
+ // IE < 9 presents many host objects as `Object` objects that can coerce
+ // to strings despite having improperly defined `toString` methods.
+ return typeof value.toString != 'function' && typeof (value + '') == 'string';
};
- }
+ }());
/**
- * Checks if `value` is a DOM node in IE < 9.
+ * Checks if `value` is object-like.
*
* @private
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if the `value` is a DOM node, else `false`.
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
*/
- function isNode(value) {
- // IE < 9 presents DOM nodes as `Object` objects except they have `toString`
- // methods that are `typeof` "string" and still can coerce nodes to strings
- return typeof value.toString != 'function' && typeof (value + '') == 'string';
+ function isObjectLike(value) {
+ return !!value && typeof value == 'object';
}
/**
- * Releases the given array back to the array pool.
+ * Replaces all `placeholder` elements in `array` with an internal placeholder
+ * and returns an array of their indexes.
*
* @private
- * @param {Array} [array] The array to release.
+ * @param {Array} array The array to modify.
+ * @param {*} placeholder The placeholder to replace.
+ * @returns {Array} Returns the new array of placeholder indexes.
*/
- function releaseArray(array) {
- array.length = 0;
- if (arrayPool.length < maxPoolSize) {
- arrayPool.push(array);
- }
- }
+ function replaceHolders(array, placeholder) {
+ var index = -1,
+ length = array.length,
+ resIndex = -1,
+ result = [];
- /**
- * Releases the given object back to the object pool.
- *
- * @private
- * @param {Object} [object] The object to release.
- */
- function releaseObject(object) {
- var cache = object.cache;
- if (cache) {
- releaseObject(cache);
- }
- object.array = object.cache =object.object = object.number = object.string =null;
- if (objectPool.length < maxPoolSize) {
- objectPool.push(object);
+ while (++index < length) {
+ if (array[index] === placeholder) {
+ array[index] = PLACEHOLDER;
+ result[++resIndex] = index;
+ }
}
+ return result;
}
/**
- * Slices the `collection` from the `start` index up to, but not including,
- * the `end` index.
- *
- * Note: This function is used instead of `Array#slice` to support node lists
- * in IE < 9 and to ensure dense arrays are returned.
+ * An implementation of `_.uniq` optimized for sorted arrays without support
+ * for callback shorthands and `this` binding.
*
* @private
- * @param {Array|Object|string} collection The collection to slice.
- * @param {number} start The start index.
- * @param {number} end The end index.
- * @returns {Array} Returns the new array.
+ * @param {Array} array The array to inspect.
+ * @param {Function} [iteratee] The function invoked per iteration.
+ * @returns {Array} Returns the new duplicate-value-free array.
*/
- function slice(array, start, end) {
- start || (start = 0);
- if (typeof end == 'undefined') {
- end = array ? array.length : 0;
- }
- var index = -1,
- length = end - start || 0,
- result = Array(length < 0 ? 0 : length);
+ function sortedUniq(array, iteratee) {
+ var seen,
+ index = -1,
+ length = array.length,
+ resIndex = -1,
+ result = [];
while (++index < length) {
- result[index] = array[start + index];
+ var value = array[index],
+ computed = iteratee ? iteratee(value, index, array) : value;
+
+ if (!index || seen !== computed) {
+ seen = computed;
+ result[++resIndex] = value;
+ }
}
return result;
}
/*--------------------------------------------------------------------------*/
- /**
- * Used for `Array` method references.
- *
- * Normally `Array.prototype` would suffice, however, using an array literal
- * avoids issues in Narwhal.
- */
- var arrayRef = [];
-
- /** Used for native method references */
- var errorProto = Error.prototype,
+ /** Used for native method references. */
+ var arrayProto = Array.prototype,
+ errorProto = Error.prototype,
objectProto = Object.prototype,
stringProto = String.prototype;
- /** Used to resolve the internal [[Class]] of values */
- var toString = objectProto.toString;
+ /** Used to resolve the decompiled source of functions. */
+ var fnToString = Function.prototype.toString;
+
+ /** Used to check objects for own properties. */
+ var hasOwnProperty = objectProto.hasOwnProperty;
+
+ /**
+ * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
+ * of values.
+ */
+ var objToString = objectProto.toString;
- /** Used to detect if a method is native */
- var reNative = RegExp('^' +
- String(toString)
- .replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
- .replace(/toString| for [^\]]+/g, '.*?') + '$'
+ /** Used to detect if a method is native. */
+ var reIsNative = RegExp('^' +
+ escapeRegExp(fnToString.call(hasOwnProperty))
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
- /** Native method shortcuts */
- var fnToString = Function.prototype.toString,
- getPrototypeOf = reNative.test(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf,
- hasOwnProperty = objectProto.hasOwnProperty,
- now = reNative.test(now = Date.now) && now || function() { return +new Date; },
- push = arrayRef.push,
- propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
- /** Used to set meta data on functions */
- var defineProperty = (function() {
- // IE 8 only accepts DOM elements
+ /** Native method references. */
+ var ArrayBuffer = getNative(root, 'ArrayBuffer'),
+ bufferSlice = getNative(ArrayBuffer && new ArrayBuffer(0), 'slice'),
+ ceil = Math.ceil,
+ floor = Math.floor,
+ getPrototypeOf = getNative(Object, 'getPrototypeOf'),
+ push = arrayProto.push,
+ propertyIsEnumerable = objectProto.propertyIsEnumerable,
+ Set = getNative(root, 'Set'),
+ splice = arrayProto.splice,
+ Uint8Array = getNative(root, 'Uint8Array'),
+ WeakMap = getNative(root, 'WeakMap');
+
+ /** Used to clone array buffers. */
+ var Float64Array = (function() {
+ // Safari 5 errors when using an array buffer to initialize a typed array
+ // where the array buffer's `byteLength` is not a multiple of the typed
+ // array's `BYTES_PER_ELEMENT`.
try {
- var o = {},
- func = reNative.test(func = Object.defineProperty) && func,
- result = func(o, o, o) && func;
- } catch(e) { }
- return result;
+ var func = getNative(root, 'Float64Array'),
+ result = new func(new ArrayBuffer(10), 0, 1) && func;
+ } catch(e) {}
+ return result || null;
}());
- /* Native method shortcuts for methods with the same name as other `lodash` methods */
- var nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate,
- nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray,
- nativeKeys = reNative.test(nativeKeys = Object.keys) && nativeKeys,
+ /* Native method references for those with the same name as other `lodash` methods. */
+ var nativeCreate = getNative(Object, 'create'),
+ nativeIsArray = getNative(Array, 'isArray'),
+ nativeKeys = getNative(Object, 'keys'),
nativeMax = Math.max,
- nativeMin = Math.min;
-
- /** Used to lookup a built-in constructor by [[Class]] */
- var ctorByClass = {};
- ctorByClass[arrayClass] = Array;
- ctorByClass[boolClass] = Boolean;
- ctorByClass[dateClass] = Date;
- ctorByClass[funcClass] = Function;
- ctorByClass[objectClass] = Object;
- ctorByClass[numberClass] = Number;
- ctorByClass[regexpClass] = RegExp;
- ctorByClass[stringClass] = String;
-
- /** Used to avoid iterating non-enumerable properties in IE < 9 */
- var nonEnumProps = {};
- nonEnumProps[arrayClass] = nonEnumProps[dateClass] = nonEnumProps[numberClass] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true };
- nonEnumProps[boolClass] = nonEnumProps[stringClass] = { 'constructor': true, 'toString': true, 'valueOf': true };
- nonEnumProps[errorClass] = nonEnumProps[funcClass] = nonEnumProps[regexpClass] = { 'constructor': true, 'toString': true };
- nonEnumProps[objectClass] = { 'constructor': true };
+ nativeMin = Math.min,
+ nativeNow = getNative(Date, 'now');
- (function() {
- var length = shadowedProps.length;
- while (length--) {
- var key = shadowedProps[length];
- for (var className in nonEnumProps) {
- if (hasOwnProperty.call(nonEnumProps, className) && !hasOwnProperty.call(nonEnumProps[className], key)) {
- nonEnumProps[className][key] = false;
- }
+ /** Used as references for `-Infinity` and `Infinity`. */
+ var POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
+
+ /** Used as references for the maximum length and index of an array. */
+ var MAX_ARRAY_LENGTH = 4294967295,
+ MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
+ HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
+
+ /** Used as the size, in bytes, of each `Float64Array` element. */
+ var FLOAT64_BYTES_PER_ELEMENT = Float64Array ? Float64Array.BYTES_PER_ELEMENT : 0;
+
+ /**
+ * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
+ * of an array-like value.
+ */
+ var MAX_SAFE_INTEGER = 9007199254740991;
+
+ /** Used to store function metadata. */
+ var metaMap = WeakMap && new WeakMap;
+
+ /** Used to lookup unminified function names. */
+ var realNames = {};
+
+ /** Used to lookup a type array constructors by `toStringTag`. */
+ var ctorByTag = {};
+ ctorByTag[float32Tag] = root.Float32Array;
+ ctorByTag[float64Tag] = root.Float64Array;
+ ctorByTag[int8Tag] = root.Int8Array;
+ ctorByTag[int16Tag] = root.Int16Array;
+ ctorByTag[int32Tag] = root.Int32Array;
+ ctorByTag[uint8Tag] = root.Uint8Array;
+ ctorByTag[uint8ClampedTag] = root.Uint8ClampedArray;
+ ctorByTag[uint16Tag] = root.Uint16Array;
+ ctorByTag[uint32Tag] = root.Uint32Array;
+
+ /** Used to avoid iterating over non-enumerable properties in IE < 9. */
+ var nonEnumProps = {};
+ nonEnumProps[arrayTag] = nonEnumProps[dateTag] = nonEnumProps[numberTag] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true };
+ nonEnumProps[boolTag] = nonEnumProps[stringTag] = { 'constructor': true, 'toString': true, 'valueOf': true };
+ nonEnumProps[errorTag] = nonEnumProps[funcTag] = nonEnumProps[regexpTag] = { 'constructor': true, 'toString': true };
+ nonEnumProps[objectTag] = { 'constructor': true };
+
+ arrayEach(shadowProps, function(key) {
+ for (var tag in nonEnumProps) {
+ if (hasOwnProperty.call(nonEnumProps, tag)) {
+ var props = nonEnumProps[tag];
+ props[key] = hasOwnProperty.call(props, key);
}
}
- }());
+ });
- /*--------------------------------------------------------------------------*/
+ /*------------------------------------------------------------------------*/
/**
- * Creates a `lodash` object which wraps the given value to enable intuitive
- * method chaining.
- *
- * In addition to Lo-Dash methods, wrappers also have the following `Array` methods:
- * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`,
- * and `unshift`
- *
- * Chaining is supported in custom builds as long as the `value` method is
- * implicitly or explicitly included in the build.
- *
- * The chainable wrapper functions are:
- * `after`, `assign`, `bind`, `bindAll`, `bindKey`, `chain`, `compact`,
- * `compose`, `concat`, `countBy`, `create`, `createCallback`, `curry`,
- * `debounce`, `defaults`, `defer`, `delay`, `difference`, `filter`, `flatten`,
- * `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`,
- * `functions`, `groupBy`, `indexBy`, `initial`, `intersection`, `invert`,
- * `invoke`, `keys`, `map`, `max`, `memoize`, `merge`, `min`, `object`, `omit`,
- * `once`, `pairs`, `partial`, `partialRight`, `pick`, `pluck`, `pull`, `push`,
- * `range`, `reject`, `remove`, `rest`, `reverse`, `shuffle`, `slice`, `sort`,
- * `sortBy`, `splice`, `tap`, `throttle`, `times`, `toArray`, `transform`,
- * `union`, `uniq`, `unshift`, `unzip`, `values`, `where`, `without`, `wrap`,
- * and `zip`
- *
- * The non-chainable wrapper functions are:
- * `clone`, `cloneDeep`, `contains`, `escape`, `every`, `find`, `findIndex`,
- * `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `has`, `identity`,
- * `indexOf`, `isArguments`, `isArray`, `isBoolean`, `isDate`, `isElement`,
- * `isEmpty`, `isEqual`, `isFinite`, `isFunction`, `isNaN`, `isNull`, `isNumber`,
- * `isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`, `join`,
- * `lastIndexOf`, `mixin`, `noConflict`, `parseInt`, `pop`, `random`, `reduce`,
- * `reduceRight`, `result`, `shift`, `size`, `some`, `sortedIndex`, `runInContext`,
- * `template`, `unescape`, `uniqueId`, and `value`
- *
- * The wrapper functions `first` and `last` return wrapped values when `n` is
- * provided, otherwise they return unwrapped values.
- *
- * Explicit chaining can be enabled by using the `_.chain` method.
+ * Creates a `lodash` object which wraps `value` to enable implicit chaining.
+ * Methods that operate on and return arrays, collections, and functions can
+ * be chained together. Methods that return a boolean or single value will
+ * automatically end the chain returning the unwrapped value. Explicit chaining
+ * may be enabled using `_.chain`. The execution of chained methods is lazy,
+ * that is, execution is deferred until `_#value` is implicitly or explicitly
+ * called.
+ *
+ * Lazy evaluation allows several methods to support shortcut fusion. Shortcut
+ * fusion is an optimization that merges iteratees to avoid creating intermediate
+ * arrays and reduce the number of iteratee executions.
+ *
+ * Chaining is supported in custom builds as long as the `_#value` method is
+ * directly or indirectly included in the build.
+ *
+ * In addition to lodash methods, wrappers have `Array` and `String` methods.
+ *
+ * The wrapper `Array` methods are:
+ * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`,
+ * `splice`, and `unshift`
+ *
+ * The wrapper `String` methods are:
+ * `replace` and `split`
+ *
+ * The wrapper methods that support shortcut fusion are:
+ * `compact`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `filter`,
+ * `first`, `initial`, `last`, `map`, `pluck`, `reject`, `rest`, `reverse`,
+ * `slice`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `toArray`,
+ * and `where`
+ *
+ * The chainable wrapper methods are:
+ * `after`, `ary`, `assign`, `at`, `before`, `bind`, `bindAll`, `bindKey`,
+ * `callback`, `chain`, `chunk`, `commit`, `compact`, `concat`, `constant`,
+ * `countBy`, `create`, `curry`, `debounce`, `defaults`, `defer`, `delay`,
+ * `difference`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `fill`,
+ * `filter`, `flatten`, `flattenDeep`, `flow`, `flowRight`, `forEach`,
+ * `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `functions`,
+ * `groupBy`, `indexBy`, `initial`, `intersection`, `invert`, `invoke`, `keys`,
+ * `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
+ * `memoize`, `merge`, `method`, `methodOf`, `mixin`, `negate`, `omit`, `once`,
+ * `pairs`, `partial`, `partialRight`, `partition`, `pick`, `plant`, `pluck`,
+ * `property`, `propertyOf`, `pull`, `pullAt`, `push`, `range`, `rearg`,
+ * `reject`, `remove`, `rest`, `restParam`, `reverse`, `set`, `shuffle`,
+ * `slice`, `sort`, `sortBy`, `sortByAll`, `sortByOrder`, `splice`, `spread`,
+ * `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `tap`, `throttle`,
+ * `thru`, `times`, `toArray`, `toPlainObject`, `transform`, `union`, `uniq`,
+ * `unshift`, `unzip`, `unzipWith`, `values`, `valuesIn`, `where`, `without`,
+ * `wrap`, `xor`, `zip`, `zipObject`, `zipWith`
+ *
+ * The wrapper methods that are **not** chainable by default are:
+ * `add`, `attempt`, `camelCase`, `capitalize`, `clone`, `cloneDeep`, `deburr`,
+ * `endsWith`, `escape`, `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`,
+ * `findLast`, `findLastIndex`, `findLastKey`, `findWhere`, `first`, `get`,
+ * `gt`, `gte`, `has`, `identity`, `includes`, `indexOf`, `inRange`, `isArguments`,
+ * `isArray`, `isBoolean`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isError`,
+ * `isFinite` `isFunction`, `isMatch`, `isNative`, `isNaN`, `isNull`, `isNumber`,
+ * `isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`,
+ * `isTypedArray`, `join`, `kebabCase`, `last`, `lastIndexOf`, `lt`, `lte`,
+ * `max`, `min`, `noConflict`, `noop`, `now`, `pad`, `padLeft`, `padRight`,
+ * `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, `repeat`, `result`,
+ * `runInContext`, `shift`, `size`, `snakeCase`, `some`, `sortedIndex`,
+ * `sortedLastIndex`, `startCase`, `startsWith`, `sum`, `template`, `trim`,
+ * `trimLeft`, `trimRight`, `trunc`, `unescape`, `uniqueId`, `value`, and `words`
+ *
+ * The wrapper method `sample` will return a wrapped value when `n` is provided,
+ * otherwise an unwrapped value is returned.
*
* @name _
* @constructor
- * @category Chaining
+ * @category Chain
* @param {*} value The value to wrap in a `lodash` instance.
- * @returns {Object} Returns a `lodash` instance.
+ * @returns {Object} Returns the new `lodash` wrapper instance.
* @example
*
* var wrapped = _([1, 2, 3]);
*
* // returns an unwrapped value
- * wrapped.reduce(function(sum, num) {
- * return sum + num;
+ * wrapped.reduce(function(total, n) {
+ * return total + n;
* });
* // => 6
*
* // returns a wrapped value
- * var squares = wrapped.map(function(num) {
- * return num * num;
+ * var squares = wrapped.map(function(n) {
+ * return n * n;
* });
*
* _.isArray(squares);
* // => true
*/
function lodash(value) {
- // don't wrap if already wrapped, even if wrapped by a different `lodash` constructor
- return (value && typeof value == 'object' && !isArray(value) && hasOwnProperty.call(value, '__wrapped__'))
- ? value
- : new lodashWrapper(value);
+ if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
+ if (value instanceof LodashWrapper) {
+ return value;
+ }
+ if (hasOwnProperty.call(value, '__chain__') && hasOwnProperty.call(value, '__wrapped__')) {
+ return wrapperClone(value);
+ }
+ }
+ return new LodashWrapper(value);
}
/**
- * A fast path for creating `lodash` wrapper objects.
+ * The function whose prototype all chaining wrappers inherit from.
*
* @private
- * @param {*} value The value to wrap in a `lodash` instance.
- * @param {boolean} chainAll A flag to enable chaining for all methods
- * @returns {Object} Returns a `lodash` instance.
*/
- function lodashWrapper(value, chainAll) {
- this.__chain__ = !!chainAll;
+ function baseLodash() {
+ // No operation performed.
+ }
+
+ /**
+ * The base constructor for creating `lodash` wrapper objects.
+ *
+ * @private
+ * @param {*} value The value to wrap.
+ * @param {boolean} [chainAll] Enable chaining for all wrapper methods.
+ * @param {Array} [actions=[]] Actions to peform to resolve the unwrapped value.
+ */
+ function LodashWrapper(value, chainAll, actions) {
this.__wrapped__ = value;
+ this.__actions__ = actions || [];
+ this.__chain__ = !!chainAll;
}
- // ensure `new lodashWrapper` is an instance of `lodash`
- lodashWrapper.prototype = lodash.prototype;
/**
- * An object used to flag environments features.
+ * An object environment feature flags.
*
* @static
* @memberOf _
*/
var support = lodash.support = {};
- (function() {
- var ctor = function() { this.x = 1; },
- object = { '0': 1, 'length': 1 },
+ (function(x) {
+ var Ctor = function() { this.x = x; },
+ object = { '0': x, 'length': x },
props = [];
- ctor.prototype = { 'valueOf': 1, 'y': 1 };
- for (var key in new ctor) { props.push(key); }
- for (key in arguments) { }
-
- /**
- * Detect if an `arguments` object's [[Class]] is resolvable (all but Firefox < 4, IE < 9).
- *
- * @memberOf _.support
- * @type boolean
- */
- support.argsClass = toString.call(arguments) == argsClass;
+ Ctor.prototype = { 'valueOf': x, 'y': x };
+ for (var key in new Ctor) { props.push(key); }
/**
- * Detect if `arguments` objects are `Object` objects (all but Narwhal and Opera < 10.5).
+ * Detect if the `toStringTag` of `arguments` objects is resolvable
+ * (all but Firefox < 4, IE < 9).
*
* @memberOf _.support
* @type boolean
*/
- support.argsObject = arguments.constructor == Object && !(arguments instanceof Array);
+ support.argsTag = objToString.call(arguments) == argsTag;
/**
* Detect if `name` or `message` properties of `Error.prototype` are
- * enumerable by default. (IE < 9, Safari < 5.1)
+ * enumerable by default (IE < 9, Safari < 5.1).
*
* @memberOf _.support
* @type boolean
*/
- support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') || propertyIsEnumerable.call(errorProto, 'name');
+ support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') ||
+ propertyIsEnumerable.call(errorProto, 'name');
/**
* Detect if `prototype` properties are enumerable by default.
*
* Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1
* (if the prototype or a property on the prototype has been set)
- * incorrectly sets a function's `prototype` property [[Enumerable]]
- * value to `true`.
- *
- * @memberOf _.support
- * @type boolean
- */
- support.enumPrototypes = propertyIsEnumerable.call(ctor, 'prototype');
-
- /**
- * Detect if functions can be decompiled by `Function#toString`
- * (all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps).
- *
- * @memberOf _.support
- * @type boolean
- */
- support.funcDecomp = !reNative.test(root.WinRTError) && reThis.test(function() { return this; });
-
- /**
- * Detect if `Function#name` is supported (all but IE).
- *
- * @memberOf _.support
- * @type boolean
- */
- support.funcNames = typeof Function.name == 'string';
-
- /**
- * Detect if `arguments` object indexes are non-enumerable
- * (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
+ * incorrectly set the `[[Enumerable]]` value of a function's `prototype`
+ * property to `true`.
*
* @memberOf _.support
* @type boolean
*/
- support.nonEnumArgs = key != 0;
+ support.enumPrototypes = propertyIsEnumerable.call(Ctor, 'prototype');
/**
* Detect if properties shadowing those on `Object.prototype` are non-enumerable.
*
- * In IE < 9 an objects own properties, shadowing non-enumerable ones, are
- * made non-enumerable as well (a.k.a the JScript [[DontEnum]] bug).
+ * In IE < 9 an object's own properties, shadowing non-enumerable ones,
+ * are made non-enumerable as well (a.k.a the JScript `[[DontEnum]]` bug).
*
* @memberOf _.support
* @type boolean
support.nonEnumShadows = !/valueOf/.test(props);
/**
- * Detect if own properties are iterated after inherited properties (all but IE < 9).
+ * Detect if own properties are iterated after inherited properties (IE < 9).
*
* @memberOf _.support
* @type boolean
support.ownLast = props[0] != 'x';
/**
- * Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
+ * Detect if `Array#shift` and `Array#splice` augment array-like objects
+ * correctly.
*
- * Firefox < 10, IE compatibility mode, and IE < 9 have buggy Array `shift()`
- * and `splice()` functions that fail to remove the last element, `value[0]`,
- * of array-like objects even though the `length` property is set to `0`.
- * The `shift()` method is buggy in IE 8 compatibility mode, while `splice()`
- * is buggy regardless of mode in IE < 9 and buggy in compatibility mode in IE 9.
+ * Firefox < 10, compatibility modes of IE 8, and IE < 9 have buggy Array
+ * `shift()` and `splice()` functions that fail to remove the last element,
+ * `value[0]`, of array-like objects even though the "length" property is
+ * set to `0`. The `shift()` method is buggy in compatibility modes of IE 8,
+ * while `splice()` is buggy regardless of mode in IE < 9.
*
* @memberOf _.support
* @type boolean
*/
- support.spliceObjects = (arrayRef.splice.call(object, 0, 1), !object[0]);
+ support.spliceObjects = (splice.call(object, 0, 1), !object[0]);
/**
* Detect lack of support for accessing string characters by index.
*
- * IE < 8 can't access characters by index and IE 8 can only access
- * characters by index on string literals.
+ * IE < 8 can't access characters by index. IE 8 can only access characters
+ * by index on string literals, not string objects.
*
* @memberOf _.support
* @type boolean
*/
support.unindexedChars = ('x'[0] + Object('x')[0]) != 'xx';
+ }(1, 0));
- /**
- * Detect if a DOM node's [[Class]] is resolvable (all but IE < 9)
- * and that the JS engine errors when attempting to coerce an object to
- * a string without a `toString` function.
- *
- * @memberOf _.support
- * @type boolean
- */
- try {
- support.nodeClass = !(toString.call(document) == objectClass && !({ 'toString': 0 } + ''));
- } catch(e) {
- support.nodeClass = true;
- }
- }(1));
-
- /*--------------------------------------------------------------------------*/
+ /*------------------------------------------------------------------------*/
/**
- * The template used to create iterator functions.
+ * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
*
* @private
- * @param {Object} data The data object used to populate the text.
- * @returns {string} Returns the interpolated text.
+ * @param {*} value The value to wrap.
*/
- var iteratorTemplate = function(obj) {
-
- var __p = 'var index, iterable = ' +
- (obj.firstArg) +
- ', result = ' +
- (obj.init) +
- ';\nif (!iterable) return result;\n' +
- (obj.top) +
- ';';
- if (obj.array) {
- __p += '\nvar length = iterable.length; index = -1;\nif (' +
- (obj.array) +
- ') { ';
- if (support.unindexedChars) {
- __p += '\n if (isString(iterable)) {\n iterable = iterable.split(\'\')\n } ';
- }
- __p += '\n while (++index < length) {\n ' +
- (obj.loop) +
- ';\n }\n}\nelse { ';
- } else if (support.nonEnumArgs) {
- __p += '\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += \'\';\n ' +
- (obj.loop) +
- ';\n }\n } else { ';
- }
-
- if (support.enumPrototypes) {
- __p += '\n var skipProto = typeof iterable == \'function\';\n ';
- }
-
- if (support.enumErrorProps) {
- __p += '\n var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n ';
- }
-
- var conditions = []; if (support.enumPrototypes) { conditions.push('!(skipProto && index == "prototype")'); } if (support.enumErrorProps) { conditions.push('!(skipErrorProps && (index == "message" || index == "name"))'); }
-
- if (obj.useHas && obj.keys) {
- __p += '\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n';
- if (conditions.length) {
- __p += ' if (' +
- (conditions.join(' && ')) +
- ') {\n ';
- }
- __p +=
- (obj.loop) +
- '; ';
- if (conditions.length) {
- __p += '\n }';
- }
- __p += '\n } ';
- } else {
- __p += '\n for (index in iterable) {\n';
- if (obj.useHas) { conditions.push("hasOwnProperty.call(iterable, index)"); } if (conditions.length) {
- __p += ' if (' +
- (conditions.join(' && ')) +
- ') {\n ';
- }
- __p +=
- (obj.loop) +
- '; ';
- if (conditions.length) {
- __p += '\n }';
- }
- __p += '\n } ';
- if (support.nonEnumShadows) {
- __p += '\n\n if (iterable !== objectProto) {\n var ctor = iterable.constructor,\n isProto = iterable === (ctor && ctor.prototype),\n className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n nonEnum = nonEnumProps[className];\n ';
- for (k = 0; k < 7; k++) {
- __p += '\n index = \'' +
- (obj.shadowedProps[k]) +
- '\';\n if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))';
- if (!obj.useHas) {
- __p += ' || (!nonEnum[index] && iterable[index] !== objectProto[index])';
- }
- __p += ') {\n ' +
- (obj.loop) +
- ';\n } ';
- }
- __p += '\n } ';
- }
-
- }
-
- if (obj.array || support.nonEnumArgs) {
- __p += '\n}';
- }
- __p +=
- (obj.bottom) +
- ';\nreturn result';
-
- return __p
- };
-
- /*--------------------------------------------------------------------------*/
+ function LazyWrapper(value) {
+ this.__wrapped__ = value;
+ this.__actions__ = null;
+ this.__dir__ = 1;
+ this.__dropCount__ = 0;
+ this.__filtered__ = false;
+ this.__iteratees__ = null;
+ this.__takeCount__ = POSITIVE_INFINITY;
+ this.__views__ = null;
+ }
/**
- * The base implementation of `_.bind` that creates the bound function and
- * sets its meta data.
+ * Creates a clone of the lazy wrapper object.
*
* @private
- * @param {Array} bindData The bind data array.
- * @returns {Function} Returns the new bound function.
+ * @name clone
+ * @memberOf LazyWrapper
+ * @returns {Object} Returns the cloned `LazyWrapper` object.
*/
- function baseBind(bindData) {
- var func = bindData[0],
- partialArgs = bindData[2],
- thisArg = bindData[4];
-
- function bound() {
- // `Function#bind` spec
- // http://es5.github.io/#x15.3.4.5
- if (partialArgs) {
- var args = partialArgs.slice();
- push.apply(args, arguments);
- }
- // mimic the constructor's `return` behavior
- // http://es5.github.io/#x13.2.2
- if (this instanceof bound) {
- // ensure `new bound` is an instance of `func`
- var thisBinding = baseCreate(func.prototype),
- result = func.apply(thisBinding, args || arguments);
- return isObject(result) ? result : thisBinding;
- }
- return func.apply(thisArg, args || arguments);
- }
- setBindData(bound, bindData);
- return bound;
+ function lazyClone() {
+ var actions = this.__actions__,
+ iteratees = this.__iteratees__,
+ views = this.__views__,
+ result = new LazyWrapper(this.__wrapped__);
+
+ result.__actions__ = actions ? arrayCopy(actions) : null;
+ result.__dir__ = this.__dir__;
+ result.__filtered__ = this.__filtered__;
+ result.__iteratees__ = iteratees ? arrayCopy(iteratees) : null;
+ result.__takeCount__ = this.__takeCount__;
+ result.__views__ = views ? arrayCopy(views) : null;
+ return result;
}
/**
- * The base implementation of `_.clone` without argument juggling or support
- * for `thisArg` binding.
+ * Reverses the direction of lazy iteration.
*
* @private
- * @param {*} value The value to clone.
- * @param {boolean} [isDeep=false] Specify a deep clone.
- * @param {Function} [callback] The function to customize cloning values.
- * @param {Array} [stackA=[]] Tracks traversed source objects.
- * @param {Array} [stackB=[]] Associates clones with source counterparts.
- * @returns {*} Returns the cloned value.
+ * @name reverse
+ * @memberOf LazyWrapper
+ * @returns {Object} Returns the new reversed `LazyWrapper` object.
*/
- function baseClone(value, isDeep, callback, stackA, stackB) {
- if (callback) {
- var result = callback(value);
- if (typeof result != 'undefined') {
- return result;
- }
- }
- // inspect [[Class]]
- var isObj = isObject(value);
- if (isObj) {
- var className = toString.call(value);
- if (!cloneableClasses[className] || (!support.nodeClass && isNode(value))) {
- return value;
- }
- var ctor = ctorByClass[className];
- switch (className) {
- case boolClass:
- case dateClass:
- return new ctor(+value);
-
- case numberClass:
- case stringClass:
- return new ctor(value);
-
- case regexpClass:
- result = ctor(value.source, reFlags.exec(value));
- result.lastIndex = value.lastIndex;
- return result;
- }
+ function lazyReverse() {
+ if (this.__filtered__) {
+ var result = new LazyWrapper(this);
+ result.__dir__ = -1;
+ result.__filtered__ = true;
} else {
- return value;
+ result = this.clone();
+ result.__dir__ *= -1;
}
- var isArr = isArray(value);
- if (isDeep) {
- // check for circular references and return corresponding clone
- var initedStack = !stackA;
- stackA || (stackA = getArray());
- stackB || (stackB = getArray());
+ return result;
+ }
- var length = stackA.length;
- while (length--) {
- if (stackA[length] == value) {
- return stackB[length];
+ /**
+ * Extracts the unwrapped value from its lazy wrapper.
+ *
+ * @private
+ * @name value
+ * @memberOf LazyWrapper
+ * @returns {*} Returns the unwrapped value.
+ */
+ function lazyValue() {
+ var array = this.__wrapped__.value();
+ if (!isArray(array)) {
+ return baseWrapperValue(array, this.__actions__);
+ }
+ var dir = this.__dir__,
+ isRight = dir < 0,
+ view = getView(0, array.length, this.__views__),
+ start = view.start,
+ end = view.end,
+ length = end - start,
+ index = isRight ? end : (start - 1),
+ takeCount = nativeMin(length, this.__takeCount__),
+ iteratees = this.__iteratees__,
+ iterLength = iteratees ? iteratees.length : 0,
+ resIndex = 0,
+ result = [];
+
+ outer:
+ while (length-- && resIndex < takeCount) {
+ index += dir;
+
+ var iterIndex = -1,
+ value = array[index];
+
+ while (++iterIndex < iterLength) {
+ var data = iteratees[iterIndex],
+ iteratee = data.iteratee,
+ type = data.type;
+
+ if (type == LAZY_DROP_WHILE_FLAG) {
+ if (data.done && (isRight ? (index > data.index) : (index < data.index))) {
+ data.count = 0;
+ data.done = false;
+ }
+ data.index = index;
+ if (!data.done) {
+ var limit = data.limit;
+ if (!(data.done = limit > -1 ? (data.count++ >= limit) : !iteratee(value))) {
+ continue outer;
+ }
+ }
+ } else {
+ var computed = iteratee(value);
+ if (type == LAZY_MAP_FLAG) {
+ value = computed;
+ } else if (!computed) {
+ if (type == LAZY_FILTER_FLAG) {
+ continue outer;
+ } else {
+ break outer;
+ }
+ }
}
}
- result = isArr ? ctor(value.length) : {};
- }
- else {
- result = isArr ? slice(value) : assign({}, value);
- }
- // add array properties assigned by `RegExp#exec`
- if (isArr) {
- if (hasOwnProperty.call(value, 'index')) {
- result.index = value.index;
- }
- if (hasOwnProperty.call(value, 'input')) {
- result.input = value.input;
- }
- }
- // exit for shallow clone
- if (!isDeep) {
- return result;
+ result[resIndex++] = value;
}
- // add the source value to the stack of traversed objects
- // and associate it with its clone
- stackA.push(value);
- stackB.push(result);
+ return result;
+ }
- // recursively populate clone (susceptible to call stack limits)
- (isArr ? baseEach : forOwn)(value, function(objValue, key) {
- result[key] = baseClone(objValue, isDeep, callback, stackA, stackB);
- });
+ /*------------------------------------------------------------------------*/
+
+ /**
+ *
+ * Creates a cache object to store unique values.
+ *
+ * @private
+ * @param {Array} [values] The values to cache.
+ */
+ function SetCache(values) {
+ var length = values ? values.length : 0;
- if (initedStack) {
- releaseArray(stackA);
- releaseArray(stackB);
+ this.data = { 'hash': nativeCreate(null), 'set': new Set };
+ while (length--) {
+ this.push(values[length]);
}
- return result;
}
/**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
+ * Checks if `value` is in `cache` mimicking the return signature of
+ * `_.indexOf` by returning `0` if the value is found, else `-1`.
*
* @private
- * @param {Object} prototype The object to inherit from.
- * @returns {Object} Returns the new object.
+ * @param {Object} cache The cache to search.
+ * @param {*} value The value to search for.
+ * @returns {number} Returns `0` if `value` is found, else `-1`.
*/
- function baseCreate(prototype, properties) {
- return isObject(prototype) ? nativeCreate(prototype) : {};
- }
- // fallback for browsers without `Object.create`
- if (!nativeCreate) {
- baseCreate = (function() {
- function Object() {}
- return function(prototype) {
- if (isObject(prototype)) {
- Object.prototype = prototype;
- var result = new Object;
- Object.prototype = null;
- }
- return result || root.Object();
- };
- }());
+ function cacheIndexOf(cache, value) {
+ var data = cache.data,
+ result = (typeof value == 'string' || isObject(value)) ? data.set.has(value) : data.hash[value];
+
+ return result ? 0 : -1;
}
/**
- * The base implementation of `_.createCallback` without support for creating
- * "_.pluck" or "_.where" style callbacks.
+ * Adds `value` to the cache.
*
* @private
- * @param {*} [func=identity] The value to convert to a callback.
- * @param {*} [thisArg] The `this` binding of the created callback.
- * @param {number} [argCount] The number of arguments the callback accepts.
- * @returns {Function} Returns a callback function.
+ * @name push
+ * @memberOf SetCache
+ * @param {*} value The value to cache.
*/
- function baseCreateCallback(func, thisArg, argCount) {
- if (typeof func != 'function') {
- return identity;
- }
- // exit early for no `thisArg` or already bound by `Function#bind`
- if (typeof thisArg == 'undefined' || !('prototype' in func)) {
- return func;
- }
- var bindData = func.__bindData__;
- if (typeof bindData == 'undefined') {
- if (support.funcNames) {
- bindData = !func.name;
- }
- bindData = bindData || !support.funcDecomp;
- if (!bindData) {
- var source = fnToString.call(func);
- if (!support.funcNames) {
- bindData = !reFuncName.test(source);
- }
- if (!bindData) {
- // checks if `func` references the `this` keyword and stores the result
- bindData = reThis.test(source);
- setBindData(func, bindData);
- }
- }
- }
- // exit early if there are no `this` references or `func` is bound
- if (bindData === false || (bindData !== true && bindData[1] & 1)) {
- return func;
- }
- switch (argCount) {
- case 1: return function(value) {
- return func.call(thisArg, value);
- };
- case 2: return function(a, b) {
- return func.call(thisArg, a, b);
- };
- case 3: return function(value, index, collection) {
- return func.call(thisArg, value, index, collection);
- };
- case 4: return function(accumulator, value, index, collection) {
- return func.call(thisArg, accumulator, value, index, collection);
- };
+ function cachePush(value) {
+ var data = this.data;
+ if (typeof value == 'string' || isObject(value)) {
+ data.set.add(value);
+ } else {
+ data.hash[value] = true;
}
- return bind(func, thisArg);
}
+ /*------------------------------------------------------------------------*/
+
/**
- * The base implementation of `createWrapper` that creates the wrapper and
- * sets its meta data.
+ * Copies the values of `source` to `array`.
*
* @private
- * @param {Array} bindData The bind data array.
- * @returns {Function} Returns the new function.
+ * @param {Array} source The array to copy values from.
+ * @param {Array} [array=[]] The array to copy values to.
+ * @returns {Array} Returns `array`.
*/
- function baseCreateWrapper(bindData) {
- var func = bindData[0],
- bitmask = bindData[1],
- partialArgs = bindData[2],
- partialRightArgs = bindData[3],
- thisArg = bindData[4],
- arity = bindData[5];
-
- var isBind = bitmask & 1,
- isBindKey = bitmask & 2,
- isCurry = bitmask & 4,
- isCurryBound = bitmask & 8,
- key = func;
-
- function bound() {
- var thisBinding = isBind ? thisArg : this;
- if (partialArgs) {
- var args = partialArgs.slice();
- push.apply(args, arguments);
- }
- if (partialRightArgs || isCurry) {
- args || (args = slice(arguments));
- if (partialRightArgs) {
- push.apply(args, partialRightArgs);
- }
- if (isCurry && args.length < arity) {
- bitmask |= 16 & ~32;
- return baseCreateWrapper([func, (isCurryBound ? bitmask : bitmask & ~3), args, null, thisArg, arity]);
- }
- }
- args || (args = arguments);
- if (isBindKey) {
- func = thisBinding[key];
- }
- if (this instanceof bound) {
- thisBinding = baseCreate(func.prototype);
- var result = func.apply(thisBinding, args);
- return isObject(result) ? result : thisBinding;
- }
- return func.apply(thisBinding, args);
+ function arrayCopy(source, array) {
+ var index = -1,
+ length = source.length;
+
+ array || (array = Array(length));
+ while (++index < length) {
+ array[index] = source[index];
}
- setBindData(bound, bindData);
- return bound;
+ return array;
}
/**
- * The base implementation of `_.difference` that accepts a single array
- * of values to exclude.
+ * A specialized version of `_.forEach` for arrays without support for callback
+ * shorthands and `this` binding.
*
* @private
- * @param {Array} array The array to process.
- * @param {Array} [values] The array of values to exclude.
- * @returns {Array} Returns a new array of filtered values.
+ * @param {Array} array The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns `array`.
*/
- function baseDifference(array, values) {
+ function arrayEach(array, iteratee) {
var index = -1,
- indexOf = getIndexOf(),
- length = array ? array.length : 0,
- isLarge = length >= largeArraySize && indexOf === baseIndexOf,
- result = [];
+ length = array.length;
- if (isLarge) {
- var cache = createCache(values);
- if (cache) {
- indexOf = cacheIndexOf;
- values = cache;
- } else {
- isLarge = false;
+ while (++index < length) {
+ if (iteratee(array[index], index, array) === false) {
+ break;
}
}
+ return array;
+ }
+
+ /**
+ * A specialized version of `_.every` for arrays without support for callback
+ * shorthands and `this` binding.
+ *
+ * @private
+ * @param {Array} array The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`.
+ */
+ function arrayEvery(array, predicate) {
+ var index = -1,
+ length = array.length;
+
while (++index < length) {
- var value = array[index];
- if (indexOf(values, value) < 0) {
- result.push(value);
+ if (!predicate(array[index], index, array)) {
+ return false;
}
}
- if (isLarge) {
- releaseObject(values);
- }
- return result;
+ return true;
}
/**
- * The base implementation of `_.flatten` without support for callback
- * shorthands or `thisArg` binding.
+ * A specialized version of `_.filter` for arrays without support for callback
+ * shorthands and `this` binding.
*
* @private
- * @param {Array} array The array to flatten.
- * @param {boolean} [isShallow=false] A flag to restrict flattening to a single level.
- * @param {boolean} [isStrict=false] A flag to restrict flattening to arrays and `arguments` objects.
- * @param {number} [fromIndex=0] The index to start from.
- * @returns {Array} Returns a new flattened array.
+ * @param {Array} array The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {Array} Returns the new filtered array.
*/
- function baseFlatten(array, isShallow, isStrict, fromIndex) {
- var index = (fromIndex || 0) - 1,
- length = array ? array.length : 0,
+ function arrayFilter(array, predicate) {
+ var index = -1,
+ length = array.length,
+ resIndex = -1,
result = [];
while (++index < length) {
var value = array[index];
-
- if (value && typeof value == 'object' && typeof value.length == 'number'
- && (isArray(value) || isArguments(value))) {
- // recursively flatten arrays (susceptible to call stack limits)
- if (!isShallow) {
- value = baseFlatten(value, isShallow, isStrict);
- }
- var valIndex = -1,
- valLength = value.length,
- resIndex = result.length;
-
- result.length += valLength;
- while (++valIndex < valLength) {
- result[resIndex++] = value[valIndex];
- }
- } else if (!isStrict) {
- result.push(value);
+ if (predicate(value, index, array)) {
+ result[++resIndex] = value;
}
}
return result;
}
/**
- * The base implementation of `_.isEqual`, without support for `thisArg` binding,
- * that allows partial "_.where" style comparisons.
+ * A specialized version of `_.map` for arrays without support for callback
+ * shorthands and `this` binding.
*
* @private
- * @param {*} a The value to compare.
- * @param {*} b The other value to compare.
- * @param {Function} [callback] The function to customize comparing values.
- * @param {Function} [isWhere=false] A flag to indicate performing partial comparisons.
- * @param {Array} [stackA=[]] Tracks traversed `a` objects.
- * @param {Array} [stackB=[]] Tracks traversed `b` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @param {Array} array The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns the new mapped array.
*/
- function baseIsEqual(a, b, callback, isWhere, stackA, stackB) {
- // used to indicate that when comparing objects, `a` has at least the properties of `b`
- if (callback) {
- var result = callback(a, b);
- if (typeof result != 'undefined') {
- return !!result;
- }
- }
- // exit early for identical values
- if (a === b) {
- // treat `+0` vs. `-0` as not equal
- return a !== 0 || (1 / a == 1 / b);
- }
- var type = typeof a,
- otherType = typeof b;
-
- // exit early for unlike primitive values
- if (a === a &&
- !(a && objectTypes[type]) &&
- !(b && objectTypes[otherType])) {
- return false;
- }
- // exit early for `null` and `undefined` avoiding ES3's Function#call behavior
- // http://es5.github.io/#x15.3.4.4
- if (a == null || b == null) {
- return a === b;
- }
- // compare [[Class]] names
- var className = toString.call(a),
- otherClass = toString.call(b);
-
- if (className == argsClass) {
- className = objectClass;
- }
- if (otherClass == argsClass) {
- otherClass = objectClass;
- }
- if (className != otherClass) {
- return false;
- }
- switch (className) {
- case boolClass:
- case dateClass:
- // coerce dates and booleans to numbers, dates to milliseconds and booleans
- // to `1` or `0` treating invalid dates coerced to `NaN` as not equal
- return +a == +b;
-
- case numberClass:
- // treat `NaN` vs. `NaN` as equal
- return (a != +a)
- ? b != +b
- // but treat `+0` vs. `-0` as not equal
- : (a == 0 ? (1 / a == 1 / b) : a == +b);
-
- case regexpClass:
- case stringClass:
- // coerce regexes to strings (http://es5.github.io/#x15.10.6.4)
- // treat string primitives and their corresponding object instances as equal
- return a == String(b);
- }
- var isArr = className == arrayClass;
- if (!isArr) {
- // unwrap any `lodash` wrapped values
- var aWrapped = hasOwnProperty.call(a, '__wrapped__'),
- bWrapped = hasOwnProperty.call(b, '__wrapped__');
-
- if (aWrapped || bWrapped) {
- return baseIsEqual(aWrapped ? a.__wrapped__ : a, bWrapped ? b.__wrapped__ : b, callback, isWhere, stackA, stackB);
- }
- // exit for functions and DOM nodes
- if (className != objectClass || (!support.nodeClass && (isNode(a) || isNode(b)))) {
- return false;
- }
- // in older versions of Opera, `arguments` objects have `Array` constructors
- var ctorA = !support.argsObject && isArguments(a) ? Object : a.constructor,
- ctorB = !support.argsObject && isArguments(b) ? Object : b.constructor;
-
- // non `Object` object instances with different constructors are not equal
- if (ctorA != ctorB &&
- !(isFunction(ctorA) && ctorA instanceof ctorA && isFunction(ctorB) && ctorB instanceof ctorB) &&
- ('constructor' in a && 'constructor' in b)
- ) {
- return false;
- }
- }
- // assume cyclic structures are equal
- // the algorithm for detecting cyclic structures is adapted from ES 5.1
- // section 15.12.3, abstract operation `JO` (http://es5.github.io/#x15.12.3)
- var initedStack = !stackA;
- stackA || (stackA = getArray());
- stackB || (stackB = getArray());
+ function arrayMap(array, iteratee) {
+ var index = -1,
+ length = array.length,
+ result = Array(length);
- var length = stackA.length;
- while (length--) {
- if (stackA[length] == a) {
- return stackB[length] == b;
- }
+ while (++index < length) {
+ result[index] = iteratee(array[index], index, array);
}
- var size = 0;
- result = true;
-
- // add `a` and `b` to the stack of traversed objects
- stackA.push(a);
- stackB.push(b);
-
- // recursively compare objects and arrays (susceptible to call stack limits)
- if (isArr) {
- length = a.length;
- size = b.length;
+ return result;
+ }
- // compare lengths to determine if a deep comparison is necessary
- result = size == a.length;
- if (!result && !isWhere) {
- return result;
- }
- // deep compare the contents, ignoring non-numeric properties
- while (size--) {
- var index = length,
- value = b[size];
-
- if (isWhere) {
- while (index--) {
- if ((result = baseIsEqual(a[index], value, callback, isWhere, stackA, stackB))) {
- break;
- }
- }
- } else if (!(result = baseIsEqual(a[size], value, callback, isWhere, stackA, stackB))) {
- break;
- }
- }
- return result;
- }
- // deep compare objects using `forIn`, instead of `forOwn`, to avoid `Object.keys`
- // which, in this case, is more costly
- forIn(b, function(value, key, b) {
- if (hasOwnProperty.call(b, key)) {
- // count the number of properties.
- size++;
- // deep compare each property value.
- return (result = hasOwnProperty.call(a, key) && baseIsEqual(a[key], value, callback, isWhere, stackA, stackB));
- }
- });
+ /**
+ * A specialized version of `_.reduce` for arrays without support for callback
+ * shorthands and `this` binding.
+ *
+ * @private
+ * @param {Array} array The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @param {*} [accumulator] The initial value.
+ * @param {boolean} [initFromArray] Specify using the first element of `array`
+ * as the initial value.
+ * @returns {*} Returns the accumulated value.
+ */
+ function arrayReduce(array, iteratee, accumulator, initFromArray) {
+ var index = -1,
+ length = array.length;
- if (result && !isWhere) {
- // ensure both objects have the same number of properties
- forIn(a, function(value, key, a) {
- if (hasOwnProperty.call(a, key)) {
- // `size` will be `-1` if `a` has more properties than `b`
- return (result = --size > -1);
- }
- });
+ if (initFromArray && length) {
+ accumulator = array[++index];
}
- if (initedStack) {
- releaseArray(stackA);
- releaseArray(stackB);
+ while (++index < length) {
+ accumulator = iteratee(accumulator, array[index], index, array);
}
- return result;
+ return accumulator;
}
/**
- * The base implementation of `_.merge` without argument juggling or support
- * for `thisArg` binding.
+ * A specialized version of `_.some` for arrays without support for callback
+ * shorthands and `this` binding.
*
* @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {Function} [callback] The function to customize merging properties.
- * @param {Array} [stackA=[]] Tracks traversed source objects.
- * @param {Array} [stackB=[]] Associates values with source counterparts.
+ * @param {Array} array The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
*/
- function baseMerge(object, source, callback, stackA, stackB) {
- (isArray(source) ? forEach : forOwn)(source, function(source, key) {
- var found,
- isArr,
- result = source,
- value = object[key];
-
- if (source && ((isArr = isArray(source)) || isPlainObject(source))) {
- // avoid merging previously merged cyclic sources
- var stackLength = stackA.length;
- while (stackLength--) {
- if ((found = stackA[stackLength] == source)) {
- value = stackB[stackLength];
- break;
- }
- }
- if (!found) {
- var isShallow;
- if (callback) {
- result = callback(value, source);
- if ((isShallow = typeof result != 'undefined')) {
- value = result;
- }
- }
- if (!isShallow) {
- value = isArr
- ? (isArray(value) ? value : [])
- : (isPlainObject(value) ? value : {});
- }
- // add `source` and associated `value` to the stack of traversed objects
- stackA.push(source);
- stackB.push(value);
+ function arraySome(array, predicate) {
+ var index = -1,
+ length = array.length;
- // recursively merge objects and arrays (susceptible to call stack limits)
- if (!isShallow) {
- baseMerge(value, source, callback, stackA, stackB);
- }
- }
- }
- else {
- if (callback) {
- result = callback(value, source);
- if (typeof result == 'undefined') {
- result = source;
- }
- }
- if (typeof result != 'undefined') {
- value = result;
- }
+ while (++index < length) {
+ if (predicate(array[index], index, array)) {
+ return true;
}
- object[key] = value;
- });
+ }
+ return false;
}
/**
- * The base implementation of `_.uniq` without support for callback shorthands
- * or `thisArg` binding.
+ * A specialized version of `_.assign` for customizing assigned values without
+ * support for argument juggling, multiple sources, and `this` binding `customizer`
+ * functions.
*
* @private
- * @param {Array} array The array to process.
- * @param {boolean} [isSorted=false] A flag to indicate that `array` is sorted.
- * @param {Function} [callback] The function called per iteration.
- * @returns {Array} Returns a duplicate-value-free array.
+ * @param {Object} object The destination object.
+ * @param {Object} source The source object.
+ * @param {Function} customizer The function to customize assigned values.
+ * @returns {Object} Returns `object`.
*/
- function baseUniq(array, isSorted, callback) {
+ function assignWith(object, source, customizer) {
var index = -1,
- indexOf = getIndexOf(),
- length = array ? array.length : 0,
- result = [];
+ props = keys(source),
+ length = props.length;
- var isLarge = !isSorted && length >= largeArraySize && indexOf === baseIndexOf,
- seen = (callback || isLarge) ? getArray() : result;
-
- if (isLarge) {
- var cache = createCache(seen);
- if (cache) {
- indexOf = cacheIndexOf;
- seen = cache;
- } else {
- isLarge = false;
- seen = callback ? seen : (releaseArray(seen), result);
- }
- }
while (++index < length) {
- var value = array[index],
- computed = callback ? callback(value, index, array) : value;
+ var key = props[index],
+ value = object[key],
+ result = customizer(value, source[key], key, object, source);
- if (isSorted
- ? !index || seen[seen.length - 1] !== computed
- : indexOf(seen, computed) < 0
- ) {
- if (callback || isLarge) {
- seen.push(computed);
- }
- result.push(value);
+ if ((result === result ? (result !== value) : (value === value)) ||
+ (value === undefined && !(key in object))) {
+ object[key] = result;
}
}
- if (isLarge) {
- releaseArray(seen.array);
- releaseObject(seen);
- } else if (callback) {
- releaseArray(seen);
- }
- return result;
+ return object;
}
/**
- * Creates a function that aggregates a collection, creating an object composed
- * of keys generated from the results of running each element of the collection
- * through a callback. The given `setter` function sets the keys and values
- * of the composed object.
+ * The base implementation of `_.assign` without support for argument juggling,
+ * multiple sources, and `customizer` functions.
*
* @private
- * @param {Function} setter The setter function.
- * @returns {Function} Returns the new aggregator function.
+ * @param {Object} object The destination object.
+ * @param {Object} source The source object.
+ * @returns {Object} Returns `object`.
*/
- function createAggregator(setter) {
- return function(collection, callback, thisArg) {
- var result = {};
- callback = lodash.createCallback(callback, thisArg, 3);
-
- if (isArray(collection)) {
- var index = -1,
- length = collection.length;
-
- while (++index < length) {
- var value = collection[index];
- setter(result, value, callback(value, index, collection), collection);
- }
- } else {
- baseEach(collection, function(value, key, collection) {
- setter(result, value, callback(value, key, collection), collection);
- });
- }
- return result;
- };
+ function baseAssign(object, source) {
+ return source == null
+ ? object
+ : baseCopy(source, keys(source), object);
}
/**
- * Creates a function that, when called, either curries or invokes `func`
- * with an optional `this` binding and partially applied arguments.
+ * Copies properties of `source` to `object`.
*
* @private
- * @param {Function|string} func The function or method name to reference.
- * @param {number} bitmask The bitmask of method flags to compose.
- * The bitmask may be composed of the following flags:
- * 1 - `_.bind`
- * 2 - `_.bindKey`
- * 4 - `_.curry`
- * 8 - `_.curry` (bound)
- * 16 - `_.partial`
- * 32 - `_.partialRight`
- * @param {Array} [partialArgs] An array of arguments to prepend to those
- * provided to the new function.
- * @param {Array} [partialRightArgs] An array of arguments to append to those
- * provided to the new function.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new function.
+ * @param {Object} source The object to copy properties from.
+ * @param {Array} props The property names to copy.
+ * @param {Object} [object={}] The object to copy properties to.
+ * @returns {Object} Returns `object`.
*/
- function createWrapper(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) {
- var isBind = bitmask & 1,
- isBindKey = bitmask & 2,
- isCurry = bitmask & 4,
- isCurryBound = bitmask & 8,
- isPartial = bitmask & 16,
- isPartialRight = bitmask & 32;
-
- if (!isBindKey && !isFunction(func)) {
- throw new TypeError;
- }
- if (isPartial && !partialArgs.length) {
- bitmask &= ~16;
- isPartial = partialArgs = false;
- }
- if (isPartialRight && !partialRightArgs.length) {
- bitmask &= ~32;
- isPartialRight = partialRightArgs = false;
- }
- var bindData = func && func.__bindData__;
- if (bindData && bindData !== true) {
- bindData = bindData.slice();
-
- // set `thisBinding` is not previously bound
- if (isBind && !(bindData[1] & 1)) {
- bindData[4] = thisArg;
- }
- // set if previously bound but not currently (subsequent curried functions)
- if (!isBind && bindData[1] & 1) {
- bitmask |= 8;
- }
- // set curried arity if not yet set
- if (isCurry && !(bindData[1] & 4)) {
- bindData[5] = arity;
- }
- // append partial left arguments
- if (isPartial) {
- push.apply(bindData[2] || (bindData[2] = []), partialArgs);
- }
- // append partial right arguments
- if (isPartialRight) {
- push.apply(bindData[3] || (bindData[3] = []), partialRightArgs);
- }
- // merge flags
- bindData[1] |= bitmask;
- return createWrapper.apply(null, bindData);
+ function baseCopy(source, props, object) {
+ object || (object = {});
+
+ var index = -1,
+ length = props.length;
+
+ while (++index < length) {
+ var key = props[index];
+ object[key] = source[key];
}
- // fast path for `_.bind`
- var creater = (bitmask == 1 || bitmask === 17) ? baseBind : baseCreateWrapper;
- return creater([func, bitmask, partialArgs, partialRightArgs, thisArg, arity]);
+ return object;
}
/**
- * Creates compiled iteration functions.
+ * The base implementation of `_.callback` which supports specifying the
+ * number of arguments to provide to `func`.
*
* @private
- * @param {...Object} [options] The compile options object(s).
- * @param {string} [options.array] Code to determine if the iterable is an array or array-like.
- * @param {boolean} [options.useHas] Specify using `hasOwnProperty` checks in the object loop.
- * @param {Function} [options.keys] A reference to `_.keys` for use in own property iteration.
- * @param {string} [options.args] A comma separated string of iteration function arguments.
- * @param {string} [options.top] Code to execute before the iteration branches.
- * @param {string} [options.loop] Code to execute in the object loop.
- * @param {string} [options.bottom] Code to execute after the iteration branches.
- * @returns {Function} Returns the compiled function.
+ * @param {*} [func=_.identity] The value to convert to a callback.
+ * @param {*} [thisArg] The `this` binding of `func`.
+ * @param {number} [argCount] The number of arguments to provide to `func`.
+ * @returns {Function} Returns the callback.
*/
- function createIterator() {
- // data properties
- iteratorData.shadowedProps = shadowedProps;
-
- // iterator options
- iteratorData.array = iteratorData.bottom = iteratorData.loop = iteratorData.top = '';
- iteratorData.init = 'iterable';
- iteratorData.useHas = true;
-
- // merge options into a template data object
- for (var object, index = 0; object = arguments[index]; index++) {
- for (var key in object) {
- iteratorData[key] = object[key];
- }
+ function baseCallback(func, thisArg, argCount) {
+ var type = typeof func;
+ if (type == 'function') {
+ return thisArg === undefined
+ ? func
+ : bindCallback(func, thisArg, argCount);
}
- var args = iteratorData.args;
- iteratorData.firstArg = /^[^,]+/.exec(args)[0];
-
- // create the function factory
- var factory = Function(
- 'baseCreateCallback, errorClass, errorProto, hasOwnProperty, ' +
- 'indicatorObject, isArguments, isArray, isString, keys, objectProto, ' +
- 'objectTypes, nonEnumProps, stringClass, stringProto, toString',
- 'return function(' + args + ') {\n' + iteratorTemplate(iteratorData) + '\n}'
- );
-
- // return the compiled function
- return factory(
- baseCreateCallback, errorClass, errorProto, hasOwnProperty,
- indicatorObject, isArguments, isArray, isString, iteratorData.keys, objectProto,
- objectTypes, nonEnumProps, stringClass, stringProto, toString
- );
+ if (func == null) {
+ return identity;
+ }
+ if (type == 'object') {
+ return baseMatches(func);
+ }
+ return thisArg === undefined
+ ? property(func)
+ : baseMatchesProperty(func, thisArg);
}
/**
- * Gets the appropriate "indexOf" function. If the `_.indexOf` method is
- * customized, this method returns the custom method, otherwise it returns
- * the `baseIndexOf` function.
+ * The base implementation of `_.clone` without support for argument juggling
+ * and `this` binding `customizer` functions.
*
* @private
- * @returns {Function} Returns the "indexOf" function.
+ * @param {*} value The value to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @param {Function} [customizer] The function to customize cloning values.
+ * @param {string} [key] The key of `value`.
+ * @param {Object} [object] The object `value` belongs to.
+ * @param {Array} [stackA=[]] Tracks traversed source objects.
+ * @param {Array} [stackB=[]] Associates clones with source counterparts.
+ * @returns {*} Returns the cloned value.
*/
- function getIndexOf() {
- var result = (result = lodash.indexOf) === indexOf ? baseIndexOf : result;
+ function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
+ var result;
+ if (customizer) {
+ result = object ? customizer(value, key, object) : customizer(value);
+ }
+ if (result !== undefined) {
+ return result;
+ }
+ if (!isObject(value)) {
+ return value;
+ }
+ var isArr = isArray(value);
+ if (isArr) {
+ result = initCloneArray(value);
+ if (!isDeep) {
+ return arrayCopy(value, result);
+ }
+ } else {
+ var tag = objToString.call(value),
+ isFunc = tag == funcTag;
+
+ if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
+ if (isHostObject(value)) {
+ return object ? value : {};
+ }
+ result = initCloneObject(isFunc ? {} : value);
+ if (!isDeep) {
+ return baseAssign(result, value);
+ }
+ } else {
+ return cloneableTags[tag]
+ ? initCloneByTag(value, tag, isDeep)
+ : (object ? value : {});
+ }
+ }
+ // Check for circular references and return corresponding clone.
+ stackA || (stackA = []);
+ stackB || (stackB = []);
+
+ var length = stackA.length;
+ while (length--) {
+ if (stackA[length] == value) {
+ return stackB[length];
+ }
+ }
+ // Add the source value to the stack of traversed objects and associate it with its clone.
+ stackA.push(value);
+ stackB.push(result);
+
+ // Recursively populate clone (susceptible to call stack limits).
+ (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {
+ result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB);
+ });
return result;
}
/**
- * Sets `this` binding data on a given function.
+ * The base implementation of `_.create` without support for assigning
+ * properties to the created object.
*
* @private
- * @param {Function} func The function to set data on.
- * @param {Array} value The data array to set.
+ * @param {Object} prototype The object to inherit from.
+ * @returns {Object} Returns the new object.
*/
- var setBindData = !defineProperty ? noop : function(func, value) {
- descriptor.value = value;
- defineProperty(func, '__bindData__', descriptor);
- };
+ var baseCreate = (function() {
+ function object() {}
+ return function(prototype) {
+ if (isObject(prototype)) {
+ object.prototype = prototype;
+ var result = new object;
+ object.prototype = null;
+ }
+ return result || {};
+ };
+ }());
/**
- * A fallback implementation of `isPlainObject` which checks if a given value
- * is an object created by the `Object` constructor, assuming objects created
- * by the `Object` constructor have no inherited enumerable properties and that
- * there are no `Object.prototype` extensions.
+ * The base implementation of `_.difference` which accepts a single array
+ * of values to exclude.
*
* @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
+ * @param {Array} array The array to inspect.
+ * @param {Array} values The values to exclude.
+ * @returns {Array} Returns the new array of filtered values.
*/
- function shimIsPlainObject(value) {
- var ctor,
- result;
-
- // avoid non Object objects, `arguments` objects, and DOM elements
- if (!(value && toString.call(value) == objectClass) ||
- (ctor = value.constructor, isFunction(ctor) && !(ctor instanceof ctor)) ||
- (!support.argsClass && isArguments(value)) ||
- (!support.nodeClass && isNode(value))) {
- return false;
- }
- // IE < 9 iterates inherited properties before own properties. If the first
- // iterated property is an object's own property then there are no inherited
- // enumerable properties.
- if (support.ownLast) {
- forIn(value, function(value, key, object) {
- result = hasOwnProperty.call(object, key);
- return false;
- });
- return result !== false;
+ function baseDifference(array, values) {
+ var length = array ? array.length : 0,
+ result = [];
+
+ if (!length) {
+ return result;
}
- // In most environments an object's own properties are iterated before
- // its inherited properties. If the last iterated property is an object's
- // own property then there are no inherited enumerable properties.
- forIn(value, function(value, key) {
- result = key;
- });
- return typeof result == 'undefined' || hasOwnProperty.call(value, result);
- }
+ var index = -1,
+ indexOf = getIndexOf(),
+ isCommon = indexOf == baseIndexOf,
+ cache = (isCommon && values.length >= 200) ? createCache(values) : null,
+ valuesLength = values.length;
- /*--------------------------------------------------------------------------*/
+ if (cache) {
+ indexOf = cacheIndexOf;
+ isCommon = false;
+ values = cache;
+ }
+ outer:
+ while (++index < length) {
+ var value = array[index];
- /**
- * Checks if `value` is an `arguments` object.
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if the `value` is an `arguments` object, else `false`.
- * @example
- *
- * (function() { return _.isArguments(arguments); })(1, 2, 3);
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
- function isArguments(value) {
- return value && typeof value == 'object' && typeof value.length == 'number' &&
- toString.call(value) == argsClass || false;
- }
- // fallback for browsers that can't detect `arguments` objects by [[Class]]
- if (!support.argsClass) {
- isArguments = function(value) {
- return value && typeof value == 'object' && typeof value.length == 'number' &&
- hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee') || false;
- };
+ if (isCommon && value === value) {
+ var valuesIndex = valuesLength;
+ while (valuesIndex--) {
+ if (values[valuesIndex] === value) {
+ continue outer;
+ }
+ }
+ result.push(value);
+ }
+ else if (indexOf(values, value, 0) < 0) {
+ result.push(value);
+ }
+ }
+ return result;
}
/**
- * Checks if `value` is an array.
- *
- * @static
- * @memberOf _
- * @type Function
- * @category Objects
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if the `value` is an array, else `false`.
- * @example
- *
- * (function() { return _.isArray(arguments); })();
- * // => false
- *
- * _.isArray([1, 2, 3]);
- * // => true
- */
- var isArray = nativeIsArray || function(value) {
- return value && typeof value == 'object' && typeof value.length == 'number' &&
- toString.call(value) == arrayClass || false;
- };
-
- /**
- * A fallback implementation of `Object.keys` which produces an array of the
- * given object's own enumerable property names.
+ * The base implementation of `_.forEach` without support for callback
+ * shorthands and `this` binding.
*
* @private
- * @type Function
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns an array of property names.
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array|Object|string} Returns `collection`.
*/
- var shimKeys = createIterator({
- 'args': 'object',
- 'init': '[]',
- 'top': 'if (!(objectTypes[typeof object])) return result',
- 'loop': 'result.push(index)'
- });
+ var baseEach = createBaseEach(baseForOwn);
/**
- * Creates an array composed of the own enumerable property names of an object.
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns an array of property names.
- * @example
+ * The base implementation of `_.every` without support for callback
+ * shorthands and `this` binding.
*
- * _.keys({ 'one': 1, 'two': 2, 'three': 3 });
- * // => ['one', 'two', 'three'] (property order is not guaranteed across environments)
+ * @private
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`
*/
- var keys = !nativeKeys ? shimKeys : function(object) {
- if (!isObject(object)) {
- return [];
- }
- if ((support.enumPrototypes && typeof object == 'function') ||
- (support.nonEnumArgs && object.length && isArguments(object))) {
- return shimKeys(object);
- }
- return nativeKeys(object);
- };
-
- /** Reusable iterator options shared by `each`, `forIn`, and `forOwn` */
- var eachIteratorOptions = {
- 'args': 'collection, callback, thisArg',
- 'top': "callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",
- 'array': "typeof length == 'number'",
- 'keys': keys,
- 'loop': 'if (callback(iterable[index], index, collection) === false) return result'
- };
-
- /** Reusable iterator options for `assign` and `defaults` */
- var defaultsIteratorOptions = {
- 'args': 'object, source, guard',
- 'top':
- 'var args = arguments,\n' +
- ' argsIndex = 0,\n' +
- " argsLength = typeof guard == 'number' ? 2 : args.length;\n" +
- 'while (++argsIndex < argsLength) {\n' +
- ' iterable = args[argsIndex];\n' +
- ' if (iterable && objectTypes[typeof iterable]) {',
- 'keys': keys,
- 'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]",
- 'bottom': ' }\n}'
- };
-
- /** Reusable iterator options for `forIn` and `forOwn` */
- var forOwnIteratorOptions = {
- 'top': 'if (!objectTypes[typeof iterable]) return result;\n' + eachIteratorOptions.top,
- 'array': false
- };
+ function baseEvery(collection, predicate) {
+ var result = true;
+ baseEach(collection, function(value, index, collection) {
+ result = !!predicate(value, index, collection);
+ return result;
+ });
+ return result;
+ }
/**
- * A function compiled to iterate `arguments` objects, arrays, objects, and
- * strings consistenly across environments, executing the callback for each
- * element in the collection. The callback is bound to `thisArg` and invoked
- * with three arguments; (value, index|key, collection). Callbacks may exit
- * iteration early by explicitly returning `false`.
+ * The base implementation of `_.filter` without support for callback
+ * shorthands and `this` binding.
*
* @private
- * @type Function
* @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function} [callback=identity] The function called per iteration.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Array|Object|string} Returns `collection`.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {Array} Returns the new filtered array.
*/
- var baseEach = createIterator(eachIteratorOptions);
-
- /*--------------------------------------------------------------------------*/
+ function baseFilter(collection, predicate) {
+ var result = [];
+ baseEach(collection, function(value, index, collection) {
+ if (predicate(value, index, collection)) {
+ result.push(value);
+ }
+ });
+ return result;
+ }
/**
- * Assigns own enumerable properties of source object(s) to the destination
- * object. Subsequent sources will overwrite property assignments of previous
- * sources. If a callback is provided it will be executed to produce the
- * assigned values. The callback is bound to `thisArg` and invoked with two
- * arguments; (objectValue, sourceValue).
- *
- * @static
- * @memberOf _
- * @type Function
- * @alias extend
- * @category Objects
- * @param {Object} object The destination object.
- * @param {...Object} [source] The source objects.
- * @param {Function} [callback] The function to customize assigning values.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Object} Returns the destination object.
- * @example
- *
- * _.assign({ 'name': 'fred' }, { 'employer': 'slate' });
- * // => { 'name': 'fred', 'employer': 'slate' }
+ * The base implementation of `_.find`, `_.findLast`, `_.findKey`, and `_.findLastKey`,
+ * without support for callback shorthands and `this` binding, which iterates
+ * over `collection` using the provided `eachFunc`.
*
- * var defaults = _.partialRight(_.assign, function(a, b) {
- * return typeof a == 'undefined' ? b : a;
- * });
- *
- * var object = { 'name': 'barney' };
- * defaults(object, { 'name': 'fred', 'employer': 'slate' });
- * // => { 'name': 'barney', 'employer': 'slate' }
+ * @private
+ * @param {Array|Object|string} collection The collection to search.
+ * @param {Function} predicate The function invoked per iteration.
+ * @param {Function} eachFunc The function to iterate over `collection`.
+ * @param {boolean} [retKey] Specify returning the key of the found element
+ * instead of the element itself.
+ * @returns {*} Returns the found element or its key, else `undefined`.
*/
- var assign = createIterator(defaultsIteratorOptions, {
- 'top':
- defaultsIteratorOptions.top.replace(';',
- ';\n' +
- "if (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n" +
- ' var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n' +
- "} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n" +
- ' callback = args[--argsLength];\n' +
- '}'
- ),
- 'loop': 'result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]'
- });
+ function baseFind(collection, predicate, eachFunc, retKey) {
+ var result;
+ eachFunc(collection, function(value, key, collection) {
+ if (predicate(value, key, collection)) {
+ result = retKey ? key : value;
+ return false;
+ }
+ });
+ return result;
+ }
/**
- * Creates a clone of `value`. If `isDeep` is `true` nested objects will also
- * be cloned, otherwise they will be assigned by reference. If a callback
- * is provided it will be executed to produce the cloned values. If the
- * callback returns `undefined` cloning will be handled by the method instead.
- * The callback is bound to `thisArg` and invoked with one argument; (value).
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {*} value The value to clone.
- * @param {boolean} [isDeep=false] Specify a deep clone.
- * @param {Function} [callback] The function to customize cloning values.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {*} Returns the cloned value.
- * @example
- *
- * var characters = [
- * { 'name': 'barney', 'age': 36 },
- * { 'name': 'fred', 'age': 40 }
- * ];
- *
- * var shallow = _.clone(characters);
- * shallow[0] === characters[0];
- * // => true
+ * The base implementation of `_.flatten` with added support for restricting
+ * flattening and specifying the start index.
*
- * var deep = _.clone(characters, true);
- * deep[0] === characters[0];
- * // => false
- *
- * _.mixin({
- * 'clone': _.partialRight(_.clone, function(value) {
- * return _.isElement(value) ? value.cloneNode(false) : undefined;
- * })
- * });
- *
- * var clone = _.clone(document.body);
- * clone.childNodes.length;
- * // => 0
+ * @private
+ * @param {Array} array The array to flatten.
+ * @param {boolean} [isDeep] Specify a deep flatten.
+ * @param {boolean} [isStrict] Restrict flattening to arrays-like objects.
+ * @returns {Array} Returns the new flattened array.
*/
- function clone(value, isDeep, callback, thisArg) {
- // allows working with "Collections" methods without using their `index`
- // and `collection` arguments for `isDeep` and `callback`
- if (typeof isDeep != 'boolean' && isDeep != null) {
- thisArg = callback;
- callback = isDeep;
- isDeep = false;
+ function baseFlatten(array, isDeep, isStrict) {
+ var index = -1,
+ length = array.length,
+ resIndex = -1,
+ result = [];
+
+ while (++index < length) {
+ var value = array[index];
+ if (isObjectLike(value) && isArrayLike(value) &&
+ (isStrict || isArray(value) || isArguments(value))) {
+ if (isDeep) {
+ // Recursively flatten arrays (susceptible to call stack limits).
+ value = baseFlatten(value, isDeep, isStrict);
+ }
+ var valIndex = -1,
+ valLength = value.length;
+
+ while (++valIndex < valLength) {
+ result[++resIndex] = value[valIndex];
+ }
+ } else if (!isStrict) {
+ result[++resIndex] = value;
+ }
}
- return baseClone(value, isDeep, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 1));
+ return result;
}
/**
- * Creates a deep clone of `value`. If a callback is provided it will be
- * executed to produce the cloned values. If the callback returns `undefined`
- * cloning will be handled by the method instead. The callback is bound to
- * `thisArg` and invoked with one argument; (value).
- *
- * Note: This method is loosely based on the structured clone algorithm. Functions
- * and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and
- * objects created by constructors other than `Object` are cloned to plain `Object` objects.
- * See http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm.
+ * The base implementation of `baseForIn` and `baseForOwn` which iterates
+ * over `object` properties returned by `keysFunc` invoking `iteratee` for
+ * each property. Iteratee functions may exit iteration early by explicitly
+ * returning `false`.
*
- * @static
- * @memberOf _
- * @category Objects
- * @param {*} value The value to deep clone.
- * @param {Function} [callback] The function to customize cloning values.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {*} Returns the deep cloned value.
- * @example
- *
- * var characters = [
- * { 'name': 'barney', 'age': 36 },
- * { 'name': 'fred', 'age': 40 }
- * ];
- *
- * var deep = _.cloneDeep(characters);
- * deep[0] === characters[0];
- * // => false
- *
- * var view = {
- * 'label': 'docs',
- * 'node': element
- * };
- *
- * var clone = _.cloneDeep(view, function(value) {
- * return _.isElement(value) ? value.cloneNode(true) : undefined;
- * });
- *
- * clone.node == view.node;
- * // => false
+ * @private
+ * @param {Object} object The object to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @param {Function} keysFunc The function to get the keys of `object`.
+ * @returns {Object} Returns `object`.
*/
- function cloneDeep(value, callback, thisArg) {
- return baseClone(value, true, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 1));
- }
+ var baseFor = createBaseFor();
/**
- * Iterates over own and inherited enumerable properties of an object,
- * executing the callback for each property. The callback is bound to `thisArg`
- * and invoked with three arguments; (value, key, object). Callbacks may exit
- * iteration early by explicitly returning `false`.
+ * The base implementation of `_.forIn` without support for callback
+ * shorthands and `this` binding.
*
- * @static
- * @memberOf _
- * @type Function
- * @category Objects
+ * @private
* @param {Object} object The object to iterate over.
- * @param {Function} [callback=identity] The function called per iteration.
- * @param {*} [thisArg] The `this` binding of `callback`.
+ * @param {Function} iteratee The function invoked per iteration.
* @returns {Object} Returns `object`.
- * @example
- *
- * function Shape() {
- * this.x = 0;
- * this.y = 0;
- * }
- *
- * Shape.prototype.move = function(x, y) {
- * this.x += x;
- * this.y += y;
- * };
- *
- * _.forIn(new Shape, function(value, key) {
- * console.log(key);
- * });
- * // => logs 'x', 'y', and 'move' (property order is not guaranteed across environments)
*/
- var forIn = createIterator(eachIteratorOptions, forOwnIteratorOptions, {
- 'useHas': false
- });
+ function baseForIn(object, iteratee) {
+ return baseFor(object, iteratee, keysIn);
+ }
/**
- * Iterates over own enumerable properties of an object, executing the callback
- * for each property. The callback is bound to `thisArg` and invoked with three
- * arguments; (value, key, object). Callbacks may exit iteration early by
- * explicitly returning `false`.
+ * The base implementation of `_.forOwn` without support for callback
+ * shorthands and `this` binding.
*
- * @static
- * @memberOf _
- * @type Function
- * @category Objects
+ * @private
* @param {Object} object The object to iterate over.
- * @param {Function} [callback=identity] The function called per iteration.
- * @param {*} [thisArg] The `this` binding of `callback`.
+ * @param {Function} iteratee The function invoked per iteration.
* @returns {Object} Returns `object`.
- * @example
- *
- * _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
- * console.log(key);
- * });
- * // => logs '0', '1', and 'length' (property order is not guaranteed across environments)
*/
- var forOwn = createIterator(eachIteratorOptions, forOwnIteratorOptions);
+ function baseForOwn(object, iteratee) {
+ return baseFor(object, iteratee, keys);
+ }
/**
- * Creates a sorted array of property names of all enumerable properties,
- * own and inherited, of `object` that have function values.
+ * The base implementation of `_.functions` which creates an array of
+ * `object` function property names filtered from those provided.
*
- * @static
- * @memberOf _
- * @alias methods
- * @category Objects
+ * @private
* @param {Object} object The object to inspect.
- * @returns {Array} Returns an array of property names that have function values.
- * @example
- *
- * _.functions(_);
- * // => ['all', 'any', 'bind', 'bindAll', 'clone', 'compact', 'compose', ...]
+ * @param {Array} props The property names to filter.
+ * @returns {Array} Returns the new array of filtered property names.
*/
- function functions(object) {
- var result = [];
- forIn(object, function(value, key) {
- if (isFunction(value)) {
- result.push(key);
+ function baseFunctions(object, props) {
+ var index = -1,
+ length = props.length,
+ resIndex = -1,
+ result = [];
+
+ while (++index < length) {
+ var key = props[index];
+ if (isFunction(object[key])) {
+ result[++resIndex] = key;
}
- });
- return result.sort();
+ }
+ return result;
}
/**
- * Checks if `value` is empty. Arrays, strings, or `arguments` objects with a
- * length of `0` and objects with no own enumerable properties are considered
- * "empty".
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {Array|Object|string} value The value to inspect.
- * @returns {boolean} Returns `true` if the `value` is empty, else `false`.
- * @example
- *
- * _.isEmpty([1, 2, 3]);
- * // => false
+ * The base implementation of `get` without support for string paths
+ * and default values.
*
- * _.isEmpty({});
- * // => true
- *
- * _.isEmpty('');
- * // => true
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array} path The path of the property to get.
+ * @param {string} [pathKey] The key representation of path.
+ * @returns {*} Returns the resolved value.
*/
- function isEmpty(value) {
- var result = true;
- if (!value) {
- return result;
+ function baseGet(object, path, pathKey) {
+ if (object == null) {
+ return;
}
- var className = toString.call(value),
- length = value.length;
+ object = toObject(object);
+ if (pathKey !== undefined && pathKey in object) {
+ path = [pathKey];
+ }
+ var index = 0,
+ length = path.length;
- if ((className == arrayClass || className == stringClass ||
- (support.argsClass ? className == argsClass : isArguments(value))) ||
- (className == objectClass && typeof length == 'number' && isFunction(value.splice))) {
- return !length;
+ while (object != null && index < length) {
+ object = toObject(object)[path[index++]];
}
- forOwn(value, function() {
- return (result = false);
- });
- return result;
+ return (index && index == length) ? object : undefined;
}
/**
- * Performs a deep comparison between two values to determine if they are
- * equivalent to each other. If a callback is provided it will be executed
- * to compare values. If the callback returns `undefined` comparisons will
- * be handled by the method instead. The callback is bound to `thisArg` and
- * invoked with two arguments; (a, b).
+ * The base implementation of `_.isEqual` without support for `this` binding
+ * `customizer` functions.
*
- * @static
- * @memberOf _
- * @category Objects
- * @param {*} a The value to compare.
- * @param {*} b The other value to compare.
- * @param {Function} [callback] The function to customize comparing values.
- * @param {*} [thisArg] The `this` binding of `callback`.
+ * @private
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @param {Function} [customizer] The function to customize comparing values.
+ * @param {boolean} [isLoose] Specify performing partial comparisons.
+ * @param {Array} [stackA] Tracks traversed `value` objects.
+ * @param {Array} [stackB] Tracks traversed `other` objects.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'name': 'fred' };
- * var copy = { 'name': 'fred' };
- *
- * object == copy;
- * // => false
- *
- * _.isEqual(object, copy);
- * // => true
- *
- * var words = ['hello', 'goodbye'];
- * var otherWords = ['hi', 'goodbye'];
- *
- * _.isEqual(words, otherWords, function(a, b) {
- * var reGreet = /^(?:hello|hi)$/i,
- * aGreet = _.isString(a) && reGreet.test(a),
- * bGreet = _.isString(b) && reGreet.test(b);
- *
- * return (aGreet || bGreet) ? (aGreet == bGreet) : undefined;
- * });
- * // => true
*/
- function isEqual(a, b, callback, thisArg) {
- return baseIsEqual(a, b, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 2));
+ function baseIsEqual(value, other, customizer, isLoose, stackA, stackB) {
+ if (value === other) {
+ return true;
+ }
+ if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
+ return value !== value && other !== other;
+ }
+ return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);
}
/**
- * Checks if `value` is a function.
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if the `value` is a function, else `false`.
- * @example
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
+ * deep comparisons and tracks traversed objects enabling objects with circular
+ * references to be compared.
*
- * _.isFunction(_);
- * // => true
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Function} [customizer] The function to customize comparing objects.
+ * @param {boolean} [isLoose] Specify performing partial comparisons.
+ * @param {Array} [stackA=[]] Tracks traversed `value` objects.
+ * @param {Array} [stackB=[]] Tracks traversed `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
- function isFunction(value) {
- return typeof value == 'function';
- }
- // fallback for older versions of Chrome and Safari
- if (isFunction(/x/)) {
- isFunction = function(value) {
- return typeof value == 'function' && toString.call(value) == funcClass;
- };
+ function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
+ var objIsArr = isArray(object),
+ othIsArr = isArray(other),
+ objTag = arrayTag,
+ othTag = arrayTag;
+
+ if (!objIsArr) {
+ objTag = objToString.call(object);
+ if (objTag == argsTag) {
+ objTag = objectTag;
+ } else if (objTag != objectTag) {
+ objIsArr = isTypedArray(object);
+ }
+ }
+ if (!othIsArr) {
+ othTag = objToString.call(other);
+ if (othTag == argsTag) {
+ othTag = objectTag;
+ } else if (othTag != objectTag) {
+ othIsArr = isTypedArray(other);
+ }
+ }
+ var objIsObj = objTag == objectTag && !isHostObject(object),
+ othIsObj = othTag == objectTag && !isHostObject(other),
+ isSameTag = objTag == othTag;
+
+ if (isSameTag && !(objIsArr || objIsObj)) {
+ return equalByTag(object, other, objTag);
+ }
+ if (!isLoose) {
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
+
+ if (objIsWrapped || othIsWrapped) {
+ return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, isLoose, stackA, stackB);
+ }
+ }
+ if (!isSameTag) {
+ return false;
+ }
+ // Assume cyclic values are equal.
+ // For more information on detecting circular references see https://es5.github.io/#JO.
+ stackA || (stackA = []);
+ stackB || (stackB = []);
+
+ var length = stackA.length;
+ while (length--) {
+ if (stackA[length] == object) {
+ return stackB[length] == other;
+ }
+ }
+ // Add `object` and `other` to the stack of traversed objects.
+ stackA.push(object);
+ stackB.push(other);
+
+ var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isLoose, stackA, stackB);
+
+ stackA.pop();
+ stackB.pop();
+
+ return result;
}
/**
- * Checks if `value` is the language type of Object.
- * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if the `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
+ * The base implementation of `_.isMatch` without support for callback
+ * shorthands and `this` binding.
*
- * _.isObject(1);
- * // => false
+ * @private
+ * @param {Object} object The object to inspect.
+ * @param {Array} matchData The propery names, values, and compare flags to match.
+ * @param {Function} [customizer] The function to customize comparing objects.
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
*/
- function isObject(value) {
- // check if the value is the ECMAScript language type of Object
- // http://es5.github.io/#x8
- // and avoid a V8 bug
- // http://code.google.com/p/v8/issues/detail?id=2291
- return !!(value && objectTypes[typeof value]);
+ function baseIsMatch(object, matchData, customizer) {
+ var index = matchData.length,
+ length = index,
+ noCustomizer = !customizer;
+
+ if (object == null) {
+ return !length;
+ }
+ object = toObject(object);
+ while (index--) {
+ var data = matchData[index];
+ if ((noCustomizer && data[2])
+ ? data[1] !== object[data[0]]
+ : !(data[0] in object)
+ ) {
+ return false;
+ }
+ }
+ while (++index < length) {
+ data = matchData[index];
+ var key = data[0],
+ objValue = object[key],
+ srcValue = data[1];
+
+ if (noCustomizer && data[2]) {
+ if (objValue === undefined && !(key in object)) {
+ return false;
+ }
+ } else {
+ var result = customizer ? customizer(objValue, srcValue, key) : undefined;
+ if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, true) : result)) {
+ return false;
+ }
+ }
+ }
+ return true;
}
/**
- * Checks if `value` is an object created by the `Object` constructor.
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
- * @example
- *
- * function Shape() {
- * this.x = 0;
- * this.y = 0;
- * }
- *
- * _.isPlainObject(new Shape);
- * // => false
+ * The base implementation of `_.map` without support for callback shorthands
+ * and `this` binding.
*
- * _.isPlainObject([1, 2, 3]);
- * // => false
- *
- * _.isPlainObject({ 'x': 0, 'y': 0 });
- * // => true
+ * @private
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns the new mapped array.
*/
- var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) {
- if (!(value && toString.call(value) == objectClass) || (!support.argsClass && isArguments(value))) {
- return false;
- }
- var valueOf = value.valueOf,
- objProto = typeof valueOf == 'function' && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto);
+ function baseMap(collection, iteratee) {
+ var index = -1,
+ result = isArrayLike(collection) ? Array(collection.length) : [];
- return objProto
- ? (value == objProto || getPrototypeOf(value) == objProto)
- : shimIsPlainObject(value);
- };
+ baseEach(collection, function(value, key, collection) {
+ result[++index] = iteratee(value, key, collection);
+ });
+ return result;
+ }
/**
- * Checks if `value` is a string.
+ * The base implementation of `_.matches` which does not clone `source`.
*
- * @static
- * @memberOf _
- * @category Objects
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if the `value` is a string, else `false`.
- * @example
+ * @private
+ * @param {Object} source The object of property values to match.
+ * @returns {Function} Returns the new function.
+ */
+ function baseMatches(source) {
+ var matchData = getMatchData(source);
+ if (matchData.length == 1 && matchData[0][2]) {
+ var key = matchData[0][0],
+ value = matchData[0][1];
+
+ return function(object) {
+ if (object == null) {
+ return false;
+ }
+ object = toObject(object);
+ return object[key] === value && (value !== undefined || (key in object));
+ };
+ }
+ return function(object) {
+ return baseIsMatch(object, matchData);
+ };
+ }
+
+ /**
+ * The base implementation of `_.matchesProperty` which does not clone `srcValue`.
*
- * _.isString('fred');
- * // => true
+ * @private
+ * @param {string} path The path of the property to get.
+ * @param {*} srcValue The value to compare.
+ * @returns {Function} Returns the new function.
*/
- function isString(value) {
- return typeof value == 'string' ||
- value && typeof value == 'object' && toString.call(value) == stringClass || false;
+ function baseMatchesProperty(path, srcValue) {
+ var isArr = isArray(path),
+ isCommon = isKey(path) && isStrictComparable(srcValue),
+ pathKey = (path + '');
+
+ path = toPath(path);
+ return function(object) {
+ if (object == null) {
+ return false;
+ }
+ var key = pathKey;
+ object = toObject(object);
+ if ((isArr || !isCommon) && !(key in object)) {
+ object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
+ if (object == null) {
+ return false;
+ }
+ key = last(path);
+ object = toObject(object);
+ }
+ return object[key] === srcValue
+ ? (srcValue !== undefined || (key in object))
+ : baseIsEqual(srcValue, object[key], undefined, true);
+ };
}
/**
- * Recursively merges own enumerable properties of the source object(s), that
- * don't resolve to `undefined` into the destination object. Subsequent sources
- * will overwrite property assignments of previous sources. If a callback is
- * provided it will be executed to produce the merged values of the destination
- * and source properties. If the callback returns `undefined` merging will
- * be handled by the method instead. The callback is bound to `thisArg` and
- * invoked with two arguments; (objectValue, sourceValue).
+ * The base implementation of `_.merge` without support for argument juggling,
+ * multiple sources, and `this` binding `customizer` functions.
*
- * @static
- * @memberOf _
- * @category Objects
+ * @private
* @param {Object} object The destination object.
- * @param {...Object} [source] The source objects.
- * @param {Function} [callback] The function to customize merging properties.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Object} Returns the destination object.
- * @example
- *
- * var names = {
- * 'characters': [
- * { 'name': 'barney' },
- * { 'name': 'fred' }
- * ]
- * };
- *
- * var ages = {
- * 'characters': [
- * { 'age': 36 },
- * { 'age': 40 }
- * ]
- * };
- *
- * _.merge(names, ages);
- * // => { 'characters': [{ 'name': 'barney', 'age': 36 }, { 'name': 'fred', 'age': 40 }] }
- *
- * var food = {
- * 'fruits': ['apple'],
- * 'vegetables': ['beet']
- * };
- *
- * var otherFood = {
- * 'fruits': ['banana'],
- * 'vegetables': ['carrot']
- * };
- *
- * _.merge(food, otherFood, function(a, b) {
- * return _.isArray(a) ? a.concat(b) : undefined;
- * });
- * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot] }
+ * @param {Object} source The source object.
+ * @param {Function} [customizer] The function to customize merging properties.
+ * @param {Array} [stackA=[]] Tracks traversed source objects.
+ * @param {Array} [stackB=[]] Associates values with source counterparts.
+ * @returns {Object} Returns `object`.
*/
- function merge(object) {
- var args = arguments,
- length = 2;
-
+ function baseMerge(object, source, customizer, stackA, stackB) {
if (!isObject(object)) {
return object;
}
+ var isSrcArr = isArrayLike(source) && (isArray(source) || isTypedArray(source)),
+ props = isSrcArr ? null : keys(source);
- // allows working with `_.reduce` and `_.reduceRight` without using
- // their `index` and `collection` arguments
- if (typeof args[2] != 'number') {
- length = args.length;
- }
- if (length > 3 && typeof args[length - 2] == 'function') {
- var callback = baseCreateCallback(args[--length - 1], args[length--], 2);
- } else if (length > 2 && typeof args[length - 1] == 'function') {
- callback = args[--length];
- }
- var sources = slice(arguments, 1, length),
- index = -1,
- stackA = getArray(),
- stackB = getArray();
+ arrayEach(props || source, function(srcValue, key) {
+ if (props) {
+ key = srcValue;
+ srcValue = source[key];
+ }
+ if (isObjectLike(srcValue)) {
+ stackA || (stackA = []);
+ stackB || (stackB = []);
+ baseMergeDeep(object, source, key, baseMerge, customizer, stackA, stackB);
+ }
+ else {
+ var value = object[key],
+ result = customizer ? customizer(value, srcValue, key, object, source) : undefined,
+ isCommon = result === undefined;
- while (++index < length) {
- baseMerge(object, sources[index], callback, stackA, stackB);
- }
- releaseArray(stackA);
- releaseArray(stackB);
+ if (isCommon) {
+ result = srcValue;
+ }
+ if ((result !== undefined || (isSrcArr && !(key in object))) &&
+ (isCommon || (result === result ? (result !== value) : (value === value)))) {
+ object[key] = result;
+ }
+ }
+ });
return object;
}
/**
- * Creates a shallow clone of `object` excluding the specified properties.
- * Property names may be specified as individual arguments or as arrays of
- * property names. If a callback is provided it will be executed for each
- * property of `object` omitting the properties the callback returns truey
- * for. The callback is bound to `thisArg` and invoked with three arguments;
- * (value, key, object).
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {Object} object The source object.
- * @param {Function|...string|string[]} [callback] The properties to omit or the
- * function called per iteration.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Object} Returns an object without the omitted properties.
- * @example
+ * A specialized version of `baseMerge` for arrays and objects which performs
+ * deep merges and tracks traversed objects enabling objects with circular
+ * references to be merged.
*
- * _.omit({ 'name': 'fred', 'age': 40 }, 'age');
- * // => { 'name': 'fred' }
- *
- * _.omit({ 'name': 'fred', 'age': 40 }, function(value) {
- * return typeof value == 'number';
- * });
- * // => { 'name': 'fred' }
+ * @private
+ * @param {Object} object The destination object.
+ * @param {Object} source The source object.
+ * @param {string} key The key of the value to merge.
+ * @param {Function} mergeFunc The function to merge values.
+ * @param {Function} [customizer] The function to customize merging properties.
+ * @param {Array} [stackA=[]] Tracks traversed source objects.
+ * @param {Array} [stackB=[]] Associates values with source counterparts.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
- function omit(object, callback, thisArg) {
- var result = {};
- if (typeof callback != 'function') {
- var props = [];
- forIn(object, function(value, key) {
- props.push(key);
- });
- props = baseDifference(props, baseFlatten(arguments, true, false, 1));
+ function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) {
+ var length = stackA.length,
+ srcValue = source[key];
- var index = -1,
- length = props.length;
+ while (length--) {
+ if (stackA[length] == srcValue) {
+ object[key] = stackB[length];
+ return;
+ }
+ }
+ var value = object[key],
+ result = customizer ? customizer(value, srcValue, key, object, source) : undefined,
+ isCommon = result === undefined;
- while (++index < length) {
- var key = props[index];
- result[key] = object[key];
+ if (isCommon) {
+ result = srcValue;
+ if (isArrayLike(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) {
+ result = isArray(value)
+ ? value
+ : (isArrayLike(value) ? arrayCopy(value) : []);
+ }
+ else if (isPlainObject(srcValue) || isArguments(srcValue)) {
+ result = isArguments(value)
+ ? toPlainObject(value)
+ : (isPlainObject(value) ? value : {});
+ }
+ else {
+ isCommon = false;
}
- } else {
- callback = lodash.createCallback(callback, thisArg, 3);
- forIn(object, function(value, key, object) {
- if (!callback(value, key, object)) {
- result[key] = value;
- }
- });
}
- return result;
+ // Add the source value to the stack of traversed objects and associate
+ // it with its merged value.
+ stackA.push(srcValue);
+ stackB.push(result);
+
+ if (isCommon) {
+ // Recursively merge objects and arrays (susceptible to call stack limits).
+ object[key] = mergeFunc(result, srcValue, customizer, stackA, stackB);
+ } else if (result === result ? (result !== value) : (value === value)) {
+ object[key] = result;
+ }
}
/**
- * Creates a two dimensional array of an object's key-value pairs,
- * i.e. `[[key1, value1], [key2, value2]]`.
- *
- * @static
- * @memberOf _
- * @category Objects
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns new array of key-value pairs.
- * @example
+ * The base implementation of `_.property` without support for deep paths.
*
- * _.pairs({ 'barney': 36, 'fred': 40 });
- * // => [['barney', 36], ['fred', 40]] (property order is not guaranteed across environments)
+ * @private
+ * @param {string} key The key of the property to get.
+ * @returns {Function} Returns the new function.
*/
- function pairs(object) {
- var index = -1,
- props = keys(object),
- length = props.length,
- result = Array(length);
+ function baseProperty(key) {
+ return function(object) {
+ return object == null ? undefined : toObject(object)[key];
+ };
+ }
- while (++index < length) {
- var key = props[index];
- result[index] = [key, object[key]];
- }
- return result;
+ /**
+ * A specialized version of `baseProperty` which supports deep paths.
+ *
+ * @private
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new function.
+ */
+ function basePropertyDeep(path) {
+ var pathKey = (path + '');
+ path = toPath(path);
+ return function(object) {
+ return baseGet(object, path, pathKey);
+ };
}
/**
- * Creates a shallow clone of `object` composed of the specified properties.
- * Property names may be specified as individual arguments or as arrays of
- * property names. If a callback is provided it will be executed for each
- * property of `object` picking the properties the callback returns truey
- * for. The callback is bound to `thisArg` and invoked with three arguments;
- * (value, key, object).
+ * The base implementation of `_.reduce` and `_.reduceRight` without support
+ * for callback shorthands and `this` binding, which iterates over `collection`
+ * using the provided `eachFunc`.
*
- * @static
- * @memberOf _
- * @category Objects
- * @param {Object} object The source object.
- * @param {Function|...string|string[]} [callback] The function called per
- * iteration or property names to pick, specified as individual property
- * names or arrays of property names.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Object} Returns an object composed of the picked properties.
- * @example
+ * @private
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @param {*} accumulator The initial value.
+ * @param {boolean} initFromCollection Specify using the first or last element
+ * of `collection` as the initial value.
+ * @param {Function} eachFunc The function to iterate over `collection`.
+ * @returns {*} Returns the accumulated value.
+ */
+ function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
+ eachFunc(collection, function(value, index, collection) {
+ accumulator = initFromCollection
+ ? (initFromCollection = false, value)
+ : iteratee(accumulator, value, index, collection);
+ });
+ return accumulator;
+ }
+
+ /**
+ * The base implementation of `setData` without support for hot loop detection.
*
- * _.pick({ 'name': 'fred', '_userid': 'fred1' }, 'name');
- * // => { 'name': 'fred' }
+ * @private
+ * @param {Function} func The function to associate metadata with.
+ * @param {*} data The metadata.
+ * @returns {Function} Returns `func`.
+ */
+ var baseSetData = !metaMap ? identity : function(func, data) {
+ metaMap.set(func, data);
+ return func;
+ };
+
+ /**
+ * The base implementation of `_.slice` without an iteratee call guard.
*
- * _.pick({ 'name': 'fred', '_userid': 'fred1' }, function(value, key) {
- * return key.charAt(0) != '_';
- * });
- * // => { 'name': 'fred' }
+ * @private
+ * @param {Array} array The array to slice.
+ * @param {number} [start=0] The start position.
+ * @param {number} [end=array.length] The end position.
+ * @returns {Array} Returns the slice of `array`.
*/
- function pick(object, callback, thisArg) {
- var result = {};
- if (typeof callback != 'function') {
- var index = -1,
- props = baseFlatten(arguments, true, false, 1),
- length = isObject(object) ? props.length : 0;
+ function baseSlice(array, start, end) {
+ var index = -1,
+ length = array.length;
- while (++index < length) {
- var key = props[index];
- if (key in object) {
- result[key] = object[key];
- }
- }
- } else {
- callback = lodash.createCallback(callback, thisArg, 3);
- forIn(object, function(value, key, object) {
- if (callback(value, key, object)) {
- result[key] = value;
- }
- });
+ start = start == null ? 0 : (+start || 0);
+ if (start < 0) {
+ start = -start > length ? 0 : (length + start);
+ }
+ end = (end === undefined || end > length) ? length : (+end || 0);
+ if (end < 0) {
+ end += length;
+ }
+ length = start > end ? 0 : ((end - start) >>> 0);
+ start >>>= 0;
+
+ var result = Array(length);
+ while (++index < length) {
+ result[index] = array[index + start];
}
return result;
}
/**
- * Creates an array composed of the own enumerable property values of `object`.
+ * The base implementation of `_.some` without support for callback shorthands
+ * and `this` binding.
*
- * @static
- * @memberOf _
- * @category Objects
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns an array of property values.
- * @example
- *
- * _.values({ 'one': 1, 'two': 2, 'three': 3 });
- * // => [1, 2, 3] (property order is not guaranteed across environments)
+ * @private
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
*/
- function values(object) {
- var index = -1,
- props = keys(object),
- length = props.length,
- result = Array(length);
+ function baseSome(collection, predicate) {
+ var result;
- while (++index < length) {
- result[index] = object[props[index]];
- }
- return result;
+ baseEach(collection, function(value, index, collection) {
+ result = predicate(value, index, collection);
+ return !result;
+ });
+ return !!result;
}
- /*--------------------------------------------------------------------------*/
-
/**
- * Checks if a given value is present in a collection using strict equality
- * for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the
- * offset from the end of the collection.
- *
- * @static
- * @memberOf _
- * @alias include
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {*} target The value to check for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {boolean} Returns `true` if the `target` element is found, else `false`.
- * @example
- *
- * _.contains([1, 2, 3], 1);
- * // => true
- *
- * _.contains([1, 2, 3], 1, 2);
- * // => false
- *
- * _.contains({ 'name': 'fred', 'age': 40 }, 'fred');
- * // => true
+ * The base implementation of `_.uniq` without support for callback shorthands
+ * and `this` binding.
*
- * _.contains('pebbles', 'eb');
- * // => true
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {Function} [iteratee] The function invoked per iteration.
+ * @returns {Array} Returns the new duplicate-value-free array.
*/
- function contains(collection, target, fromIndex) {
+ function baseUniq(array, iteratee) {
var index = -1,
indexOf = getIndexOf(),
- length = collection ? collection.length : 0,
- result = false;
-
- fromIndex = (fromIndex < 0 ? nativeMax(0, length + fromIndex) : fromIndex) || 0;
- if (isArray(collection)) {
- result = indexOf(collection, target, fromIndex) > -1;
- } else if (typeof length == 'number') {
- result = (isString(collection) ? collection.indexOf(target, fromIndex) : indexOf(collection, target, fromIndex)) > -1;
+ length = array.length,
+ isCommon = indexOf == baseIndexOf,
+ isLarge = isCommon && length >= 200,
+ seen = isLarge ? createCache() : null,
+ result = [];
+
+ if (seen) {
+ indexOf = cacheIndexOf;
+ isCommon = false;
} else {
- baseEach(collection, function(value) {
- if (++index >= fromIndex) {
- return !(result = value === target);
+ isLarge = false;
+ seen = iteratee ? [] : result;
+ }
+ outer:
+ while (++index < length) {
+ var value = array[index],
+ computed = iteratee ? iteratee(value, index, array) : value;
+
+ if (isCommon && value === value) {
+ var seenIndex = seen.length;
+ while (seenIndex--) {
+ if (seen[seenIndex] === computed) {
+ continue outer;
+ }
}
- });
+ if (iteratee) {
+ seen.push(computed);
+ }
+ result.push(value);
+ }
+ else if (indexOf(seen, computed, 0) < 0) {
+ if (iteratee || isLarge) {
+ seen.push(computed);
+ }
+ result.push(value);
+ }
}
return result;
}
/**
- * Checks if the given callback returns truey value for **all** elements of
- * a collection. The callback is bound to `thisArg` and invoked with three
- * arguments; (value, index|key, collection).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
- *
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
- *
- * @static
- * @memberOf _
- * @alias all
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {boolean} Returns `true` if all elements passed the callback check,
- * else `false`.
- * @example
- *
- * _.every([true, 1, null, 'yes']);
- * // => false
- *
- * var characters = [
- * { 'name': 'barney', 'age': 36 },
- * { 'name': 'fred', 'age': 40 }
- * ];
- *
- * // using "_.pluck" callback shorthand
- * _.every(characters, 'age');
- * // => true
+ * The base implementation of `_.values` and `_.valuesIn` which creates an
+ * array of `object` property values corresponding to the property names
+ * of `props`.
*
- * // using "_.where" callback shorthand
- * _.every(characters, { 'age': 36 });
- * // => false
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array} props The property names to get values for.
+ * @returns {Object} Returns the array of property values.
*/
- function every(collection, callback, thisArg) {
- var result = true;
- callback = lodash.createCallback(callback, thisArg, 3);
-
- if (isArray(collection)) {
- var index = -1,
- length = collection.length;
+ function baseValues(object, props) {
+ var index = -1,
+ length = props.length,
+ result = Array(length);
- while (++index < length) {
- if (!(result = !!callback(collection[index], index, collection))) {
- break;
- }
- }
- } else {
- baseEach(collection, function(value, index, collection) {
- return (result = !!callback(value, index, collection));
- });
+ while (++index < length) {
+ result[index] = object[props[index]];
}
return result;
}
/**
- * Iterates over elements of a collection, returning an array of all elements
- * the callback returns truey for. The callback is bound to `thisArg` and
- * invoked with three arguments; (value, index|key, collection).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
- *
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
- *
- * @static
- * @memberOf _
- * @alias select
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Array} Returns a new array of elements that passed the callback check.
- * @example
- *
- * var evens = _.filter([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; });
- * // => [2, 4, 6]
+ * The base implementation of `wrapperValue` which returns the result of
+ * performing a sequence of actions on the unwrapped `value`, where each
+ * successive action is supplied the return value of the previous.
*
- * var characters = [
- * { 'name': 'barney', 'age': 36, 'blocked': false },
- * { 'name': 'fred', 'age': 40, 'blocked': true }
- * ];
- *
- * // using "_.pluck" callback shorthand
- * _.filter(characters, 'blocked');
- * // => [{ 'name': 'fred', 'age': 40, 'blocked': true }]
- *
- * // using "_.where" callback shorthand
- * _.filter(characters, { 'age': 36 });
- * // => [{ 'name': 'barney', 'age': 36, 'blocked': false }]
+ * @private
+ * @param {*} value The unwrapped value.
+ * @param {Array} actions Actions to peform to resolve the unwrapped value.
+ * @returns {*} Returns the resolved value.
*/
- function filter(collection, callback, thisArg) {
- var result = [];
- callback = lodash.createCallback(callback, thisArg, 3);
+ function baseWrapperValue(value, actions) {
+ var result = value;
+ if (result instanceof LazyWrapper) {
+ result = result.value();
+ }
+ var index = -1,
+ length = actions.length;
- if (isArray(collection)) {
- var index = -1,
- length = collection.length;
+ while (++index < length) {
+ var args = [result],
+ action = actions[index];
- while (++index < length) {
- var value = collection[index];
- if (callback(value, index, collection)) {
- result.push(value);
- }
- }
- } else {
- baseEach(collection, function(value, index, collection) {
- if (callback(value, index, collection)) {
- result.push(value);
- }
- });
+ push.apply(args, action.args);
+ result = action.func.apply(action.thisArg, args);
}
return result;
}
/**
- * Iterates over elements of a collection, returning the first element that
- * the callback returns truey for. The callback is bound to `thisArg` and
- * invoked with three arguments; (value, index|key, collection).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
+ * Performs a binary search of `array` to determine the index at which `value`
+ * should be inserted into `array` in order to maintain its sort order.
*
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
- *
- * @static
- * @memberOf _
- * @alias detect, findWhere
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {*} Returns the found element, else `undefined`.
- * @example
- *
- * var characters = [
- * { 'name': 'barney', 'age': 36, 'blocked': false },
- * { 'name': 'fred', 'age': 40, 'blocked': true },
- * { 'name': 'pebbles', 'age': 1, 'blocked': false }
- * ];
- *
- * _.find(characters, function(chr) {
- * return chr.age < 40;
- * });
- * // => { 'name': 'barney', 'age': 36, 'blocked': false }
- *
- * // using "_.where" callback shorthand
- * _.find(characters, { 'age': 1 });
- * // => { 'name': 'pebbles', 'age': 1, 'blocked': false }
- *
- * // using "_.pluck" callback shorthand
- * _.find(characters, 'blocked');
- * // => { 'name': 'fred', 'age': 40, 'blocked': true }
+ * @private
+ * @param {Array} array The sorted array to inspect.
+ * @param {*} value The value to evaluate.
+ * @param {boolean} [retHighest] Specify returning the highest qualified index.
+ * @returns {number} Returns the index at which `value` should be inserted
+ * into `array`.
*/
- function find(collection, callback, thisArg) {
- callback = lodash.createCallback(callback, thisArg, 3);
+ function binaryIndex(array, value, retHighest) {
+ var low = 0,
+ high = array ? array.length : low;
- if (isArray(collection)) {
- var index = -1,
- length = collection.length;
+ if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
+ while (low < high) {
+ var mid = (low + high) >>> 1,
+ computed = array[mid];
- while (++index < length) {
- var value = collection[index];
- if (callback(value, index, collection)) {
- return value;
+ if ((retHighest ? (computed <= value) : (computed < value)) && computed !== null) {
+ low = mid + 1;
+ } else {
+ high = mid;
}
}
- } else {
- var result;
- baseEach(collection, function(value, index, collection) {
- if (callback(value, index, collection)) {
- result = value;
- return false;
- }
- });
- return result;
+ return high;
}
+ return binaryIndexBy(array, value, identity, retHighest);
}
/**
- * Iterates over elements of a collection, executing the callback for each
- * element. The callback is bound to `thisArg` and invoked with three arguments;
- * (value, index|key, collection). Callbacks may exit iteration early by
- * explicitly returning `false`.
- *
- * Note: As with other "Collections" methods, objects with a `length` property
- * are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
- * may be used for object iteration.
- *
- * @static
- * @memberOf _
- * @alias each
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function} [callback=identity] The function called per iteration.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Array|Object|string} Returns `collection`.
- * @example
- *
- * _([1, 2, 3]).forEach(function(num) { console.log(num); }).join(',');
- * // => logs each number and returns '1,2,3'
+ * This function is like `binaryIndex` except that it invokes `iteratee` for
+ * `value` and each element of `array` to compute their sort ranking. The
+ * iteratee is invoked with one argument; (value).
*
- * _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { console.log(num); });
- * // => logs each number and returns the object (property order is not guaranteed across environments)
+ * @private
+ * @param {Array} array The sorted array to inspect.
+ * @param {*} value The value to evaluate.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @param {boolean} [retHighest] Specify returning the highest qualified index.
+ * @returns {number} Returns the index at which `value` should be inserted
+ * into `array`.
*/
- function forEach(collection, callback, thisArg) {
- if (callback && typeof thisArg == 'undefined' && isArray(collection)) {
- var index = -1,
- length = collection.length;
+ function binaryIndexBy(array, value, iteratee, retHighest) {
+ value = iteratee(value);
- while (++index < length) {
- if (callback(collection[index], index, collection) === false) {
- break;
- }
+ var low = 0,
+ high = array ? array.length : 0,
+ valIsNaN = value !== value,
+ valIsNull = value === null,
+ valIsUndef = value === undefined;
+
+ while (low < high) {
+ var mid = floor((low + high) / 2),
+ computed = iteratee(array[mid]),
+ isDef = computed !== undefined,
+ isReflexive = computed === computed;
+
+ if (valIsNaN) {
+ var setLow = isReflexive || retHighest;
+ } else if (valIsNull) {
+ setLow = isReflexive && isDef && (retHighest || computed != null);
+ } else if (valIsUndef) {
+ setLow = isReflexive && (retHighest || isDef);
+ } else if (computed == null) {
+ setLow = false;
+ } else {
+ setLow = retHighest ? (computed <= value) : (computed < value);
+ }
+ if (setLow) {
+ low = mid + 1;
+ } else {
+ high = mid;
}
- } else {
- baseEach(collection, callback, thisArg);
}
- return collection;
+ return nativeMin(high, MAX_ARRAY_INDEX);
}
/**
- * Creates an object composed of keys generated from the results of running
- * each element of a collection through the callback. The corresponding value
- * of each key is an array of the elements responsible for generating the key.
- * The callback is bound to `thisArg` and invoked with three arguments;
- * (value, index|key, collection).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
- *
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`
- *
- * @static
- * @memberOf _
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Object} Returns the composed aggregate object.
- * @example
+ * A specialized version of `baseCallback` which only supports `this` binding
+ * and specifying the number of arguments to provide to `func`.
*
- * _.groupBy([4.2, 6.1, 6.4], function(num) { return Math.floor(num); });
- * // => { '4': [4.2], '6': [6.1, 6.4] }
- *
- * _.groupBy([4.2, 6.1, 6.4], function(num) { return this.floor(num); }, Math);
- * // => { '4': [4.2], '6': [6.1, 6.4] }
- *
- * // using "_.pluck" callback shorthand
- * _.groupBy(['one', 'two', 'three'], 'length');
- * // => { '3': ['one', 'two'], '5': ['three'] }
+ * @private
+ * @param {Function} func The function to bind.
+ * @param {*} thisArg The `this` binding of `func`.
+ * @param {number} [argCount] The number of arguments to provide to `func`.
+ * @returns {Function} Returns the callback.
*/
- var groupBy = createAggregator(function(result, value, key) {
- (hasOwnProperty.call(result, key) ? result[key] : result[key] = []).push(value);
- });
+ function bindCallback(func, thisArg, argCount) {
+ if (typeof func != 'function') {
+ return identity;
+ }
+ if (thisArg === undefined) {
+ return func;
+ }
+ switch (argCount) {
+ case 1: return function(value) {
+ return func.call(thisArg, value);
+ };
+ case 3: return function(value, index, collection) {
+ return func.call(thisArg, value, index, collection);
+ };
+ case 4: return function(accumulator, value, index, collection) {
+ return func.call(thisArg, accumulator, value, index, collection);
+ };
+ case 5: return function(value, other, key, object, source) {
+ return func.call(thisArg, value, other, key, object, source);
+ };
+ }
+ return function() {
+ return func.apply(thisArg, arguments);
+ };
+ }
/**
- * Creates an array of values by running each element in the collection
- * through the callback. The callback is bound to `thisArg` and invoked with
- * three arguments; (value, index|key, collection).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
- *
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
+ * Creates a clone of the given array buffer.
*
- * @static
- * @memberOf _
- * @alias collect
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Array} Returns a new array of the results of each `callback` execution.
- * @example
- *
- * _.map([1, 2, 3], function(num) { return num * 3; });
- * // => [3, 6, 9]
- *
- * _.map({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { return num * 3; });
- * // => [3, 6, 9] (property order is not guaranteed across environments)
- *
- * var characters = [
- * { 'name': 'barney', 'age': 36 },
- * { 'name': 'fred', 'age': 40 }
- * ];
+ * @private
+ * @param {ArrayBuffer} buffer The array buffer to clone.
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
+ */
+ function bufferClone(buffer) {
+ return bufferSlice.call(buffer, 0);
+ }
+ if (!bufferSlice) {
+ // PhantomJS has `ArrayBuffer` and `Uint8Array` but not `Float64Array`.
+ bufferClone = !(ArrayBuffer && Uint8Array) ? constant(null) : function(buffer) {
+ var byteLength = buffer.byteLength,
+ floatLength = Float64Array ? floor(byteLength / FLOAT64_BYTES_PER_ELEMENT) : 0,
+ offset = floatLength * FLOAT64_BYTES_PER_ELEMENT,
+ result = new ArrayBuffer(byteLength);
+
+ if (floatLength) {
+ var view = new Float64Array(result, 0, floatLength);
+ view.set(new Float64Array(buffer, 0, floatLength));
+ }
+ if (byteLength != offset) {
+ view = new Uint8Array(result, offset);
+ view.set(new Uint8Array(buffer, offset));
+ }
+ return result;
+ };
+ }
+
+ /**
+ * Creates an array that is the composition of partially applied arguments,
+ * placeholders, and provided arguments into a single array of arguments.
*
- * // using "_.pluck" callback shorthand
- * _.map(characters, 'name');
- * // => ['barney', 'fred']
+ * @private
+ * @param {Array|Object} args The provided arguments.
+ * @param {Array} partials The arguments to prepend to those provided.
+ * @param {Array} holders The `partials` placeholder indexes.
+ * @returns {Array} Returns the new array of composed arguments.
*/
- function map(collection, callback, thisArg) {
- var index = -1,
- length = collection ? collection.length : 0,
- result = Array(typeof length == 'number' ? length : 0);
+ function composeArgs(args, partials, holders) {
+ var holdersLength = holders.length,
+ argsIndex = -1,
+ argsLength = nativeMax(args.length - holdersLength, 0),
+ leftIndex = -1,
+ leftLength = partials.length,
+ result = Array(argsLength + leftLength);
- callback = lodash.createCallback(callback, thisArg, 3);
- if (isArray(collection)) {
- while (++index < length) {
- result[index] = callback(collection[index], index, collection);
- }
- } else {
- baseEach(collection, function(value, key, collection) {
- result[++index] = callback(value, key, collection);
- });
+ while (++leftIndex < leftLength) {
+ result[leftIndex] = partials[leftIndex];
+ }
+ while (++argsIndex < holdersLength) {
+ result[holders[argsIndex]] = args[argsIndex];
+ }
+ while (argsLength--) {
+ result[leftIndex++] = args[argsIndex++];
}
return result;
}
/**
- * Retrieves the value of a specified property from all elements in the collection.
- *
- * @static
- * @memberOf _
- * @type Function
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {string} property The property to pluck.
- * @returns {Array} Returns a new array of property values.
- * @example
- *
- * var characters = [
- * { 'name': 'barney', 'age': 36 },
- * { 'name': 'fred', 'age': 40 }
- * ];
+ * This function is like `composeArgs` except that the arguments composition
+ * is tailored for `_.partialRight`.
*
- * _.pluck(characters, 'name');
- * // => ['barney', 'fred']
+ * @private
+ * @param {Array|Object} args The provided arguments.
+ * @param {Array} partials The arguments to append to those provided.
+ * @param {Array} holders The `partials` placeholder indexes.
+ * @returns {Array} Returns the new array of composed arguments.
*/
- var pluck = map;
+ function composeArgsRight(args, partials, holders) {
+ var holdersIndex = -1,
+ holdersLength = holders.length,
+ argsIndex = -1,
+ argsLength = nativeMax(args.length - holdersLength, 0),
+ rightIndex = -1,
+ rightLength = partials.length,
+ result = Array(argsLength + rightLength);
+
+ while (++argsIndex < argsLength) {
+ result[argsIndex] = args[argsIndex];
+ }
+ var offset = argsIndex;
+ while (++rightIndex < rightLength) {
+ result[offset + rightIndex] = partials[rightIndex];
+ }
+ while (++holdersIndex < holdersLength) {
+ result[offset + holders[holdersIndex]] = args[argsIndex++];
+ }
+ return result;
+ }
/**
- * Reduces a collection to a value which is the accumulated result of running
- * each element in the collection through the callback, where each successive
- * callback execution consumes the return value of the previous execution. If
- * `accumulator` is not provided the first element of the collection will be
- * used as the initial `accumulator` value. The callback is bound to `thisArg`
- * and invoked with four arguments; (accumulator, value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @alias foldl, inject
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function} [callback=identity] The function called per iteration.
- * @param {*} [accumulator] Initial value of the accumulator.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {*} Returns the accumulated value.
- * @example
+ * Creates a function that aggregates a collection, creating an accumulator
+ * object composed from the results of running each element in the collection
+ * through an iteratee.
*
- * var sum = _.reduce([1, 2, 3], function(sum, num) {
- * return sum + num;
- * });
- * // => 6
+ * **Note:** This function is used to create `_.countBy`, `_.groupBy`, `_.indexBy`,
+ * and `_.partition`.
*
- * var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) {
- * result[key] = num * 3;
- * return result;
- * }, {});
- * // => { 'a': 3, 'b': 6, 'c': 9 }
+ * @private
+ * @param {Function} setter The function to set keys and values of the accumulator object.
+ * @param {Function} [initializer] The function to initialize the accumulator object.
+ * @returns {Function} Returns the new aggregator function.
*/
- function reduce(collection, callback, accumulator, thisArg) {
- var noaccum = arguments.length < 3;
- callback = lodash.createCallback(callback, thisArg, 4);
+ function createAggregator(setter, initializer) {
+ return function(collection, iteratee, thisArg) {
+ var result = initializer ? initializer() : {};
+ iteratee = getCallback(iteratee, thisArg, 3);
- if (isArray(collection)) {
- var index = -1,
- length = collection.length;
+ if (isArray(collection)) {
+ var index = -1,
+ length = collection.length;
- if (noaccum) {
- accumulator = collection[++index];
- }
- while (++index < length) {
- accumulator = callback(accumulator, collection[index], index, collection);
+ while (++index < length) {
+ var value = collection[index];
+ setter(result, value, iteratee(value, index, collection), collection);
+ }
+ } else {
+ baseEach(collection, function(value, key, collection) {
+ setter(result, value, iteratee(value, key, collection), collection);
+ });
}
- } else {
- baseEach(collection, function(value, index, collection) {
- accumulator = noaccum
- ? (noaccum = false, value)
- : callback(accumulator, value, index, collection)
- });
- }
- return accumulator;
+ return result;
+ };
}
/**
- * The opposite of `_.filter` this method returns the elements of a
- * collection that the callback does **not** return truey for.
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
- *
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
- *
- * @static
- * @memberOf _
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Array} Returns a new array of elements that failed the callback check.
- * @example
+ * Creates a function that assigns properties of source object(s) to a given
+ * destination object.
*
- * var odds = _.reject([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; });
- * // => [1, 3, 5]
+ * **Note:** This function is used to create `_.assign`, `_.defaults`, and `_.merge`.
*
- * var characters = [
- * { 'name': 'barney', 'age': 36, 'blocked': false },
- * { 'name': 'fred', 'age': 40, 'blocked': true }
- * ];
- *
- * // using "_.pluck" callback shorthand
- * _.reject(characters, 'blocked');
- * // => [{ 'name': 'barney', 'age': 36, 'blocked': false }]
- *
- * // using "_.where" callback shorthand
- * _.reject(characters, { 'age': 36 });
- * // => [{ 'name': 'fred', 'age': 40, 'blocked': true }]
+ * @private
+ * @param {Function} assigner The function to assign values.
+ * @returns {Function} Returns the new assigner function.
*/
- function reject(collection, callback, thisArg) {
- callback = lodash.createCallback(callback, thisArg, 3);
- return filter(collection, function(value, index, collection) {
- return !callback(value, index, collection);
+ function createAssigner(assigner) {
+ return restParam(function(object, sources) {
+ var index = -1,
+ length = object == null ? 0 : sources.length,
+ customizer = length > 2 ? sources[length - 2] : undefined,
+ guard = length > 2 ? sources[2] : undefined,
+ thisArg = length > 1 ? sources[length - 1] : undefined;
+
+ if (typeof customizer == 'function') {
+ customizer = bindCallback(customizer, thisArg, 5);
+ length -= 2;
+ } else {
+ customizer = typeof thisArg == 'function' ? thisArg : undefined;
+ length -= (customizer ? 1 : 0);
+ }
+ if (guard && isIterateeCall(sources[0], sources[1], guard)) {
+ customizer = length < 3 ? undefined : customizer;
+ length = 1;
+ }
+ while (++index < length) {
+ var source = sources[index];
+ if (source) {
+ assigner(object, source, customizer);
+ }
+ }
+ return object;
});
}
/**
- * Checks if the callback returns a truey value for **any** element of a
- * collection. The function returns as soon as it finds a passing value and
- * does not iterate over the entire collection. The callback is bound to
- * `thisArg` and invoked with three arguments; (value, index|key, collection).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
- *
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
- *
- * @static
- * @memberOf _
- * @alias any
- * @category Collections
- * @param {Array|Object|string} collection The collection to iterate over.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {boolean} Returns `true` if any element passed the callback check,
- * else `false`.
- * @example
- *
- * _.some([null, 0, 'yes', false], Boolean);
- * // => true
- *
- * var characters = [
- * { 'name': 'barney', 'age': 36, 'blocked': false },
- * { 'name': 'fred', 'age': 40, 'blocked': true }
- * ];
- *
- * // using "_.pluck" callback shorthand
- * _.some(characters, 'blocked');
- * // => true
+ * Creates a `baseEach` or `baseEachRight` function.
*
- * // using "_.where" callback shorthand
- * _.some(characters, { 'age': 1 });
- * // => false
+ * @private
+ * @param {Function} eachFunc The function to iterate over a collection.
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Function} Returns the new base function.
*/
- function some(collection, callback, thisArg) {
- var result;
- callback = lodash.createCallback(callback, thisArg, 3);
-
- if (isArray(collection)) {
- var index = -1,
- length = collection.length;
+ function createBaseEach(eachFunc, fromRight) {
+ return function(collection, iteratee) {
+ var length = collection ? getLength(collection) : 0;
+ if (!isLength(length)) {
+ return eachFunc(collection, iteratee);
+ }
+ var index = fromRight ? length : -1,
+ iterable = toObject(collection);
- while (++index < length) {
- if ((result = callback(collection[index], index, collection))) {
+ while ((fromRight ? index-- : ++index < length)) {
+ if (iteratee(iterable[index], index, iterable) === false) {
break;
}
}
- } else {
- baseEach(collection, function(value, index, collection) {
- return !(result = callback(value, index, collection));
- });
- }
- return !!result;
+ return collection;
+ };
}
- /*--------------------------------------------------------------------------*/
-
/**
- * Creates an array with all falsey values removed. The values `false`, `null`,
- * `0`, `""`, `undefined`, and `NaN` are all falsey.
+ * Creates a base function for `_.forIn` or `_.forInRight`.
*
- * @static
- * @memberOf _
- * @category Arrays
- * @param {Array} array The array to compact.
- * @returns {Array} Returns a new array of filtered values.
- * @example
+ * @private
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Function} Returns the new base function.
+ */
+ function createBaseFor(fromRight) {
+ return function(object, iteratee, keysFunc) {
+ var iterable = toObject(object),
+ props = keysFunc(object),
+ length = props.length,
+ index = fromRight ? length : -1;
+
+ while ((fromRight ? index-- : ++index < length)) {
+ var key = props[index];
+ if (iteratee(iterable[key], key, iterable) === false) {
+ break;
+ }
+ }
+ return object;
+ };
+ }
+
+ /**
+ * Creates a function that wraps `func` and invokes it with the `this`
+ * binding of `thisArg`.
*
- * _.compact([0, 1, false, 2, '', 3]);
- * // => [1, 2, 3]
+ * @private
+ * @param {Function} func The function to bind.
+ * @param {*} [thisArg] The `this` binding of `func`.
+ * @returns {Function} Returns the new bound function.
*/
- function compact(array) {
- var index = -1,
- length = array ? array.length : 0,
- result = [];
+ function createBindWrapper(func, thisArg) {
+ var Ctor = createCtorWrapper(func);
- while (++index < length) {
- var value = array[index];
- if (value) {
- result.push(value);
- }
+ function wrapper() {
+ var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
+ return fn.apply(thisArg, arguments);
}
- return result;
+ return wrapper;
}
/**
- * Creates an array excluding all values of the provided arrays using strict
- * equality for comparisons, i.e. `===`.
+ * Creates a `Set` cache object to optimize linear searches of large arrays.
*
- * @static
- * @memberOf _
- * @category Arrays
- * @param {Array} array The array to process.
- * @param {...Array} [values] The arrays of values to exclude.
- * @returns {Array} Returns a new array of filtered values.
- * @example
+ * @private
+ * @param {Array} [values] The values to cache.
+ * @returns {null|Object} Returns the new cache object if `Set` is supported, else `null`.
+ */
+ var createCache = !(nativeCreate && Set) ? constant(null) : function(values) {
+ return new SetCache(values);
+ };
+
+ /**
+ * Creates a function that produces an instance of `Ctor` regardless of
+ * whether it was invoked as part of a `new` expression or by `call` or `apply`.
*
- * _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
- * // => [1, 3, 4]
+ * @private
+ * @param {Function} Ctor The constructor to wrap.
+ * @returns {Function} Returns the new wrapped function.
*/
- function difference(array) {
- return baseDifference(array, baseFlatten(arguments, true, true, 1));
+ function createCtorWrapper(Ctor) {
+ return function() {
+ // Use a `switch` statement to work with class constructors.
+ // See https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-function-objects-call-thisargument-argumentslist
+ // for more details.
+ var args = arguments;
+ switch (args.length) {
+ case 0: return new Ctor;
+ case 1: return new Ctor(args[0]);
+ case 2: return new Ctor(args[0], args[1]);
+ case 3: return new Ctor(args[0], args[1], args[2]);
+ case 4: return new Ctor(args[0], args[1], args[2], args[3]);
+ case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
+ }
+ var thisBinding = baseCreate(Ctor.prototype),
+ result = Ctor.apply(thisBinding, args);
+
+ // Mimic the constructor's `return` behavior.
+ // See https://es5.github.io/#x13.2.2 for more details.
+ return isObject(result) ? result : thisBinding;
+ };
}
/**
- * Gets the first element or first `n` elements of an array. If a callback
- * is provided elements at the beginning of the array are returned as long
- * as the callback returns truey. The callback is bound to `thisArg` and
- * invoked with three arguments; (value, index, array).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
- *
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
- *
- * @static
- * @memberOf _
- * @alias head, take
- * @category Arrays
- * @param {Array} array The array to query.
- * @param {Function|Object|number|string} [callback] The function called
- * per element or the number of elements to return. If a property name or
- * object is provided it will be used to create a "_.pluck" or "_.where"
- * style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {*} Returns the first element(s) of `array`.
- * @example
+ * Creates a `_.find` or `_.findLast` function.
*
- * _.first([1, 2, 3]);
- * // => 1
- *
- * _.first([1, 2, 3], 2);
- * // => [1, 2]
+ * @private
+ * @param {Function} eachFunc The function to iterate over a collection.
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Function} Returns the new find function.
+ */
+ function createFind(eachFunc, fromRight) {
+ return function(collection, predicate, thisArg) {
+ predicate = getCallback(predicate, thisArg, 3);
+ if (isArray(collection)) {
+ var index = baseFindIndex(collection, predicate, fromRight);
+ return index > -1 ? collection[index] : undefined;
+ }
+ return baseFind(collection, predicate, eachFunc);
+ };
+ }
+
+ /**
+ * Creates a function for `_.forEach` or `_.forEachRight`.
*
- * _.first([1, 2, 3], function(num) {
- * return num < 3;
- * });
- * // => [1, 2]
+ * @private
+ * @param {Function} arrayFunc The function to iterate over an array.
+ * @param {Function} eachFunc The function to iterate over a collection.
+ * @returns {Function} Returns the new each function.
+ */
+ function createForEach(arrayFunc, eachFunc) {
+ return function(collection, iteratee, thisArg) {
+ return (typeof iteratee == 'function' && thisArg === undefined && isArray(collection))
+ ? arrayFunc(collection, iteratee)
+ : eachFunc(collection, bindCallback(iteratee, thisArg, 3));
+ };
+ }
+
+ /**
+ * Creates a function for `_.forOwn` or `_.forOwnRight`.
*
- * var characters = [
- * { 'name': 'barney', 'blocked': true, 'employer': 'slate' },
- * { 'name': 'fred', 'blocked': false, 'employer': 'slate' },
- * { 'name': 'pebbles', 'blocked': true, 'employer': 'na' }
- * ];
+ * @private
+ * @param {Function} objectFunc The function to iterate over an object.
+ * @returns {Function} Returns the new each function.
+ */
+ function createForOwn(objectFunc) {
+ return function(object, iteratee, thisArg) {
+ if (typeof iteratee != 'function' || thisArg !== undefined) {
+ iteratee = bindCallback(iteratee, thisArg, 3);
+ }
+ return objectFunc(object, iteratee);
+ };
+ }
+
+ /**
+ * Creates a function for `_.reduce` or `_.reduceRight`.
*
- * // using "_.pluck" callback shorthand
- * _.first(characters, 'blocked');
- * // => [{ 'name': 'barney', 'blocked': true, 'employer': 'slate' }]
+ * @private
+ * @param {Function} arrayFunc The function to iterate over an array.
+ * @param {Function} eachFunc The function to iterate over a collection.
+ * @returns {Function} Returns the new each function.
+ */
+ function createReduce(arrayFunc, eachFunc) {
+ return function(collection, iteratee, accumulator, thisArg) {
+ var initFromArray = arguments.length < 3;
+ return (typeof iteratee == 'function' && thisArg === undefined && isArray(collection))
+ ? arrayFunc(collection, iteratee, accumulator, initFromArray)
+ : baseReduce(collection, getCallback(iteratee, thisArg, 4), accumulator, initFromArray, eachFunc);
+ };
+ }
+
+ /**
+ * Creates a function that wraps `func` and invokes it with optional `this`
+ * binding of, partial application, and currying.
*
- * // using "_.where" callback shorthand
- * _.pluck(_.first(characters, { 'employer': 'slate' }), 'name');
- * // => ['barney', 'fred']
+ * @private
+ * @param {Function|string} func The function or method name to reference.
+ * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details.
+ * @param {*} [thisArg] The `this` binding of `func`.
+ * @param {Array} [partials] The arguments to prepend to those provided to the new function.
+ * @param {Array} [holders] The `partials` placeholder indexes.
+ * @param {Array} [partialsRight] The arguments to append to those provided to the new function.
+ * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
+ * @param {Array} [argPos] The argument positions of the new function.
+ * @param {number} [ary] The arity cap of `func`.
+ * @param {number} [arity] The arity of `func`.
+ * @returns {Function} Returns the new wrapped function.
*/
- function first(array, callback, thisArg) {
- var n = 0,
- length = array ? array.length : 0;
+ function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
+ var isAry = bitmask & ARY_FLAG,
+ isBind = bitmask & BIND_FLAG,
+ isBindKey = bitmask & BIND_KEY_FLAG,
+ isCurry = bitmask & CURRY_FLAG,
+ isCurryBound = bitmask & CURRY_BOUND_FLAG,
+ isCurryRight = bitmask & CURRY_RIGHT_FLAG,
+ Ctor = isBindKey ? null : createCtorWrapper(func);
+
+ function wrapper() {
+ // Avoid `arguments` object use disqualifying optimizations by
+ // converting it to an array before providing it to other functions.
+ var length = arguments.length,
+ index = length,
+ args = Array(length);
+
+ while (index--) {
+ args[index] = arguments[index];
+ }
+ if (partials) {
+ args = composeArgs(args, partials, holders);
+ }
+ if (partialsRight) {
+ args = composeArgsRight(args, partialsRight, holdersRight);
+ }
+ if (isCurry || isCurryRight) {
+ var placeholder = wrapper.placeholder,
+ argsHolders = replaceHolders(args, placeholder);
+
+ length -= argsHolders.length;
+ if (length < arity) {
+ var newArgPos = argPos ? arrayCopy(argPos) : null,
+ newArity = nativeMax(arity - length, 0),
+ newsHolders = isCurry ? argsHolders : null,
+ newHoldersRight = isCurry ? null : argsHolders,
+ newPartials = isCurry ? args : null,
+ newPartialsRight = isCurry ? null : args;
+
+ bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG);
+ bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG);
+
+ if (!isCurryBound) {
+ bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
+ }
+ var newData = [func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, newArity],
+ result = createHybridWrapper.apply(undefined, newData);
- if (typeof callback != 'number' && callback != null) {
- var index = -1;
- callback = lodash.createCallback(callback, thisArg, 3);
- while (++index < length && callback(array[index], index, array)) {
- n++;
+ if (isLaziable(func)) {
+ setData(result, newData);
+ }
+ result.placeholder = placeholder;
+ return result;
+ }
}
- } else {
- n = callback;
- if (n == null || thisArg) {
- return array ? array[0] : undefined;
+ var thisBinding = isBind ? thisArg : this,
+ fn = isBindKey ? thisBinding[func] : func;
+
+ if (argPos) {
+ args = reorder(args, argPos);
+ }
+ if (isAry && ary < args.length) {
+ args.length = ary;
}
+ if (this && this !== root && this instanceof wrapper) {
+ fn = Ctor || createCtorWrapper(func);
+ }
+ return fn.apply(thisBinding, args);
}
- return slice(array, 0, nativeMin(nativeMax(0, n), length));
+ return wrapper;
}
/**
- * Flattens a nested array (the nesting can be to any depth). If `isShallow`
- * is truey, the array will only be flattened a single level. If a callback
- * is provided each element of the array is passed through the callback before
- * flattening. The callback is bound to `thisArg` and invoked with three
- * arguments; (value, index, array).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
- *
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
- *
- * @static
- * @memberOf _
- * @category Arrays
- * @param {Array} array The array to flatten.
- * @param {boolean} [isShallow=false] A flag to restrict flattening to a single level.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Array} Returns a new flattened array.
- * @example
- *
- * _.flatten([1, [2], [3, [[4]]]]);
- * // => [1, 2, 3, 4];
- *
- * _.flatten([1, [2], [3, [[4]]]], true);
- * // => [1, 2, 3, [[4]]];
+ * Creates a function that wraps `func` and invokes it with the optional `this`
+ * binding of `thisArg` and the `partials` prepended to those provided to
+ * the wrapper.
*
- * var characters = [
- * { 'name': 'barney', 'age': 30, 'pets': ['hoppy'] },
- * { 'name': 'fred', 'age': 40, 'pets': ['baby puss', 'dino'] }
- * ];
- *
- * // using "_.pluck" callback shorthand
- * _.flatten(characters, 'pets');
- * // => ['hoppy', 'baby puss', 'dino']
+ * @private
+ * @param {Function} func The function to partially apply arguments to.
+ * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details.
+ * @param {*} thisArg The `this` binding of `func`.
+ * @param {Array} partials The arguments to prepend to those provided to the new function.
+ * @returns {Function} Returns the new bound function.
*/
- function flatten(array, isShallow, callback, thisArg) {
- // juggle arguments
- if (typeof isShallow != 'boolean' && isShallow != null) {
- thisArg = callback;
- callback = (typeof isShallow != 'function' && thisArg && thisArg[isShallow] === array) ? null : isShallow;
- isShallow = false;
- }
- if (callback != null) {
- array = map(array, callback, thisArg);
+ function createPartialWrapper(func, bitmask, thisArg, partials) {
+ var isBind = bitmask & BIND_FLAG,
+ Ctor = createCtorWrapper(func);
+
+ function wrapper() {
+ // Avoid `arguments` object use disqualifying optimizations by
+ // converting it to an array before providing it `func`.
+ var argsIndex = -1,
+ argsLength = arguments.length,
+ leftIndex = -1,
+ leftLength = partials.length,
+ args = Array(argsLength + leftLength);
+
+ while (++leftIndex < leftLength) {
+ args[leftIndex] = partials[leftIndex];
+ }
+ while (argsLength--) {
+ args[leftIndex++] = arguments[++argsIndex];
+ }
+ var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
+ return fn.apply(isBind ? thisArg : this, args);
}
- return baseFlatten(array, isShallow);
+ return wrapper;
}
/**
- * Gets the index at which the first occurrence of `value` is found using
- * strict equality for comparisons, i.e. `===`. If the array is already sorted
- * providing `true` for `fromIndex` will run a faster binary search.
- *
- * @static
- * @memberOf _
- * @category Arrays
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {boolean|number} [fromIndex=0] The index to search from or `true`
- * to perform a binary search on a sorted array.
- * @returns {number} Returns the index of the matched value or `-1`.
- * @example
- *
- * _.indexOf([1, 2, 3, 1, 2, 3], 2);
- * // => 1
- *
- * _.indexOf([1, 2, 3, 1, 2, 3], 2, 3);
- * // => 4
+ * Creates a function that either curries or invokes `func` with optional
+ * `this` binding and partially applied arguments.
*
- * _.indexOf([1, 1, 2, 2, 3, 3], 2, true);
- * // => 2
+ * @private
+ * @param {Function|string} func The function or method name to reference.
+ * @param {number} bitmask The bitmask of flags.
+ * The bitmask may be composed of the following flags:
+ * 1 - `_.bind`
+ * 2 - `_.bindKey`
+ * 4 - `_.curry` or `_.curryRight` of a bound function
+ * 8 - `_.curry`
+ * 16 - `_.curryRight`
+ * 32 - `_.partial`
+ * 64 - `_.partialRight`
+ * 128 - `_.rearg`
+ * 256 - `_.ary`
+ * @param {*} [thisArg] The `this` binding of `func`.
+ * @param {Array} [partials] The arguments to be partially applied.
+ * @param {Array} [holders] The `partials` placeholder indexes.
+ * @param {Array} [argPos] The argument positions of the new function.
+ * @param {number} [ary] The arity cap of `func`.
+ * @param {number} [arity] The arity of `func`.
+ * @returns {Function} Returns the new wrapped function.
*/
- function indexOf(array, value, fromIndex) {
- if (typeof fromIndex == 'number') {
- var length = array ? array.length : 0;
- fromIndex = (fromIndex < 0 ? nativeMax(0, length + fromIndex) : fromIndex || 0);
- } else if (fromIndex) {
- var index = sortedIndex(array, value);
- return array[index] === value ? index : -1;
+ function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
+ var isBindKey = bitmask & BIND_KEY_FLAG;
+ if (!isBindKey && typeof func != 'function') {
+ throw new TypeError(FUNC_ERROR_TEXT);
+ }
+ var length = partials ? partials.length : 0;
+ if (!length) {
+ bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG);
+ partials = holders = null;
+ }
+ length -= (holders ? holders.length : 0);
+ if (bitmask & PARTIAL_RIGHT_FLAG) {
+ var partialsRight = partials,
+ holdersRight = holders;
+
+ partials = holders = null;
+ }
+ var data = isBindKey ? null : getData(func),
+ newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity];
+
+ if (data) {
+ mergeData(newData, data);
+ bitmask = newData[1];
+ arity = newData[9];
+ }
+ newData[9] = arity == null
+ ? (isBindKey ? 0 : func.length)
+ : (nativeMax(arity - length, 0) || 0);
+
+ if (bitmask == BIND_FLAG) {
+ var result = createBindWrapper(newData[0], newData[2]);
+ } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !newData[4].length) {
+ result = createPartialWrapper.apply(undefined, newData);
+ } else {
+ result = createHybridWrapper.apply(undefined, newData);
}
- return baseIndexOf(array, value, fromIndex);
+ var setter = data ? baseSetData : setData;
+ return setter(result, newData);
}
/**
- * Creates an array of unique values present in all provided arrays using
- * strict equality for comparisons, i.e. `===`.
- *
- * @static
- * @memberOf _
- * @category Arrays
- * @param {...Array} [array] The arrays to inspect.
- * @returns {Array} Returns an array of composite values.
- * @example
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
+ * partial deep comparisons.
*
- * _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]);
- * // => [1, 2]
+ * @private
+ * @param {Array} array The array to compare.
+ * @param {Array} other The other array to compare.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Function} [customizer] The function to customize comparing arrays.
+ * @param {boolean} [isLoose] Specify performing partial comparisons.
+ * @param {Array} [stackA] Tracks traversed `value` objects.
+ * @param {Array} [stackB] Tracks traversed `other` objects.
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
- function intersection(array) {
- var args = arguments,
- argsLength = args.length,
- argsIndex = -1,
- caches = getArray(),
- index = -1,
- indexOf = getIndexOf(),
- length = array ? array.length : 0,
- result = [],
- seen = getArray();
+ function equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {
+ var index = -1,
+ arrLength = array.length,
+ othLength = other.length;
- while (++argsIndex < argsLength) {
- var value = args[argsIndex];
- caches[argsIndex] = indexOf === baseIndexOf &&
- (value ? value.length : 0) >= largeArraySize &&
- createCache(argsIndex ? args[argsIndex] : seen);
+ if (arrLength != othLength && !(isLoose && othLength > arrLength)) {
+ return false;
}
- outer:
- while (++index < length) {
- var cache = caches[0];
- value = array[index];
+ // Ignore non-index properties.
+ while (++index < arrLength) {
+ var arrValue = array[index],
+ othValue = other[index],
+ result = customizer ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) : undefined;
- if ((cache ? cacheIndexOf(cache, value) : indexOf(seen, value)) < 0) {
- argsIndex = argsLength;
- (cache || seen).push(value);
- while (--argsIndex) {
- cache = caches[argsIndex];
- if ((cache ? cacheIndexOf(cache, value) : indexOf(args[argsIndex], value)) < 0) {
- continue outer;
- }
+ if (result !== undefined) {
+ if (result) {
+ continue;
}
- result.push(value);
+ return false;
}
- }
- while (argsLength--) {
- cache = caches[argsLength];
- if (cache) {
- releaseObject(cache);
+ // Recursively compare arrays (susceptible to call stack limits).
+ if (isLoose) {
+ if (!arraySome(other, function(othValue) {
+ return arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB);
+ })) {
+ return false;
+ }
+ } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB))) {
+ return false;
}
}
- releaseArray(caches);
- releaseArray(seen);
- return result;
+ return true;
}
/**
- * Gets the last element or last `n` elements of an array. If a callback is
- * provided elements at the end of the array are returned as long as the
- * callback returns truey. The callback is bound to `thisArg` and invoked
- * with three arguments; (value, index, array).
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
+ * the same `toStringTag`.
*
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
+ * **Note:** This function only supports comparing values with tags of
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
*
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
+ * @private
+ * @param {Object} value The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {string} tag The `toStringTag` of the objects to compare.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ */
+ function equalByTag(object, other, tag) {
+ switch (tag) {
+ case boolTag:
+ case dateTag:
+ // Coerce dates and booleans to numbers, dates to milliseconds and booleans
+ // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.
+ return +object == +other;
+
+ case errorTag:
+ return object.name == other.name && object.message == other.message;
+
+ case numberTag:
+ // Treat `NaN` vs. `NaN` as equal.
+ return (object != +object)
+ ? other != +other
+ : object == +other;
+
+ case regexpTag:
+ case stringTag:
+ // Coerce regexes to strings and treat strings primitives and string
+ // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
+ return object == (other + '');
+ }
+ return false;
+ }
+
+ /**
+ * A specialized version of `baseIsEqualDeep` for objects with support for
+ * partial deep comparisons.
*
- * @static
- * @memberOf _
- * @category Arrays
- * @param {Array} array The array to query.
- * @param {Function|Object|number|string} [callback] The function called
- * per element or the number of elements to return. If a property name or
- * object is provided it will be used to create a "_.pluck" or "_.where"
- * style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {*} Returns the last element(s) of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- *
- * _.last([1, 2, 3], 2);
- * // => [2, 3]
- *
- * _.last([1, 2, 3], function(num) {
- * return num > 1;
- * });
- * // => [2, 3]
- *
- * var characters = [
- * { 'name': 'barney', 'blocked': false, 'employer': 'slate' },
- * { 'name': 'fred', 'blocked': true, 'employer': 'slate' },
- * { 'name': 'pebbles', 'blocked': true, 'employer': 'na' }
- * ];
- *
- * // using "_.pluck" callback shorthand
- * _.pluck(_.last(characters, 'blocked'), 'name');
- * // => ['fred', 'pebbles']
- *
- * // using "_.where" callback shorthand
- * _.last(characters, { 'employer': 'na' });
- * // => [{ 'name': 'pebbles', 'blocked': true, 'employer': 'na' }]
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Function} [customizer] The function to customize comparing values.
+ * @param {boolean} [isLoose] Specify performing partial comparisons.
+ * @param {Array} [stackA] Tracks traversed `value` objects.
+ * @param {Array} [stackB] Tracks traversed `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
- function last(array, callback, thisArg) {
- var n = 0,
- length = array ? array.length : 0;
+ function equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
+ var objProps = keys(object),
+ objLength = objProps.length,
+ othProps = keys(other),
+ othLength = othProps.length;
- if (typeof callback != 'number' && callback != null) {
- var index = length;
- callback = lodash.createCallback(callback, thisArg, 3);
- while (index-- && callback(array[index], index, array)) {
- n++;
+ if (objLength != othLength && !isLoose) {
+ return false;
+ }
+ var index = objLength;
+ while (index--) {
+ var key = objProps[index];
+ if (!(isLoose ? key in other : hasOwnProperty.call(other, key))) {
+ return false;
}
- } else {
- n = callback;
- if (n == null || thisArg) {
- return array ? array[length - 1] : undefined;
+ }
+ var skipCtor = isLoose;
+ while (++index < objLength) {
+ key = objProps[index];
+ var objValue = object[key],
+ othValue = other[key],
+ result = customizer ? customizer(isLoose ? othValue : objValue, isLoose? objValue : othValue, key) : undefined;
+
+ // Recursively compare objects (susceptible to call stack limits).
+ if (!(result === undefined ? equalFunc(objValue, othValue, customizer, isLoose, stackA, stackB) : result)) {
+ return false;
+ }
+ skipCtor || (skipCtor = key == 'constructor');
+ }
+ if (!skipCtor) {
+ var objCtor = object.constructor,
+ othCtor = other.constructor;
+
+ // Non `Object` object instances with different constructors are not equal.
+ if (objCtor != othCtor &&
+ ('constructor' in object && 'constructor' in other) &&
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
+ return false;
}
}
- return slice(array, nativeMax(0, length - n));
+ return true;
}
/**
- * Uses a binary search to determine the smallest index at which a value
- * should be inserted into a given sorted array in order to maintain the sort
- * order of the array. If a callback is provided it will be executed for
- * `value` and each element of `array` to compute their sort ranking. The
- * callback is bound to `thisArg` and invoked with one argument; (value).
- *
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
+ * Gets the appropriate "callback" function. If the `_.callback` method is
+ * customized this function returns the custom method, otherwise it returns
+ * the `baseCallback` function. If arguments are provided the chosen function
+ * is invoked with them and its result is returned.
*
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
- *
- * @static
- * @memberOf _
- * @category Arrays
- * @param {Array} array The array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
+ * @private
+ * @returns {Function} Returns the chosen function or its result.
+ */
+ function getCallback(func, thisArg, argCount) {
+ var result = lodash.callback || callback;
+ result = result === callback ? baseCallback : result;
+ return argCount ? result(func, thisArg, argCount) : result;
+ }
+
+ /**
+ * Gets metadata for `func`.
*
- * _.sortedIndex([20, 30, 50], 40);
- * // => 2
+ * @private
+ * @param {Function} func The function to query.
+ * @returns {*} Returns the metadata for `func`.
+ */
+ var getData = !metaMap ? noop : function(func) {
+ return metaMap.get(func);
+ };
+
+ /**
+ * Gets the name of `func`.
*
- * // using "_.pluck" callback shorthand
- * _.sortedIndex([{ 'x': 20 }, { 'x': 30 }, { 'x': 50 }], { 'x': 40 }, 'x');
- * // => 2
+ * @private
+ * @param {Function} func The function to query.
+ * @returns {string} Returns the function name.
+ */
+ function getFuncName(func) {
+ var result = func.name,
+ array = realNames[result],
+ length = array ? array.length : 0;
+
+ while (length--) {
+ var data = array[length],
+ otherFunc = data.func;
+ if (otherFunc == null || otherFunc == func) {
+ return data.name;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Gets the appropriate "indexOf" function. If the `_.indexOf` method is
+ * customized this function returns the custom method, otherwise it returns
+ * the `baseIndexOf` function. If arguments are provided the chosen function
+ * is invoked with them and its result is returned.
*
- * var dict = {
- * 'wordToNumber': { 'twenty': 20, 'thirty': 30, 'fourty': 40, 'fifty': 50 }
- * };
+ * @private
+ * @returns {Function|number} Returns the chosen function or its result.
+ */
+ function getIndexOf(collection, target, fromIndex) {
+ var result = lodash.indexOf || indexOf;
+ result = result === indexOf ? baseIndexOf : result;
+ return collection ? result(collection, target, fromIndex) : result;
+ }
+
+ /**
+ * Gets the "length" property value of `object`.
*
- * _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
- * return dict.wordToNumber[word];
- * });
- * // => 2
+ * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
+ * that affects Safari on at least iOS 8.1-8.3 ARM64.
*
- * _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
- * return this.wordToNumber[word];
- * }, dict);
- * // => 2
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {*} Returns the "length" value.
*/
- function sortedIndex(array, value, callback, thisArg) {
- var low = 0,
- high = array ? array.length : low;
+ var getLength = baseProperty('length');
- // explicitly reference `identity` for better inlining in Firefox
- callback = callback ? lodash.createCallback(callback, thisArg, 1) : identity;
- value = callback(value);
+ /**
+ * Gets the propery names, values, and compare flags of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the match data of `object`.
+ */
+ function getMatchData(object) {
+ var result = pairs(object),
+ length = result.length;
- while (low < high) {
- var mid = (low + high) >>> 1;
- (callback(array[mid]) < value)
- ? low = mid + 1
- : high = mid;
+ while (length--) {
+ result[length][2] = isStrictComparable(result[length][1]);
}
- return low;
+ return result;
}
/**
- * Creates an array of unique values, in order, of the provided arrays using
- * strict equality for comparisons, i.e. `===`.
- *
- * @static
- * @memberOf _
- * @category Arrays
- * @param {...Array} [array] The arrays to inspect.
- * @returns {Array} Returns an array of composite values.
- * @example
+ * Gets the native function at `key` of `object`.
*
- * _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
- * // => [1, 2, 3, 101, 10]
+ * @private
+ * @param {Object} object The object to query.
+ * @param {string} key The key of the method to get.
+ * @returns {*} Returns the function if it's native, else `undefined`.
*/
- function union(array) {
- return baseUniq(baseFlatten(arguments, true, true));
+ function getNative(object, key) {
+ var value = object == null ? undefined : object[key];
+ return isNative(value) ? value : undefined;
}
/**
- * Creates a duplicate-value-free version of an array using strict equality
- * for comparisons, i.e. `===`. If the array is sorted, providing
- * `true` for `isSorted` will use a faster algorithm. If a callback is provided
- * each element of `array` is passed through the callback before uniqueness
- * is computed. The callback is bound to `thisArg` and invoked with three
- * arguments; (value, index, array).
+ * Gets the view, applying any `transforms` to the `start` and `end` positions.
*
- * If a property name is provided for `callback` the created "_.pluck" style
- * callback will return the property value of the given element.
+ * @private
+ * @param {number} start The start of the view.
+ * @param {number} end The end of the view.
+ * @param {Array} [transforms] The transformations to apply to the view.
+ * @returns {Object} Returns an object containing the `start` and `end`
+ * positions of the view.
+ */
+ function getView(start, end, transforms) {
+ var index = -1,
+ length = transforms ? transforms.length : 0;
+
+ while (++index < length) {
+ var data = transforms[index],
+ size = data.size;
+
+ switch (data.type) {
+ case 'drop': start += size; break;
+ case 'dropRight': end -= size; break;
+ case 'take': end = nativeMin(end, start + size); break;
+ case 'takeRight': start = nativeMax(start, end - size); break;
+ }
+ }
+ return { 'start': start, 'end': end };
+ }
+
+ /**
+ * Initializes an array clone.
*
- * If an object is provided for `callback` the created "_.where" style callback
- * will return `true` for elements that have the properties of the given object,
- * else `false`.
+ * @private
+ * @param {Array} array The array to clone.
+ * @returns {Array} Returns the initialized clone.
+ */
+ function initCloneArray(array) {
+ var length = array.length,
+ result = new array.constructor(length);
+
+ // Add array properties assigned by `RegExp#exec`.
+ if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
+ result.index = array.index;
+ result.input = array.input;
+ }
+ return result;
+ }
+
+ /**
+ * Initializes an object clone.
*
- * @static
- * @memberOf _
- * @alias unique
- * @category Arrays
- * @param {Array} array The array to process.
- * @param {boolean} [isSorted=false] A flag to indicate that `array` is sorted.
- * @param {Function|Object|string} [callback=identity] The function called
- * per iteration. If a property name or object is provided it will be used
- * to create a "_.pluck" or "_.where" style callback, respectively.
- * @param {*} [thisArg] The `this` binding of `callback`.
- * @returns {Array} Returns a duplicate-value-free array.
- * @example
+ * @private
+ * @param {Object} object The object to clone.
+ * @returns {Object} Returns the initialized clone.
+ */
+ function initCloneObject(object) {
+ var Ctor = object.constructor;
+ if (!(typeof Ctor == 'function' && Ctor instanceof Ctor)) {
+ Ctor = Object;
+ }
+ return new Ctor;
+ }
+
+ /**
+ * Initializes an object clone based on its `toStringTag`.
*
- * _.uniq([1, 2, 1, 3, 1]);
- * // => [1, 2, 3]
+ * **Note:** This function only supports cloning values with tags of
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
*
- * _.uniq([1, 1, 2, 2, 3], true);
- * // => [1, 2, 3]
+ * @private
+ * @param {Object} object The object to clone.
+ * @param {string} tag The `toStringTag` of the object to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @returns {Object} Returns the initialized clone.
+ */
+ function initCloneByTag(object, tag, isDeep) {
+ var Ctor = object.constructor;
+ switch (tag) {
+ case arrayBufferTag:
+ return bufferClone(object);
+
+ case boolTag:
+ case dateTag:
+ return new Ctor(+object);
+
+ case float32Tag: case float64Tag:
+ case int8Tag: case int16Tag: case int32Tag:
+ case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
+ // Safari 5 mobile incorrectly has `Object` as the constructor of typed arrays.
+ if (Ctor instanceof Ctor) {
+ Ctor = ctorByTag[tag];
+ }
+ var buffer = object.buffer;
+ return new Ctor(isDeep ? bufferClone(buffer) : buffer, object.byteOffset, object.length);
+
+ case numberTag:
+ case stringTag:
+ return new Ctor(object);
+
+ case regexpTag:
+ var result = new Ctor(object.source, reFlags.exec(object));
+ result.lastIndex = object.lastIndex;
+ }
+ return result;
+ }
+
+ /**
+ * Checks if `value` is array-like.
*
- * _.uniq(['A', 'b', 'C', 'a', 'B', 'c'], function(letter) { return letter.toLowerCase(); });
- * // => ['A', 'b', 'C']
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
+ */
+ function isArrayLike(value) {
+ return value != null && isLength(getLength(value));
+ }
+
+ /**
+ * Checks if `value` is a valid array-like index.
*
- * _.uniq([1, 2.5, 3, 1.5, 2, 3.5], function(num) { return this.floor(num); }, Math);
- * // => [1, 2.5, 3]
+ * @private
+ * @param {*} value The value to check.
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
+ */
+ function isIndex(value, length) {
+ value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
+ length = length == null ? MAX_SAFE_INTEGER : length;
+ return value > -1 && value % 1 == 0 && value < length;
+ }
+
+ /**
+ * Checks if the provided arguments are from an iteratee call.
*
- * // using "_.pluck" callback shorthand
- * _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
+ * @private
+ * @param {*} value The potential iteratee value argument.
+ * @param {*} index The potential iteratee index or key argument.
+ * @param {*} object The potential iteratee object argument.
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
*/
- function uniq(array, isSorted, callback, thisArg) {
- // juggle arguments
- if (typeof isSorted != 'boolean' && isSorted != null) {
- thisArg = callback;
- callback = (typeof isSorted != 'function' && thisArg && thisArg[isSorted] === array) ? null : isSorted;
- isSorted = false;
+ function isIterateeCall(value, index, object) {
+ if (!isObject(object)) {
+ return false;
}
- if (callback != null) {
- callback = lodash.createCallback(callback, thisArg, 3);
+ var type = typeof index;
+ if (type == 'number'
+ ? (isArrayLike(object) && isIndex(index, object.length))
+ : (type == 'string' && index in object)) {
+ var other = object[index];
+ return value === value ? (value === other) : (other !== other);
}
- return baseUniq(array, isSorted, callback);
+ return false;
}
/**
- * Creates an array excluding all provided values using strict equality for
- * comparisons, i.e. `===`.
- *
- * @static
- * @memberOf _
- * @category Arrays
- * @param {Array} array The array to filter.
- * @param {...*} [value] The values to exclude.
- * @returns {Array} Returns a new array of filtered values.
- * @example
+ * Checks if `value` is a property name and not a property path.
*
- * _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
- * // => [2, 3, 4]
+ * @private
+ * @param {*} value The value to check.
+ * @param {Object} [object] The object to query keys on.
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
- function without(array) {
- return baseDifference(array, slice(arguments, 1));
+ function isKey(value, object) {
+ var type = typeof value;
+ if ((type == 'string' && reIsPlainProp.test(value)) || type == 'number') {
+ return true;
+ }
+ if (isArray(value)) {
+ return false;
+ }
+ var result = !reIsDeepProp.test(value);
+ return result || (object != null && value in toObject(object));
}
- /*--------------------------------------------------------------------------*/
-
/**
- * Creates a function that, when called, invokes `func` with the `this`
- * binding of `thisArg` and prepends any additional `bind` arguments to those
- * provided to the bound function.
+ * Checks if `func` has a lazy counterpart.
*
- * @static
- * @memberOf _
- * @category Functions
- * @param {Function} func The function to bind.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {...*} [arg] Arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
+ * @private
+ * @param {Function} func The function to check.
+ * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
+ */
+ function isLaziable(func) {
+ var funcName = getFuncName(func);
+ if (!(funcName in LazyWrapper.prototype)) {
+ return false;
+ }
+ var other = lodash[funcName];
+ if (func === other) {
+ return true;
+ }
+ var data = getData(other);
+ return !!data && func === data[0];
+ }
+
+ /**
+ * Checks if `value` is a valid array-like length.
*
- * var func = function(greeting) {
- * return greeting + ' ' + this.name;
- * };
+ * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
*
- * func = _.bind(func, { 'name': 'fred' }, 'hi');
- * func();
- * // => 'hi fred'
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
*/
- function bind(func, thisArg) {
- return arguments.length > 2
- ? createWrapper(func, 17, slice(arguments, 2), null, thisArg)
- : createWrapper(func, 1, null, null, thisArg);
+ function isLength(value) {
+ return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/**
- * Produces a callback bound to an optional `thisArg`. If `func` is a property
- * name the created callback will return the property value for a given element.
- * If `func` is an object the created callback will return `true` for elements
- * that contain the equivalent object properties, otherwise it will return `false`.
- *
- * @static
- * @memberOf _
- * @category Functions
- * @param {*} [func=identity] The value to convert to a callback.
- * @param {*} [thisArg] The `this` binding of the created callback.
- * @param {number} [argCount] The number of arguments the callback accepts.
- * @returns {Function} Returns a callback function.
- * @example
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
*
- * var characters = [
- * { 'name': 'barney', 'age': 36 },
- * { 'name': 'fred', 'age': 40 }
- * ];
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
+ * equality comparisons, else `false`.
+ */
+ function isStrictComparable(value) {
+ return value === value && !isObject(value);
+ }
+
+ /**
+ * Merges the function metadata of `source` into `data`.
*
- * // wrap to create custom callback shorthands
- * _.createCallback = _.wrap(_.createCallback, function(func, callback, thisArg) {
- * var match = /^(.+?)__([gl]t)(.+)$/.exec(callback);
- * return !match ? func(callback, thisArg) : function(object) {
- * return match[2] == 'gt' ? object[match[1]] > match[3] : object[match[1]] < match[3];
- * };
- * });
+ * Merging metadata reduces the number of wrappers required to invoke a function.
+ * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
+ * may be applied regardless of execution order. Methods like `_.ary` and `_.rearg`
+ * augment function arguments, making the order in which they are executed important,
+ * preventing the merging of metadata. However, we make an exception for a safe
+ * common case where curried functions have `_.ary` and or `_.rearg` applied.
*
- * _.filter(characters, 'age__gt38');
- * // => [{ 'name': 'fred', 'age': 40 }]
+ * @private
+ * @param {Array} data The destination metadata.
+ * @param {Array} source The source metadata.
+ * @returns {Array} Returns `data`.
*/
- function createCallback(func, thisArg, argCount) {
- var type = typeof func;
- if (func == null || type == 'function') {
- return baseCreateCallback(func, thisArg, argCount);
+ function mergeData(data, source) {
+ var bitmask = data[1],
+ srcBitmask = source[1],
+ newBitmask = bitmask | srcBitmask,
+ isCommon = newBitmask < ARY_FLAG;
+
+ var isCombo =
+ (srcBitmask == ARY_FLAG && bitmask == CURRY_FLAG) ||
+ (srcBitmask == ARY_FLAG && bitmask == REARG_FLAG && data[7].length <= source[8]) ||
+ (srcBitmask == (ARY_FLAG | REARG_FLAG) && bitmask == CURRY_FLAG);
+
+ // Exit early if metadata can't be merged.
+ if (!(isCommon || isCombo)) {
+ return data;
+ }
+ // Use source `thisArg` if available.
+ if (srcBitmask & BIND_FLAG) {
+ data[2] = source[2];
+ // Set when currying a bound function.
+ newBitmask |= (bitmask & BIND_FLAG) ? 0 : CURRY_BOUND_FLAG;
+ }
+ // Compose partial arguments.
+ var value = source[3];
+ if (value) {
+ var partials = data[3];
+ data[3] = partials ? composeArgs(partials, value, source[4]) : arrayCopy(value);
+ data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : arrayCopy(source[4]);
}
- // handle "_.pluck" style callback shorthands
- if (type != 'object') {
- return function(object) {
- return object[func];
- };
+ // Compose partial right arguments.
+ value = source[5];
+ if (value) {
+ partials = data[5];
+ data[5] = partials ? composeArgsRight(partials, value, source[6]) : arrayCopy(value);
+ data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : arrayCopy(source[6]);
}
- var props = keys(func),
- key = props[0],
- a = func[key];
-
- // handle "_.where" style callback shorthands
- if (props.length == 1 && a === a && !isObject(a)) {
- // fast path the common case of providing an object with a single
- // property containing a primitive value
- return function(object) {
- var b = object[key];
- return a === b && (a !== 0 || (1 / a == 1 / b));
- };
+ // Use source `argPos` if available.
+ value = source[7];
+ if (value) {
+ data[7] = arrayCopy(value);
}
- return function(object) {
- var length = props.length,
- result = false;
+ // Use source `ary` if it's smaller.
+ if (srcBitmask & ARY_FLAG) {
+ data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
+ }
+ // Use source `arity` if one is not provided.
+ if (data[9] == null) {
+ data[9] = source[9];
+ }
+ // Use source `func` and merge bitmasks.
+ data[0] = source[0];
+ data[1] = newBitmask;
- while (length--) {
- if (!(result = baseIsEqual(object[props[length]], func[props[length]], null, true))) {
- break;
- }
- }
- return result;
- };
+ return data;
}
/**
- * Creates a function that will delay the execution of `func` until after
- * `wait` milliseconds have elapsed since the last time it was invoked.
- * Provide an options object to indicate that `func` should be invoked on
- * the leading and/or trailing edge of the `wait` timeout. Subsequent calls
- * to the debounced function will return the result of the last `func` call.
+ * A specialized version of `_.pick` which picks `object` properties specified
+ * by `props`.
*
- * Note: If `leading` and `trailing` options are `true` `func` will be called
- * on the trailing edge of the timeout only if the the debounced function is
- * invoked more than once during the `wait` timeout.
+ * @private
+ * @param {Object} object The source object.
+ * @param {string[]} props The property names to pick.
+ * @returns {Object} Returns the new object.
+ */
+ function pickByArray(object, props) {
+ object = toObject(object);
+
+ var index = -1,
+ length = props.length,
+ result = {};
+
+ while (++index < length) {
+ var key = props[index];
+ if (key in object) {
+ result[key] = object[key];
+ }
+ }
+ return result;
+ }
+
+ /**
+ * A specialized version of `_.pick` which picks `object` properties `predicate`
+ * returns truthy for.
*
- * @static
- * @memberOf _
- * @category Functions
- * @param {Function} func The function to debounce.
- * @param {number} wait The number of milliseconds to delay.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.leading=false] Specify execution on the leading edge of the timeout.
- * @param {number} [options.maxWait] The maximum time `func` is allowed to be delayed before it's called.
- * @param {boolean} [options.trailing=true] Specify execution on the trailing edge of the timeout.
- * @returns {Function} Returns the new debounced function.
- * @example
+ * @private
+ * @param {Object} object The source object.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {Object} Returns the new object.
+ */
+ function pickByCallback(object, predicate) {
+ var result = {};
+ baseForIn(object, function(value, key, object) {
+ if (predicate(value, key, object)) {
+ result[key] = value;
+ }
+ });
+ return result;
+ }
+
+ /**
+ * Reorder `array` according to the specified indexes where the element at
+ * the first index is assigned as the first element, the element at
+ * the second index is assigned as the second element, and so on.
*
- * // avoid costly calculations while the window size is in flux
- * var lazyLayout = _.debounce(calculateLayout, 150);
- * jQuery(window).on('resize', lazyLayout);
+ * @private
+ * @param {Array} array The array to reorder.
+ * @param {Array} indexes The arranged array indexes.
+ * @returns {Array} Returns `array`.
+ */
+ function reorder(array, indexes) {
+ var arrLength = array.length,
+ length = nativeMin(indexes.length, arrLength),
+ oldArray = arrayCopy(array);
+
+ while (length--) {
+ var index = indexes[length];
+ array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
+ }
+ return array;
+ }
+
+ /**
+ * Sets metadata for `func`.
*
- * // execute `sendMail` when the click event is fired, debouncing subsequent calls
- * jQuery('#postbox').on('click', _.debounce(sendMail, 300, {
- * 'leading': true,
- * 'trailing': false
- * });
+ * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
+ * period of time, it will trip its breaker and transition to an identity function
+ * to avoid garbage collection pauses in V8. See [V8 issue 2070](https://code.google.com/p/v8/issues/detail?id=2070)
+ * for more details.
*
- * // ensure `batchLog` is executed once after 1 second of debounced calls
- * var source = new EventSource('/stream');
- * source.addEventListener('message', _.debounce(batchLog, 250, {
- * 'maxWait': 1000
- * }, false);
+ * @private
+ * @param {Function} func The function to associate metadata with.
+ * @param {*} data The metadata.
+ * @returns {Function} Returns `func`.
*/
- function debounce(func, wait, options) {
- var args,
- maxTimeoutId,
- result,
- stamp,
- thisArg,
- timeoutId,
- trailingCall,
- lastCalled = 0,
- maxWait = false,
- trailing = true;
+ var setData = (function() {
+ var count = 0,
+ lastCalled = 0;
- if (!isFunction(func)) {
- throw new TypeError;
- }
- wait = nativeMax(0, wait) || 0;
- if (options === true) {
- var leading = true;
- trailing = false;
- } else if (isObject(options)) {
- leading = options.leading;
- maxWait = 'maxWait' in options && (nativeMax(wait, options.maxWait) || 0);
- trailing = 'trailing' in options ? options.trailing : trailing;
- }
- var delayed = function() {
- var remaining = wait - (now() - stamp);
- if (remaining <= 0) {
- if (maxTimeoutId) {
- clearTimeout(maxTimeoutId);
- }
- var isCalled = trailingCall;
- maxTimeoutId = timeoutId = trailingCall = undefined;
- if (isCalled) {
- lastCalled = now();
- result = func.apply(thisArg, args);
- if (!timeoutId && !maxTimeoutId) {
- args = thisArg = null;
- }
+ return function(key, value) {
+ var stamp = now(),
+ remaining = HOT_SPAN - (stamp - lastCalled);
+
+ lastCalled = stamp;
+ if (remaining > 0) {
+ if (++count >= HOT_COUNT) {
+ return key;
}
} else {
- timeoutId = setTimeout(delayed, remaining);
+ count = 0;
}
+ return baseSetData(key, value);
};
+ }());
- var maxDelayed = function() {
- if (timeoutId) {
- clearTimeout(timeoutId);
- }
- maxTimeoutId = timeoutId = trailingCall = undefined;
- if (trailing || (maxWait !== wait)) {
- lastCalled = now();
- result = func.apply(thisArg, args);
- if (!timeoutId && !maxTimeoutId) {
- args = thisArg = null;
- }
- }
- };
+ /**
+ * A fallback implementation of `_.isPlainObject` which checks if `value`
+ * is an object created by the `Object` constructor or has a `[[Prototype]]`
+ * of `null`.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
+ */
+ function shimIsPlainObject(value) {
+ var Ctor,
+ support = lodash.support;
+
+ // Exit early for non `Object` objects.
+ if (!(isObjectLike(value) && objToString.call(value) == objectTag && !isHostObject(value)) ||
+ (!hasOwnProperty.call(value, 'constructor') &&
+ (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor))) ||
+ (!support.argsTag && isArguments(value))) {
+ return false;
+ }
+ // IE < 9 iterates inherited properties before own properties. If the first
+ // iterated property is an object's own property then there are no inherited
+ // enumerable properties.
+ var result;
+ if (support.ownLast) {
+ baseForIn(value, function(subValue, key, object) {
+ result = hasOwnProperty.call(object, key);
+ return false;
+ });
+ return result !== false;
+ }
+ // In most environments an object's own properties are iterated before
+ // its inherited properties. If the last iterated property is an object's
+ // own property then there are no inherited enumerable properties.
+ baseForIn(value, function(subValue, key) {
+ result = key;
+ });
+ return result === undefined || hasOwnProperty.call(value, result);
+ }
- return function() {
- args = arguments;
- stamp = now();
- thisArg = this;
- trailingCall = trailing && (timeoutId || !leading);
+ /**
+ * A fallback implementation of `Object.keys` which creates an array of the
+ * own enumerable property names of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ */
+ function shimKeys(object) {
+ var props = keysIn(object),
+ propsLength = props.length,
+ length = propsLength && object.length;
- if (maxWait === false) {
- var leadingCall = leading && !timeoutId;
- } else {
- if (!maxTimeoutId && !leading) {
- lastCalled = stamp;
- }
- var remaining = maxWait - (stamp - lastCalled),
- isCalled = remaining <= 0;
+ var allowIndexes = !!length && isLength(length) &&
+ (isArray(object) || isArguments(object) || isString(object));
- if (isCalled) {
- if (maxTimeoutId) {
- maxTimeoutId = clearTimeout(maxTimeoutId);
- }
- lastCalled = stamp;
- result = func.apply(thisArg, args);
- }
- else if (!maxTimeoutId) {
- maxTimeoutId = setTimeout(maxDelayed, remaining);
- }
- }
- if (isCalled && timeoutId) {
- timeoutId = clearTimeout(timeoutId);
- }
- else if (!timeoutId && wait !== maxWait) {
- timeoutId = setTimeout(delayed, wait);
- }
- if (leadingCall) {
- isCalled = true;
- result = func.apply(thisArg, args);
- }
- if (isCalled && !timeoutId && !maxTimeoutId) {
- args = thisArg = null;
+ var index = -1,
+ result = [];
+
+ while (++index < propsLength) {
+ var key = props[index];
+ if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) {
+ result.push(key);
}
- return result;
- };
+ }
+ return result;
}
/**
- * Creates a function that, when executed, will only call the `func` function
- * at most once per every `wait` milliseconds. Provide an options object to
- * indicate that `func` should be invoked on the leading and/or trailing edge
- * of the `wait` timeout. Subsequent calls to the throttled function will
- * return the result of the last `func` call.
- *
- * Note: If `leading` and `trailing` options are `true` `func` will be called
- * on the trailing edge of the timeout only if the the throttled function is
- * invoked more than once during the `wait` timeout.
- *
- * @static
- * @memberOf _
- * @category Functions
- * @param {Function} func The function to throttle.
- * @param {number} wait The number of milliseconds to throttle executions to.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.leading=true] Specify execution on the leading edge of the timeout.
- * @param {boolean} [options.trailing=true] Specify execution on the trailing edge of the timeout.
- * @returns {Function} Returns the new throttled function.
- * @example
- *
- * // avoid excessively updating the position while scrolling
- * var throttled = _.throttle(updatePosition, 100);
- * jQuery(window).on('scroll', throttled);
+ * Converts `value` to an object if it's not one.
*
- * // execute `renewToken` when the click event is fired, but not more than once every 5 minutes
- * jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
- * 'trailing': false
- * }));
+ * @private
+ * @param {*} value The value to process.
+ * @returns {Object} Returns the object.
*/
- function throttle(func, wait, options) {
- var leading = true,
- trailing = true;
+ function toObject(value) {
+ if (lodash.support.unindexedChars && isString(value)) {
+ var index = -1,
+ length = value.length,
+ result = Object(value);
- if (!isFunction(func)) {
- throw new TypeError;
- }
- if (options === false) {
- leading = false;
- } else if (isObject(options)) {
- leading = 'leading' in options ? options.leading : leading;
- trailing = 'trailing' in options ? options.trailing : trailing;
+ while (++index < length) {
+ result[index] = value.charAt(index);
+ }
+ return result;
}
- debounceOptions.leading = leading;
- debounceOptions.maxWait = wait;
- debounceOptions.trailing = trailing;
-
- return debounce(func, wait, debounceOptions);
+ return isObject(value) ? value : Object(value);
}
- /*--------------------------------------------------------------------------*/
-
/**
- * This method returns the first argument provided to it.
+ * Converts `value` to property path array if it's not one.
*
- * @static
- * @memberOf _
- * @category Utilities
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
+ * @private
+ * @param {*} value The value to process.
+ * @returns {Array} Returns the property path array.
+ */
+ function toPath(value) {
+ if (isArray(value)) {
+ return value;
+ }
+ var result = [];
+ baseToString(value).replace(rePropName, function(match, number, quote, string) {
+ result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
+ });
+ return result;
+ }
+
+ /**
+ * Creates a clone of `wrapper`.
*
- * var object = { 'name': 'fred' };
- * _.identity(object) === object;
- * // => true
+ * @private
+ * @param {Object} wrapper The wrapper to clone.
+ * @returns {Object} Returns the cloned wrapper.
*/
- function identity(value) {
- return value;
+ function wrapperClone(wrapper) {
+ return wrapper instanceof LazyWrapper
+ ? wrapper.clone()
+ : new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__, arrayCopy(wrapper.__actions__));
}
+ /*------------------------------------------------------------------------*/
+
/**
- * Adds function properties of a source object to the `lodash` function and
- * chainable wrapper.
+ * Creates an array of elements split into groups the length of `size`.
+ * If `collection` can't be split evenly, the final chunk will be the remaining
+ * elements.
*
* @static
* @memberOf _
- * @category Utilities
- * @param {Object} object The object of function properties to add to `lodash`.
- * @param {Object} object The object of function properties to add to `lodash`.
+ * @category Array
+ * @param {Array} array The array to process.
+ * @param {number} [size=1] The length of each chunk.
+ * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
+ * @returns {Array} Returns the new array containing chunks.
* @example
*
- * _.mixin({
- * 'capitalize': function(string) {
- * return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
- * }
- * });
- *
- * _.capitalize('fred');
- * // => 'Fred'
+ * _.chunk(['a', 'b', 'c', 'd'], 2);
+ * // => [['a', 'b'], ['c', 'd']]
*
- * _('fred').capitalize();
- * // => 'Fred'
+ * _.chunk(['a', 'b', 'c', 'd'], 3);
+ * // => [['a', 'b', 'c'], ['d']]
*/
- function mixin(object, source) {
- var ctor = object,
- isFunc = !source || isFunction(ctor);
-
- if (!source) {
- ctor = lodashWrapper;
- source = object;
- object = lodash;
+ function chunk(array, size, guard) {
+ if (guard ? isIterateeCall(array, size, guard) : size == null) {
+ size = 1;
+ } else {
+ size = nativeMax(+size || 1, 1);
}
- forEach(functions(source), function(methodName) {
- var func = object[methodName] = source[methodName];
- if (isFunc) {
- ctor.prototype[methodName] = function() {
- var value = this.__wrapped__,
- args = [value];
+ var index = 0,
+ length = array ? array.length : 0,
+ resIndex = -1,
+ result = Array(ceil(length / size));
- push.apply(args, arguments);
- var result = func.apply(object, args);
- if (value && typeof value == 'object' && value === result) {
- return this;
- }
- result = new ctor(result);
- result.__chain__ = this.__chain__;
- return result;
- };
- }
- });
+ while (index < length) {
+ result[++resIndex] = baseSlice(array, index, (index += size));
+ }
+ return result;
}
/**
- * A no-operation function.
+ * Creates an array with all falsey values removed. The values `false`, `null`,
+ * `0`, `""`, `undefined`, and `NaN` are falsey.
*
* @static
* @memberOf _
- * @category Utilities
+ * @category Array
+ * @param {Array} array The array to compact.
+ * @returns {Array} Returns the new array of filtered values.
* @example
*
- * var object = { 'name': 'fred' };
- * _.noop(object) === undefined;
- * // => true
+ * _.compact([0, 1, false, 2, '', 3]);
+ * // => [1, 2, 3]
*/
- function noop() {
- // no operation performed
- }
+ function compact(array) {
+ var index = -1,
+ length = array ? array.length : 0,
+ resIndex = -1,
+ result = [];
- /*--------------------------------------------------------------------------*/
+ while (++index < length) {
+ var value = array[index];
+ if (value) {
+ result[++resIndex] = value;
+ }
+ }
+ return result;
+ }
/**
- * Creates a `lodash` object that wraps the given value with explicit
- * method chaining enabled.
+ * Creates an array of unique `array` values not included in the other
+ * provided arrays using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * for equality comparisons.
*
* @static
* @memberOf _
- * @category Chaining
- * @param {*} value The value to wrap.
- * @returns {Object} Returns the wrapper object.
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @param {...Array} [values] The arrays of values to exclude.
+ * @returns {Array} Returns the new array of filtered values.
* @example
*
- * var characters = [
- * { 'name': 'barney', 'age': 36 },
- * { 'name': 'fred', 'age': 40 },
- * { 'name': 'pebbles', 'age': 1 }
- * ];
- *
- * var youngest = _.chain(characters)
- * .sortBy('age')
- * .map(function(chr) { return chr.name + ' is ' + chr.age; })
- * .first()
- * .value();
- * // => 'pebbles is 1'
+ * _.difference([1, 2, 3], [4, 2]);
+ * // => [1, 3]
*/
- function chain(value) {
- value = new lodashWrapper(value);
- value.__chain__ = true;
- return value;
- }
+ var difference = restParam(function(array, values) {
+ return isArrayLike(array)
+ ? baseDifference(array, baseFlatten(values, false, true))
+ : [];
+ });
/**
- * Enables explicit method chaining on the wrapper object.
+ * Gets the first element of `array`.
*
- * @name chain
+ * @static
* @memberOf _
- * @category Chaining
- * @returns {*} Returns the wrapper object.
+ * @alias head
+ * @category Array
+ * @param {Array} array The array to query.
+ * @returns {*} Returns the first element of `array`.
* @example
*
- * var characters = [
- * { 'name': 'barney', 'age': 36 },
- * { 'name': 'fred', 'age': 40 }
- * ];
- *
- * // without explicit chaining
- * _(characters).first();
- * // => { 'name': 'barney', 'age': 36 }
+ * _.first([1, 2, 3]);
+ * // => 1
*
- * // with explicit chaining
- * _(characters).chain()
- * .first()
- * .pick('age')
- * .value()
- * // => { 'age': 36 }
+ * _.first([]);
+ * // => undefined
*/
- function wrapperChain() {
- this.__chain__ = true;
- return this;
+ function first(array) {
+ return array ? array[0] : undefined;
}
/**
- * Produces the `toString` result of the wrapped value.
+ * Flattens a nested array. If `isDeep` is `true` the array is recursively
+ * flattened, otherwise it is only flattened a single level.
*
- * @name toString
+ * @static
* @memberOf _
- * @category Chaining
- * @returns {string} Returns the string result.
+ * @category Array
+ * @param {Array} array The array to flatten.
+ * @param {boolean} [isDeep] Specify a deep flatten.
+ * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
+ * @returns {Array} Returns the new flattened array.
* @example
*
- * _([1, 2, 3]).toString();
- * // => '1,2,3'
+ * _.flatten([1, [2, 3, [4]]]);
+ * // => [1, 2, 3, [4]]
+ *
+ * // using `isDeep`
+ * _.flatten([1, [2, 3, [4]]], true);
+ * // => [1, 2, 3, 4]
*/
- function wrapperToString() {
- return String(this.__wrapped__);
+ function flatten(array, isDeep, guard) {
+ var length = array ? array.length : 0;
+ if (guard && isIterateeCall(array, isDeep, guard)) {
+ isDeep = false;
+ }
+ return length ? baseFlatten(array, isDeep) : [];
}
/**
- * Extracts the wrapped value.
+ * Gets the index at which the first occurrence of `value` is found in `array`
+ * using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * for equality comparisons. If `fromIndex` is negative, it is used as the offset
+ * from the end of `array`. If `array` is sorted providing `true` for `fromIndex`
+ * performs a faster binary search.
*
- * @name valueOf
+ * @static
* @memberOf _
- * @alias value
- * @category Chaining
- * @returns {*} Returns the wrapped value.
+ * @category Array
+ * @param {Array} array The array to search.
+ * @param {*} value The value to search for.
+ * @param {boolean|number} [fromIndex=0] The index to search from or `true`
+ * to perform a binary search on a sorted array.
+ * @returns {number} Returns the index of the matched value, else `-1`.
* @example
*
- * _([1, 2, 3]).valueOf();
- * // => [1, 2, 3]
- */
- function wrapperValueOf() {
- return this.__wrapped__;
- }
-
- /*--------------------------------------------------------------------------*/
-
- lodash.assign = assign;
- lodash.bind = bind;
- lodash.chain = chain;
- lodash.compact = compact;
- lodash.createCallback = createCallback;
- lodash.debounce = debounce;
- lodash.difference = difference;
- lodash.filter = filter;
- lodash.flatten = flatten;
- lodash.forEach = forEach;
- lodash.forIn = forIn;
- lodash.forOwn = forOwn;
- lodash.functions = functions;
- lodash.groupBy = groupBy;
- lodash.intersection = intersection;
- lodash.keys = keys;
- lodash.map = map;
- lodash.merge = merge;
- lodash.omit = omit;
- lodash.pairs = pairs;
- lodash.pick = pick;
- lodash.pluck = pluck;
- lodash.reject = reject;
- lodash.throttle = throttle;
- lodash.union = union;
- lodash.uniq = uniq;
- lodash.values = values;
- lodash.without = without;
-
- // add aliases
- lodash.collect = map;
- lodash.each = forEach;
- lodash.extend = assign;
- lodash.methods = functions;
- lodash.select = filter;
- lodash.unique = uniq;
-
- // add functions to `lodash.prototype`
- mixin(lodash);
-
- /*--------------------------------------------------------------------------*/
-
- // add functions that return unwrapped values when chaining
- lodash.clone = clone;
- lodash.cloneDeep = cloneDeep;
- lodash.contains = contains;
- lodash.every = every;
- lodash.find = find;
- lodash.identity = identity;
- lodash.indexOf = indexOf;
- lodash.isArguments = isArguments;
- lodash.isArray = isArray;
- lodash.isEmpty = isEmpty;
- lodash.isEqual = isEqual;
- lodash.isFunction = isFunction;
- lodash.isObject = isObject;
- lodash.isPlainObject = isPlainObject;
- lodash.isString = isString;
- lodash.mixin = mixin;
- lodash.noop = noop;
- lodash.reduce = reduce;
- lodash.some = some;
- lodash.sortedIndex = sortedIndex;
-
- // add aliases
- lodash.all = every;
- lodash.any = some;
- lodash.detect = find;
- lodash.findWhere = find;
- lodash.foldl = reduce;
- lodash.include = contains;
- lodash.inject = reduce;
-
- forOwn(lodash, function(func, methodName) {
- if (!lodash.prototype[methodName]) {
- lodash.prototype[methodName] = function() {
- var args = [this.__wrapped__],
- chainAll = this.__chain__;
-
- push.apply(args, arguments);
- var result = func.apply(lodash, args);
- return chainAll
- ? new lodashWrapper(result, chainAll)
- : result;
- };
+ * _.indexOf([1, 2, 1, 2], 2);
+ * // => 1
+ *
+ * // using `fromIndex`
+ * _.indexOf([1, 2, 1, 2], 2, 2);
+ * // => 3
+ *
+ * // performing a binary search
+ * _.indexOf([1, 1, 2, 2], 2, true);
+ * // => 2
+ */
+ function indexOf(array, value, fromIndex) {
+ var length = array ? array.length : 0;
+ if (!length) {
+ return -1;
}
- });
-
- /*--------------------------------------------------------------------------*/
+ if (typeof fromIndex == 'number') {
+ fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex;
+ } else if (fromIndex) {
+ var index = binaryIndex(array, value),
+ other = array[index];
- // add functions capable of returning wrapped and unwrapped values when chaining
- lodash.first = first;
- lodash.last = last;
+ if (value === value ? (value === other) : (other !== other)) {
+ return index;
+ }
+ return -1;
+ }
+ return baseIndexOf(array, value, fromIndex || 0);
+ }
- // add aliases
- lodash.take = first;
- lodash.head = first;
+ /**
+ * Creates an array of unique values that are included in all of the provided
+ * arrays using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * for equality comparisons.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {...Array} [arrays] The arrays to inspect.
+ * @returns {Array} Returns the new array of shared values.
+ * @example
+ * _.intersection([1, 2], [4, 2], [2, 1]);
+ * // => [2]
+ */
+ var intersection = restParam(function(arrays) {
+ var othLength = arrays.length,
+ othIndex = othLength,
+ caches = Array(length),
+ indexOf = getIndexOf(),
+ isCommon = indexOf == baseIndexOf,
+ result = [];
- forOwn(lodash, function(func, methodName) {
- var callbackable = methodName !== 'sample';
- if (!lodash.prototype[methodName]) {
- lodash.prototype[methodName]= function(n, guard) {
- var chainAll = this.__chain__,
- result = func(this.__wrapped__, n, guard);
+ while (othIndex--) {
+ var value = arrays[othIndex] = isArrayLike(value = arrays[othIndex]) ? value : [];
+ caches[othIndex] = (isCommon && value.length >= 120) ? createCache(othIndex && value) : null;
+ }
+ var array = arrays[0],
+ index = -1,
+ length = array ? array.length : 0,
+ seen = caches[0];
- return !chainAll && (n == null || (guard && !(callbackable && typeof n == 'function')))
- ? result
- : new lodashWrapper(result, chainAll);
- };
+ outer:
+ while (++index < length) {
+ value = array[index];
+ if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value, 0)) < 0) {
+ var othIndex = othLength;
+ while (--othIndex) {
+ var cache = caches[othIndex];
+ if ((cache ? cacheIndexOf(cache, value) : indexOf(arrays[othIndex], value, 0)) < 0) {
+ continue outer;
+ }
+ }
+ if (seen) {
+ seen.push(value);
+ }
+ result.push(value);
+ }
}
+ return result;
});
- /*--------------------------------------------------------------------------*/
-
/**
- * The semantic version number.
+ * Gets the last element of `array`.
*
* @static
* @memberOf _
- * @type string
+ * @category Array
+ * @param {Array} array The array to query.
+ * @returns {*} Returns the last element of `array`.
+ * @example
+ *
+ * _.last([1, 2, 3]);
+ * // => 3
*/
- lodash.VERSION = '2.3.0';
+ function last(array) {
+ var length = array ? array.length : 0;
+ return length ? array[length - 1] : undefined;
+ }
- // add "Chaining" functions to the wrapper
- lodash.prototype.chain = wrapperChain;
- lodash.prototype.toString = wrapperToString;
- lodash.prototype.value = wrapperValueOf;
- lodash.prototype.valueOf = wrapperValueOf;
+ /**
+ * Creates an array of unique values, in order, from all of the provided arrays
+ * using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * for equality comparisons.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {...Array} [arrays] The arrays to inspect.
+ * @returns {Array} Returns the new array of combined values.
+ * @example
+ *
+ * _.union([1, 2], [4, 2], [2, 1]);
+ * // => [1, 2, 4]
+ */
+ var union = restParam(function(arrays) {
+ return baseUniq(baseFlatten(arrays, false, true));
+ });
- // add `Array` functions that return unwrapped values
- baseEach(['join', 'pop', 'shift'], function(methodName) {
- var func = arrayRef[methodName];
- lodash.prototype[methodName] = function() {
- var chainAll = this.__chain__,
- result = func.apply(this.__wrapped__, arguments);
+ /**
+ * Creates a duplicate-free version of an array, using
+ * [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * for equality comparisons, in which only the first occurence of each element
+ * is kept. Providing `true` for `isSorted` performs a faster search algorithm
+ * for sorted arrays. If an iteratee function is provided it is invoked for
+ * each element in the array to generate the criterion by which uniqueness
+ * is computed. The `iteratee` is bound to `thisArg` and invoked with three
+ * arguments: (value, index, array).
+ *
+ * If a property name is provided for `iteratee` the created `_.property`
+ * style callback returns the property value of the given element.
+ *
+ * If a value is also provided for `thisArg` the created `_.matchesProperty`
+ * style callback returns `true` for elements that have a matching property
+ * value, else `false`.
+ *
+ * If an object is provided for `iteratee` the created `_.matches` style
+ * callback returns `true` for elements that have the properties of the given
+ * object, else `false`.
+ *
+ * @static
+ * @memberOf _
+ * @alias unique
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @param {boolean} [isSorted] Specify the array is sorted.
+ * @param {Function|Object|string} [iteratee] The function invoked per iteration.
+ * @param {*} [thisArg] The `this` binding of `iteratee`.
+ * @returns {Array} Returns the new duplicate-value-free array.
+ * @example
+ *
+ * _.uniq([2, 1, 2]);
+ * // => [2, 1]
+ *
+ * // using `isSorted`
+ * _.uniq([1, 1, 2], true);
+ * // => [1, 2]
+ *
+ * // using an iteratee function
+ * _.uniq([1, 2.5, 1.5, 2], function(n) {
+ * return this.floor(n);
+ * }, Math);
+ * // => [1, 2.5]
+ *
+ * // using the `_.property` callback shorthand
+ * _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
+ * // => [{ 'x': 1 }, { 'x': 2 }]
+ */
+ function uniq(array, isSorted, iteratee, thisArg) {
+ var length = array ? array.length : 0;
+ if (!length) {
+ return [];
+ }
+ if (isSorted != null && typeof isSorted != 'boolean') {
+ thisArg = iteratee;
+ iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted;
+ isSorted = false;
+ }
+ var callback = getCallback();
+ if (!(iteratee == null && callback === baseCallback)) {
+ iteratee = callback(iteratee, thisArg, 3);
+ }
+ return (isSorted && getIndexOf() == baseIndexOf)
+ ? sortedUniq(array, iteratee)
+ : baseUniq(array, iteratee);
+ }
- return chainAll
- ? new lodashWrapper(result, chainAll)
- : result;
- };
+ /**
+ * Creates an array excluding all provided values using
+ * [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * for equality comparisons.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to filter.
+ * @param {...*} [values] The values to exclude.
+ * @returns {Array} Returns the new array of filtered values.
+ * @example
+ *
+ * _.without([1, 2, 1, 3], 1, 2);
+ * // => [3]
+ */
+ var without = restParam(function(array, values) {
+ return isArrayLike(array)
+ ? baseDifference(array, values)
+ : [];
});
- // add `Array` functions that return the wrapped value
- baseEach(['push', 'reverse', 'sort', 'unshift'], function(methodName) {
- var func = arrayRef[methodName];
- lodash.prototype[methodName] = function() {
- func.apply(this.__wrapped__, arguments);
- return this;
- };
- });
+ /*------------------------------------------------------------------------*/
- // add `Array` functions that return new wrapped values
- baseEach(['concat', 'slice', 'splice'], function(methodName) {
- var func = arrayRef[methodName];
- lodash.prototype[methodName] = function() {
- return new lodashWrapper(func.apply(this.__wrapped__, arguments), this.__chain__);
- };
- });
+ /**
+ * Creates a `lodash` object that wraps `value` with explicit method
+ * chaining enabled.
+ *
+ * @static
+ * @memberOf _
+ * @category Chain
+ * @param {*} value The value to wrap.
+ * @returns {Object} Returns the new `lodash` wrapper instance.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36 },
+ * { 'user': 'fred', 'age': 40 },
+ * { 'user': 'pebbles', 'age': 1 }
+ * ];
+ *
+ * var youngest = _.chain(users)
+ * .sortBy('age')
+ * .map(function(chr) {
+ * return chr.user + ' is ' + chr.age;
+ * })
+ * .first()
+ * .value();
+ * // => 'pebbles is 1'
+ */
+ function chain(value) {
+ var result = lodash(value);
+ result.__chain__ = true;
+ return result;
+ }
- // avoid array-like object bugs with `Array#shift` and `Array#splice`
- // in IE < 9, Firefox < 10, Narwhal, and RingoJS
- if (!support.spliceObjects) {
- baseEach(['pop', 'shift', 'splice'], function(methodName) {
- var func = arrayRef[methodName],
- isSplice = methodName == 'splice';
+ /**
+ * This method invokes `interceptor` and returns `value`. The interceptor is
+ * bound to `thisArg` and invoked with one argument; (value). The purpose of
+ * this method is to "tap into" a method chain in order to perform operations
+ * on intermediate results within the chain.
+ *
+ * @static
+ * @memberOf _
+ * @category Chain
+ * @param {*} value The value to provide to `interceptor`.
+ * @param {Function} interceptor The function to invoke.
+ * @param {*} [thisArg] The `this` binding of `interceptor`.
+ * @returns {*} Returns `value`.
+ * @example
+ *
+ * _([1, 2, 3])
+ * .tap(function(array) {
+ * array.pop();
+ * })
+ * .reverse()
+ * .value();
+ * // => [2, 1]
+ */
+ function tap(value, interceptor, thisArg) {
+ interceptor.call(thisArg, value);
+ return value;
+ }
- lodash.prototype[methodName] = function() {
- var chainAll = this.__chain__,
- value = this.__wrapped__,
- result = func.apply(value, arguments);
+ /**
+ * This method is like `_.tap` except that it returns the result of `interceptor`.
+ *
+ * @static
+ * @memberOf _
+ * @category Chain
+ * @param {*} value The value to provide to `interceptor`.
+ * @param {Function} interceptor The function to invoke.
+ * @param {*} [thisArg] The `this` binding of `interceptor`.
+ * @returns {*} Returns the result of `interceptor`.
+ * @example
+ *
+ * _(' abc ')
+ * .chain()
+ * .trim()
+ * .thru(function(value) {
+ * return [value];
+ * })
+ * .value();
+ * // => ['abc']
+ */
+ function thru(value, interceptor, thisArg) {
+ return interceptor.call(thisArg, value);
+ }
- if (value.length === 0) {
- delete value[0];
- }
- return (chainAll || isSplice)
- ? new lodashWrapper(result, chainAll)
- : result;
- };
- });
+ /**
+ * Enables explicit method chaining on the wrapper object.
+ *
+ * @name chain
+ * @memberOf _
+ * @category Chain
+ * @returns {Object} Returns the new `lodash` wrapper instance.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36 },
+ * { 'user': 'fred', 'age': 40 }
+ * ];
+ *
+ * // without explicit chaining
+ * _(users).first();
+ * // => { 'user': 'barney', 'age': 36 }
+ *
+ * // with explicit chaining
+ * _(users).chain()
+ * .first()
+ * .pick('user')
+ * .value();
+ * // => { 'user': 'barney' }
+ */
+ function wrapperChain() {
+ return chain(this);
}
- /*--------------------------------------------------------------------------*/
+ /**
+ * Executes the chained sequence and returns the wrapped result.
+ *
+ * @name commit
+ * @memberOf _
+ * @category Chain
+ * @returns {Object} Returns the new `lodash` wrapper instance.
+ * @example
+ *
+ * var array = [1, 2];
+ * var wrapper = _(array).push(3);
+ *
+ * console.log(array);
+ * // => [1, 2]
+ *
+ * wrapper = wrapper.commit();
+ * console.log(array);
+ * // => [1, 2, 3]
+ *
+ * wrapper.last();
+ * // => 3
+ *
+ * console.log(array);
+ * // => [1, 2, 3]
+ */
+ function wrapperCommit() {
+ return new LodashWrapper(this.value(), this.__chain__);
+ }
- if (freeExports && freeModule) {
- // in Node.js or RingoJS
- if (moduleExports) {
- (freeModule.exports = lodash)._ = lodash;
+ /**
+ * Creates a clone of the chained sequence planting `value` as the wrapped value.
+ *
+ * @name plant
+ * @memberOf _
+ * @category Chain
+ * @returns {Object} Returns the new `lodash` wrapper instance.
+ * @example
+ *
+ * var array = [1, 2];
+ * var wrapper = _(array).map(function(value) {
+ * return Math.pow(value, 2);
+ * });
+ *
+ * var other = [3, 4];
+ * var otherWrapper = wrapper.plant(other);
+ *
+ * otherWrapper.value();
+ * // => [9, 16]
+ *
+ * wrapper.value();
+ * // => [1, 4]
+ */
+ function wrapperPlant(value) {
+ var result,
+ parent = this;
+
+ while (parent instanceof baseLodash) {
+ var clone = wrapperClone(parent);
+ if (result) {
+ previous.__wrapped__ = clone;
+ } else {
+ result = clone;
+ }
+ var previous = clone;
+ parent = parent.__wrapped__;
}
+ previous.__wrapped__ = value;
+ return result;
+ }
+ /**
+ * Reverses the wrapped array so the first element becomes the last, the
+ * second element becomes the second to last, and so on.
+ *
+ * **Note:** This method mutates the wrapped array.
+ *
+ * @name reverse
+ * @memberOf _
+ * @category Chain
+ * @returns {Object} Returns the new reversed `lodash` wrapper instance.
+ * @example
+ *
+ * var array = [1, 2, 3];
+ *
+ * _(array).reverse().value()
+ * // => [3, 2, 1]
+ *
+ * console.log(array);
+ * // => [3, 2, 1]
+ */
+ function wrapperReverse() {
+ var value = this.__wrapped__;
+ if (value instanceof LazyWrapper) {
+ if (this.__actions__.length) {
+ value = new LazyWrapper(this);
+ }
+ return new LodashWrapper(value.reverse(), this.__chain__);
+ }
+ return this.thru(function(value) {
+ return value.reverse();
+ });
}
- else {
- // in a browser or Rhino
- root._ = lodash;
+
+ /**
+ * Produces the result of coercing the unwrapped value to a string.
+ *
+ * @name toString
+ * @memberOf _
+ * @category Chain
+ * @returns {string} Returns the coerced string value.
+ * @example
+ *
+ * _([1, 2, 3]).toString();
+ * // => '1,2,3'
+ */
+ function wrapperToString() {
+ return (this.value() + '');
}
-}.call(this));
-(function(e){if("function"==typeof bootstrap)bootstrap("osmauth",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeOsmAuth=e}else"undefined"!=typeof window?window.osmAuth=e():global.osmAuth=e()})(function(){var define,ses,bootstrap,module,exports;
-return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){
-'use strict';
-var ohauth = require('ohauth'),
- xtend = require('xtend'),
- store = require('store');
+ /**
+ * Executes the chained sequence to extract the unwrapped value.
+ *
+ * @name value
+ * @memberOf _
+ * @alias run, toJSON, valueOf
+ * @category Chain
+ * @returns {*} Returns the resolved unwrapped value.
+ * @example
+ *
+ * _([1, 2, 3]).value();
+ * // => [1, 2, 3]
+ */
+ function wrapperValue() {
+ return baseWrapperValue(this.__wrapped__, this.__actions__);
+ }
-// # osm-auth
-//
-// This code is only compatible with IE10+ because the [XDomainRequest](http://bit.ly/LfO7xo)
-// object, IE<10's idea of [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing),
-// does not support custom headers, which this uses everywhere.
-module.exports = function(o) {
+ /*------------------------------------------------------------------------*/
- var oauth = {};
+ /**
+ * Checks if `predicate` returns truthy for **all** elements of `collection`.
+ * The predicate is bound to `thisArg` and invoked with three arguments:
+ * (value, index|key, collection).
+ *
+ * If a property name is provided for `predicate` the created `_.property`
+ * style callback returns the property value of the given element.
+ *
+ * If a value is also provided for `thisArg` the created `_.matchesProperty`
+ * style callback returns `true` for elements that have a matching property
+ * value, else `false`.
+ *
+ * If an object is provided for `predicate` the created `_.matches` style
+ * callback returns `true` for elements that have the properties of the given
+ * object, else `false`.
+ *
+ * @static
+ * @memberOf _
+ * @alias all
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function|Object|string} [predicate=_.identity] The function invoked
+ * per iteration.
+ * @param {*} [thisArg] The `this` binding of `predicate`.
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`.
+ * @example
+ *
+ * _.every([true, 1, null, 'yes'], Boolean);
+ * // => false
+ *
+ * var users = [
+ * { 'user': 'barney', 'active': false },
+ * { 'user': 'fred', 'active': false }
+ * ];
+ *
+ * // using the `_.matches` callback shorthand
+ * _.every(users, { 'user': 'barney', 'active': false });
+ * // => false
+ *
+ * // using the `_.matchesProperty` callback shorthand
+ * _.every(users, 'active', false);
+ * // => true
+ *
+ * // using the `_.property` callback shorthand
+ * _.every(users, 'active');
+ * // => false
+ */
+ function every(collection, predicate, thisArg) {
+ var func = isArray(collection) ? arrayEvery : baseEvery;
+ if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
+ predicate = null;
+ }
+ if (typeof predicate != 'function' || thisArg !== undefined) {
+ predicate = getCallback(predicate, thisArg, 3);
+ }
+ return func(collection, predicate);
+ }
- // authenticated users will also have a request token secret, but it's
- // not used in transactions with the server
- oauth.authenticated = function() {
- return !!(token('oauth_token') && token('oauth_token_secret'));
- };
+ /**
+ * Iterates over elements of `collection`, returning an array of all elements
+ * `predicate` returns truthy for. The predicate is bound to `thisArg` and
+ * invoked with three arguments: (value, index|key, collection).
+ *
+ * If a property name is provided for `predicate` the created `_.property`
+ * style callback returns the property value of the given element.
+ *
+ * If a value is also provided for `thisArg` the created `_.matchesProperty`
+ * style callback returns `true` for elements that have a matching property
+ * value, else `false`.
+ *
+ * If an object is provided for `predicate` the created `_.matches` style
+ * callback returns `true` for elements that have the properties of the given
+ * object, else `false`.
+ *
+ * @static
+ * @memberOf _
+ * @alias select
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function|Object|string} [predicate=_.identity] The function invoked
+ * per iteration.
+ * @param {*} [thisArg] The `this` binding of `predicate`.
+ * @returns {Array} Returns the new filtered array.
+ * @example
+ *
+ * _.filter([4, 5, 6], function(n) {
+ * return n % 2 == 0;
+ * });
+ * // => [4, 6]
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36, 'active': true },
+ * { 'user': 'fred', 'age': 40, 'active': false }
+ * ];
+ *
+ * // using the `_.matches` callback shorthand
+ * _.pluck(_.filter(users, { 'age': 36, 'active': true }), 'user');
+ * // => ['barney']
+ *
+ * // using the `_.matchesProperty` callback shorthand
+ * _.pluck(_.filter(users, 'active', false), 'user');
+ * // => ['fred']
+ *
+ * // using the `_.property` callback shorthand
+ * _.pluck(_.filter(users, 'active'), 'user');
+ * // => ['barney']
+ */
+ function filter(collection, predicate, thisArg) {
+ var func = isArray(collection) ? arrayFilter : baseFilter;
+ predicate = getCallback(predicate, thisArg, 3);
+ return func(collection, predicate);
+ }
- oauth.logout = function() {
- token('oauth_token', '');
- token('oauth_token_secret', '');
- token('oauth_request_token_secret', '');
- return oauth;
- };
+ /**
+ * Iterates over elements of `collection`, returning the first element
+ * `predicate` returns truthy for. The predicate is bound to `thisArg` and
+ * invoked with three arguments: (value, index|key, collection).
+ *
+ * If a property name is provided for `predicate` the created `_.property`
+ * style callback returns the property value of the given element.
+ *
+ * If a value is also provided for `thisArg` the created `_.matchesProperty`
+ * style callback returns `true` for elements that have a matching property
+ * value, else `false`.
+ *
+ * If an object is provided for `predicate` the created `_.matches` style
+ * callback returns `true` for elements that have the properties of the given
+ * object, else `false`.
+ *
+ * @static
+ * @memberOf _
+ * @alias detect
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to search.
+ * @param {Function|Object|string} [predicate=_.identity] The function invoked
+ * per iteration.
+ * @param {*} [thisArg] The `this` binding of `predicate`.
+ * @returns {*} Returns the matched element, else `undefined`.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36, 'active': true },
+ * { 'user': 'fred', 'age': 40, 'active': false },
+ * { 'user': 'pebbles', 'age': 1, 'active': true }
+ * ];
+ *
+ * _.result(_.find(users, function(chr) {
+ * return chr.age < 40;
+ * }), 'user');
+ * // => 'barney'
+ *
+ * // using the `_.matches` callback shorthand
+ * _.result(_.find(users, { 'age': 1, 'active': true }), 'user');
+ * // => 'pebbles'
+ *
+ * // using the `_.matchesProperty` callback shorthand
+ * _.result(_.find(users, 'active', false), 'user');
+ * // => 'fred'
+ *
+ * // using the `_.property` callback shorthand
+ * _.result(_.find(users, 'active'), 'user');
+ * // => 'barney'
+ */
+ var find = createFind(baseEach);
- // TODO: detect lack of click event
- oauth.authenticate = function(callback) {
- if (oauth.authenticated()) return callback();
+ /**
+ * Iterates over elements of `collection` invoking `iteratee` for each element.
+ * The `iteratee` is bound to `thisArg` and invoked with three arguments:
+ * (value, index|key, collection). Iteratee functions may exit iteration early
+ * by explicitly returning `false`.
+ *
+ * **Note:** As with other "Collections" methods, objects with a "length" property
+ * are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
+ * may be used for object iteration.
+ *
+ * @static
+ * @memberOf _
+ * @alias each
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @param {*} [thisArg] The `this` binding of `iteratee`.
+ * @returns {Array|Object|string} Returns `collection`.
+ * @example
+ *
+ * _([1, 2]).forEach(function(n) {
+ * console.log(n);
+ * }).value();
+ * // => logs each value from left to right and returns the array
+ *
+ * _.forEach({ 'a': 1, 'b': 2 }, function(n, key) {
+ * console.log(n, key);
+ * });
+ * // => logs each value-key pair and returns the object (iteration order is not guaranteed)
+ */
+ var forEach = createForEach(arrayEach, baseEach);
- oauth.logout();
+ /**
+ * Creates an object composed of keys generated from the results of running
+ * each element of `collection` through `iteratee`. The corresponding value
+ * of each key is an array of the elements responsible for generating the key.
+ * The `iteratee` is bound to `thisArg` and invoked with three arguments:
+ * (value, index|key, collection).
+ *
+ * If a property name is provided for `iteratee` the created `_.property`
+ * style callback returns the property value of the given element.
+ *
+ * If a value is also provided for `thisArg` the created `_.matchesProperty`
+ * style callback returns `true` for elements that have a matching property
+ * value, else `false`.
+ *
+ * If an object is provided for `iteratee` the created `_.matches` style
+ * callback returns `true` for elements that have the properties of the given
+ * object, else `false`.
+ *
+ * @static
+ * @memberOf _
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function|Object|string} [iteratee=_.identity] The function invoked
+ * per iteration.
+ * @param {*} [thisArg] The `this` binding of `iteratee`.
+ * @returns {Object} Returns the composed aggregate object.
+ * @example
+ *
+ * _.groupBy([4.2, 6.1, 6.4], function(n) {
+ * return Math.floor(n);
+ * });
+ * // => { '4': [4.2], '6': [6.1, 6.4] }
+ *
+ * _.groupBy([4.2, 6.1, 6.4], function(n) {
+ * return this.floor(n);
+ * }, Math);
+ * // => { '4': [4.2], '6': [6.1, 6.4] }
+ *
+ * // using the `_.property` callback shorthand
+ * _.groupBy(['one', 'two', 'three'], 'length');
+ * // => { '3': ['one', 'two'], '5': ['three'] }
+ */
+ var groupBy = createAggregator(function(result, value, key) {
+ if (hasOwnProperty.call(result, key)) {
+ result[key].push(value);
+ } else {
+ result[key] = [value];
+ }
+ });
- // ## Getting a request token
- var params = timenonce(getAuth(o)),
- url = o.url + '/oauth/request_token';
+ /**
+ * Checks if `value` is in `collection` using
+ * [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * for equality comparisons. If `fromIndex` is negative, it is used as the offset
+ * from the end of `collection`.
+ *
+ * @static
+ * @memberOf _
+ * @alias contains, include
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to search.
+ * @param {*} target The value to search for.
+ * @param {number} [fromIndex=0] The index to search from.
+ * @param- {Object} [guard] Enables use as a callback for functions like `_.reduce`.
+ * @returns {boolean} Returns `true` if a matching element is found, else `false`.
+ * @example
+ *
+ * _.includes([1, 2, 3], 1);
+ * // => true
+ *
+ * _.includes([1, 2, 3], 1, 2);
+ * // => false
+ *
+ * _.includes({ 'user': 'fred', 'age': 40 }, 'fred');
+ * // => true
+ *
+ * _.includes('pebbles', 'eb');
+ * // => true
+ */
+ function includes(collection, target, fromIndex, guard) {
+ var length = collection ? getLength(collection) : 0;
+ if (!isLength(length)) {
+ collection = values(collection);
+ length = collection.length;
+ }
+ if (!length) {
+ return false;
+ }
+ if (typeof fromIndex != 'number' || (guard && isIterateeCall(target, fromIndex, guard))) {
+ fromIndex = 0;
+ } else {
+ fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
+ }
+ return (typeof collection == 'string' || !isArray(collection) && isString(collection))
+ ? (fromIndex < length && collection.indexOf(target, fromIndex) > -1)
+ : (getIndexOf(collection, target, fromIndex) > -1);
+ }
- params.oauth_signature = ohauth.signature(
- o.oauth_secret, '',
- ohauth.baseString('POST', url, params));
+ /**
+ * Creates an array of values by running each element in `collection` through
+ * `iteratee`. The `iteratee` is bound to `thisArg` and invoked with three
+ * arguments: (value, index|key, collection).
+ *
+ * If a property name is provided for `iteratee` the created `_.property`
+ * style callback returns the property value of the given element.
+ *
+ * If a value is also provided for `thisArg` the created `_.matchesProperty`
+ * style callback returns `true` for elements that have a matching property
+ * value, else `false`.
+ *
+ * If an object is provided for `iteratee` the created `_.matches` style
+ * callback returns `true` for elements that have the properties of the given
+ * object, else `false`.
+ *
+ * Many lodash methods are guarded to work as iteratees for methods like
+ * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
+ *
+ * The guarded methods are:
+ * `ary`, `callback`, `chunk`, `clone`, `create`, `curry`, `curryRight`,
+ * `drop`, `dropRight`, `every`, `fill`, `flatten`, `invert`, `max`, `min`,
+ * `parseInt`, `slice`, `sortBy`, `take`, `takeRight`, `template`, `trim`,
+ * `trimLeft`, `trimRight`, `trunc`, `random`, `range`, `sample`, `some`,
+ * `sum`, `uniq`, and `words`
+ *
+ * @static
+ * @memberOf _
+ * @alias collect
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function|Object|string} [iteratee=_.identity] The function invoked
+ * per iteration.
+ * @param {*} [thisArg] The `this` binding of `iteratee`.
+ * @returns {Array} Returns the new mapped array.
+ * @example
+ *
+ * function timesThree(n) {
+ * return n * 3;
+ * }
+ *
+ * _.map([1, 2], timesThree);
+ * // => [3, 6]
+ *
+ * _.map({ 'a': 1, 'b': 2 }, timesThree);
+ * // => [3, 6] (iteration order is not guaranteed)
+ *
+ * var users = [
+ * { 'user': 'barney' },
+ * { 'user': 'fred' }
+ * ];
+ *
+ * // using the `_.property` callback shorthand
+ * _.map(users, 'user');
+ * // => ['barney', 'fred']
+ */
+ function map(collection, iteratee, thisArg) {
+ var func = isArray(collection) ? arrayMap : baseMap;
+ iteratee = getCallback(iteratee, thisArg, 3);
+ return func(collection, iteratee);
+ }
- if (!o.singlepage) {
- // Create a 600x550 popup window in the center of the screen
- var w = 600, h = 550,
- settings = [
- ['width', w], ['height', h],
- ['left', screen.width / 2 - w / 2],
- ['top', screen.height / 2 - h / 2]].map(function(x) {
- return x.join('=');
- }).join(','),
- popup = window.open('about:blank', 'oauth_window', settings);
- }
+ /**
+ * Gets the property value of `path` from all elements in `collection`.
+ *
+ * @static
+ * @memberOf _
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Array|string} path The path of the property to pluck.
+ * @returns {Array} Returns the property values.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36 },
+ * { 'user': 'fred', 'age': 40 }
+ * ];
+ *
+ * _.pluck(users, 'user');
+ * // => ['barney', 'fred']
+ *
+ * var userIndex = _.indexBy(users, 'user');
+ * _.pluck(userIndex, 'age');
+ * // => [36, 40] (iteration order is not guaranteed)
+ */
+ function pluck(collection, path) {
+ return map(collection, property(path));
+ }
- // Request a request token. When this is complete, the popup
- // window is redirected to OSM's authorization page.
- ohauth.xhr('POST', url, params, null, {}, reqTokenDone);
- o.loading();
+ /**
+ * Reduces `collection` to a value which is the accumulated result of running
+ * each element in `collection` through `iteratee`, where each successive
+ * invocation is supplied the return value of the previous. If `accumulator`
+ * is not provided the first element of `collection` is used as the initial
+ * value. The `iteratee` is bound to `thisArg` and invoked with four arguments:
+ * (accumulator, value, index|key, collection).
+ *
+ * Many lodash methods are guarded to work as iteratees for methods like
+ * `_.reduce`, `_.reduceRight`, and `_.transform`.
+ *
+ * The guarded methods are:
+ * `assign`, `defaults`, `includes`, `merge`, `sortByAll`, and `sortByOrder`
+ *
+ * @static
+ * @memberOf _
+ * @alias foldl, inject
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @param {*} [accumulator] The initial value.
+ * @param {*} [thisArg] The `this` binding of `iteratee`.
+ * @returns {*} Returns the accumulated value.
+ * @example
+ *
+ * _.reduce([1, 2], function(total, n) {
+ * return total + n;
+ * });
+ * // => 3
+ *
+ * _.reduce({ 'a': 1, 'b': 2 }, function(result, n, key) {
+ * result[key] = n * 3;
+ * return result;
+ * }, {});
+ * // => { 'a': 3, 'b': 6 } (iteration order is not guaranteed)
+ */
+ var reduce = createReduce(arrayReduce, baseEach);
- function reqTokenDone(err, xhr) {
- o.done();
- if (err) return callback(err);
- var resp = ohauth.stringQs(xhr.response);
- token('oauth_request_token_secret', resp.oauth_token_secret);
- var authorize_url = o.url + '/oauth/authorize?' + ohauth.qsString({
- oauth_token: resp.oauth_token,
- oauth_callback: location.href.replace('index.html', '')
- .replace(/#.*/, '') + o.landing
- });
-
- if (o.singlepage) {
- location.href = authorize_url;
- } else {
- popup.location = authorize_url;
- }
- }
-
- // Called by a function in a landing page, in the popup window. The
- // window closes itself.
- window.authComplete = function(token) {
- var oauth_token = ohauth.stringQs(token.split('?')[1]);
- get_access_token(oauth_token.oauth_token);
- delete window.authComplete;
- };
+ /**
+ * The opposite of `_.filter`; this method returns the elements of `collection`
+ * that `predicate` does **not** return truthy for.
+ *
+ * @static
+ * @memberOf _
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function|Object|string} [predicate=_.identity] The function invoked
+ * per iteration.
+ * @param {*} [thisArg] The `this` binding of `predicate`.
+ * @returns {Array} Returns the new filtered array.
+ * @example
+ *
+ * _.reject([1, 2, 3, 4], function(n) {
+ * return n % 2 == 0;
+ * });
+ * // => [1, 3]
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36, 'active': false },
+ * { 'user': 'fred', 'age': 40, 'active': true }
+ * ];
+ *
+ * // using the `_.matches` callback shorthand
+ * _.pluck(_.reject(users, { 'age': 40, 'active': true }), 'user');
+ * // => ['barney']
+ *
+ * // using the `_.matchesProperty` callback shorthand
+ * _.pluck(_.reject(users, 'active', false), 'user');
+ * // => ['fred']
+ *
+ * // using the `_.property` callback shorthand
+ * _.pluck(_.reject(users, 'active'), 'user');
+ * // => ['barney']
+ */
+ function reject(collection, predicate, thisArg) {
+ var func = isArray(collection) ? arrayFilter : baseFilter;
+ predicate = getCallback(predicate, thisArg, 3);
+ return func(collection, function(value, index, collection) {
+ return !predicate(value, index, collection);
+ });
+ }
- // ## Getting an request token
- //
- // At this point we have an `oauth_token`, brought in from a function
- // call on a landing page popup.
- function get_access_token(oauth_token) {
- var url = o.url + '/oauth/access_token',
- params = timenonce(getAuth(o)),
- request_token_secret = token('oauth_request_token_secret');
- params.oauth_token = oauth_token;
- params.oauth_signature = ohauth.signature(
- o.oauth_secret,
- request_token_secret,
- ohauth.baseString('POST', url, params));
+ /**
+ * Checks if `predicate` returns truthy for **any** element of `collection`.
+ * The function returns as soon as it finds a passing value and does not iterate
+ * over the entire collection. The predicate is bound to `thisArg` and invoked
+ * with three arguments: (value, index|key, collection).
+ *
+ * If a property name is provided for `predicate` the created `_.property`
+ * style callback returns the property value of the given element.
+ *
+ * If a value is also provided for `thisArg` the created `_.matchesProperty`
+ * style callback returns `true` for elements that have a matching property
+ * value, else `false`.
+ *
+ * If an object is provided for `predicate` the created `_.matches` style
+ * callback returns `true` for elements that have the properties of the given
+ * object, else `false`.
+ *
+ * @static
+ * @memberOf _
+ * @alias any
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to iterate over.
+ * @param {Function|Object|string} [predicate=_.identity] The function invoked
+ * per iteration.
+ * @param {*} [thisArg] The `this` binding of `predicate`.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
+ * @example
+ *
+ * _.some([null, 0, 'yes', false], Boolean);
+ * // => true
+ *
+ * var users = [
+ * { 'user': 'barney', 'active': true },
+ * { 'user': 'fred', 'active': false }
+ * ];
+ *
+ * // using the `_.matches` callback shorthand
+ * _.some(users, { 'user': 'barney', 'active': false });
+ * // => false
+ *
+ * // using the `_.matchesProperty` callback shorthand
+ * _.some(users, 'active', false);
+ * // => true
+ *
+ * // using the `_.property` callback shorthand
+ * _.some(users, 'active');
+ * // => true
+ */
+ function some(collection, predicate, thisArg) {
+ var func = isArray(collection) ? arraySome : baseSome;
+ if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
+ predicate = null;
+ }
+ if (typeof predicate != 'function' || thisArg !== undefined) {
+ predicate = getCallback(predicate, thisArg, 3);
+ }
+ return func(collection, predicate);
+ }
- // ## Getting an access token
- //
- // The final token required for authentication. At this point
- // we have a `request token secret`
- ohauth.xhr('POST', url, params, null, {}, accessTokenDone);
- o.loading();
- }
+ /*------------------------------------------------------------------------*/
- function accessTokenDone(err, xhr) {
- o.done();
- if (err) return callback(err);
- var access_token = ohauth.stringQs(xhr.response);
- token('oauth_token', access_token.oauth_token);
- token('oauth_token_secret', access_token.oauth_token_secret);
- callback(null, oauth);
- }
- };
+ /**
+ * Gets the number of milliseconds that have elapsed since the Unix epoch
+ * (1 January 1970 00:00:00 UTC).
+ *
+ * @static
+ * @memberOf _
+ * @category Date
+ * @example
+ *
+ * _.defer(function(stamp) {
+ * console.log(_.now() - stamp);
+ * }, _.now());
+ * // => logs the number of milliseconds it took for the deferred function to be invoked
+ */
+ var now = nativeNow || function() {
+ return new Date().getTime();
+ };
- oauth.bootstrapToken = function(oauth_token, callback) {
- // ## Getting an request token
- // At this point we have an `oauth_token`, brought in from a function
- // call on a landing page popup.
- function get_access_token(oauth_token) {
- var url = o.url + '/oauth/access_token',
- params = timenonce(getAuth(o)),
- request_token_secret = token('oauth_request_token_secret');
- params.oauth_token = oauth_token;
- params.oauth_signature = ohauth.signature(
- o.oauth_secret,
- request_token_secret,
- ohauth.baseString('POST', url, params));
+ /*------------------------------------------------------------------------*/
- // ## Getting an access token
- // The final token required for authentication. At this point
- // we have a `request token secret`
- ohauth.xhr('POST', url, params, null, {}, accessTokenDone);
- o.loading();
- }
+ /**
+ * Creates a function that invokes `func` with the `this` binding of `thisArg`
+ * and prepends any additional `_.bind` arguments to those provided to the
+ * bound function.
+ *
+ * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
+ * may be used as a placeholder for partially applied arguments.
+ *
+ * **Note:** Unlike native `Function#bind` this method does not set the "length"
+ * property of bound functions.
+ *
+ * @static
+ * @memberOf _
+ * @category Function
+ * @param {Function} func The function to bind.
+ * @param {*} thisArg The `this` binding of `func`.
+ * @param {...*} [partials] The arguments to be partially applied.
+ * @returns {Function} Returns the new bound function.
+ * @example
+ *
+ * var greet = function(greeting, punctuation) {
+ * return greeting + ' ' + this.user + punctuation;
+ * };
+ *
+ * var object = { 'user': 'fred' };
+ *
+ * var bound = _.bind(greet, object, 'hi');
+ * bound('!');
+ * // => 'hi fred!'
+ *
+ * // using placeholders
+ * var bound = _.bind(greet, object, _, '!');
+ * bound('hi');
+ * // => 'hi fred!'
+ */
+ var bind = restParam(function(func, thisArg, partials) {
+ var bitmask = BIND_FLAG;
+ if (partials.length) {
+ var holders = replaceHolders(partials, bind.placeholder);
+ bitmask |= PARTIAL_FLAG;
+ }
+ return createWrapper(func, bitmask, thisArg, partials, holders);
+ });
- function accessTokenDone(err, xhr) {
- o.done();
- if (err) return callback(err);
- var access_token = ohauth.stringQs(xhr.response);
- token('oauth_token', access_token.oauth_token);
- token('oauth_token_secret', access_token.oauth_token_secret);
- callback(null, oauth);
- }
+ /**
+ * Creates a debounced function that delays invoking `func` until after `wait`
+ * milliseconds have elapsed since the last time the debounced function was
+ * invoked. The debounced function comes with a `cancel` method to cancel
+ * delayed invocations. Provide an options object to indicate that `func`
+ * should be invoked on the leading and/or trailing edge of the `wait` timeout.
+ * Subsequent calls to the debounced function return the result of the last
+ * `func` invocation.
+ *
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
+ * on the trailing edge of the timeout only if the the debounced function is
+ * invoked more than once during the `wait` timeout.
+ *
+ * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)
+ * for details over the differences between `_.debounce` and `_.throttle`.
+ *
+ * @static
+ * @memberOf _
+ * @category Function
+ * @param {Function} func The function to debounce.
+ * @param {number} [wait=0] The number of milliseconds to delay.
+ * @param {Object} [options] The options object.
+ * @param {boolean} [options.leading=false] Specify invoking on the leading
+ * edge of the timeout.
+ * @param {number} [options.maxWait] The maximum time `func` is allowed to be
+ * delayed before it is invoked.
+ * @param {boolean} [options.trailing=true] Specify invoking on the trailing
+ * edge of the timeout.
+ * @returns {Function} Returns the new debounced function.
+ * @example
+ *
+ * // avoid costly calculations while the window size is in flux
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
+ *
+ * // invoke `sendMail` when the click event is fired, debouncing subsequent calls
+ * jQuery('#postbox').on('click', _.debounce(sendMail, 300, {
+ * 'leading': true,
+ * 'trailing': false
+ * }));
+ *
+ * // ensure `batchLog` is invoked once after 1 second of debounced calls
+ * var source = new EventSource('/stream');
+ * jQuery(source).on('message', _.debounce(batchLog, 250, {
+ * 'maxWait': 1000
+ * }));
+ *
+ * // cancel a debounced call
+ * var todoChanges = _.debounce(batchLog, 1000);
+ * Object.observe(models.todo, todoChanges);
+ *
+ * Object.observe(models, function(changes) {
+ * if (_.find(changes, { 'user': 'todo', 'type': 'delete'})) {
+ * todoChanges.cancel();
+ * }
+ * }, ['delete']);
+ *
+ * // ...at some point `models.todo` is changed
+ * models.todo.completed = true;
+ *
+ * // ...before 1 second has passed `models.todo` is deleted
+ * // which cancels the debounced `todoChanges` call
+ * delete models.todo;
+ */
+ function debounce(func, wait, options) {
+ var args,
+ maxTimeoutId,
+ result,
+ stamp,
+ thisArg,
+ timeoutId,
+ trailingCall,
+ lastCalled = 0,
+ maxWait = false,
+ trailing = true;
- get_access_token(oauth_token);
- };
+ if (typeof func != 'function') {
+ throw new TypeError(FUNC_ERROR_TEXT);
+ }
+ wait = wait < 0 ? 0 : (+wait || 0);
+ if (options === true) {
+ var leading = true;
+ trailing = false;
+ } else if (isObject(options)) {
+ leading = options.leading;
+ maxWait = 'maxWait' in options && nativeMax(+options.maxWait || 0, wait);
+ trailing = 'trailing' in options ? options.trailing : trailing;
+ }
- // # xhr
- //
- // A single XMLHttpRequest wrapper that does authenticated calls if the
- // user has logged in.
- oauth.xhr = function(options, callback) {
- if (!oauth.authenticated()) {
- if (o.auto) return oauth.authenticate(run);
- else return callback('not authenticated', null);
- } else return run();
+ function cancel() {
+ if (timeoutId) {
+ clearTimeout(timeoutId);
+ }
+ if (maxTimeoutId) {
+ clearTimeout(maxTimeoutId);
+ }
+ maxTimeoutId = timeoutId = trailingCall = undefined;
+ }
- function run() {
- var params = timenonce(getAuth(o)),
- url = o.url + options.path,
- oauth_token_secret = token('oauth_token_secret');
+ function delayed() {
+ var remaining = wait - (now() - stamp);
+ if (remaining <= 0 || remaining > wait) {
+ if (maxTimeoutId) {
+ clearTimeout(maxTimeoutId);
+ }
+ var isCalled = trailingCall;
+ maxTimeoutId = timeoutId = trailingCall = undefined;
+ if (isCalled) {
+ lastCalled = now();
+ result = func.apply(thisArg, args);
+ if (!timeoutId && !maxTimeoutId) {
+ args = thisArg = null;
+ }
+ }
+ } else {
+ timeoutId = setTimeout(delayed, remaining);
+ }
+ }
- // https://tools.ietf.org/html/rfc5849#section-3.4.1.3.1
- if ((!options.options || !options.options.header ||
- options.options.header['Content-Type'] === 'application/x-www-form-urlencoded') &&
- options.content) {
- params = xtend(params, ohauth.stringQs(options.content));
- }
+ function maxDelayed() {
+ if (timeoutId) {
+ clearTimeout(timeoutId);
+ }
+ maxTimeoutId = timeoutId = trailingCall = undefined;
+ if (trailing || (maxWait !== wait)) {
+ lastCalled = now();
+ result = func.apply(thisArg, args);
+ if (!timeoutId && !maxTimeoutId) {
+ args = thisArg = null;
+ }
+ }
+ }
- params.oauth_token = token('oauth_token');
- params.oauth_signature = ohauth.signature(
- o.oauth_secret,
- oauth_token_secret,
- ohauth.baseString(options.method, url, params));
+ function debounced() {
+ args = arguments;
+ stamp = now();
+ thisArg = this;
+ trailingCall = trailing && (timeoutId || !leading);
- ohauth.xhr(options.method,
- url, params, options.content, options.options, done);
+ if (maxWait === false) {
+ var leadingCall = leading && !timeoutId;
+ } else {
+ if (!maxTimeoutId && !leading) {
+ lastCalled = stamp;
}
+ var remaining = maxWait - (stamp - lastCalled),
+ isCalled = remaining <= 0 || remaining > maxWait;
- function done(err, xhr) {
- if (err) return callback(err);
- else if (xhr.responseXML) return callback(err, xhr.responseXML);
- else return callback(err, xhr.response);
+ if (isCalled) {
+ if (maxTimeoutId) {
+ maxTimeoutId = clearTimeout(maxTimeoutId);
+ }
+ lastCalled = stamp;
+ result = func.apply(thisArg, args);
}
- };
+ else if (!maxTimeoutId) {
+ maxTimeoutId = setTimeout(maxDelayed, remaining);
+ }
+ }
+ if (isCalled && timeoutId) {
+ timeoutId = clearTimeout(timeoutId);
+ }
+ else if (!timeoutId && wait !== maxWait) {
+ timeoutId = setTimeout(delayed, wait);
+ }
+ if (leadingCall) {
+ isCalled = true;
+ result = func.apply(thisArg, args);
+ }
+ if (isCalled && !timeoutId && !maxTimeoutId) {
+ args = thisArg = null;
+ }
+ return result;
+ }
+ debounced.cancel = cancel;
+ return debounced;
+ }
- // pre-authorize this object, if we can just get a token and token_secret
- // from the start
- oauth.preauth = function(c) {
- if (!c) return;
- if (c.oauth_token) token('oauth_token', c.oauth_token);
- if (c.oauth_token_secret) token('oauth_token_secret', c.oauth_token_secret);
- return oauth;
+ /**
+ * Creates a function that invokes `func` with the `this` binding of the
+ * created function and arguments from `start` and beyond provided as an array.
+ *
+ * **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters).
+ *
+ * @static
+ * @memberOf _
+ * @category Function
+ * @param {Function} func The function to apply a rest parameter to.
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
+ * @returns {Function} Returns the new function.
+ * @example
+ *
+ * var say = _.restParam(function(what, names) {
+ * return what + ' ' + _.initial(names).join(', ') +
+ * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
+ * });
+ *
+ * say('hello', 'fred', 'barney', 'pebbles');
+ * // => 'hello fred, barney, & pebbles'
+ */
+ function restParam(func, start) {
+ if (typeof func != 'function') {
+ throw new TypeError(FUNC_ERROR_TEXT);
+ }
+ start = nativeMax(start === undefined ? (func.length - 1) : (+start || 0), 0);
+ return function() {
+ var args = arguments,
+ index = -1,
+ length = nativeMax(args.length - start, 0),
+ rest = Array(length);
+
+ while (++index < length) {
+ rest[index] = args[start + index];
+ }
+ switch (start) {
+ case 0: return func.call(this, rest);
+ case 1: return func.call(this, args[0], rest);
+ case 2: return func.call(this, args[0], args[1], rest);
+ }
+ var otherArgs = Array(start + 1);
+ index = -1;
+ while (++index < start) {
+ otherArgs[index] = args[index];
+ }
+ otherArgs[start] = rest;
+ return func.apply(this, otherArgs);
};
+ }
- oauth.options = function(_) {
- if (!arguments.length) return o;
+ /**
+ * Creates a throttled function that only invokes `func` at most once per
+ * every `wait` milliseconds. The throttled function comes with a `cancel`
+ * method to cancel delayed invocations. Provide an options object to indicate
+ * that `func` should be invoked on the leading and/or trailing edge of the
+ * `wait` timeout. Subsequent calls to the throttled function return the
+ * result of the last `func` call.
+ *
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
+ * on the trailing edge of the timeout only if the the throttled function is
+ * invoked more than once during the `wait` timeout.
+ *
+ * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)
+ * for details over the differences between `_.throttle` and `_.debounce`.
+ *
+ * @static
+ * @memberOf _
+ * @category Function
+ * @param {Function} func The function to throttle.
+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
+ * @param {Object} [options] The options object.
+ * @param {boolean} [options.leading=true] Specify invoking on the leading
+ * edge of the timeout.
+ * @param {boolean} [options.trailing=true] Specify invoking on the trailing
+ * edge of the timeout.
+ * @returns {Function} Returns the new throttled function.
+ * @example
+ *
+ * // avoid excessively updating the position while scrolling
+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
+ *
+ * // invoke `renewToken` when the click event is fired, but not more than once every 5 minutes
+ * jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
+ * 'trailing': false
+ * }));
+ *
+ * // cancel a trailing throttled call
+ * jQuery(window).on('popstate', throttled.cancel);
+ */
+ function throttle(func, wait, options) {
+ var leading = true,
+ trailing = true;
- o = _;
+ if (typeof func != 'function') {
+ throw new TypeError(FUNC_ERROR_TEXT);
+ }
+ if (options === false) {
+ leading = false;
+ } else if (isObject(options)) {
+ leading = 'leading' in options ? !!options.leading : leading;
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
+ }
+ debounceOptions.leading = leading;
+ debounceOptions.maxWait = +wait;
+ debounceOptions.trailing = trailing;
+ return debounce(func, wait, debounceOptions);
+ }
- o.url = o.url || 'http://www.openstreetmap.org';
- o.landing = o.landing || 'land.html';
+ /*------------------------------------------------------------------------*/
- o.singlepage = o.singlepage || false;
+ /**
+ * Creates a clone of `value`. If `isDeep` is `true` nested objects are cloned,
+ * otherwise they are assigned by reference. If `customizer` is provided it is
+ * invoked to produce the cloned values. If `customizer` returns `undefined`
+ * cloning is handled by the method instead. The `customizer` is bound to
+ * `thisArg` and invoked with two argument; (value [, index|key, object]).
+ *
+ * **Note:** This method is loosely based on the
+ * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm).
+ * The enumerable properties of `arguments` objects and objects created by
+ * constructors other than `Object` are cloned to plain `Object` objects. An
+ * empty object is returned for uncloneable values such as functions, DOM nodes,
+ * Maps, Sets, and WeakMaps.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @param {Function} [customizer] The function to customize cloning values.
+ * @param {*} [thisArg] The `this` binding of `customizer`.
+ * @returns {*} Returns the cloned value.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney' },
+ * { 'user': 'fred' }
+ * ];
+ *
+ * var shallow = _.clone(users);
+ * shallow[0] === users[0];
+ * // => true
+ *
+ * var deep = _.clone(users, true);
+ * deep[0] === users[0];
+ * // => false
+ *
+ * // using a customizer callback
+ * var el = _.clone(document.body, function(value) {
+ * if (_.isElement(value)) {
+ * return value.cloneNode(false);
+ * }
+ * });
+ *
+ * el === document.body
+ * // => false
+ * el.nodeName
+ * // => BODY
+ * el.childNodes.length;
+ * // => 0
+ */
+ function clone(value, isDeep, customizer, thisArg) {
+ if (isDeep && typeof isDeep != 'boolean' && isIterateeCall(value, isDeep, customizer)) {
+ isDeep = false;
+ }
+ else if (typeof isDeep == 'function') {
+ thisArg = customizer;
+ customizer = isDeep;
+ isDeep = false;
+ }
+ return typeof customizer == 'function'
+ ? baseClone(value, isDeep, bindCallback(customizer, thisArg, 1))
+ : baseClone(value, isDeep);
+ }
- // Optional loading and loading-done functions for nice UI feedback.
- // by default, no-ops
- o.loading = o.loading || function() {};
- o.done = o.done || function() {};
+ /**
+ * Creates a deep clone of `value`. If `customizer` is provided it is invoked
+ * to produce the cloned values. If `customizer` returns `undefined` cloning
+ * is handled by the method instead. The `customizer` is bound to `thisArg`
+ * and invoked with two argument; (value [, index|key, object]).
+ *
+ * **Note:** This method is loosely based on the
+ * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm).
+ * The enumerable properties of `arguments` objects and objects created by
+ * constructors other than `Object` are cloned to plain `Object` objects. An
+ * empty object is returned for uncloneable values such as functions, DOM nodes,
+ * Maps, Sets, and WeakMaps.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to deep clone.
+ * @param {Function} [customizer] The function to customize cloning values.
+ * @param {*} [thisArg] The `this` binding of `customizer`.
+ * @returns {*} Returns the deep cloned value.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney' },
+ * { 'user': 'fred' }
+ * ];
+ *
+ * var deep = _.cloneDeep(users);
+ * deep[0] === users[0];
+ * // => false
+ *
+ * // using a customizer callback
+ * var el = _.cloneDeep(document.body, function(value) {
+ * if (_.isElement(value)) {
+ * return value.cloneNode(true);
+ * }
+ * });
+ *
+ * el === document.body
+ * // => false
+ * el.nodeName
+ * // => BODY
+ * el.childNodes.length;
+ * // => 20
+ */
+ function cloneDeep(value, customizer, thisArg) {
+ return typeof customizer == 'function'
+ ? baseClone(value, true, bindCallback(customizer, thisArg, 1))
+ : baseClone(value, true);
+ }
- return oauth.preauth(o);
+ /**
+ * Checks if `value` is classified as an `arguments` object.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @example
+ *
+ * _.isArguments(function() { return arguments; }());
+ * // => true
+ *
+ * _.isArguments([1, 2, 3]);
+ * // => false
+ */
+ function isArguments(value) {
+ return isObjectLike(value) && isArrayLike(value) && objToString.call(value) == argsTag;
+ }
+ // Fallback for environments without a `toStringTag` for `arguments` objects.
+ if (!support.argsTag) {
+ isArguments = function(value) {
+ return isObjectLike(value) && isArrayLike(value) &&
+ hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
};
+ }
- // 'stamp' an authentication object from `getAuth()`
- // with a [nonce](http://en.wikipedia.org/wiki/Cryptographic_nonce)
- // and timestamp
- function timenonce(o) {
- o.oauth_timestamp = ohauth.timestamp();
- o.oauth_nonce = ohauth.nonce();
- return o;
- }
-
- // get/set tokens. These are prefixed with the base URL so that `osm-auth`
- // can be used with multiple APIs and the keys in `localStorage`
- // will not clash
- var token;
+ /**
+ * Checks if `value` is classified as an `Array` object.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @example
+ *
+ * _.isArray([1, 2, 3]);
+ * // => true
+ *
+ * _.isArray(function() { return arguments; }());
+ * // => false
+ */
+ var isArray = nativeIsArray || function(value) {
+ return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;
+ };
- if (store.enabled) {
- token = function (x, y) {
- if (arguments.length === 1) return store.get(o.url + x);
- else if (arguments.length === 2) return store.set(o.url + x, y);
- };
- } else {
- var storage = {};
- token = function (x, y) {
- if (arguments.length === 1) return storage[o.url + x];
- else if (arguments.length === 2) return storage[o.url + x] = y;
- };
+ /**
+ * Checks if `value` is empty. A value is considered empty unless it is an
+ * `arguments` object, array, string, or jQuery-like collection with a length
+ * greater than `0` or an object with own enumerable properties.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {Array|Object|string} value The value to inspect.
+ * @returns {boolean} Returns `true` if `value` is empty, else `false`.
+ * @example
+ *
+ * _.isEmpty(null);
+ * // => true
+ *
+ * _.isEmpty(true);
+ * // => true
+ *
+ * _.isEmpty(1);
+ * // => true
+ *
+ * _.isEmpty([1, 2, 3]);
+ * // => false
+ *
+ * _.isEmpty({ 'a': 1 });
+ * // => false
+ */
+ function isEmpty(value) {
+ if (value == null) {
+ return true;
}
-
- // Get an authentication object. If you just add and remove properties
- // from a single object, you'll need to use `delete` to make sure that
- // it doesn't contain undesired properties for authentication
- function getAuth(o) {
- return {
- oauth_consumer_key: o.oauth_consumer_key,
- oauth_signature_method: "HMAC-SHA1"
- };
+ if (isArrayLike(value) && (isArray(value) || isString(value) || isArguments(value) ||
+ (isObjectLike(value) && isFunction(value.splice)))) {
+ return !value.length;
}
+ return !keys(value).length;
+ }
- // potentially pre-authorize
- oauth.options(o);
-
- return oauth;
-};
-
-},{"ohauth":2,"store":3,"xtend":4}],3:[function(require,module,exports){
-(function(global){;(function(win){
- var store = {},
- doc = win.document,
- localStorageName = 'localStorage',
- storage
-
- store.disabled = false
- store.set = function(key, value) {}
- store.get = function(key) {}
- store.remove = function(key) {}
- store.clear = function() {}
- store.transact = function(key, defaultVal, transactionFn) {
- var val = store.get(key)
- if (transactionFn == null) {
- transactionFn = defaultVal
- defaultVal = null
- }
- if (typeof val == 'undefined') { val = defaultVal || {} }
- transactionFn(val)
- store.set(key, val)
- }
- store.getAll = function() {}
- store.forEach = function() {}
-
- store.serialize = function(value) {
- return JSON.stringify(value)
- }
- store.deserialize = function(value) {
- if (typeof value != 'string') { return undefined }
- try { return JSON.parse(value) }
- catch(e) { return value || undefined }
- }
-
- // Functions to encapsulate questionable FireFox 3.6.13 behavior
- // when about.config::dom.storage.enabled === false
- // See https://github.com/marcuswestin/store.js/issues#issue/13
- function isLocalStorageNameSupported() {
- try { return (localStorageName in win && win[localStorageName]) }
- catch(err) { return false }
- }
-
- if (isLocalStorageNameSupported()) {
- storage = win[localStorageName]
- store.set = function(key, val) {
- if (val === undefined) { return store.remove(key) }
- storage.setItem(key, store.serialize(val))
- return val
- }
- store.get = function(key) { return store.deserialize(storage.getItem(key)) }
- store.remove = function(key) { storage.removeItem(key) }
- store.clear = function() { storage.clear() }
- store.getAll = function() {
- var ret = {}
- store.forEach(function(key, val) {
- ret[key] = val
- })
- return ret
- }
- store.forEach = function(callback) {
- for (var i=0; i<storage.length; i++) {
- var key = storage.key(i)
- callback(key, store.get(key))
- }
- }
- } else if (doc.documentElement.addBehavior) {
- var storageOwner,
- storageContainer
- // Since #userData storage applies only to specific paths, we need to
- // somehow link our data to a specific path. We choose /favicon.ico
- // as a pretty safe option, since all browsers already make a request to
- // this URL anyway and being a 404 will not hurt us here. We wrap an
- // iframe pointing to the favicon in an ActiveXObject(htmlfile) object
- // (see: http://msdn.microsoft.com/en-us/library/aa752574(v=VS.85).aspx)
- // since the iframe access rules appear to allow direct access and
- // manipulation of the document element, even for a 404 page. This
- // document can be used instead of the current document (which would
- // have been limited to the current path) to perform #userData storage.
- try {
- storageContainer = new ActiveXObject('htmlfile')
- storageContainer.open()
- storageContainer.write('<s' + 'cript>document.w=window</s' + 'cript><iframe src="/favicon.ico"></iframe>')
- storageContainer.close()
- storageOwner = storageContainer.w.frames[0].document
- storage = storageOwner.createElement('div')
- } catch(e) {
- // somehow ActiveXObject instantiation failed (perhaps some special
- // security settings or otherwse), fall back to per-path storage
- storage = doc.createElement('div')
- storageOwner = doc.body
- }
- function withIEStorage(storeFunction) {
- return function() {
- var args = Array.prototype.slice.call(arguments, 0)
- args.unshift(storage)
- // See http://msdn.microsoft.com/en-us/library/ms531081(v=VS.85).aspx
- // and http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).aspx
- storageOwner.appendChild(storage)
- storage.addBehavior('#default#userData')
- storage.load(localStorageName)
- var result = storeFunction.apply(store, args)
- storageOwner.removeChild(storage)
- return result
- }
- }
-
- // In IE7, keys may not contain special chars. See all of https://github.com/marcuswestin/store.js/issues/40
- var forbiddenCharsRegex = new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g")
- function ieKeyFix(key) {
- return key.replace(forbiddenCharsRegex, '___')
- }
- store.set = withIEStorage(function(storage, key, val) {
- key = ieKeyFix(key)
- if (val === undefined) { return store.remove(key) }
- storage.setAttribute(key, store.serialize(val))
- storage.save(localStorageName)
- return val
- })
- store.get = withIEStorage(function(storage, key) {
- key = ieKeyFix(key)
- return store.deserialize(storage.getAttribute(key))
- })
- store.remove = withIEStorage(function(storage, key) {
- key = ieKeyFix(key)
- storage.removeAttribute(key)
- storage.save(localStorageName)
- })
- store.clear = withIEStorage(function(storage) {
- var attributes = storage.XMLDocument.documentElement.attributes
- storage.load(localStorageName)
- for (var i=0, attr; attr=attributes[i]; i++) {
- storage.removeAttribute(attr.name)
- }
- storage.save(localStorageName)
- })
- store.getAll = function(storage) {
- var ret = {}
- store.forEach(function(key, val) {
- ret[key] = val
- })
- return ret
- }
- store.forEach = withIEStorage(function(storage, callback) {
- var attributes = storage.XMLDocument.documentElement.attributes
- for (var i=0, attr; attr=attributes[i]; ++i) {
- callback(attr.name, store.deserialize(storage.getAttribute(attr.name)))
- }
- })
- }
-
- try {
- var testKey = '__storejs__'
- store.set(testKey, testKey)
- if (store.get(testKey) != testKey) { store.disabled = true }
- store.remove(testKey)
- } catch(e) {
- store.disabled = true
- }
- store.enabled = !store.disabled
-
- if (typeof module != 'undefined' && module.exports) { module.exports = store }
- else if (typeof define === 'function' && define.amd) { define(store) }
- else { win.store = store }
-
-})(this.window || global);
-
-})(window)
-},{}],5:[function(require,module,exports){
-module.exports = hasKeys
-
-function hasKeys(source) {
- return source !== null &&
- (typeof source === "object" ||
- typeof source === "function")
-}
-
-},{}],4:[function(require,module,exports){
-var Keys = require("object-keys")
-var hasKeys = require("./has-keys")
-
-module.exports = extend
-
-function extend() {
- var target = {}
-
- for (var i = 0; i < arguments.length; i++) {
- var source = arguments[i]
-
- if (!hasKeys(source)) {
- continue
- }
-
- var keys = Keys(source)
-
- for (var j = 0; j < keys.length; j++) {
- var name = keys[j]
- target[name] = source[name]
- }
- }
-
- return target
-}
-
-},{"./has-keys":5,"object-keys":6}],7:[function(require,module,exports){
-(function(global){/**
- * jsHashes - A fast and independent hashing library pure JavaScript implemented (ES3 compliant) for both server and client side
- *
- * @class Hashes
- * @author Tomas Aparicio <tomas@rijndael-project.com>
- * @license New BSD (see LICENSE file)
- * @version 1.0.4
- *
- * Algorithms specification:
- *
- * MD5 <http://www.ietf.org/rfc/rfc1321.txt>
- * RIPEMD-160 <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
- * SHA1 <http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf>
- * SHA256 <http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf>
- * SHA512 <http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf>
- * HMAC <http://www.ietf.org/rfc/rfc2104.txt>
- *
- */
-(function(){
- var Hashes;
-
- // private helper methods
- function utf8Encode(str) {
- var x, y, output = '', i = -1, l;
-
- if (str && str.length) {
- l = str.length;
- while ((i+=1) < l) {
- /* Decode utf-16 surrogate pairs */
- x = str.charCodeAt(i);
- y = i + 1 < l ? str.charCodeAt(i + 1) : 0;
- if (0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) {
- x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF);
- i += 1;
- }
- /* Encode output as utf-8 */
- if (x <= 0x7F) {
- output += String.fromCharCode(x);
- } else if (x <= 0x7FF) {
- output += String.fromCharCode(0xC0 | ((x >>> 6 ) & 0x1F),
- 0x80 | ( x & 0x3F));
- } else if (x <= 0xFFFF) {
- output += String.fromCharCode(0xE0 | ((x >>> 12) & 0x0F),
- 0x80 | ((x >>> 6 ) & 0x3F),
- 0x80 | ( x & 0x3F));
- } else if (x <= 0x1FFFFF) {
- output += String.fromCharCode(0xF0 | ((x >>> 18) & 0x07),
- 0x80 | ((x >>> 12) & 0x3F),
- 0x80 | ((x >>> 6 ) & 0x3F),
- 0x80 | ( x & 0x3F));
- }
- }
- }
- return output;
- }
-
- function utf8Decode(str) {
- var i, ac, c1, c2, c3, arr = [], l;
- i = ac = c1 = c2 = c3 = 0;
-
- if (str && str.length) {
- l = str.length;
- str += '';
-
- while (i < l) {
- c1 = str.charCodeAt(i);
- ac += 1;
- if (c1 < 128) {
- arr[ac] = String.fromCharCode(c1);
- i+=1;
- } else if (c1 > 191 && c1 < 224) {
- c2 = str.charCodeAt(i + 1);
- arr[ac] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63));
- i += 2;
- } else {
- c2 = str.charCodeAt(i + 1);
- c3 = str.charCodeAt(i + 2);
- arr[ac] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
- i += 3;
- }
- }
- }
- return arr.join('');
+ /**
+ * Performs a deep comparison between two values to determine if they are
+ * equivalent. If `customizer` is provided it is invoked to compare values.
+ * If `customizer` returns `undefined` comparisons are handled by the method
+ * instead. The `customizer` is bound to `thisArg` and invoked with three
+ * arguments: (value, other [, index|key]).
+ *
+ * **Note:** This method supports comparing arrays, booleans, `Date` objects,
+ * numbers, `Object` objects, regexes, and strings. Objects are compared by
+ * their own, not inherited, enumerable properties. Functions and DOM nodes
+ * are **not** supported. Provide a customizer function to extend support
+ * for comparing other values.
+ *
+ * @static
+ * @memberOf _
+ * @alias eq
+ * @category Lang
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @param {Function} [customizer] The function to customize value comparisons.
+ * @param {*} [thisArg] The `this` binding of `customizer`.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @example
+ *
+ * var object = { 'user': 'fred' };
+ * var other = { 'user': 'fred' };
+ *
+ * object == other;
+ * // => false
+ *
+ * _.isEqual(object, other);
+ * // => true
+ *
+ * // using a customizer callback
+ * var array = ['hello', 'goodbye'];
+ * var other = ['hi', 'goodbye'];
+ *
+ * _.isEqual(array, other, function(value, other) {
+ * if (_.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/)) {
+ * return true;
+ * }
+ * });
+ * // => true
+ */
+ function isEqual(value, other, customizer, thisArg) {
+ customizer = typeof customizer == 'function' ? bindCallback(customizer, thisArg, 3) : undefined;
+ var result = customizer ? customizer(value, other) : undefined;
+ return result === undefined ? baseIsEqual(value, other, customizer) : !!result;
}
/**
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
- * to work around bugs in some JS interpreters.
+ * Checks if `value` is classified as a `Function` object.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @example
+ *
+ * _.isFunction(_);
+ * // => true
+ *
+ * _.isFunction(/abc/);
+ * // => false
*/
- function safe_add(x, y) {
- var lsw = (x & 0xFFFF) + (y & 0xFFFF),
- msw = (x >> 16) + (y >> 16) + (lsw >> 16);
- return (msw << 16) | (lsw & 0xFFFF);
- }
+ var isFunction = !(baseIsFunction(/x/) || (Uint8Array && !baseIsFunction(Uint8Array))) ? baseIsFunction : function(value) {
+ // The use of `Object#toString` avoids issues with the `typeof` operator
+ // in older versions of Chrome and Safari which return 'function' for regexes
+ // and Safari 8 equivalents which return 'object' for typed array constructors.
+ return objToString.call(value) == funcTag;
+ };
/**
- * Bitwise rotate a 32-bit number to the left.
+ * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
+ * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
+ * @example
+ *
+ * _.isObject({});
+ * // => true
+ *
+ * _.isObject([1, 2, 3]);
+ * // => true
+ *
+ * _.isObject(1);
+ * // => false
*/
- function bit_rol(num, cnt) {
- return (num << cnt) | (num >>> (32 - cnt));
+ function isObject(value) {
+ // Avoid a V8 JIT bug in Chrome 19-20.
+ // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
+ var type = typeof value;
+ return !!value && (type == 'object' || type == 'function');
}
/**
- * Convert a raw string to a hex string
+ * Checks if `value` is a native function.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a native function, else `false`.
+ * @example
+ *
+ * _.isNative(Array.prototype.push);
+ * // => true
+ *
+ * _.isNative(_);
+ * // => false
*/
- function rstr2hex(input, hexcase) {
- var hex_tab = hexcase ? '0123456789ABCDEF' : '0123456789abcdef',
- output = '', x, i = 0, l = input.length;
- for (; i < l; i+=1) {
- x = input.charCodeAt(i);
- output += hex_tab.charAt((x >>> 4) & 0x0F) + hex_tab.charAt(x & 0x0F);
+ function isNative(value) {
+ if (value == null) {
+ return false;
}
- return output;
+ if (objToString.call(value) == funcTag) {
+ return reIsNative.test(fnToString.call(value));
+ }
+ return isObjectLike(value) && (isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
}
/**
- * Encode a string as utf-16
+ * Checks if `value` is a plain object, that is, an object created by the
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
+ *
+ * **Note:** This method assumes objects created by the `Object` constructor
+ * have no inherited enumerable properties.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
+ * @example
+ *
+ * function Foo() {
+ * this.a = 1;
+ * }
+ *
+ * _.isPlainObject(new Foo);
+ * // => false
+ *
+ * _.isPlainObject([1, 2, 3]);
+ * // => false
+ *
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
+ * // => true
+ *
+ * _.isPlainObject(Object.create(null));
+ * // => true
*/
- function str2rstr_utf16le(input) {
- var i, l = input.length, output = '';
- for (i = 0; i < l; i+=1) {
- output += String.fromCharCode( input.charCodeAt(i) & 0xFF, (input.charCodeAt(i) >>> 8) & 0xFF);
+ var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) {
+ if (!(value && objToString.call(value) == objectTag) || (!lodash.support.argsTag && isArguments(value))) {
+ return false;
}
- return output;
- }
+ var valueOf = getNative(value, 'valueOf'),
+ objProto = valueOf && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto);
- function str2rstr_utf16be(input) {
- var i, l = input.length, output = '';
- for (i = 0; i < l; i+=1) {
- output += String.fromCharCode((input.charCodeAt(i) >>> 8) & 0xFF, input.charCodeAt(i) & 0xFF);
- }
- return output;
- }
+ return objProto
+ ? (value == objProto || getPrototypeOf(value) == objProto)
+ : shimIsPlainObject(value);
+ };
/**
- * Convert an array of big-endian words to a string
+ * Checks if `value` is classified as a `String` primitive or object.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @example
+ *
+ * _.isString('abc');
+ * // => true
+ *
+ * _.isString(1);
+ * // => false
*/
- function binb2rstr(input) {
- var i, l = input.length * 32, output = '';
- for (i = 0; i < l; i += 8) {
- output += String.fromCharCode((input[i>>5] >>> (24 - i % 32)) & 0xFF);
- }
- return output;
+ function isString(value) {
+ return typeof value == 'string' || (isObjectLike(value) && objToString.call(value) == stringTag);
}
/**
- * Convert an array of little-endian words to a string
+ * Checks if `value` is classified as a typed array.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @example
+ *
+ * _.isTypedArray(new Uint8Array);
+ * // => true
+ *
+ * _.isTypedArray([]);
+ * // => false
*/
- function binl2rstr(input) {
- var i, l = input.length * 32, output = '';
- for (i = 0;i < l; i += 8) {
- output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF);
- }
- return output;
+ function isTypedArray(value) {
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objToString.call(value)];
}
/**
- * Convert a raw string to an array of little-endian words
- * Characters >255 have their high-byte silently ignored.
+ * Converts `value` to a plain object flattening inherited enumerable
+ * properties of `value` to own properties of the plain object.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {Object} Returns the converted plain object.
+ * @example
+ *
+ * function Foo() {
+ * this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.assign({ 'a': 1 }, new Foo);
+ * // => { 'a': 1, 'b': 2 }
+ *
+ * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
+ * // => { 'a': 1, 'b': 2, 'c': 3 }
*/
- function rstr2binl(input) {
- var i, l = input.length * 8, output = Array(input.length >> 2), lo = output.length;
- for (i = 0; i < lo; i+=1) {
- output[i] = 0;
- }
- for (i = 0; i < l; i += 8) {
- output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (i%32);
- }
- return output;
+ function toPlainObject(value) {
+ return baseCopy(value, keysIn(value));
}
-
+
+ /*------------------------------------------------------------------------*/
+
/**
- * Convert a raw string to an array of big-endian words
- * Characters >255 have their high-byte silently ignored.
+ * Assigns own enumerable properties of source object(s) to the destination
+ * object. Subsequent sources overwrite property assignments of previous sources.
+ * If `customizer` is provided it is invoked to produce the assigned values.
+ * The `customizer` is bound to `thisArg` and invoked with five arguments:
+ * (objectValue, sourceValue, key, object, source).
+ *
+ * **Note:** This method mutates `object` and is based on
+ * [`Object.assign`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign).
+ *
+ * @static
+ * @memberOf _
+ * @alias extend
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} [sources] The source objects.
+ * @param {Function} [customizer] The function to customize assigned values.
+ * @param {*} [thisArg] The `this` binding of `customizer`.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * _.assign({ 'user': 'barney' }, { 'age': 40 }, { 'user': 'fred' });
+ * // => { 'user': 'fred', 'age': 40 }
+ *
+ * // using a customizer callback
+ * var defaults = _.partialRight(_.assign, function(value, other) {
+ * return _.isUndefined(value) ? other : value;
+ * });
+ *
+ * defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
+ * // => { 'user': 'barney', 'age': 36 }
*/
- function rstr2binb(input) {
- var i, l = input.length * 8, output = Array(input.length >> 2), lo = output.length;
- for (i = 0; i < lo; i+=1) {
- output[i] = 0;
- }
- for (i = 0; i < l; i += 8) {
- output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (24 - i % 32);
- }
- return output;
- }
+ var assign = createAssigner(function(object, source, customizer) {
+ return customizer
+ ? assignWith(object, source, customizer)
+ : baseAssign(object, source);
+ });
/**
- * Convert a raw string to an arbitrary string encoding
+ * Iterates over own enumerable properties of an object invoking `iteratee`
+ * for each property. The `iteratee` is bound to `thisArg` and invoked with
+ * three arguments: (value, key, object). Iteratee functions may exit iteration
+ * early by explicitly returning `false`.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @param {*} [thisArg] The `this` binding of `iteratee`.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * function Foo() {
+ * this.a = 1;
+ * this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.forOwn(new Foo, function(value, key) {
+ * console.log(key);
+ * });
+ * // => logs 'a' and 'b' (iteration order is not guaranteed)
*/
- function rstr2any(input, encoding) {
- var divisor = encoding.length,
- remainders = Array(),
- i, q, x, ld, quotient, dividend, output, full_length;
-
- /* Convert to an array of 16-bit big-endian values, forming the dividend */
- dividend = Array(Math.ceil(input.length / 2));
- ld = dividend.length;
- for (i = 0; i < ld; i+=1) {
- dividend[i] = (input.charCodeAt(i * 2) << 8) | input.charCodeAt(i * 2 + 1);
+ var forOwn = createForOwn(baseForOwn);
+
+ /**
+ * Creates an array of the own enumerable property names of `object`.
+ *
+ * **Note:** Non-object values are coerced to objects. See the
+ * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys)
+ * for more details.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ * @example
+ *
+ * function Foo() {
+ * this.a = 1;
+ * this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.keys(new Foo);
+ * // => ['a', 'b'] (iteration order is not guaranteed)
+ *
+ * _.keys('hi');
+ * // => ['0', '1']
+ */
+ var keys = !nativeKeys ? shimKeys : function(object) {
+ var Ctor = object == null ? null : object.constructor;
+ if ((typeof Ctor == 'function' && Ctor.prototype === object) ||
+ (typeof object == 'function' ? lodash.support.enumPrototypes : isArrayLike(object))) {
+ return shimKeys(object);
}
-
- /**
- * Repeatedly perform a long division. The binary array forms the dividend,
- * the length of the encoding is the divisor. Once computed, the quotient
- * forms the dividend for the next step. We stop when the dividend is zerHashes.
- * All remainders are stored for later use.
- */
- while(dividend.length > 0) {
- quotient = Array();
- x = 0;
- for (i = 0; i < dividend.length; i+=1) {
- x = (x << 16) + dividend[i];
- q = Math.floor(x / divisor);
- x -= q * divisor;
- if (quotient.length > 0 || q > 0) {
- quotient[quotient.length] = q;
- }
- }
- remainders[remainders.length] = x;
- dividend = quotient;
+ return isObject(object) ? nativeKeys(object) : [];
+ };
+
+ /**
+ * Creates an array of the own and inherited enumerable property names of `object`.
+ *
+ * **Note:** Non-object values are coerced to objects.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ * @example
+ *
+ * function Foo() {
+ * this.a = 1;
+ * this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.keysIn(new Foo);
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
+ */
+ function keysIn(object) {
+ if (object == null) {
+ return [];
}
-
- /* Convert the remainders to the output string */
- output = '';
- for (i = remainders.length - 1; i >= 0; i--) {
- output += encoding.charAt(remainders[i]);
+ if (!isObject(object)) {
+ object = Object(object);
}
-
- /* Append leading zero equivalents */
- full_length = Math.ceil(input.length * 8 / (Math.log(encoding.length) / Math.log(2)));
- for (i = output.length; i < full_length; i+=1) {
- output = encoding[0] + output;
+ var length = object.length,
+ support = lodash.support;
+
+ length = (length && isLength(length) &&
+ (isArray(object) || isArguments(object) || isString(object)) && length) || 0;
+
+ var Ctor = object.constructor,
+ index = -1,
+ proto = (isFunction(Ctor) && Ctor.prototype) || objectProto,
+ isProto = proto === object,
+ result = Array(length),
+ skipIndexes = length > 0,
+ skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error),
+ skipProto = support.enumPrototypes && isFunction(object);
+
+ while (++index < length) {
+ result[index] = (index + '');
+ }
+ // lodash skips the `constructor` property when it infers it is iterating
+ // over a `prototype` object because IE < 9 can't set the `[[Enumerable]]`
+ // attribute of an existing property and the `constructor` property of a
+ // prototype defaults to non-enumerable.
+ for (var key in object) {
+ if (!(skipProto && key == 'prototype') &&
+ !(skipErrorProps && (key == 'message' || key == 'name')) &&
+ !(skipIndexes && isIndex(key, length)) &&
+ !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
+ result.push(key);
+ }
}
- return output;
- }
+ if (support.nonEnumShadows && object !== objectProto) {
+ var tag = object === stringProto ? stringTag : (object === errorProto ? errorTag : objToString.call(object)),
+ nonEnums = nonEnumProps[tag] || nonEnumProps[objectTag];
- /**
- * Convert a raw string to a base-64 string
- */
- function rstr2b64(input, b64pad) {
- var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
- output = '',
- len = input.length, i, j, triplet;
- b64pad= b64pad || '=';
- for (i = 0; i < len; i += 3) {
- triplet = (input.charCodeAt(i) << 16)
- | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)
- | (i + 2 < len ? input.charCodeAt(i+2) : 0);
- for (j = 0; j < 4; j+=1) {
- if (i * 8 + j * 6 > input.length * 8) {
- output += b64pad;
- } else {
- output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);
+ if (tag == objectTag) {
+ proto = objectProto;
+ }
+ length = shadowProps.length;
+ while (length--) {
+ key = shadowProps[length];
+ var nonEnum = nonEnums[key];
+ if (!(isProto && nonEnum) &&
+ (nonEnum ? hasOwnProperty.call(object, key) : object[key] !== proto[key])) {
+ result.push(key);
}
- }
+ }
}
- return output;
+ return result;
}
- Hashes = {
- /**
- * @property {String} version
- * @readonly
- */
- VERSION : '1.0.3',
/**
- * @member Hashes
- * @class Base64
- * @constructor
+ * Recursively merges own enumerable properties of the source object(s), that
+ * don't resolve to `undefined` into the destination object. Subsequent sources
+ * overwrite property assignments of previous sources. If `customizer` is
+ * provided it is invoked to produce the merged values of the destination and
+ * source properties. If `customizer` returns `undefined` merging is handled
+ * by the method instead. The `customizer` is bound to `thisArg` and invoked
+ * with five arguments: (objectValue, sourceValue, key, object, source).
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} [sources] The source objects.
+ * @param {Function} [customizer] The function to customize assigned values.
+ * @param {*} [thisArg] The `this` binding of `customizer`.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * var users = {
+ * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
+ * };
+ *
+ * var ages = {
+ * 'data': [{ 'age': 36 }, { 'age': 40 }]
+ * };
+ *
+ * _.merge(users, ages);
+ * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
+ *
+ * // using a customizer callback
+ * var object = {
+ * 'fruits': ['apple'],
+ * 'vegetables': ['beet']
+ * };
+ *
+ * var other = {
+ * 'fruits': ['banana'],
+ * 'vegetables': ['carrot']
+ * };
+ *
+ * _.merge(object, other, function(a, b) {
+ * if (_.isArray(a)) {
+ * return a.concat(b);
+ * }
+ * });
+ * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
*/
- Base64 : function () {
- // private properties
- var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
- pad = '=', // default pad according with the RFC standard
- url = false, // URL encoding support @todo
- utf8 = true; // by default enable UTF-8 support encoding
-
- // public method for encoding
- this.encode = function (input) {
- var i, j, triplet,
- output = '',
- len = input.length;
+ var merge = createAssigner(baseMerge);
- pad = pad || '=';
- input = (utf8) ? utf8Encode(input) : input;
+ /**
+ * The opposite of `_.pick`; this method creates an object composed of the
+ * own and inherited enumerable properties of `object` that are not omitted.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The source object.
+ * @param {Function|...(string|string[])} [predicate] The function invoked per
+ * iteration or property names to omit, specified as individual property
+ * names or arrays of property names.
+ * @param {*} [thisArg] The `this` binding of `predicate`.
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * var object = { 'user': 'fred', 'age': 40 };
+ *
+ * _.omit(object, 'age');
+ * // => { 'user': 'fred' }
+ *
+ * _.omit(object, _.isNumber);
+ * // => { 'user': 'fred' }
+ */
+ var omit = restParam(function(object, props) {
+ if (object == null) {
+ return {};
+ }
+ if (typeof props[0] != 'function') {
+ var props = arrayMap(baseFlatten(props), String);
+ return pickByArray(object, baseDifference(keysIn(object), props));
+ }
+ var predicate = bindCallback(props[0], props[1], 3);
+ return pickByCallback(object, function(value, key, object) {
+ return !predicate(value, key, object);
+ });
+ });
- for (i = 0; i < len; i += 3) {
- triplet = (input.charCodeAt(i) << 16)
- | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)
- | (i + 2 < len ? input.charCodeAt(i+2) : 0);
- for (j = 0; j < 4; j+=1) {
- if (i * 8 + j * 6 > len * 8) {
- output += pad;
- } else {
- output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);
- }
- }
- }
- return output;
- };
+ /**
+ * Creates a two dimensional array of the key-value pairs for `object`,
+ * e.g. `[[key1, value1], [key2, value2]]`.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the new array of key-value pairs.
+ * @example
+ *
+ * _.pairs({ 'barney': 36, 'fred': 40 });
+ * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)
+ */
+ function pairs(object) {
+ object = toObject(object);
- // public method for decoding
- this.decode = function (input) {
- // var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
- var i, o1, o2, o3, h1, h2, h3, h4, bits, ac,
- dec = '',
- arr = [];
- if (!input) { return input; }
+ var index = -1,
+ props = keys(object),
+ length = props.length,
+ result = Array(length);
- i = ac = 0;
- input = input.replace(new RegExp('\\'+pad,'gi'),''); // use '='
- //input += '';
+ while (++index < length) {
+ var key = props[index];
+ result[index] = [key, object[key]];
+ }
+ return result;
+ }
- do { // unpack four hexets into three octets using index points in b64
- h1 = tab.indexOf(input.charAt(i+=1));
- h2 = tab.indexOf(input.charAt(i+=1));
- h3 = tab.indexOf(input.charAt(i+=1));
- h4 = tab.indexOf(input.charAt(i+=1));
+ /**
+ * Creates an object composed of the picked `object` properties. Property
+ * names may be specified as individual arguments or as arrays of property
+ * names. If `predicate` is provided it is invoked for each property of `object`
+ * picking the properties `predicate` returns truthy for. The predicate is
+ * bound to `thisArg` and invoked with three arguments: (value, key, object).
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The source object.
+ * @param {Function|...(string|string[])} [predicate] The function invoked per
+ * iteration or property names to pick, specified as individual property
+ * names or arrays of property names.
+ * @param {*} [thisArg] The `this` binding of `predicate`.
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * var object = { 'user': 'fred', 'age': 40 };
+ *
+ * _.pick(object, 'user');
+ * // => { 'user': 'fred' }
+ *
+ * _.pick(object, _.isString);
+ * // => { 'user': 'fred' }
+ */
+ var pick = restParam(function(object, props) {
+ if (object == null) {
+ return {};
+ }
+ return typeof props[0] == 'function'
+ ? pickByCallback(object, bindCallback(props[0], props[1], 3))
+ : pickByArray(object, baseFlatten(props));
+ });
- bits = h1 << 18 | h2 << 12 | h3 << 6 | h4;
+ /**
+ * Creates an array of the own enumerable property values of `object`.
+ *
+ * **Note:** Non-object values are coerced to objects.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property values.
+ * @example
+ *
+ * function Foo() {
+ * this.a = 1;
+ * this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.values(new Foo);
+ * // => [1, 2] (iteration order is not guaranteed)
+ *
+ * _.values('hi');
+ * // => ['h', 'i']
+ */
+ function values(object) {
+ return baseValues(object, keys(object));
+ }
- o1 = bits >> 16 & 0xff;
- o2 = bits >> 8 & 0xff;
- o3 = bits & 0xff;
- ac += 1;
+ /*------------------------------------------------------------------------*/
- if (h3 === 64) {
- arr[ac] = String.fromCharCode(o1);
- } else if (h4 === 64) {
- arr[ac] = String.fromCharCode(o1, o2);
- } else {
- arr[ac] = String.fromCharCode(o1, o2, o3);
- }
- } while (i < input.length);
+ /**
+ * Escapes the `RegExp` special characters "\", "/", "^", "$", ".", "|", "?",
+ * "*", "+", "(", ")", "[", "]", "{" and "}" in `string`.
+ *
+ * @static
+ * @memberOf _
+ * @category String
+ * @param {string} [string=''] The string to escape.
+ * @returns {string} Returns the escaped string.
+ * @example
+ *
+ * _.escapeRegExp('[lodash](https://lodash.com/)');
+ * // => '\[lodash\]\(https:\/\/lodash\.com\/\)'
+ */
+ function escapeRegExp(string) {
+ string = baseToString(string);
+ return (string && reHasRegExpChars.test(string))
+ ? string.replace(reRegExpChars, '\\$&')
+ : string;
+ }
- dec = arr.join('');
- dec = (utf8) ? utf8Decode(dec) : dec;
+ /*------------------------------------------------------------------------*/
- return dec;
- };
+ /**
+ * Creates a function that invokes `func` with the `this` binding of `thisArg`
+ * and arguments of the created function. If `func` is a property name the
+ * created callback returns the property value for a given element. If `func`
+ * is an object the created callback returns `true` for elements that contain
+ * the equivalent object properties, otherwise it returns `false`.
+ *
+ * @static
+ * @memberOf _
+ * @alias iteratee
+ * @category Utility
+ * @param {*} [func=_.identity] The value to convert to a callback.
+ * @param {*} [thisArg] The `this` binding of `func`.
+ * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
+ * @returns {Function} Returns the callback.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36 },
+ * { 'user': 'fred', 'age': 40 }
+ * ];
+ *
+ * // wrap to create custom callback shorthands
+ * _.callback = _.wrap(_.callback, function(callback, func, thisArg) {
+ * var match = /^(.+?)__([gl]t)(.+)$/.exec(func);
+ * if (!match) {
+ * return callback(func, thisArg);
+ * }
+ * return function(object) {
+ * return match[2] == 'gt'
+ * ? object[match[1]] > match[3]
+ * : object[match[1]] < match[3];
+ * };
+ * });
+ *
+ * _.filter(users, 'age__gt36');
+ * // => [{ 'user': 'fred', 'age': 40 }]
+ */
+ function callback(func, thisArg, guard) {
+ if (guard && isIterateeCall(func, thisArg, guard)) {
+ thisArg = null;
+ }
+ return isObjectLike(func)
+ ? matches(func)
+ : baseCallback(func, thisArg);
+ }
- // set custom pad string
- this.setPad = function (str) {
- pad = str || pad;
- return this;
- };
- // set custom tab string characters
- this.setTab = function (str) {
- tab = str || tab;
- return this;
- };
- this.setUTF8 = function (bool) {
- if (typeof bool === 'boolean') {
- utf8 = bool;
- }
- return this;
+ /**
+ * Creates a function that returns `value`.
+ *
+ * @static
+ * @memberOf _
+ * @category Utility
+ * @param {*} value The value to return from the new function.
+ * @returns {Function} Returns the new function.
+ * @example
+ *
+ * var object = { 'user': 'fred' };
+ * var getter = _.constant(object);
+ *
+ * getter() === object;
+ * // => true
+ */
+ function constant(value) {
+ return function() {
+ return value;
};
- },
+ }
/**
- * CRC-32 calculation
- * @member Hashes
- * @method CRC32
+ * This method returns the first argument provided to it.
+ *
* @static
- * @param {String} str Input String
- * @return {String}
+ * @memberOf _
+ * @category Utility
+ * @param {*} value Any value.
+ * @returns {*} Returns `value`.
+ * @example
+ *
+ * var object = { 'user': 'fred' };
+ *
+ * _.identity(object) === object;
+ * // => true
*/
- CRC32 : function (str) {
- var crc = 0, x = 0, y = 0, table, i, iTop;
- str = utf8Encode(str);
-
- table = [
- '00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 ',
- '79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 ',
- '84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F ',
- '63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD ',
- 'A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC ',
- '51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 ',
- 'B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 ',
- '06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 ',
- 'E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 ',
- '12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 ',
- 'D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 ',
- '33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 ',
- 'CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 ',
- '9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E ',
- '7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D ',
- '806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 ',
- '60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA ',
- 'AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 ',
- '5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 ',
- 'B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 ',
- '05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 ',
- 'F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA ',
- '11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 ',
- 'D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F ',
- '30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E ',
- 'C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D'
- ].join('');
+ function identity(value) {
+ return value;
+ }
- crc = crc ^ (-1);
- for (i = 0, iTop = str.length; i < iTop; i+=1 ) {
- y = ( crc ^ str.charCodeAt( i ) ) & 0xFF;
- x = '0x' + table.substr( y * 9, 8 );
- crc = ( crc >>> 8 ) ^ x;
- }
- // always return a positive number (that's what >>> 0 does)
- return (crc ^ (-1)) >>> 0;
- },
/**
- * @member Hashes
- * @class MD5
- * @constructor
- * @param {Object} [config]
- *
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
- * Digest Algorithm, as defined in RFC 1321.
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
- * See <http://pajhome.org.uk/crypt/md5> for more infHashes.
+ * Creates a function that performs a deep comparison between a given object
+ * and `source`, returning `true` if the given object has equivalent property
+ * values, else `false`.
+ *
+ * **Note:** This method supports comparing arrays, booleans, `Date` objects,
+ * numbers, `Object` objects, regexes, and strings. Objects are compared by
+ * their own, not inherited, enumerable properties. For comparing a single
+ * own or inherited property value see `_.matchesProperty`.
+ *
+ * @static
+ * @memberOf _
+ * @category Utility
+ * @param {Object} source The object of property values to match.
+ * @returns {Function} Returns the new function.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36, 'active': true },
+ * { 'user': 'fred', 'age': 40, 'active': false }
+ * ];
+ *
+ * _.filter(users, _.matches({ 'age': 40, 'active': false }));
+ * // => [{ 'user': 'fred', 'age': 40, 'active': false }]
*/
- MD5 : function (options) {
- /**
- * Private config properties. You may need to tweak these to be compatible with
- * the server-side, but the defaults work in most cases.
- * See {@link Hashes.MD5#method-setUpperCase} and {@link Hashes.SHA1#method-setUpperCase}
- */
- var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase
- b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', // base-64 pad character. Defaults to '=' for strict RFC compliance
- utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true; // enable/disable utf8 encoding
+ function matches(source) {
+ return baseMatches(baseClone(source, true));
+ }
- // privileged (public) methods
- this.hex = function (s) {
- return rstr2hex(rstr(s, utf8), hexcase);
- };
- this.b64 = function (s) {
- return rstr2b64(rstr(s), b64pad);
- };
- this.any = function(s, e) {
- return rstr2any(rstr(s, utf8), e);
- };
- this.hex_hmac = function (k, d) {
- return rstr2hex(rstr_hmac(k, d), hexcase);
- };
- this.b64_hmac = function (k, d) {
- return rstr2b64(rstr_hmac(k,d), b64pad);
- };
- this.any_hmac = function (k, d, e) {
- return rstr2any(rstr_hmac(k, d), e);
- };
- /**
- * Perform a simple self-test to see if the VM is working
- * @return {String} Hexadecimal hash sample
- */
- this.vm_test = function () {
- return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
- };
- /**
- * Enable/disable uppercase hexadecimal returned string
- * @param {Boolean}
- * @return {Object} this
- */
- this.setUpperCase = function (a) {
- if (typeof a === 'boolean' ) {
- hexcase = a;
- }
- return this;
- };
- /**
- * Defines a base64 pad string
- * @param {String} Pad
- * @return {Object} this
- */
- this.setPad = function (a) {
- b64pad = a || b64pad;
- return this;
- };
- /**
- * Defines a base64 pad string
- * @param {Boolean}
- * @return {Object} [this]
- */
- this.setUTF8 = function (a) {
- if (typeof a === 'boolean') {
- utf8 = a;
+ /**
+ * Adds all own enumerable function properties of a source object to the
+ * destination object. If `object` is a function then methods are added to
+ * its prototype as well.
+ *
+ * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
+ * avoid conflicts caused by modifying the original.
+ *
+ * @static
+ * @memberOf _
+ * @category Utility
+ * @param {Function|Object} [object=lodash] The destination object.
+ * @param {Object} source The object of functions to add.
+ * @param {Object} [options] The options object.
+ * @param {boolean} [options.chain=true] Specify whether the functions added
+ * are chainable.
+ * @returns {Function|Object} Returns `object`.
+ * @example
+ *
+ * function vowels(string) {
+ * return _.filter(string, function(v) {
+ * return /[aeiou]/i.test(v);
+ * });
+ * }
+ *
+ * _.mixin({ 'vowels': vowels });
+ * _.vowels('fred');
+ * // => ['e']
+ *
+ * _('fred').vowels().value();
+ * // => ['e']
+ *
+ * _.mixin({ 'vowels': vowels }, { 'chain': false });
+ * _('fred').vowels();
+ * // => ['e']
+ */
+ function mixin(object, source, options) {
+ if (options == null) {
+ var isObj = isObject(source),
+ props = isObj ? keys(source) : null,
+ methodNames = (props && props.length) ? baseFunctions(source, props) : null;
+
+ if (!(methodNames ? methodNames.length : isObj)) {
+ methodNames = false;
+ options = source;
+ source = object;
+ object = this;
}
- return this;
- };
-
- // private methods
-
- /**
- * Calculate the MD5 of a raw string
- */
- function rstr(s) {
- s = (utf8) ? utf8Encode(s): s;
- return binl2rstr(binl(rstr2binl(s), s.length * 8));
}
-
- /**
- * Calculate the HMAC-MD5, of a key and some data (raw strings)
- */
- function rstr_hmac(key, data) {
- var bkey, ipad, opad, hash, i;
+ if (!methodNames) {
+ methodNames = baseFunctions(source, keys(source));
+ }
+ var chain = true,
+ index = -1,
+ isFunc = isFunction(object),
+ length = methodNames.length;
- key = (utf8) ? utf8Encode(key) : key;
- data = (utf8) ? utf8Encode(data) : data;
- bkey = rstr2binl(key);
- if (bkey.length > 16) {
- bkey = binl(bkey, key.length * 8);
- }
+ if (options === false) {
+ chain = false;
+ } else if (isObject(options) && 'chain' in options) {
+ chain = options.chain;
+ }
+ while (++index < length) {
+ var methodName = methodNames[index],
+ func = source[methodName];
- ipad = Array(16), opad = Array(16);
- for (i = 0; i < 16; i+=1) {
- ipad[i] = bkey[i] ^ 0x36363636;
- opad[i] = bkey[i] ^ 0x5C5C5C5C;
+ object[methodName] = func;
+ if (isFunc) {
+ object.prototype[methodName] = (function(func) {
+ return function() {
+ var chainAll = this.__chain__;
+ if (chain || chainAll) {
+ var result = object(this.__wrapped__),
+ actions = result.__actions__ = arrayCopy(this.__actions__);
+
+ actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
+ result.__chain__ = chainAll;
+ return result;
+ }
+ var args = [this.value()];
+ push.apply(args, arguments);
+ return func.apply(object, args);
+ };
+ }(func));
}
- hash = binl(ipad.concat(rstr2binl(data)), 512 + data.length * 8);
- return binl2rstr(binl(opad.concat(hash), 512 + 128));
}
+ return object;
+ }
- /**
- * Calculate the MD5 of an array of little-endian words, and a bit length.
- */
- function binl(x, len) {
- var i, olda, oldb, oldc, oldd,
- a = 1732584193,
- b = -271733879,
- c = -1732584194,
- d = 271733878;
-
- /* append padding */
- x[len >> 5] |= 0x80 << ((len) % 32);
- x[(((len + 64) >>> 9) << 4) + 14] = len;
-
- for (i = 0; i < x.length; i += 16) {
- olda = a;
- oldb = b;
- oldc = c;
- oldd = d;
+ /**
+ * A no-operation function that returns `undefined` regardless of the
+ * arguments it receives.
+ *
+ * @static
+ * @memberOf _
+ * @category Utility
+ * @example
+ *
+ * var object = { 'user': 'fred' };
+ *
+ * _.noop(object) === undefined;
+ * // => true
+ */
+ function noop() {
+ // No operation performed.
+ }
- a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
- d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
- c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
- b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
- a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
- d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
- c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
- b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
- a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
- d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
- c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
- b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
- a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
- d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
- c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
- b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
+ /**
+ * Creates a function that returns the property value at `path` on a
+ * given object.
+ *
+ * @static
+ * @memberOf _
+ * @category Utility
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new function.
+ * @example
+ *
+ * var objects = [
+ * { 'a': { 'b': { 'c': 2 } } },
+ * { 'a': { 'b': { 'c': 1 } } }
+ * ];
+ *
+ * _.map(objects, _.property('a.b.c'));
+ * // => [2, 1]
+ *
+ * _.pluck(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');
+ * // => [1, 2]
+ */
+ function property(path) {
+ return isKey(path) ? baseProperty(path) : basePropertyDeep(path);
+ }
- a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
- d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
- c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
- b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
- a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
- d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
- c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
- b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
- a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
- d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
- c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
- b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
- a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
- d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
- c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
- b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
+ /*------------------------------------------------------------------------*/
- a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
- d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
- c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
- b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
- a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
- d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
- c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
- b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
- a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
- d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
- c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
- b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
- a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
- d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
- c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
- b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
+ // Ensure wrappers are instances of `baseLodash`.
+ lodash.prototype = baseLodash.prototype;
- a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
- d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
- c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
- b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
- a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
- d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
- c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
- b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
- a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
- d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
- c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
- b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
- a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
- d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
- c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
- b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
+ LodashWrapper.prototype = baseCreate(baseLodash.prototype);
+ LodashWrapper.prototype.constructor = LodashWrapper;
- a = safe_add(a, olda);
- b = safe_add(b, oldb);
- c = safe_add(c, oldc);
- d = safe_add(d, oldd);
+ LazyWrapper.prototype = baseCreate(baseLodash.prototype);
+ LazyWrapper.prototype.constructor = LazyWrapper;
+
+ // Add functions to the `Set` cache.
+ SetCache.prototype.push = cachePush;
+
+ // Add functions that return wrapped values when chaining.
+ lodash.assign = assign;
+ lodash.bind = bind;
+ lodash.callback = callback;
+ lodash.chain = chain;
+ lodash.chunk = chunk;
+ lodash.compact = compact;
+ lodash.constant = constant;
+ lodash.debounce = debounce;
+ lodash.difference = difference;
+ lodash.filter = filter;
+ lodash.flatten = flatten;
+ lodash.forEach = forEach;
+ lodash.forOwn = forOwn;
+ lodash.groupBy = groupBy;
+ lodash.intersection = intersection;
+ lodash.keys = keys;
+ lodash.keysIn = keysIn;
+ lodash.map = map;
+ lodash.matches = matches;
+ lodash.merge = merge;
+ lodash.mixin = mixin;
+ lodash.omit = omit;
+ lodash.pairs = pairs;
+ lodash.pick = pick;
+ lodash.pluck = pluck;
+ lodash.property = property;
+ lodash.reject = reject;
+ lodash.restParam = restParam;
+ lodash.tap = tap;
+ lodash.throttle = throttle;
+ lodash.thru = thru;
+ lodash.toPlainObject = toPlainObject;
+ lodash.union = union;
+ lodash.uniq = uniq;
+ lodash.values = values;
+ lodash.without = without;
+
+ // Add aliases.
+ lodash.collect = map;
+ lodash.each = forEach;
+ lodash.extend = assign;
+ lodash.iteratee = callback;
+ lodash.select = filter;
+ lodash.unique = uniq;
+
+ // Add functions to `lodash.prototype`.
+ mixin(lodash, lodash);
+
+ /*------------------------------------------------------------------------*/
+
+ // Add functions that return unwrapped values when chaining.
+ lodash.clone = clone;
+ lodash.cloneDeep = cloneDeep;
+ lodash.escapeRegExp = escapeRegExp;
+ lodash.every = every;
+ lodash.find = find;
+ lodash.first = first;
+ lodash.identity = identity;
+ lodash.includes = includes;
+ lodash.indexOf = indexOf;
+ lodash.isArguments = isArguments;
+ lodash.isArray = isArray;
+ lodash.isEmpty = isEmpty;
+ lodash.isEqual = isEqual;
+ lodash.isFunction = isFunction;
+ lodash.isNative = isNative;
+ lodash.isObject = isObject;
+ lodash.isPlainObject = isPlainObject;
+ lodash.isString = isString;
+ lodash.isTypedArray = isTypedArray;
+ lodash.last = last;
+ lodash.noop = noop;
+ lodash.now = now;
+ lodash.reduce = reduce;
+ lodash.some = some;
+
+ // Add aliases.
+ lodash.all = every;
+ lodash.any = some;
+ lodash.contains = includes;
+ lodash.eq = isEqual;
+ lodash.detect = find;
+ lodash.foldl = reduce;
+ lodash.head = first;
+ lodash.include = includes;
+ lodash.inject = reduce;
+
+ mixin(lodash, (function() {
+ var source = {};
+ baseForOwn(lodash, function(func, methodName) {
+ if (!lodash.prototype[methodName]) {
+ source[methodName] = func;
}
- return Array(a, b, c, d);
- }
+ });
+ return source;
+ }()), false);
- /**
- * These functions implement the four basic operations the algorithm uses.
- */
- function md5_cmn(q, a, b, x, s, t) {
- return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
- }
- function md5_ff(a, b, c, d, x, s, t) {
- return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
- }
- function md5_gg(a, b, c, d, x, s, t) {
- return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
- }
- function md5_hh(a, b, c, d, x, s, t) {
- return md5_cmn(b ^ c ^ d, a, b, x, s, t);
- }
- function md5_ii(a, b, c, d, x, s, t) {
- return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
+ /*------------------------------------------------------------------------*/
+
+ lodash.prototype.sample = function(n) {
+ if (!this.__chain__ && n == null) {
+ return sample(this.value());
}
- },
+ return this.thru(function(value) {
+ return sample(value, n);
+ });
+ };
+
+ /*------------------------------------------------------------------------*/
+
/**
- * @member Hashes
- * @class Hashes.SHA1
- * @param {Object} [config]
- * @constructor
- *
- * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined in FIPS 180-1
- * Version 2.2 Copyright Paul Johnston 2000 - 2009.
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
- * See http://pajhome.org.uk/crypt/md5 for details.
+ * The semantic version number.
+ *
+ * @static
+ * @memberOf _
+ * @type string
*/
- SHA1 : function (options) {
- /**
- * Private config properties. You may need to tweak these to be compatible with
- * the server-side, but the defaults work in most cases.
- * See {@link Hashes.MD5#method-setUpperCase} and {@link Hashes.SHA1#method-setUpperCase}
- */
- var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase
- b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', // base-64 pad character. Defaults to '=' for strict RFC compliance
- utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true; // enable/disable utf8 encoding
+ lodash.VERSION = VERSION;
+
+ // Assign default placeholders.
+ bind.placeholder = lodash;
+
+ // Add `LazyWrapper` methods that accept an `iteratee` value.
+ arrayEach(['dropWhile', 'filter', 'map', 'takeWhile'], function(methodName, type) {
+ var isFilter = type != LAZY_MAP_FLAG,
+ isDropWhile = type == LAZY_DROP_WHILE_FLAG;
+
+ LazyWrapper.prototype[methodName] = function(iteratee, thisArg) {
+ var filtered = this.__filtered__,
+ result = (filtered && isDropWhile) ? new LazyWrapper(this) : this.clone(),
+ iteratees = result.__iteratees__ || (result.__iteratees__ = []);
+
+ iteratees.push({
+ 'done': false,
+ 'count': 0,
+ 'index': 0,
+ 'iteratee': getCallback(iteratee, thisArg, 1),
+ 'limit': -1,
+ 'type': type
+ });
- // public methods
- this.hex = function (s) {
- return rstr2hex(rstr(s, utf8), hexcase);
- };
- this.b64 = function (s) {
- return rstr2b64(rstr(s, utf8), b64pad);
- };
- this.any = function (s, e) {
- return rstr2any(rstr(s, utf8), e);
- };
- this.hex_hmac = function (k, d) {
- return rstr2hex(rstr_hmac(k, d));
- };
- this.b64_hmac = function (k, d) {
- return rstr2b64(rstr_hmac(k, d), b64pad);
- };
- this.any_hmac = function (k, d, e) {
- return rstr2any(rstr_hmac(k, d), e);
- };
- /**
- * Perform a simple self-test to see if the VM is working
- * @return {String} Hexadecimal hash sample
- * @public
- */
- this.vm_test = function () {
- return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
+ result.__filtered__ = filtered || isFilter;
+ return result;
};
- /**
- * @description Enable/disable uppercase hexadecimal returned string
- * @param {boolean}
- * @return {Object} this
- * @public
- */
- this.setUpperCase = function (a) {
- if (typeof a === 'boolean') {
- hexcase = a;
+ });
+
+ // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
+ arrayEach(['drop', 'take'], function(methodName, index) {
+ var whileName = methodName + 'While';
+
+ LazyWrapper.prototype[methodName] = function(n) {
+ var filtered = this.__filtered__,
+ result = (filtered && !index) ? this.dropWhile() : this.clone();
+
+ n = n == null ? 1 : nativeMax(floor(n) || 0, 0);
+ if (filtered) {
+ if (index) {
+ result.__takeCount__ = nativeMin(result.__takeCount__, n);
+ } else {
+ last(result.__iteratees__).limit = n;
+ }
+ } else {
+ var views = result.__views__ || (result.__views__ = []);
+ views.push({ 'size': n, 'type': methodName + (result.__dir__ < 0 ? 'Right' : '') });
}
- return this;
+ return result;
};
- /**
- * @description Defines a base64 pad string
- * @param {string} Pad
- * @return {Object} this
- * @public
- */
- this.setPad = function (a) {
- b64pad = a || b64pad;
- return this;
+
+ LazyWrapper.prototype[methodName + 'Right'] = function(n) {
+ return this.reverse()[methodName](n).reverse();
};
- /**
- * @description Defines a base64 pad string
- * @param {boolean}
- * @return {Object} this
- * @public
- */
- this.setUTF8 = function (a) {
- if (typeof a === 'boolean') {
- utf8 = a;
- }
- return this;
+
+ LazyWrapper.prototype[methodName + 'RightWhile'] = function(predicate, thisArg) {
+ return this.reverse()[whileName](predicate, thisArg).reverse();
};
+ });
- // private methods
+ // Add `LazyWrapper` methods for `_.first` and `_.last`.
+ arrayEach(['first', 'last'], function(methodName, index) {
+ var takeName = 'take' + (index ? 'Right' : '');
- /**
- * Calculate the SHA-512 of a raw string
- */
- function rstr(s) {
- s = (utf8) ? utf8Encode(s) : s;
- return binb2rstr(binb(rstr2binb(s), s.length * 8));
- }
+ LazyWrapper.prototype[methodName] = function() {
+ return this[takeName](1).value()[0];
+ };
+ });
- /**
- * Calculate the HMAC-SHA1 of a key and some data (raw strings)
- */
- function rstr_hmac(key, data) {
- var bkey, ipad, opad, i, hash;
- key = (utf8) ? utf8Encode(key) : key;
- data = (utf8) ? utf8Encode(data) : data;
- bkey = rstr2binb(key);
+ // Add `LazyWrapper` methods for `_.initial` and `_.rest`.
+ arrayEach(['initial', 'rest'], function(methodName, index) {
+ var dropName = 'drop' + (index ? '' : 'Right');
- if (bkey.length > 16) {
- bkey = binb(bkey, key.length * 8);
- }
- ipad = Array(16), opad = Array(16);
- for (i = 0; i < 16; i+=1) {
- ipad[i] = bkey[i] ^ 0x36363636;
- opad[i] = bkey[i] ^ 0x5C5C5C5C;
- }
- hash = binb(ipad.concat(rstr2binb(data)), 512 + data.length * 8);
- return binb2rstr(binb(opad.concat(hash), 512 + 160));
- }
+ LazyWrapper.prototype[methodName] = function() {
+ return this[dropName](1);
+ };
+ });
- /**
- * Calculate the SHA-1 of an array of big-endian words, and a bit length
- */
- function binb(x, len) {
- var i, j, t, olda, oldb, oldc, oldd, olde,
- w = Array(80),
- a = 1732584193,
- b = -271733879,
- c = -1732584194,
- d = 271733878,
- e = -1009589776;
+ // Add `LazyWrapper` methods for `_.pluck` and `_.where`.
+ arrayEach(['pluck', 'where'], function(methodName, index) {
+ var operationName = index ? 'filter' : 'map',
+ createCallback = index ? baseMatches : property;
- /* append padding */
- x[len >> 5] |= 0x80 << (24 - len % 32);
- x[((len + 64 >> 9) << 4) + 15] = len;
+ LazyWrapper.prototype[methodName] = function(value) {
+ return this[operationName](createCallback(value));
+ };
+ });
- for (i = 0; i < x.length; i += 16) {
- olda = a,
- oldb = b;
- oldc = c;
- oldd = d;
- olde = e;
-
- for (j = 0; j < 80; j+=1) {
- if (j < 16) {
- w[j] = x[i + j];
- } else {
- w[j] = bit_rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1);
- }
- t = safe_add(safe_add(bit_rol(a, 5), sha1_ft(j, b, c, d)),
- safe_add(safe_add(e, w[j]), sha1_kt(j)));
- e = d;
- d = c;
- c = bit_rol(b, 30);
- b = a;
- a = t;
- }
+ LazyWrapper.prototype.compact = function() {
+ return this.filter(identity);
+ };
- a = safe_add(a, olda);
- b = safe_add(b, oldb);
- c = safe_add(c, oldc);
- d = safe_add(d, oldd);
- e = safe_add(e, olde);
- }
- return Array(a, b, c, d, e);
- }
+ LazyWrapper.prototype.reject = function(predicate, thisArg) {
+ predicate = getCallback(predicate, thisArg, 1);
+ return this.filter(function(value) {
+ return !predicate(value);
+ });
+ };
- /**
- * Perform the appropriate triplet combination function for the current
- * iteration
- */
- function sha1_ft(t, b, c, d) {
- if (t < 20) { return (b & c) | ((~b) & d); }
- if (t < 40) { return b ^ c ^ d; }
- if (t < 60) { return (b & c) | (b & d) | (c & d); }
- return b ^ c ^ d;
+ LazyWrapper.prototype.slice = function(start, end) {
+ start = start == null ? 0 : (+start || 0);
+
+ var result = this;
+ if (start < 0) {
+ result = this.takeRight(-start);
+ } else if (start) {
+ result = this.drop(start);
+ }
+ if (end !== undefined) {
+ end = (+end || 0);
+ result = end < 0 ? result.dropRight(-end) : result.take(end - start);
}
+ return result;
+ };
- /**
- * Determine the appropriate additive constant for the current iteration
- */
- function sha1_kt(t) {
- return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 :
- (t < 60) ? -1894007588 : -899497514;
+ LazyWrapper.prototype.toArray = function() {
+ return this.drop(0);
+ };
+
+ // Add `LazyWrapper` methods to `lodash.prototype`.
+ baseForOwn(LazyWrapper.prototype, function(func, methodName) {
+ var lodashFunc = lodash[methodName];
+ if (!lodashFunc) {
+ return;
}
- },
- /**
- * @class Hashes.SHA256
- * @param {config}
- *
- * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined in FIPS 180-2
- * Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009.
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
- * See http://pajhome.org.uk/crypt/md5 for details.
- * Also http://anmar.eu.org/projects/jssha2/
- */
- SHA256 : function (options) {
- /**
- * Private properties configuration variables. You may need to tweak these to be compatible with
- * the server-side, but the defaults work in most cases.
- * @see this.setUpperCase() method
- * @see this.setPad() method
- */
- var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase */
- b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */
- utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */
- sha256_K;
+ var checkIteratee = /^(?:filter|map|reject)|While$/.test(methodName),
+ retUnwrapped = /^(?:first|last)$/.test(methodName);
- /* privileged (public) methods */
- this.hex = function (s) {
- return rstr2hex(rstr(s, utf8));
- };
- this.b64 = function (s) {
- return rstr2b64(rstr(s, utf8), b64pad);
- };
- this.any = function (s, e) {
- return rstr2any(rstr(s, utf8), e);
- };
- this.hex_hmac = function (k, d) {
- return rstr2hex(rstr_hmac(k, d));
- };
- this.b64_hmac = function (k, d) {
- return rstr2b64(rstr_hmac(k, d), b64pad);
- };
- this.any_hmac = function (k, d, e) {
- return rstr2any(rstr_hmac(k, d), e);
- };
- /**
- * Perform a simple self-test to see if the VM is working
- * @return {String} Hexadecimal hash sample
- * @public
- */
- this.vm_test = function () {
- return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
- };
- /**
- * Enable/disable uppercase hexadecimal returned string
- * @param {boolean}
- * @return {Object} this
- * @public
- */
- this.setUpperCase = function (a) {
- if (typeof a === 'boolean') {
- hexcase = a;
+ lodash.prototype[methodName] = function() {
+ var args = arguments,
+ chainAll = this.__chain__,
+ value = this.__wrapped__,
+ isHybrid = !!this.__actions__.length,
+ isLazy = value instanceof LazyWrapper,
+ iteratee = args[0],
+ useLazy = isLazy || isArray(value);
+
+ if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
+ // avoid lazy use if the iteratee has a "length" value other than `1`
+ isLazy = useLazy = false;
}
- return this;
+ var onlyLazy = isLazy && !isHybrid;
+ if (retUnwrapped && !chainAll) {
+ return onlyLazy
+ ? func.call(value)
+ : lodashFunc.call(lodash, this.value());
+ }
+ var interceptor = function(value) {
+ var otherArgs = [value];
+ push.apply(otherArgs, args);
+ return lodashFunc.apply(lodash, otherArgs);
+ };
+ if (useLazy) {
+ var wrapper = onlyLazy ? value : new LazyWrapper(this),
+ result = func.apply(wrapper, args);
+
+ if (!retUnwrapped && (isHybrid || result.__actions__)) {
+ var actions = result.__actions__ || (result.__actions__ = []);
+ actions.push({ 'func': thru, 'args': [interceptor], 'thisArg': lodash });
+ }
+ return new LodashWrapper(result, chainAll);
+ }
+ return this.thru(interceptor);
};
- /**
- * @description Defines a base64 pad string
- * @param {string} Pad
- * @return {Object} this
- * @public
- */
- this.setPad = function (a) {
- b64pad = a || b64pad;
- return this;
+ });
+
+ // Add `Array` and `String` methods to `lodash.prototype`.
+ arrayEach(['concat', 'join', 'pop', 'push', 'replace', 'shift', 'sort', 'splice', 'split', 'unshift'], function(methodName) {
+ var protoFunc = (/^(?:replace|split)$/.test(methodName) ? stringProto : arrayProto)[methodName],
+ chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
+ fixObjects = !support.spliceObjects && /^(?:pop|shift|splice)$/.test(methodName),
+ retUnwrapped = /^(?:join|pop|replace|shift)$/.test(methodName);
+
+ // Avoid array-like object bugs with `Array#shift` and `Array#splice` in
+ // IE < 9, Firefox < 10, and RingoJS.
+ var func = !fixObjects ? protoFunc : function() {
+ var result = protoFunc.apply(this, arguments);
+ if (this.length === 0) {
+ delete this[0];
+ }
+ return result;
};
- /**
- * Defines a base64 pad string
- * @param {boolean}
- * @return {Object} this
- * @public
- */
- this.setUTF8 = function (a) {
- if (typeof a === 'boolean') {
- utf8 = a;
+
+ lodash.prototype[methodName] = function() {
+ var args = arguments;
+ if (retUnwrapped && !this.__chain__) {
+ return func.apply(this.value(), args);
}
- return this;
+ return this[chainName](function(value) {
+ return func.apply(value, args);
+ });
};
-
- // private methods
+ });
- /**
- * Calculate the SHA-512 of a raw string
- */
- function rstr(s, utf8) {
- s = (utf8) ? utf8Encode(s) : s;
- return binb2rstr(binb(rstr2binb(s), s.length * 8));
+ // Map minified function names to their real names.
+ baseForOwn(LazyWrapper.prototype, function(func, methodName) {
+ var lodashFunc = lodash[methodName];
+ if (lodashFunc) {
+ var key = lodashFunc.name,
+ names = realNames[key] || (realNames[key] = []);
+
+ names.push({ 'name': methodName, 'func': lodashFunc });
}
+ });
- /**
- * Calculate the HMAC-sha256 of a key and some data (raw strings)
- */
- function rstr_hmac(key, data) {
- key = (utf8) ? utf8Encode(key) : key;
- data = (utf8) ? utf8Encode(data) : data;
- var hash, i = 0,
- bkey = rstr2binb(key),
- ipad = Array(16),
- opad = Array(16);
+ realNames[createHybridWrapper(null, BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': null }];
- if (bkey.length > 16) { bkey = binb(bkey, key.length * 8); }
-
- for (; i < 16; i+=1) {
- ipad[i] = bkey[i] ^ 0x36363636;
- opad[i] = bkey[i] ^ 0x5C5C5C5C;
- }
-
- hash = binb(ipad.concat(rstr2binb(data)), 512 + data.length * 8);
- return binb2rstr(binb(opad.concat(hash), 512 + 256));
- }
-
- /*
- * Main sha256 function, with its support functions
- */
- function sha256_S (X, n) {return ( X >>> n ) | (X << (32 - n));}
- function sha256_R (X, n) {return ( X >>> n );}
- function sha256_Ch(x, y, z) {return ((x & y) ^ ((~x) & z));}
- function sha256_Maj(x, y, z) {return ((x & y) ^ (x & z) ^ (y & z));}
- function sha256_Sigma0256(x) {return (sha256_S(x, 2) ^ sha256_S(x, 13) ^ sha256_S(x, 22));}
- function sha256_Sigma1256(x) {return (sha256_S(x, 6) ^ sha256_S(x, 11) ^ sha256_S(x, 25));}
- function sha256_Gamma0256(x) {return (sha256_S(x, 7) ^ sha256_S(x, 18) ^ sha256_R(x, 3));}
- function sha256_Gamma1256(x) {return (sha256_S(x, 17) ^ sha256_S(x, 19) ^ sha256_R(x, 10));}
- function sha256_Sigma0512(x) {return (sha256_S(x, 28) ^ sha256_S(x, 34) ^ sha256_S(x, 39));}
- function sha256_Sigma1512(x) {return (sha256_S(x, 14) ^ sha256_S(x, 18) ^ sha256_S(x, 41));}
- function sha256_Gamma0512(x) {return (sha256_S(x, 1) ^ sha256_S(x, 8) ^ sha256_R(x, 7));}
- function sha256_Gamma1512(x) {return (sha256_S(x, 19) ^ sha256_S(x, 61) ^ sha256_R(x, 6));}
-
- sha256_K = [
- 1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993,
- -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987,
- 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522,
- 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986,
- -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585,
- 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291,
- 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885,
- -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344,
- 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218,
- 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872,
- -1866530822, -1538233109, -1090935817, -965641998
- ];
-
- function binb(m, l) {
- var HASH = [1779033703, -1150833019, 1013904242, -1521486534,
- 1359893119, -1694144372, 528734635, 1541459225];
- var W = new Array(64);
- var a, b, c, d, e, f, g, h;
- var i, j, T1, T2;
-
- /* append padding */
- m[l >> 5] |= 0x80 << (24 - l % 32);
- m[((l + 64 >> 9) << 4) + 15] = l;
-
- for (i = 0; i < m.length; i += 16)
- {
- a = HASH[0];
- b = HASH[1];
- c = HASH[2];
- d = HASH[3];
- e = HASH[4];
- f = HASH[5];
- g = HASH[6];
- h = HASH[7];
-
- for (j = 0; j < 64; j+=1)
- {
- if (j < 16) {
- W[j] = m[j + i];
- } else {
- W[j] = safe_add(safe_add(safe_add(sha256_Gamma1256(W[j - 2]), W[j - 7]),
- sha256_Gamma0256(W[j - 15])), W[j - 16]);
- }
-
- T1 = safe_add(safe_add(safe_add(safe_add(h, sha256_Sigma1256(e)), sha256_Ch(e, f, g)),
- sha256_K[j]), W[j]);
- T2 = safe_add(sha256_Sigma0256(a), sha256_Maj(a, b, c));
- h = g;
- g = f;
- f = e;
- e = safe_add(d, T1);
- d = c;
- c = b;
- b = a;
- a = safe_add(T1, T2);
- }
-
- HASH[0] = safe_add(a, HASH[0]);
- HASH[1] = safe_add(b, HASH[1]);
- HASH[2] = safe_add(c, HASH[2]);
- HASH[3] = safe_add(d, HASH[3]);
- HASH[4] = safe_add(e, HASH[4]);
- HASH[5] = safe_add(f, HASH[5]);
- HASH[6] = safe_add(g, HASH[6]);
- HASH[7] = safe_add(h, HASH[7]);
- }
- return HASH;
+ // Add functions to the lazy wrapper.
+ LazyWrapper.prototype.clone = lazyClone;
+ LazyWrapper.prototype.reverse = lazyReverse;
+ LazyWrapper.prototype.value = lazyValue;
+
+ // Add chaining functions to the `lodash` wrapper.
+ lodash.prototype.chain = wrapperChain;
+ lodash.prototype.commit = wrapperCommit;
+ lodash.prototype.plant = wrapperPlant;
+ lodash.prototype.reverse = wrapperReverse;
+ lodash.prototype.toString = wrapperToString;
+ lodash.prototype.run = lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
+
+ // Add function aliases to the `lodash` wrapper.
+ lodash.prototype.collect = lodash.prototype.map;
+ lodash.prototype.head = lodash.prototype.first;
+ lodash.prototype.select = lodash.prototype.filter;
+ lodash.prototype.tail = lodash.prototype.rest;
+
+ /*--------------------------------------------------------------------------*/
+
+ if (freeExports && freeModule) {
+ // Export for Node.js or RingoJS.
+ if (moduleExports) {
+ (freeModule.exports = lodash)._ = lodash;
}
+ }
+ else {
+ // Export for a browser or Rhino.
+ root._ = lodash;
+ }
+}.call(this));
+(function(e){if("function"==typeof bootstrap)bootstrap("osmauth",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeOsmAuth=e}else"undefined"!=typeof window?window.osmAuth=e():global.osmAuth=e()})(function(){var define,ses,bootstrap,module,exports;
+return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){
+'use strict';
- },
+var ohauth = require('ohauth'),
+ xtend = require('xtend'),
+ store = require('store');
- /**
- * @class Hashes.SHA512
- * @param {config}
- *
- * A JavaScript implementation of the Secure Hash Algorithm, SHA-512, as defined in FIPS 180-2
- * Version 2.2 Copyright Anonymous Contributor, Paul Johnston 2000 - 2009.
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
- * See http://pajhome.org.uk/crypt/md5 for details.
- */
- SHA512 : function (options) {
- /**
- * Private properties configuration variables. You may need to tweak these to be compatible with
- * the server-side, but the defaults work in most cases.
- * @see this.setUpperCase() method
- * @see this.setPad() method
- */
- var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false , /* hexadecimal output case format. false - lowercase; true - uppercase */
- b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */
- utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */
- sha512_k;
+// # osm-auth
+//
+// This code is only compatible with IE10+ because the [XDomainRequest](http://bit.ly/LfO7xo)
+// object, IE<10's idea of [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing),
+// does not support custom headers, which this uses everywhere.
+module.exports = function(o) {
- /* privileged (public) methods */
- this.hex = function (s) {
- return rstr2hex(rstr(s));
- };
- this.b64 = function (s) {
- return rstr2b64(rstr(s), b64pad);
- };
- this.any = function (s, e) {
- return rstr2any(rstr(s), e);
- };
- this.hex_hmac = function (k, d) {
- return rstr2hex(rstr_hmac(k, d));
+ var oauth = {};
+
+ // authenticated users will also have a request token secret, but it's
+ // not used in transactions with the server
+ oauth.authenticated = function() {
+ return !!(token('oauth_token') && token('oauth_token_secret'));
};
- this.b64_hmac = function (k, d) {
- return rstr2b64(rstr_hmac(k, d), b64pad);
+
+ oauth.logout = function() {
+ token('oauth_token', '');
+ token('oauth_token_secret', '');
+ token('oauth_request_token_secret', '');
+ return oauth;
};
- this.any_hmac = function (k, d, e) {
- return rstr2any(rstr_hmac(k, d), e);
+
+ // TODO: detect lack of click event
+ oauth.authenticate = function(callback) {
+ if (oauth.authenticated()) return callback();
+
+ oauth.logout();
+
+ // ## Getting a request token
+ var params = timenonce(getAuth(o)),
+ url = o.url + '/oauth/request_token';
+
+ params.oauth_signature = ohauth.signature(
+ o.oauth_secret, '',
+ ohauth.baseString('POST', url, params));
+
+ if (!o.singlepage) {
+ // Create a 600x550 popup window in the center of the screen
+ var w = 600, h = 550,
+ settings = [
+ ['width', w], ['height', h],
+ ['left', screen.width / 2 - w / 2],
+ ['top', screen.height / 2 - h / 2]].map(function(x) {
+ return x.join('=');
+ }).join(','),
+ popup = window.open('about:blank', 'oauth_window', settings);
+ }
+
+ // Request a request token. When this is complete, the popup
+ // window is redirected to OSM's authorization page.
+ ohauth.xhr('POST', url, params, null, {}, reqTokenDone);
+ o.loading();
+
+ function reqTokenDone(err, xhr) {
+ o.done();
+ if (err) return callback(err);
+ var resp = ohauth.stringQs(xhr.response);
+ token('oauth_request_token_secret', resp.oauth_token_secret);
+ var authorize_url = o.url + '/oauth/authorize?' + ohauth.qsString({
+ oauth_token: resp.oauth_token,
+ oauth_callback: location.href.replace('index.html', '')
+ .replace(/#.*/, '') + o.landing
+ });
+
+ if (o.singlepage) {
+ location.href = authorize_url;
+ } else {
+ popup.location = authorize_url;
+ }
+ }
+
+ // Called by a function in a landing page, in the popup window. The
+ // window closes itself.
+ window.authComplete = function(token) {
+ var oauth_token = ohauth.stringQs(token.split('?')[1]);
+ get_access_token(oauth_token.oauth_token);
+ delete window.authComplete;
+ };
+
+ // ## Getting an request token
+ //
+ // At this point we have an `oauth_token`, brought in from a function
+ // call on a landing page popup.
+ function get_access_token(oauth_token) {
+ var url = o.url + '/oauth/access_token',
+ params = timenonce(getAuth(o)),
+ request_token_secret = token('oauth_request_token_secret');
+ params.oauth_token = oauth_token;
+ params.oauth_signature = ohauth.signature(
+ o.oauth_secret,
+ request_token_secret,
+ ohauth.baseString('POST', url, params));
+
+ // ## Getting an access token
+ //
+ // The final token required for authentication. At this point
+ // we have a `request token secret`
+ ohauth.xhr('POST', url, params, null, {}, accessTokenDone);
+ o.loading();
+ }
+
+ function accessTokenDone(err, xhr) {
+ o.done();
+ if (err) return callback(err);
+ var access_token = ohauth.stringQs(xhr.response);
+ token('oauth_token', access_token.oauth_token);
+ token('oauth_token_secret', access_token.oauth_token_secret);
+ callback(null, oauth);
+ }
};
- /**
- * Perform a simple self-test to see if the VM is working
- * @return {String} Hexadecimal hash sample
- * @public
- */
- this.vm_test = function () {
- return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
+
+ oauth.bootstrapToken = function(oauth_token, callback) {
+ // ## Getting an request token
+ // At this point we have an `oauth_token`, brought in from a function
+ // call on a landing page popup.
+ function get_access_token(oauth_token) {
+ var url = o.url + '/oauth/access_token',
+ params = timenonce(getAuth(o)),
+ request_token_secret = token('oauth_request_token_secret');
+ params.oauth_token = oauth_token;
+ params.oauth_signature = ohauth.signature(
+ o.oauth_secret,
+ request_token_secret,
+ ohauth.baseString('POST', url, params));
+
+ // ## Getting an access token
+ // The final token required for authentication. At this point
+ // we have a `request token secret`
+ ohauth.xhr('POST', url, params, null, {}, accessTokenDone);
+ o.loading();
+ }
+
+ function accessTokenDone(err, xhr) {
+ o.done();
+ if (err) return callback(err);
+ var access_token = ohauth.stringQs(xhr.response);
+ token('oauth_token', access_token.oauth_token);
+ token('oauth_token_secret', access_token.oauth_token_secret);
+ callback(null, oauth);
+ }
+
+ get_access_token(oauth_token);
};
- /**
- * @description Enable/disable uppercase hexadecimal returned string
- * @param {boolean}
- * @return {Object} this
- * @public
- */
- this.setUpperCase = function (a) {
- if (typeof a === 'boolean') {
- hexcase = a;
- }
- return this;
+
+ // # xhr
+ //
+ // A single XMLHttpRequest wrapper that does authenticated calls if the
+ // user has logged in.
+ oauth.xhr = function(options, callback) {
+ if (!oauth.authenticated()) {
+ if (o.auto) return oauth.authenticate(run);
+ else return callback('not authenticated', null);
+ } else return run();
+
+ function run() {
+ var params = timenonce(getAuth(o)),
+ url = o.url + options.path,
+ oauth_token_secret = token('oauth_token_secret');
+
+ // https://tools.ietf.org/html/rfc5849#section-3.4.1.3.1
+ if ((!options.options || !options.options.header ||
+ options.options.header['Content-Type'] === 'application/x-www-form-urlencoded') &&
+ options.content) {
+ params = xtend(params, ohauth.stringQs(options.content));
+ }
+
+ params.oauth_token = token('oauth_token');
+ params.oauth_signature = ohauth.signature(
+ o.oauth_secret,
+ oauth_token_secret,
+ ohauth.baseString(options.method, url, params));
+
+ ohauth.xhr(options.method,
+ url, params, options.content, options.options, done);
+ }
+
+ function done(err, xhr) {
+ if (err) return callback(err);
+ else if (xhr.responseXML) return callback(err, xhr.responseXML);
+ else return callback(err, xhr.response);
+ }
};
- /**
- * @description Defines a base64 pad string
- * @param {string} Pad
- * @return {Object} this
- * @public
- */
- this.setPad = function (a) {
- b64pad = a || b64pad;
- return this;
+
+ // pre-authorize this object, if we can just get a token and token_secret
+ // from the start
+ oauth.preauth = function(c) {
+ if (!c) return;
+ if (c.oauth_token) token('oauth_token', c.oauth_token);
+ if (c.oauth_token_secret) token('oauth_token_secret', c.oauth_token_secret);
+ return oauth;
};
- /**
- * @description Defines a base64 pad string
- * @param {boolean}
- * @return {Object} this
- * @public
- */
- this.setUTF8 = function (a) {
- if (typeof a === 'boolean') {
- utf8 = a;
- }
- return this;
+
+ oauth.options = function(_) {
+ if (!arguments.length) return o;
+
+ o = _;
+
+ o.url = o.url || 'http://www.openstreetmap.org';
+ o.landing = o.landing || 'land.html';
+
+ o.singlepage = o.singlepage || false;
+
+ // Optional loading and loading-done functions for nice UI feedback.
+ // by default, no-ops
+ o.loading = o.loading || function() {};
+ o.done = o.done || function() {};
+
+ return oauth.preauth(o);
};
- /* private methods */
-
- /**
- * Calculate the SHA-512 of a raw string
- */
- function rstr(s) {
- s = (utf8) ? utf8Encode(s) : s;
- return binb2rstr(binb(rstr2binb(s), s.length * 8));
+ // 'stamp' an authentication object from `getAuth()`
+ // with a [nonce](http://en.wikipedia.org/wiki/Cryptographic_nonce)
+ // and timestamp
+ function timenonce(o) {
+ o.oauth_timestamp = ohauth.timestamp();
+ o.oauth_nonce = ohauth.nonce();
+ return o;
}
- /*
- * Calculate the HMAC-SHA-512 of a key and some data (raw strings)
- */
- function rstr_hmac(key, data) {
- key = (utf8) ? utf8Encode(key) : key;
- data = (utf8) ? utf8Encode(data) : data;
-
- var hash, i = 0,
- bkey = rstr2binb(key),
- ipad = Array(32), opad = Array(32);
- if (bkey.length > 32) { bkey = binb(bkey, key.length * 8); }
-
- for (; i < 32; i+=1) {
- ipad[i] = bkey[i] ^ 0x36363636;
- opad[i] = bkey[i] ^ 0x5C5C5C5C;
- }
-
- hash = binb(ipad.concat(rstr2binb(data)), 1024 + data.length * 8);
- return binb2rstr(binb(opad.concat(hash), 1024 + 512));
+ // get/set tokens. These are prefixed with the base URL so that `osm-auth`
+ // can be used with multiple APIs and the keys in `localStorage`
+ // will not clash
+ var token;
+
+ if (store.enabled) {
+ token = function (x, y) {
+ if (arguments.length === 1) return store.get(o.url + x);
+ else if (arguments.length === 2) return store.set(o.url + x, y);
+ };
+ } else {
+ var storage = {};
+ token = function (x, y) {
+ if (arguments.length === 1) return storage[o.url + x];
+ else if (arguments.length === 2) return storage[o.url + x] = y;
+ };
}
-
- /**
- * Calculate the SHA-512 of an array of big-endian dwords, and a bit length
- */
- function binb(x, len) {
- var j, i, l,
- W = new Array(80),
- hash = new Array(16),
- //Initial hash values
- H = [
- new int64(0x6a09e667, -205731576),
- new int64(-1150833019, -2067093701),
- new int64(0x3c6ef372, -23791573),
- new int64(-1521486534, 0x5f1d36f1),
- new int64(0x510e527f, -1377402159),
- new int64(-1694144372, 0x2b3e6c1f),
- new int64(0x1f83d9ab, -79577749),
- new int64(0x5be0cd19, 0x137e2179)
- ],
- T1 = new int64(0, 0),
- T2 = new int64(0, 0),
- a = new int64(0,0),
- b = new int64(0,0),
- c = new int64(0,0),
- d = new int64(0,0),
- e = new int64(0,0),
- f = new int64(0,0),
- g = new int64(0,0),
- h = new int64(0,0),
- //Temporary variables not specified by the document
- s0 = new int64(0, 0),
- s1 = new int64(0, 0),
- Ch = new int64(0, 0),
- Maj = new int64(0, 0),
- r1 = new int64(0, 0),
- r2 = new int64(0, 0),
- r3 = new int64(0, 0);
- if (sha512_k === undefined) {
- //SHA512 constants
- sha512_k = [
- new int64(0x428a2f98, -685199838), new int64(0x71374491, 0x23ef65cd),
- new int64(-1245643825, -330482897), new int64(-373957723, -2121671748),
- new int64(0x3956c25b, -213338824), new int64(0x59f111f1, -1241133031),
- new int64(-1841331548, -1357295717), new int64(-1424204075, -630357736),
- new int64(-670586216, -1560083902), new int64(0x12835b01, 0x45706fbe),
- new int64(0x243185be, 0x4ee4b28c), new int64(0x550c7dc3, -704662302),
- new int64(0x72be5d74, -226784913), new int64(-2132889090, 0x3b1696b1),
- new int64(-1680079193, 0x25c71235), new int64(-1046744716, -815192428),
- new int64(-459576895, -1628353838), new int64(-272742522, 0x384f25e3),
- new int64(0xfc19dc6, -1953704523), new int64(0x240ca1cc, 0x77ac9c65),
- new int64(0x2de92c6f, 0x592b0275), new int64(0x4a7484aa, 0x6ea6e483),
- new int64(0x5cb0a9dc, -1119749164), new int64(0x76f988da, -2096016459),
- new int64(-1740746414, -295247957), new int64(-1473132947, 0x2db43210),
- new int64(-1341970488, -1728372417), new int64(-1084653625, -1091629340),
- new int64(-958395405, 0x3da88fc2), new int64(-710438585, -1828018395),
- new int64(0x6ca6351, -536640913), new int64(0x14292967, 0xa0e6e70),
- new int64(0x27b70a85, 0x46d22ffc), new int64(0x2e1b2138, 0x5c26c926),
- new int64(0x4d2c6dfc, 0x5ac42aed), new int64(0x53380d13, -1651133473),
- new int64(0x650a7354, -1951439906), new int64(0x766a0abb, 0x3c77b2a8),
- new int64(-2117940946, 0x47edaee6), new int64(-1838011259, 0x1482353b),
- new int64(-1564481375, 0x4cf10364), new int64(-1474664885, -1136513023),
- new int64(-1035236496, -789014639), new int64(-949202525, 0x654be30),
- new int64(-778901479, -688958952), new int64(-694614492, 0x5565a910),
- new int64(-200395387, 0x5771202a), new int64(0x106aa070, 0x32bbd1b8),
- new int64(0x19a4c116, -1194143544), new int64(0x1e376c08, 0x5141ab53),
- new int64(0x2748774c, -544281703), new int64(0x34b0bcb5, -509917016),
- new int64(0x391c0cb3, -976659869), new int64(0x4ed8aa4a, -482243893),
- new int64(0x5b9cca4f, 0x7763e373), new int64(0x682e6ff3, -692930397),
- new int64(0x748f82ee, 0x5defb2fc), new int64(0x78a5636f, 0x43172f60),
- new int64(-2067236844, -1578062990), new int64(-1933114872, 0x1a6439ec),
- new int64(-1866530822, 0x23631e28), new int64(-1538233109, -561857047),
- new int64(-1090935817, -1295615723), new int64(-965641998, -479046869),
- new int64(-903397682, -366583396), new int64(-779700025, 0x21c0c207),
- new int64(-354779690, -840897762), new int64(-176337025, -294727304),
- new int64(0x6f067aa, 0x72176fba), new int64(0xa637dc5, -1563912026),
- new int64(0x113f9804, -1090974290), new int64(0x1b710b35, 0x131c471b),
- new int64(0x28db77f5, 0x23047d84), new int64(0x32caab7b, 0x40c72493),
- new int64(0x3c9ebe0a, 0x15c9bebc), new int64(0x431d67c4, -1676669620),
- new int64(0x4cc5d4be, -885112138), new int64(0x597f299c, -60457430),
- new int64(0x5fcb6fab, 0x3ad6faec), new int64(0x6c44198c, 0x4a475817)
- ];
- }
-
- for (i=0; i<80; i+=1) {
- W[i] = new int64(0, 0);
- }
-
- // append padding to the source string. The format is described in the FIPS.
- x[len >> 5] |= 0x80 << (24 - (len & 0x1f));
- x[((len + 128 >> 10)<< 5) + 31] = len;
- l = x.length;
- for (i = 0; i<l; i+=32) { //32 dwords is the block size
- int64copy(a, H[0]);
- int64copy(b, H[1]);
- int64copy(c, H[2]);
- int64copy(d, H[3]);
- int64copy(e, H[4]);
- int64copy(f, H[5]);
- int64copy(g, H[6]);
- int64copy(h, H[7]);
-
- for (j=0; j<16; j+=1) {
- W[j].h = x[i + 2*j];
- W[j].l = x[i + 2*j + 1];
- }
-
- for (j=16; j<80; j+=1) {
- //sigma1
- int64rrot(r1, W[j-2], 19);
- int64revrrot(r2, W[j-2], 29);
- int64shr(r3, W[j-2], 6);
- s1.l = r1.l ^ r2.l ^ r3.l;
- s1.h = r1.h ^ r2.h ^ r3.h;
- //sigma0
- int64rrot(r1, W[j-15], 1);
- int64rrot(r2, W[j-15], 8);
- int64shr(r3, W[j-15], 7);
- s0.l = r1.l ^ r2.l ^ r3.l;
- s0.h = r1.h ^ r2.h ^ r3.h;
-
- int64add4(W[j], s1, W[j-7], s0, W[j-16]);
+ // Get an authentication object. If you just add and remove properties
+ // from a single object, you'll need to use `delete` to make sure that
+ // it doesn't contain undesired properties for authentication
+ function getAuth(o) {
+ return {
+ oauth_consumer_key: o.oauth_consumer_key,
+ oauth_signature_method: "HMAC-SHA1"
+ };
+ }
+
+ // potentially pre-authorize
+ oauth.options(o);
+
+ return oauth;
+};
+
+},{"ohauth":2,"store":3,"xtend":4}],3:[function(require,module,exports){
+(function(global){;(function(win){
+ var store = {},
+ doc = win.document,
+ localStorageName = 'localStorage',
+ storage
+
+ store.disabled = false
+ store.set = function(key, value) {}
+ store.get = function(key) {}
+ store.remove = function(key) {}
+ store.clear = function() {}
+ store.transact = function(key, defaultVal, transactionFn) {
+ var val = store.get(key)
+ if (transactionFn == null) {
+ transactionFn = defaultVal
+ defaultVal = null
+ }
+ if (typeof val == 'undefined') { val = defaultVal || {} }
+ transactionFn(val)
+ store.set(key, val)
+ }
+ store.getAll = function() {}
+ store.forEach = function() {}
+
+ store.serialize = function(value) {
+ return JSON.stringify(value)
+ }
+ store.deserialize = function(value) {
+ if (typeof value != 'string') { return undefined }
+ try { return JSON.parse(value) }
+ catch(e) { return value || undefined }
+ }
+
+ // Functions to encapsulate questionable FireFox 3.6.13 behavior
+ // when about.config::dom.storage.enabled === false
+ // See https://github.com/marcuswestin/store.js/issues#issue/13
+ function isLocalStorageNameSupported() {
+ try { return (localStorageName in win && win[localStorageName]) }
+ catch(err) { return false }
+ }
+
+ if (isLocalStorageNameSupported()) {
+ storage = win[localStorageName]
+ store.set = function(key, val) {
+ if (val === undefined) { return store.remove(key) }
+ storage.setItem(key, store.serialize(val))
+ return val
+ }
+ store.get = function(key) { return store.deserialize(storage.getItem(key)) }
+ store.remove = function(key) { storage.removeItem(key) }
+ store.clear = function() { storage.clear() }
+ store.getAll = function() {
+ var ret = {}
+ store.forEach(function(key, val) {
+ ret[key] = val
+ })
+ return ret
+ }
+ store.forEach = function(callback) {
+ for (var i=0; i<storage.length; i++) {
+ var key = storage.key(i)
+ callback(key, store.get(key))
+ }
+ }
+ } else if (doc.documentElement.addBehavior) {
+ var storageOwner,
+ storageContainer
+ // Since #userData storage applies only to specific paths, we need to
+ // somehow link our data to a specific path. We choose /favicon.ico
+ // as a pretty safe option, since all browsers already make a request to
+ // this URL anyway and being a 404 will not hurt us here. We wrap an
+ // iframe pointing to the favicon in an ActiveXObject(htmlfile) object
+ // (see: http://msdn.microsoft.com/en-us/library/aa752574(v=VS.85).aspx)
+ // since the iframe access rules appear to allow direct access and
+ // manipulation of the document element, even for a 404 page. This
+ // document can be used instead of the current document (which would
+ // have been limited to the current path) to perform #userData storage.
+ try {
+ storageContainer = new ActiveXObject('htmlfile')
+ storageContainer.open()
+ storageContainer.write('<s' + 'cript>document.w=window</s' + 'cript><iframe src="/favicon.ico"></iframe>')
+ storageContainer.close()
+ storageOwner = storageContainer.w.frames[0].document
+ storage = storageOwner.createElement('div')
+ } catch(e) {
+ // somehow ActiveXObject instantiation failed (perhaps some special
+ // security settings or otherwse), fall back to per-path storage
+ storage = doc.createElement('div')
+ storageOwner = doc.body
+ }
+ function withIEStorage(storeFunction) {
+ return function() {
+ var args = Array.prototype.slice.call(arguments, 0)
+ args.unshift(storage)
+ // See http://msdn.microsoft.com/en-us/library/ms531081(v=VS.85).aspx
+ // and http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).aspx
+ storageOwner.appendChild(storage)
+ storage.addBehavior('#default#userData')
+ storage.load(localStorageName)
+ var result = storeFunction.apply(store, args)
+ storageOwner.removeChild(storage)
+ return result
+ }
+ }
+
+ // In IE7, keys may not contain special chars. See all of https://github.com/marcuswestin/store.js/issues/40
+ var forbiddenCharsRegex = new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g")
+ function ieKeyFix(key) {
+ return key.replace(forbiddenCharsRegex, '___')
+ }
+ store.set = withIEStorage(function(storage, key, val) {
+ key = ieKeyFix(key)
+ if (val === undefined) { return store.remove(key) }
+ storage.setAttribute(key, store.serialize(val))
+ storage.save(localStorageName)
+ return val
+ })
+ store.get = withIEStorage(function(storage, key) {
+ key = ieKeyFix(key)
+ return store.deserialize(storage.getAttribute(key))
+ })
+ store.remove = withIEStorage(function(storage, key) {
+ key = ieKeyFix(key)
+ storage.removeAttribute(key)
+ storage.save(localStorageName)
+ })
+ store.clear = withIEStorage(function(storage) {
+ var attributes = storage.XMLDocument.documentElement.attributes
+ storage.load(localStorageName)
+ for (var i=0, attr; attr=attributes[i]; i++) {
+ storage.removeAttribute(attr.name)
+ }
+ storage.save(localStorageName)
+ })
+ store.getAll = function(storage) {
+ var ret = {}
+ store.forEach(function(key, val) {
+ ret[key] = val
+ })
+ return ret
+ }
+ store.forEach = withIEStorage(function(storage, callback) {
+ var attributes = storage.XMLDocument.documentElement.attributes
+ for (var i=0, attr; attr=attributes[i]; ++i) {
+ callback(attr.name, store.deserialize(storage.getAttribute(attr.name)))
+ }
+ })
+ }
+
+ try {
+ var testKey = '__storejs__'
+ store.set(testKey, testKey)
+ if (store.get(testKey) != testKey) { store.disabled = true }
+ store.remove(testKey)
+ } catch(e) {
+ store.disabled = true
+ }
+ store.enabled = !store.disabled
+
+ if (typeof module != 'undefined' && module.exports) { module.exports = store }
+ else if (typeof define === 'function' && define.amd) { define(store) }
+ else { win.store = store }
+
+})(this.window || global);
+
+})(window)
+},{}],5:[function(require,module,exports){
+module.exports = hasKeys
+
+function hasKeys(source) {
+ return source !== null &&
+ (typeof source === "object" ||
+ typeof source === "function")
+}
+
+},{}],4:[function(require,module,exports){
+var Keys = require("object-keys")
+var hasKeys = require("./has-keys")
+
+module.exports = extend
+
+function extend() {
+ var target = {}
+
+ for (var i = 0; i < arguments.length; i++) {
+ var source = arguments[i]
+
+ if (!hasKeys(source)) {
+ continue
}
-
- for (j = 0; j < 80; j+=1) {
- //Ch
- Ch.l = (e.l & f.l) ^ (~e.l & g.l);
- Ch.h = (e.h & f.h) ^ (~e.h & g.h);
-
- //Sigma1
- int64rrot(r1, e, 14);
- int64rrot(r2, e, 18);
- int64revrrot(r3, e, 9);
- s1.l = r1.l ^ r2.l ^ r3.l;
- s1.h = r1.h ^ r2.h ^ r3.h;
-
- //Sigma0
- int64rrot(r1, a, 28);
- int64revrrot(r2, a, 2);
- int64revrrot(r3, a, 7);
- s0.l = r1.l ^ r2.l ^ r3.l;
- s0.h = r1.h ^ r2.h ^ r3.h;
-
- //Maj
- Maj.l = (a.l & b.l) ^ (a.l & c.l) ^ (b.l & c.l);
- Maj.h = (a.h & b.h) ^ (a.h & c.h) ^ (b.h & c.h);
-
- int64add5(T1, h, s1, Ch, sha512_k[j], W[j]);
- int64add(T2, s0, Maj);
-
- int64copy(h, g);
- int64copy(g, f);
- int64copy(f, e);
- int64add(e, d, T1);
- int64copy(d, c);
- int64copy(c, b);
- int64copy(b, a);
- int64add(a, T1, T2);
+
+ var keys = Keys(source)
+
+ for (var j = 0; j < keys.length; j++) {
+ var name = keys[j]
+ target[name] = source[name]
}
- int64add(H[0], H[0], a);
- int64add(H[1], H[1], b);
- int64add(H[2], H[2], c);
- int64add(H[3], H[3], d);
- int64add(H[4], H[4], e);
- int64add(H[5], H[5], f);
- int64add(H[6], H[6], g);
- int64add(H[7], H[7], h);
- }
+ }
+
+ return target
+}
+
+},{"./has-keys":5,"object-keys":6}],7:[function(require,module,exports){
+(function(global){/**
+ * jsHashes - A fast and independent hashing library pure JavaScript implemented (ES3 compliant) for both server and client side
+ *
+ * @class Hashes
+ * @author Tomas Aparicio <tomas@rijndael-project.com>
+ * @license New BSD (see LICENSE file)
+ * @version 1.0.4
+ *
+ * Algorithms specification:
+ *
+ * MD5 <http://www.ietf.org/rfc/rfc1321.txt>
+ * RIPEMD-160 <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
+ * SHA1 <http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf>
+ * SHA256 <http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf>
+ * SHA512 <http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf>
+ * HMAC <http://www.ietf.org/rfc/rfc2104.txt>
+ *
+ */
+(function(){
+ var Hashes;
+
+ // private helper methods
+ function utf8Encode(str) {
+ var x, y, output = '', i = -1, l;
- //represent the hash as an array of 32-bit dwords
- for (i=0; i<8; i+=1) {
- hash[2*i] = H[i].h;
- hash[2*i + 1] = H[i].l;
+ if (str && str.length) {
+ l = str.length;
+ while ((i+=1) < l) {
+ /* Decode utf-16 surrogate pairs */
+ x = str.charCodeAt(i);
+ y = i + 1 < l ? str.charCodeAt(i + 1) : 0;
+ if (0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) {
+ x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF);
+ i += 1;
+ }
+ /* Encode output as utf-8 */
+ if (x <= 0x7F) {
+ output += String.fromCharCode(x);
+ } else if (x <= 0x7FF) {
+ output += String.fromCharCode(0xC0 | ((x >>> 6 ) & 0x1F),
+ 0x80 | ( x & 0x3F));
+ } else if (x <= 0xFFFF) {
+ output += String.fromCharCode(0xE0 | ((x >>> 12) & 0x0F),
+ 0x80 | ((x >>> 6 ) & 0x3F),
+ 0x80 | ( x & 0x3F));
+ } else if (x <= 0x1FFFFF) {
+ output += String.fromCharCode(0xF0 | ((x >>> 18) & 0x07),
+ 0x80 | ((x >>> 12) & 0x3F),
+ 0x80 | ((x >>> 6 ) & 0x3F),
+ 0x80 | ( x & 0x3F));
+ }
}
- return hash;
}
+ return output;
+ }
+
+ function utf8Decode(str) {
+ var i, ac, c1, c2, c3, arr = [], l;
+ i = ac = c1 = c2 = c3 = 0;
- //A constructor for 64-bit numbers
- function int64(h, l) {
- this.h = h;
- this.l = l;
- //this.toString = int64toString;
- }
+ if (str && str.length) {
+ l = str.length;
+ str += '';
- //Copies src into dst, assuming both are 64-bit numbers
- function int64copy(dst, src) {
- dst.h = src.h;
- dst.l = src.l;
+ while (i < l) {
+ c1 = str.charCodeAt(i);
+ ac += 1;
+ if (c1 < 128) {
+ arr[ac] = String.fromCharCode(c1);
+ i+=1;
+ } else if (c1 > 191 && c1 < 224) {
+ c2 = str.charCodeAt(i + 1);
+ arr[ac] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63));
+ i += 2;
+ } else {
+ c2 = str.charCodeAt(i + 1);
+ c3 = str.charCodeAt(i + 2);
+ arr[ac] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
+ i += 3;
+ }
+ }
}
-
- //Right-rotates a 64-bit number by shift
- //Won't handle cases of shift>=32
- //The function revrrot() is for that
- function int64rrot(dst, x, shift) {
- dst.l = (x.l >>> shift) | (x.h << (32-shift));
- dst.h = (x.h >>> shift) | (x.l << (32-shift));
+ return arr.join('');
+ }
+
+ /**
+ * Add integers, wrapping at 2^32. This uses 16-bit operations internally
+ * to work around bugs in some JS interpreters.
+ */
+ function safe_add(x, y) {
+ var lsw = (x & 0xFFFF) + (y & 0xFFFF),
+ msw = (x >> 16) + (y >> 16) + (lsw >> 16);
+ return (msw << 16) | (lsw & 0xFFFF);
+ }
+
+ /**
+ * Bitwise rotate a 32-bit number to the left.
+ */
+ function bit_rol(num, cnt) {
+ return (num << cnt) | (num >>> (32 - cnt));
+ }
+
+ /**
+ * Convert a raw string to a hex string
+ */
+ function rstr2hex(input, hexcase) {
+ var hex_tab = hexcase ? '0123456789ABCDEF' : '0123456789abcdef',
+ output = '', x, i = 0, l = input.length;
+ for (; i < l; i+=1) {
+ x = input.charCodeAt(i);
+ output += hex_tab.charAt((x >>> 4) & 0x0F) + hex_tab.charAt(x & 0x0F);
}
-
- //Reverses the dwords of the source and then rotates right by shift.
- //This is equivalent to rotation by 32+shift
- function int64revrrot(dst, x, shift) {
- dst.l = (x.h >>> shift) | (x.l << (32-shift));
- dst.h = (x.l >>> shift) | (x.h << (32-shift));
+ return output;
+ }
+
+ /**
+ * Encode a string as utf-16
+ */
+ function str2rstr_utf16le(input) {
+ var i, l = input.length, output = '';
+ for (i = 0; i < l; i+=1) {
+ output += String.fromCharCode( input.charCodeAt(i) & 0xFF, (input.charCodeAt(i) >>> 8) & 0xFF);
}
-
- //Bitwise-shifts right a 64-bit number by shift
- //Won't handle shift>=32, but it's never needed in SHA512
- function int64shr(dst, x, shift) {
- dst.l = (x.l >>> shift) | (x.h << (32-shift));
- dst.h = (x.h >>> shift);
+ return output;
+ }
+
+ function str2rstr_utf16be(input) {
+ var i, l = input.length, output = '';
+ for (i = 0; i < l; i+=1) {
+ output += String.fromCharCode((input.charCodeAt(i) >>> 8) & 0xFF, input.charCodeAt(i) & 0xFF);
}
-
- //Adds two 64-bit numbers
- //Like the original implementation, does not rely on 32-bit operations
- function int64add(dst, x, y) {
- var w0 = (x.l & 0xffff) + (y.l & 0xffff);
- var w1 = (x.l >>> 16) + (y.l >>> 16) + (w0 >>> 16);
- var w2 = (x.h & 0xffff) + (y.h & 0xffff) + (w1 >>> 16);
- var w3 = (x.h >>> 16) + (y.h >>> 16) + (w2 >>> 16);
- dst.l = (w0 & 0xffff) | (w1 << 16);
- dst.h = (w2 & 0xffff) | (w3 << 16);
+ return output;
+ }
+
+ /**
+ * Convert an array of big-endian words to a string
+ */
+ function binb2rstr(input) {
+ var i, l = input.length * 32, output = '';
+ for (i = 0; i < l; i += 8) {
+ output += String.fromCharCode((input[i>>5] >>> (24 - i % 32)) & 0xFF);
}
-
- //Same, except with 4 addends. Works faster than adding them one by one.
- function int64add4(dst, a, b, c, d) {
- var w0 = (a.l & 0xffff) + (b.l & 0xffff) + (c.l & 0xffff) + (d.l & 0xffff);
- var w1 = (a.l >>> 16) + (b.l >>> 16) + (c.l >>> 16) + (d.l >>> 16) + (w0 >>> 16);
- var w2 = (a.h & 0xffff) + (b.h & 0xffff) + (c.h & 0xffff) + (d.h & 0xffff) + (w1 >>> 16);
- var w3 = (a.h >>> 16) + (b.h >>> 16) + (c.h >>> 16) + (d.h >>> 16) + (w2 >>> 16);
- dst.l = (w0 & 0xffff) | (w1 << 16);
- dst.h = (w2 & 0xffff) | (w3 << 16);
+ return output;
+ }
+
+ /**
+ * Convert an array of little-endian words to a string
+ */
+ function binl2rstr(input) {
+ var i, l = input.length * 32, output = '';
+ for (i = 0;i < l; i += 8) {
+ output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF);
}
-
- //Same, except with 5 addends
- function int64add5(dst, a, b, c, d, e) {
- var w0 = (a.l & 0xffff) + (b.l & 0xffff) + (c.l & 0xffff) + (d.l & 0xffff) + (e.l & 0xffff),
- w1 = (a.l >>> 16) + (b.l >>> 16) + (c.l >>> 16) + (d.l >>> 16) + (e.l >>> 16) + (w0 >>> 16),
- w2 = (a.h & 0xffff) + (b.h & 0xffff) + (c.h & 0xffff) + (d.h & 0xffff) + (e.h & 0xffff) + (w1 >>> 16),
- w3 = (a.h >>> 16) + (b.h >>> 16) + (c.h >>> 16) + (d.h >>> 16) + (e.h >>> 16) + (w2 >>> 16);
- dst.l = (w0 & 0xffff) | (w1 << 16);
- dst.h = (w2 & 0xffff) | (w3 << 16);
+ return output;
+ }
+
+ /**
+ * Convert a raw string to an array of little-endian words
+ * Characters >255 have their high-byte silently ignored.
+ */
+ function rstr2binl(input) {
+ var i, l = input.length * 8, output = Array(input.length >> 2), lo = output.length;
+ for (i = 0; i < lo; i+=1) {
+ output[i] = 0;
}
- },
+ for (i = 0; i < l; i += 8) {
+ output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (i%32);
+ }
+ return output;
+ }
+
/**
- * @class Hashes.RMD160
- * @constructor
- * @param {Object} [config]
- *
- * A JavaScript implementation of the RIPEMD-160 Algorithm
- * Version 2.2 Copyright Jeremy Lin, Paul Johnston 2000 - 2009.
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
- * See http://pajhome.org.uk/crypt/md5 for details.
- * Also http://www.ocf.berkeley.edu/~jjlin/jsotp/
+ * Convert a raw string to an array of big-endian words
+ * Characters >255 have their high-byte silently ignored.
*/
- RMD160 : function (options) {
- /**
- * Private properties configuration variables. You may need to tweak these to be compatible with
- * the server-side, but the defaults work in most cases.
- * @see this.setUpperCase() method
- * @see this.setPad() method
+ function rstr2binb(input) {
+ var i, l = input.length * 8, output = Array(input.length >> 2), lo = output.length;
+ for (i = 0; i < lo; i+=1) {
+ output[i] = 0;
+ }
+ for (i = 0; i < l; i += 8) {
+ output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (24 - i % 32);
+ }
+ return output;
+ }
+
+ /**
+ * Convert a raw string to an arbitrary string encoding
+ */
+ function rstr2any(input, encoding) {
+ var divisor = encoding.length,
+ remainders = Array(),
+ i, q, x, ld, quotient, dividend, output, full_length;
+
+ /* Convert to an array of 16-bit big-endian values, forming the dividend */
+ dividend = Array(Math.ceil(input.length / 2));
+ ld = dividend.length;
+ for (i = 0; i < ld; i+=1) {
+ dividend[i] = (input.charCodeAt(i * 2) << 8) | input.charCodeAt(i * 2 + 1);
+ }
+
+ /**
+ * Repeatedly perform a long division. The binary array forms the dividend,
+ * the length of the encoding is the divisor. Once computed, the quotient
+ * forms the dividend for the next step. We stop when the dividend is zerHashes.
+ * All remainders are stored for later use.
*/
- var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, /* hexadecimal output case format. false - lowercase; true - uppercase */
- b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */
- utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */
- rmd160_r1 = [
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
- 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
- 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
- 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
- 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13
- ],
- rmd160_r2 = [
- 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
- 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
- 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
- 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
- 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11
- ],
- rmd160_s1 = [
- 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
- 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
- 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
- 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
- 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6
- ],
- rmd160_s2 = [
- 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
- 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
- 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
- 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
- 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
- ];
+ while(dividend.length > 0) {
+ quotient = Array();
+ x = 0;
+ for (i = 0; i < dividend.length; i+=1) {
+ x = (x << 16) + dividend[i];
+ q = Math.floor(x / divisor);
+ x -= q * divisor;
+ if (quotient.length > 0 || q > 0) {
+ quotient[quotient.length] = q;
+ }
+ }
+ remainders[remainders.length] = x;
+ dividend = quotient;
+ }
+
+ /* Convert the remainders to the output string */
+ output = '';
+ for (i = remainders.length - 1; i >= 0; i--) {
+ output += encoding.charAt(remainders[i]);
+ }
+
+ /* Append leading zero equivalents */
+ full_length = Math.ceil(input.length * 8 / (Math.log(encoding.length) / Math.log(2)));
+ for (i = output.length; i < full_length; i+=1) {
+ output = encoding[0] + output;
+ }
+ return output;
+ }
- /* privileged (public) methods */
- this.hex = function (s) {
- return rstr2hex(rstr(s, utf8));
+ /**
+ * Convert a raw string to a base-64 string
+ */
+ function rstr2b64(input, b64pad) {
+ var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
+ output = '',
+ len = input.length, i, j, triplet;
+ b64pad= b64pad || '=';
+ for (i = 0; i < len; i += 3) {
+ triplet = (input.charCodeAt(i) << 16)
+ | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)
+ | (i + 2 < len ? input.charCodeAt(i+2) : 0);
+ for (j = 0; j < 4; j+=1) {
+ if (i * 8 + j * 6 > input.length * 8) {
+ output += b64pad;
+ } else {
+ output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);
+ }
+ }
+ }
+ return output;
+ }
+
+ Hashes = {
+ /**
+ * @property {String} version
+ * @readonly
+ */
+ VERSION : '1.0.3',
+ /**
+ * @member Hashes
+ * @class Base64
+ * @constructor
+ */
+ Base64 : function () {
+ // private properties
+ var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
+ pad = '=', // default pad according with the RFC standard
+ url = false, // URL encoding support @todo
+ utf8 = true; // by default enable UTF-8 support encoding
+
+ // public method for encoding
+ this.encode = function (input) {
+ var i, j, triplet,
+ output = '',
+ len = input.length;
+
+ pad = pad || '=';
+ input = (utf8) ? utf8Encode(input) : input;
+
+ for (i = 0; i < len; i += 3) {
+ triplet = (input.charCodeAt(i) << 16)
+ | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)
+ | (i + 2 < len ? input.charCodeAt(i+2) : 0);
+ for (j = 0; j < 4; j+=1) {
+ if (i * 8 + j * 6 > len * 8) {
+ output += pad;
+ } else {
+ output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);
+ }
+ }
+ }
+ return output;
};
- this.b64 = function (s) {
- return rstr2b64(rstr(s, utf8), b64pad);
+
+ // public method for decoding
+ this.decode = function (input) {
+ // var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
+ var i, o1, o2, o3, h1, h2, h3, h4, bits, ac,
+ dec = '',
+ arr = [];
+ if (!input) { return input; }
+
+ i = ac = 0;
+ input = input.replace(new RegExp('\\'+pad,'gi'),''); // use '='
+ //input += '';
+
+ do { // unpack four hexets into three octets using index points in b64
+ h1 = tab.indexOf(input.charAt(i+=1));
+ h2 = tab.indexOf(input.charAt(i+=1));
+ h3 = tab.indexOf(input.charAt(i+=1));
+ h4 = tab.indexOf(input.charAt(i+=1));
+
+ bits = h1 << 18 | h2 << 12 | h3 << 6 | h4;
+
+ o1 = bits >> 16 & 0xff;
+ o2 = bits >> 8 & 0xff;
+ o3 = bits & 0xff;
+ ac += 1;
+
+ if (h3 === 64) {
+ arr[ac] = String.fromCharCode(o1);
+ } else if (h4 === 64) {
+ arr[ac] = String.fromCharCode(o1, o2);
+ } else {
+ arr[ac] = String.fromCharCode(o1, o2, o3);
+ }
+ } while (i < input.length);
+
+ dec = arr.join('');
+ dec = (utf8) ? utf8Decode(dec) : dec;
+
+ return dec;
};
- this.any = function (s, e) {
- return rstr2any(rstr(s, utf8), e);
+
+ // set custom pad string
+ this.setPad = function (str) {
+ pad = str || pad;
+ return this;
+ };
+ // set custom tab string characters
+ this.setTab = function (str) {
+ tab = str || tab;
+ return this;
+ };
+ this.setUTF8 = function (bool) {
+ if (typeof bool === 'boolean') {
+ utf8 = bool;
+ }
+ return this;
+ };
+ },
+
+ /**
+ * CRC-32 calculation
+ * @member Hashes
+ * @method CRC32
+ * @static
+ * @param {String} str Input String
+ * @return {String}
+ */
+ CRC32 : function (str) {
+ var crc = 0, x = 0, y = 0, table, i, iTop;
+ str = utf8Encode(str);
+
+ table = [
+ '00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 ',
+ '79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 ',
+ '84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F ',
+ '63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD ',
+ 'A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC ',
+ '51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 ',
+ 'B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 ',
+ '06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 ',
+ 'E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 ',
+ '12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 ',
+ 'D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 ',
+ '33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 ',
+ 'CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 ',
+ '9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E ',
+ '7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D ',
+ '806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 ',
+ '60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA ',
+ 'AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 ',
+ '5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 ',
+ 'B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 ',
+ '05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 ',
+ 'F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA ',
+ '11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 ',
+ 'D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F ',
+ '30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E ',
+ 'C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D'
+ ].join('');
+
+ crc = crc ^ (-1);
+ for (i = 0, iTop = str.length; i < iTop; i+=1 ) {
+ y = ( crc ^ str.charCodeAt( i ) ) & 0xFF;
+ x = '0x' + table.substr( y * 9, 8 );
+ crc = ( crc >>> 8 ) ^ x;
+ }
+ // always return a positive number (that's what >>> 0 does)
+ return (crc ^ (-1)) >>> 0;
+ },
+ /**
+ * @member Hashes
+ * @class MD5
+ * @constructor
+ * @param {Object} [config]
+ *
+ * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
+ * Digest Algorithm, as defined in RFC 1321.
+ * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
+ * See <http://pajhome.org.uk/crypt/md5> for more infHashes.
+ */
+ MD5 : function (options) {
+ /**
+ * Private config properties. You may need to tweak these to be compatible with
+ * the server-side, but the defaults work in most cases.
+ * See {@link Hashes.MD5#method-setUpperCase} and {@link Hashes.SHA1#method-setUpperCase}
+ */
+ var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase
+ b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', // base-64 pad character. Defaults to '=' for strict RFC compliance
+ utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true; // enable/disable utf8 encoding
+
+ // privileged (public) methods
+ this.hex = function (s) {
+ return rstr2hex(rstr(s, utf8), hexcase);
+ };
+ this.b64 = function (s) {
+ return rstr2b64(rstr(s), b64pad);
+ };
+ this.any = function(s, e) {
+ return rstr2any(rstr(s, utf8), e);
};
this.hex_hmac = function (k, d) {
- return rstr2hex(rstr_hmac(k, d));
+ return rstr2hex(rstr_hmac(k, d), hexcase);
};
this.b64_hmac = function (k, d) {
- return rstr2b64(rstr_hmac(k, d), b64pad);
+ return rstr2b64(rstr_hmac(k,d), b64pad);
};
this.any_hmac = function (k, d, e) {
return rstr2any(rstr_hmac(k, d), e);
/**
* Perform a simple self-test to see if the VM is working
* @return {String} Hexadecimal hash sample
- * @public
*/
this.vm_test = function () {
return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
};
/**
- * @description Enable/disable uppercase hexadecimal returned string
- * @param {boolean}
+ * Enable/disable uppercase hexadecimal returned string
+ * @param {Boolean}
* @return {Object} this
- * @public
*/
this.setUpperCase = function (a) {
- if (typeof a === 'boolean' ) { hexcase = a; }
+ if (typeof a === 'boolean' ) {
+ hexcase = a;
+ }
return this;
};
/**
- * @description Defines a base64 pad string
- * @param {string} Pad
+ * Defines a base64 pad string
+ * @param {String} Pad
* @return {Object} this
- * @public
*/
this.setPad = function (a) {
- if (typeof a !== 'undefined' ) { b64pad = a; }
+ b64pad = a || b64pad;
return this;
};
/**
- * @description Defines a base64 pad string
- * @param {boolean}
- * @return {Object} this
- * @public
+ * Defines a base64 pad string
+ * @param {Boolean}
+ * @return {Object} [this]
*/
this.setUTF8 = function (a) {
- if (typeof a === 'boolean') { utf8 = a; }
+ if (typeof a === 'boolean') {
+ utf8 = a;
+ }
return this;
};
- /* private methods */
+ // private methods
/**
- * Calculate the rmd160 of a raw string
+ * Calculate the MD5 of a raw string
*/
function rstr(s) {
- s = (utf8) ? utf8Encode(s) : s;
+ s = (utf8) ? utf8Encode(s): s;
return binl2rstr(binl(rstr2binl(s), s.length * 8));
}
-
+
/**
- * Calculate the HMAC-rmd160 of a key and some data (raw strings)
+ * Calculate the HMAC-MD5, of a key and some data (raw strings)
*/
function rstr_hmac(key, data) {
+ var bkey, ipad, opad, hash, i;
+
key = (utf8) ? utf8Encode(key) : key;
data = (utf8) ? utf8Encode(data) : data;
- var i, hash,
- bkey = rstr2binl(key),
- ipad = Array(16), opad = Array(16);
-
+ bkey = rstr2binl(key);
if (bkey.length > 16) {
bkey = binl(bkey, key.length * 8);
}
-
+
+ ipad = Array(16), opad = Array(16);
for (i = 0; i < 16; i+=1) {
- ipad[i] = bkey[i] ^ 0x36363636;
- opad[i] = bkey[i] ^ 0x5C5C5C5C;
+ ipad[i] = bkey[i] ^ 0x36363636;
+ opad[i] = bkey[i] ^ 0x5C5C5C5C;
}
hash = binl(ipad.concat(rstr2binl(data)), 512 + data.length * 8);
- return binl2rstr(binl(opad.concat(hash), 512 + 160));
- }
-
- /**
- * Convert an array of little-endian words to a string
- */
- function binl2rstr(input) {
- var i, output = '', l = input.length * 32;
- for (i = 0; i < l; i += 8) {
- output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF);
- }
- return output;
+ return binl2rstr(binl(opad.concat(hash), 512 + 128));
}
/**
- * Calculate the RIPE-MD160 of an array of little-endian words, and a bit length.
+ * Calculate the MD5 of an array of little-endian words, and a bit length.
*/
function binl(x, len) {
- var T, j, i, l,
- h0 = 0x67452301,
- h1 = 0xefcdab89,
- h2 = 0x98badcfe,
- h3 = 0x10325476,
- h4 = 0xc3d2e1f0,
- A1, B1, C1, D1, E1,
- A2, B2, C2, D2, E2;
-
+ var i, olda, oldb, oldc, oldd,
+ a = 1732584193,
+ b = -271733879,
+ c = -1732584194,
+ d = 271733878;
+
/* append padding */
- x[len >> 5] |= 0x80 << (len % 32);
+ x[len >> 5] |= 0x80 << ((len) % 32);
x[(((len + 64) >>> 9) << 4) + 14] = len;
- l = x.length;
-
- for (i = 0; i < l; i+=16) {
- A1 = A2 = h0; B1 = B2 = h1; C1 = C2 = h2; D1 = D2 = h3; E1 = E2 = h4;
- for (j = 0; j <= 79; j+=1) {
- T = safe_add(A1, rmd160_f(j, B1, C1, D1));
- T = safe_add(T, x[i + rmd160_r1[j]]);
- T = safe_add(T, rmd160_K1(j));
- T = safe_add(bit_rol(T, rmd160_s1[j]), E1);
- A1 = E1; E1 = D1; D1 = bit_rol(C1, 10); C1 = B1; B1 = T;
- T = safe_add(A2, rmd160_f(79-j, B2, C2, D2));
- T = safe_add(T, x[i + rmd160_r2[j]]);
- T = safe_add(T, rmd160_K2(j));
- T = safe_add(bit_rol(T, rmd160_s2[j]), E2);
- A2 = E2; E2 = D2; D2 = bit_rol(C2, 10); C2 = B2; B2 = T;
- }
-
- T = safe_add(h1, safe_add(C1, D2));
- h1 = safe_add(h2, safe_add(D1, E2));
- h2 = safe_add(h3, safe_add(E1, A2));
- h3 = safe_add(h4, safe_add(A1, B2));
- h4 = safe_add(h0, safe_add(B1, C2));
- h0 = T;
- }
- return [h0, h1, h2, h3, h4];
- }
- // specific algorithm methods
- function rmd160_f(j, x, y, z) {
- return ( 0 <= j && j <= 15) ? (x ^ y ^ z) :
- (16 <= j && j <= 31) ? (x & y) | (~x & z) :
- (32 <= j && j <= 47) ? (x | ~y) ^ z :
- (48 <= j && j <= 63) ? (x & z) | (y & ~z) :
- (64 <= j && j <= 79) ? x ^ (y | ~z) :
- 'rmd160_f: j out of range';
- }
+ for (i = 0; i < x.length; i += 16) {
+ olda = a;
+ oldb = b;
+ oldc = c;
+ oldd = d;
- function rmd160_K1(j) {
- return ( 0 <= j && j <= 15) ? 0x00000000 :
- (16 <= j && j <= 31) ? 0x5a827999 :
- (32 <= j && j <= 47) ? 0x6ed9eba1 :
- (48 <= j && j <= 63) ? 0x8f1bbcdc :
- (64 <= j && j <= 79) ? 0xa953fd4e :
- 'rmd160_K1: j out of range';
- }
+ a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
+ d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
+ c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
+ b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
+ a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
+ d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
+ c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
+ b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
+ a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
+ d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
+ c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
+ b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
+ a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
+ d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
+ c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
+ b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
- function rmd160_K2(j){
- return ( 0 <= j && j <= 15) ? 0x50a28be6 :
- (16 <= j && j <= 31) ? 0x5c4dd124 :
- (32 <= j && j <= 47) ? 0x6d703ef3 :
- (48 <= j && j <= 63) ? 0x7a6d76e9 :
- (64 <= j && j <= 79) ? 0x00000000 :
- 'rmd160_K2: j out of range';
- }
- }
-};
+ a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
+ d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
+ c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
+ b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
+ a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
+ d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
+ c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
+ b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
+ a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
+ d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
+ c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
+ b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
+ a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
+ d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
+ c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
+ b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
- // exposes Hashes
- (function( window, undefined ) {
- var freeExports = false;
- if (typeof exports === 'object' ) {
- freeExports = exports;
- if (exports && typeof global === 'object' && global && global === global.global ) { window = global; }
- }
+ a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
+ d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
+ c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
+ b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
+ a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
+ d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
+ c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
+ b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
+ a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
+ d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
+ c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
+ b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
+ a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
+ d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
+ c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
+ b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
- if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
- // define as an anonymous module, so, through path mapping, it can be aliased
- define(function () { return Hashes; });
- }
- else if ( freeExports ) {
- // in Node.js or RingoJS v0.8.0+
- if ( typeof module === 'object' && module && module.exports === freeExports ) {
- module.exports = Hashes;
- }
- // in Narwhal or RingoJS v0.7.0-
- else {
- freeExports.Hashes = Hashes;
+ a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
+ d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
+ c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
+ b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
+ a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
+ d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
+ c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
+ b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
+ a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
+ d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
+ c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
+ b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
+ a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
+ d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
+ c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
+ b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
+
+ a = safe_add(a, olda);
+ b = safe_add(b, oldb);
+ c = safe_add(c, oldc);
+ d = safe_add(d, oldd);
}
+ return Array(a, b, c, d);
}
- else {
- // in a browser or Rhino
- window.Hashes = Hashes;
- }
- }( this ));
-}()); // IIFE
-
-})(window)
-},{}],2:[function(require,module,exports){
-'use strict';
-
-var hashes = require('jshashes'),
- xtend = require('xtend'),
- sha1 = new hashes.SHA1();
-
-var ohauth = {};
-
-ohauth.qsString = function(obj) {
- return Object.keys(obj).sort().map(function(key) {
- return ohauth.percentEncode(key) + '=' +
- ohauth.percentEncode(obj[key]);
- }).join('&');
-};
-ohauth.stringQs = function(str) {
- return str.split('&').reduce(function(obj, pair){
- var parts = pair.split('=');
- obj[decodeURIComponent(parts[0])] = (null === parts[1]) ?
- '' : decodeURIComponent(parts[1]);
- return obj;
- }, {});
-};
+ /**
+ * These functions implement the four basic operations the algorithm uses.
+ */
+ function md5_cmn(q, a, b, x, s, t) {
+ return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
+ }
+ function md5_ff(a, b, c, d, x, s, t) {
+ return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
+ }
+ function md5_gg(a, b, c, d, x, s, t) {
+ return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
+ }
+ function md5_hh(a, b, c, d, x, s, t) {
+ return md5_cmn(b ^ c ^ d, a, b, x, s, t);
+ }
+ function md5_ii(a, b, c, d, x, s, t) {
+ return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
+ }
+ },
+ /**
+ * @member Hashes
+ * @class Hashes.SHA1
+ * @param {Object} [config]
+ * @constructor
+ *
+ * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined in FIPS 180-1
+ * Version 2.2 Copyright Paul Johnston 2000 - 2009.
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
+ * See http://pajhome.org.uk/crypt/md5 for details.
+ */
+ SHA1 : function (options) {
+ /**
+ * Private config properties. You may need to tweak these to be compatible with
+ * the server-side, but the defaults work in most cases.
+ * See {@link Hashes.MD5#method-setUpperCase} and {@link Hashes.SHA1#method-setUpperCase}
+ */
+ var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase
+ b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', // base-64 pad character. Defaults to '=' for strict RFC compliance
+ utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true; // enable/disable utf8 encoding
-ohauth.rawxhr = function(method, url, data, headers, callback) {
- var xhr = new XMLHttpRequest(),
- twoHundred = /^20\d$/;
- xhr.onreadystatechange = function() {
- if (4 == xhr.readyState && 0 !== xhr.status) {
- if (twoHundred.test(xhr.status)) callback(null, xhr);
- else return callback(xhr, null);
- }
+ // public methods
+ this.hex = function (s) {
+ return rstr2hex(rstr(s, utf8), hexcase);
};
- xhr.onerror = function(e) { return callback(e, null); };
- xhr.open(method, url, true);
- for (var h in headers) xhr.setRequestHeader(h, headers[h]);
- xhr.send(data);
-};
-
-ohauth.xhr = function(method, url, auth, data, options, callback) {
- var headers = (options && options.header) || {
- 'Content-Type': 'application/x-www-form-urlencoded'
+ this.b64 = function (s) {
+ return rstr2b64(rstr(s, utf8), b64pad);
};
- headers.Authorization = 'OAuth ' + ohauth.authHeader(auth);
- ohauth.rawxhr(method, url, data, headers, callback);
-};
-
-ohauth.nonce = function() {
- for (var o = ''; o.length < 6;) {
- o += '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'[Math.floor(Math.random() * 61)];
- }
- return o;
-};
-
-ohauth.authHeader = function(obj) {
- return Object.keys(obj).sort().map(function(key) {
- return encodeURIComponent(key) + '="' + encodeURIComponent(obj[key]) + '"';
- }).join(', ');
-};
-
-ohauth.timestamp = function() { return ~~((+new Date()) / 1000); };
-
-ohauth.percentEncode = function(s) {
- return encodeURIComponent(s)
- .replace(/\!/g, '%21').replace(/\'/g, '%27')
- .replace(/\*/g, '%2A').replace(/\(/g, '%28').replace(/\)/g, '%29');
-};
-
-ohauth.baseString = function(method, url, params) {
- if (params.oauth_signature) delete params.oauth_signature;
- return [
- method,
- ohauth.percentEncode(url),
- ohauth.percentEncode(ohauth.qsString(params))].join('&');
-};
-
-ohauth.signature = function(oauth_secret, token_secret, baseString) {
- return sha1.b64_hmac(
- ohauth.percentEncode(oauth_secret) + '&' +
- ohauth.percentEncode(token_secret),
- baseString);
-};
-
-/**
- * Takes an options object for configuration (consumer_key,
- * consumer_secret, version, signature_method, token) and returns a
- * function that generates the Authorization header for given data.
- *
- * The returned function takes these parameters:
- * - method: GET/POST/...
- * - uri: full URI with protocol, port, path and query string
- * - extra_params: any extra parameters (that are passed in the POST data),
- * can be an object or a from-urlencoded string.
- *
- * Returned function returns full OAuth header with "OAuth" string in it.
- */
-
-ohauth.headerGenerator = function(options) {
- options = options || {};
- var consumer_key = options.consumer_key || '',
- consumer_secret = options.consumer_secret || '',
- signature_method = options.signature_method || 'HMAC-SHA1',
- version = options.version || '1.0',
- token = options.token || '';
-
- return function(method, uri, extra_params) {
- method = method.toUpperCase();
- if (typeof extra_params === 'string' && extra_params.length > 0) {
- extra_params = ohauth.stringQs(extra_params);
- }
-
- var uri_parts = uri.split('?', 2),
- base_uri = uri_parts[0];
-
- var query_params = uri_parts.length === 2 ?
- ohauth.stringQs(uri_parts[1]) : {};
-
- var oauth_params = {
- oauth_consumer_key: consumer_key,
- oauth_signature_method: signature_method,
- oauth_version: version,
- oauth_timestamp: ohauth.timestamp(),
- oauth_nonce: ohauth.nonce()
- };
-
- if (token) oauth_params.oauth_token = token;
-
- var all_params = xtend({}, oauth_params, query_params, extra_params),
- base_str = ohauth.baseString(method, base_uri, all_params);
-
- oauth_params.oauth_signature = ohauth.signature(consumer_secret, token, base_str);
-
- return 'OAuth ' + ohauth.authHeader(oauth_params);
+ this.any = function (s, e) {
+ return rstr2any(rstr(s, utf8), e);
+ };
+ this.hex_hmac = function (k, d) {
+ return rstr2hex(rstr_hmac(k, d));
+ };
+ this.b64_hmac = function (k, d) {
+ return rstr2b64(rstr_hmac(k, d), b64pad);
+ };
+ this.any_hmac = function (k, d, e) {
+ return rstr2any(rstr_hmac(k, d), e);
+ };
+ /**
+ * Perform a simple self-test to see if the VM is working
+ * @return {String} Hexadecimal hash sample
+ * @public
+ */
+ this.vm_test = function () {
+ return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
+ };
+ /**
+ * @description Enable/disable uppercase hexadecimal returned string
+ * @param {boolean}
+ * @return {Object} this
+ * @public
+ */
+ this.setUpperCase = function (a) {
+ if (typeof a === 'boolean') {
+ hexcase = a;
+ }
+ return this;
+ };
+ /**
+ * @description Defines a base64 pad string
+ * @param {string} Pad
+ * @return {Object} this
+ * @public
+ */
+ this.setPad = function (a) {
+ b64pad = a || b64pad;
+ return this;
+ };
+ /**
+ * @description Defines a base64 pad string
+ * @param {boolean}
+ * @return {Object} this
+ * @public
+ */
+ this.setUTF8 = function (a) {
+ if (typeof a === 'boolean') {
+ utf8 = a;
+ }
+ return this;
};
-};
-module.exports = ohauth;
+ // private methods
-},{"jshashes":7,"xtend":4}],6:[function(require,module,exports){
-module.exports = Object.keys || require('./shim');
+ /**
+ * Calculate the SHA-512 of a raw string
+ */
+ function rstr(s) {
+ s = (utf8) ? utf8Encode(s) : s;
+ return binb2rstr(binb(rstr2binb(s), s.length * 8));
+ }
+ /**
+ * Calculate the HMAC-SHA1 of a key and some data (raw strings)
+ */
+ function rstr_hmac(key, data) {
+ var bkey, ipad, opad, i, hash;
+ key = (utf8) ? utf8Encode(key) : key;
+ data = (utf8) ? utf8Encode(data) : data;
+ bkey = rstr2binb(key);
-},{"./shim":8}],8:[function(require,module,exports){
-(function () {
- "use strict";
+ if (bkey.length > 16) {
+ bkey = binb(bkey, key.length * 8);
+ }
+ ipad = Array(16), opad = Array(16);
+ for (i = 0; i < 16; i+=1) {
+ ipad[i] = bkey[i] ^ 0x36363636;
+ opad[i] = bkey[i] ^ 0x5C5C5C5C;
+ }
+ hash = binb(ipad.concat(rstr2binb(data)), 512 + data.length * 8);
+ return binb2rstr(binb(opad.concat(hash), 512 + 160));
+ }
- // modified from https://github.com/kriskowal/es5-shim
- var has = Object.prototype.hasOwnProperty,
- is = require('is'),
- forEach = require('foreach'),
- hasDontEnumBug = !({'toString': null}).propertyIsEnumerable('toString'),
- dontEnums = [
- "toString",
- "toLocaleString",
- "valueOf",
- "hasOwnProperty",
- "isPrototypeOf",
- "propertyIsEnumerable",
- "constructor"
- ],
- keysShim;
+ /**
+ * Calculate the SHA-1 of an array of big-endian words, and a bit length
+ */
+ function binb(x, len) {
+ var i, j, t, olda, oldb, oldc, oldd, olde,
+ w = Array(80),
+ a = 1732584193,
+ b = -271733879,
+ c = -1732584194,
+ d = 271733878,
+ e = -1009589776;
- keysShim = function keys(object) {
- if (!is.object(object) && !is.array(object)) {
- throw new TypeError("Object.keys called on a non-object");
- }
+ /* append padding */
+ x[len >> 5] |= 0x80 << (24 - len % 32);
+ x[((len + 64 >> 9) << 4) + 15] = len;
- var name, theKeys = [];
- for (name in object) {
- if (has.call(object, name)) {
- theKeys.push(name);
- }
- }
+ for (i = 0; i < x.length; i += 16) {
+ olda = a,
+ oldb = b;
+ oldc = c;
+ oldd = d;
+ olde = e;
+
+ for (j = 0; j < 80; j+=1) {
+ if (j < 16) {
+ w[j] = x[i + j];
+ } else {
+ w[j] = bit_rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1);
+ }
+ t = safe_add(safe_add(bit_rol(a, 5), sha1_ft(j, b, c, d)),
+ safe_add(safe_add(e, w[j]), sha1_kt(j)));
+ e = d;
+ d = c;
+ c = bit_rol(b, 30);
+ b = a;
+ a = t;
+ }
- if (hasDontEnumBug) {
- forEach(dontEnums, function (dontEnum) {
- if (has.call(object, dontEnum)) {
- theKeys.push(dontEnum);
- }
- });
- }
- return theKeys;
- };
+ a = safe_add(a, olda);
+ b = safe_add(b, oldb);
+ c = safe_add(c, oldc);
+ d = safe_add(d, oldd);
+ e = safe_add(e, olde);
+ }
+ return Array(a, b, c, d, e);
+ }
- module.exports = keysShim;
-}());
+ /**
+ * Perform the appropriate triplet combination function for the current
+ * iteration
+ */
+ function sha1_ft(t, b, c, d) {
+ if (t < 20) { return (b & c) | ((~b) & d); }
+ if (t < 40) { return b ^ c ^ d; }
+ if (t < 60) { return (b & c) | (b & d) | (c & d); }
+ return b ^ c ^ d;
+ }
+ /**
+ * Determine the appropriate additive constant for the current iteration
+ */
+ function sha1_kt(t) {
+ return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 :
+ (t < 60) ? -1894007588 : -899497514;
+ }
+ },
+ /**
+ * @class Hashes.SHA256
+ * @param {config}
+ *
+ * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined in FIPS 180-2
+ * Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009.
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
+ * See http://pajhome.org.uk/crypt/md5 for details.
+ * Also http://anmar.eu.org/projects/jssha2/
+ */
+ SHA256 : function (options) {
+ /**
+ * Private properties configuration variables. You may need to tweak these to be compatible with
+ * the server-side, but the defaults work in most cases.
+ * @see this.setUpperCase() method
+ * @see this.setPad() method
+ */
+ var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase */
+ b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */
+ utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */
+ sha256_K;
-},{"is":9,"foreach":10}],9:[function(require,module,exports){
+ /* privileged (public) methods */
+ this.hex = function (s) {
+ return rstr2hex(rstr(s, utf8));
+ };
+ this.b64 = function (s) {
+ return rstr2b64(rstr(s, utf8), b64pad);
+ };
+ this.any = function (s, e) {
+ return rstr2any(rstr(s, utf8), e);
+ };
+ this.hex_hmac = function (k, d) {
+ return rstr2hex(rstr_hmac(k, d));
+ };
+ this.b64_hmac = function (k, d) {
+ return rstr2b64(rstr_hmac(k, d), b64pad);
+ };
+ this.any_hmac = function (k, d, e) {
+ return rstr2any(rstr_hmac(k, d), e);
+ };
+ /**
+ * Perform a simple self-test to see if the VM is working
+ * @return {String} Hexadecimal hash sample
+ * @public
+ */
+ this.vm_test = function () {
+ return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
+ };
+ /**
+ * Enable/disable uppercase hexadecimal returned string
+ * @param {boolean}
+ * @return {Object} this
+ * @public
+ */
+ this.setUpperCase = function (a) {
+ if (typeof a === 'boolean') {
+ hexcase = a;
+ }
+ return this;
+ };
+ /**
+ * @description Defines a base64 pad string
+ * @param {string} Pad
+ * @return {Object} this
+ * @public
+ */
+ this.setPad = function (a) {
+ b64pad = a || b64pad;
+ return this;
+ };
+ /**
+ * Defines a base64 pad string
+ * @param {boolean}
+ * @return {Object} this
+ * @public
+ */
+ this.setUTF8 = function (a) {
+ if (typeof a === 'boolean') {
+ utf8 = a;
+ }
+ return this;
+ };
+
+ // private methods
-/**!
- * is
- * the definitive JavaScript type testing library
- *
- * @copyright 2013 Enrico Marino
- * @license MIT
- */
+ /**
+ * Calculate the SHA-512 of a raw string
+ */
+ function rstr(s, utf8) {
+ s = (utf8) ? utf8Encode(s) : s;
+ return binb2rstr(binb(rstr2binb(s), s.length * 8));
+ }
-var objProto = Object.prototype;
-var owns = objProto.hasOwnProperty;
-var toString = objProto.toString;
-var isActualNaN = function (value) {
- return value !== value;
-};
-var NON_HOST_TYPES = {
- "boolean": 1,
- "number": 1,
- "string": 1,
- "undefined": 1
-};
+ /**
+ * Calculate the HMAC-sha256 of a key and some data (raw strings)
+ */
+ function rstr_hmac(key, data) {
+ key = (utf8) ? utf8Encode(key) : key;
+ data = (utf8) ? utf8Encode(data) : data;
+ var hash, i = 0,
+ bkey = rstr2binb(key),
+ ipad = Array(16),
+ opad = Array(16);
-/**
- * Expose `is`
- */
-
-var is = module.exports = {};
-
-/**
- * Test general.
- */
-
-/**
- * is.type
- * Test if `value` is a type of `type`.
- *
- * @param {Mixed} value value to test
- * @param {String} type type
- * @return {Boolean} true if `value` is a type of `type`, false otherwise
- * @api public
- */
-
-is.a =
-is.type = function (value, type) {
- return typeof value === type;
-};
-
-/**
- * is.defined
- * Test if `value` is defined.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if 'value' is defined, false otherwise
- * @api public
- */
-
-is.defined = function (value) {
- return value !== undefined;
-};
-
-/**
- * is.empty
- * Test if `value` is empty.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is empty, false otherwise
- * @api public
- */
-
-is.empty = function (value) {
- var type = toString.call(value);
- var key;
-
- if ('[object Array]' === type || '[object Arguments]' === type) {
- return value.length === 0;
- }
-
- if ('[object Object]' === type) {
- for (key in value) if (owns.call(value, key)) return false;
- return true;
- }
-
- if ('[object String]' === type) {
- return '' === value;
- }
-
- return false;
-};
-
-/**
- * is.equal
- * Test if `value` is equal to `other`.
- *
- * @param {Mixed} value value to test
- * @param {Mixed} other value to compare with
- * @return {Boolean} true if `value` is equal to `other`, false otherwise
- */
-
-is.equal = function (value, other) {
- var type = toString.call(value)
- var key;
-
- if (type !== toString.call(other)) {
- return false;
- }
-
- if ('[object Object]' === type) {
- for (key in value) {
- if (!is.equal(value[key], other[key])) {
- return false;
+ if (bkey.length > 16) { bkey = binb(bkey, key.length * 8); }
+
+ for (; i < 16; i+=1) {
+ ipad[i] = bkey[i] ^ 0x36363636;
+ opad[i] = bkey[i] ^ 0x5C5C5C5C;
}
+
+ hash = binb(ipad.concat(rstr2binb(data)), 512 + data.length * 8);
+ return binb2rstr(binb(opad.concat(hash), 512 + 256));
}
- return true;
- }
-
- if ('[object Array]' === type) {
- key = value.length;
- if (key !== other.length) {
- return false;
- }
- while (--key) {
- if (!is.equal(value[key], other[key])) {
- return false;
+
+ /*
+ * Main sha256 function, with its support functions
+ */
+ function sha256_S (X, n) {return ( X >>> n ) | (X << (32 - n));}
+ function sha256_R (X, n) {return ( X >>> n );}
+ function sha256_Ch(x, y, z) {return ((x & y) ^ ((~x) & z));}
+ function sha256_Maj(x, y, z) {return ((x & y) ^ (x & z) ^ (y & z));}
+ function sha256_Sigma0256(x) {return (sha256_S(x, 2) ^ sha256_S(x, 13) ^ sha256_S(x, 22));}
+ function sha256_Sigma1256(x) {return (sha256_S(x, 6) ^ sha256_S(x, 11) ^ sha256_S(x, 25));}
+ function sha256_Gamma0256(x) {return (sha256_S(x, 7) ^ sha256_S(x, 18) ^ sha256_R(x, 3));}
+ function sha256_Gamma1256(x) {return (sha256_S(x, 17) ^ sha256_S(x, 19) ^ sha256_R(x, 10));}
+ function sha256_Sigma0512(x) {return (sha256_S(x, 28) ^ sha256_S(x, 34) ^ sha256_S(x, 39));}
+ function sha256_Sigma1512(x) {return (sha256_S(x, 14) ^ sha256_S(x, 18) ^ sha256_S(x, 41));}
+ function sha256_Gamma0512(x) {return (sha256_S(x, 1) ^ sha256_S(x, 8) ^ sha256_R(x, 7));}
+ function sha256_Gamma1512(x) {return (sha256_S(x, 19) ^ sha256_S(x, 61) ^ sha256_R(x, 6));}
+
+ sha256_K = [
+ 1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993,
+ -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987,
+ 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522,
+ 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986,
+ -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585,
+ 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291,
+ 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885,
+ -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344,
+ 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218,
+ 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872,
+ -1866530822, -1538233109, -1090935817, -965641998
+ ];
+
+ function binb(m, l) {
+ var HASH = [1779033703, -1150833019, 1013904242, -1521486534,
+ 1359893119, -1694144372, 528734635, 1541459225];
+ var W = new Array(64);
+ var a, b, c, d, e, f, g, h;
+ var i, j, T1, T2;
+
+ /* append padding */
+ m[l >> 5] |= 0x80 << (24 - l % 32);
+ m[((l + 64 >> 9) << 4) + 15] = l;
+
+ for (i = 0; i < m.length; i += 16)
+ {
+ a = HASH[0];
+ b = HASH[1];
+ c = HASH[2];
+ d = HASH[3];
+ e = HASH[4];
+ f = HASH[5];
+ g = HASH[6];
+ h = HASH[7];
+
+ for (j = 0; j < 64; j+=1)
+ {
+ if (j < 16) {
+ W[j] = m[j + i];
+ } else {
+ W[j] = safe_add(safe_add(safe_add(sha256_Gamma1256(W[j - 2]), W[j - 7]),
+ sha256_Gamma0256(W[j - 15])), W[j - 16]);
+ }
+
+ T1 = safe_add(safe_add(safe_add(safe_add(h, sha256_Sigma1256(e)), sha256_Ch(e, f, g)),
+ sha256_K[j]), W[j]);
+ T2 = safe_add(sha256_Sigma0256(a), sha256_Maj(a, b, c));
+ h = g;
+ g = f;
+ f = e;
+ e = safe_add(d, T1);
+ d = c;
+ c = b;
+ b = a;
+ a = safe_add(T1, T2);
+ }
+
+ HASH[0] = safe_add(a, HASH[0]);
+ HASH[1] = safe_add(b, HASH[1]);
+ HASH[2] = safe_add(c, HASH[2]);
+ HASH[3] = safe_add(d, HASH[3]);
+ HASH[4] = safe_add(e, HASH[4]);
+ HASH[5] = safe_add(f, HASH[5]);
+ HASH[6] = safe_add(g, HASH[6]);
+ HASH[7] = safe_add(h, HASH[7]);
}
+ return HASH;
}
- return true;
- }
-
- if ('[object Function]' === type) {
- return value.prototype === other.prototype;
- }
-
- if ('[object Date]' === type) {
- return value.getTime() === other.getTime();
- }
-
- return value === other;
-};
-
-/**
- * is.hosted
- * Test if `value` is hosted by `host`.
- *
- * @param {Mixed} value to test
- * @param {Mixed} host host to test with
- * @return {Boolean} true if `value` is hosted by `host`, false otherwise
- * @api public
- */
-
-is.hosted = function (value, host) {
- var type = typeof host[value];
- return type === 'object' ? !!host[value] : !NON_HOST_TYPES[type];
-};
-
-/**
- * is.instance
- * Test if `value` is an instance of `constructor`.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an instance of `constructor`
- * @api public
- */
-
-is.instance = is['instanceof'] = function (value, constructor) {
- return value instanceof constructor;
-};
-
-/**
- * is.null
- * Test if `value` is null.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is null, false otherwise
- * @api public
- */
-
-is['null'] = function (value) {
- return value === null;
-};
-
-/**
- * is.undefined
- * Test if `value` is undefined.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is undefined, false otherwise
- * @api public
- */
-
-is.undefined = function (value) {
- return value === undefined;
-};
-/**
- * Test arguments.
- */
-
-/**
- * is.arguments
- * Test if `value` is an arguments object.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an arguments object, false otherwise
- * @api public
- */
-
-is.arguments = function (value) {
- var isStandardArguments = '[object Arguments]' === toString.call(value);
- var isOldArguments = !is.array(value) && is.arraylike(value) && is.object(value) && is.fn(value.callee);
- return isStandardArguments || isOldArguments;
-};
-
-/**
- * Test array.
- */
-
-/**
- * is.array
- * Test if 'value' is an array.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an array, false otherwise
- * @api public
- */
-
-is.array = function (value) {
- return '[object Array]' === toString.call(value);
-};
-
-/**
- * is.arguments.empty
- * Test if `value` is an empty arguments object.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an empty arguments object, false otherwise
- * @api public
- */
-is.arguments.empty = function (value) {
- return is.arguments(value) && value.length === 0;
-};
-
-/**
- * is.array.empty
- * Test if `value` is an empty array.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an empty array, false otherwise
- * @api public
- */
-is.array.empty = function (value) {
- return is.array(value) && value.length === 0;
-};
-
-/**
- * is.arraylike
- * Test if `value` is an arraylike object.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an arguments object, false otherwise
- * @api public
- */
-
-is.arraylike = function (value) {
- return !!value && !is.boolean(value)
- && owns.call(value, 'length')
- && isFinite(value.length)
- && is.number(value.length)
- && value.length >= 0;
-};
-
-/**
- * Test boolean.
- */
+ },
-/**
- * is.boolean
- * Test if `value` is a boolean.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is a boolean, false otherwise
- * @api public
- */
+ /**
+ * @class Hashes.SHA512
+ * @param {config}
+ *
+ * A JavaScript implementation of the Secure Hash Algorithm, SHA-512, as defined in FIPS 180-2
+ * Version 2.2 Copyright Anonymous Contributor, Paul Johnston 2000 - 2009.
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
+ * See http://pajhome.org.uk/crypt/md5 for details.
+ */
+ SHA512 : function (options) {
+ /**
+ * Private properties configuration variables. You may need to tweak these to be compatible with
+ * the server-side, but the defaults work in most cases.
+ * @see this.setUpperCase() method
+ * @see this.setPad() method
+ */
+ var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false , /* hexadecimal output case format. false - lowercase; true - uppercase */
+ b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */
+ utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */
+ sha512_k;
-is.boolean = function (value) {
- return '[object Boolean]' === toString.call(value);
-};
+ /* privileged (public) methods */
+ this.hex = function (s) {
+ return rstr2hex(rstr(s));
+ };
+ this.b64 = function (s) {
+ return rstr2b64(rstr(s), b64pad);
+ };
+ this.any = function (s, e) {
+ return rstr2any(rstr(s), e);
+ };
+ this.hex_hmac = function (k, d) {
+ return rstr2hex(rstr_hmac(k, d));
+ };
+ this.b64_hmac = function (k, d) {
+ return rstr2b64(rstr_hmac(k, d), b64pad);
+ };
+ this.any_hmac = function (k, d, e) {
+ return rstr2any(rstr_hmac(k, d), e);
+ };
+ /**
+ * Perform a simple self-test to see if the VM is working
+ * @return {String} Hexadecimal hash sample
+ * @public
+ */
+ this.vm_test = function () {
+ return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
+ };
+ /**
+ * @description Enable/disable uppercase hexadecimal returned string
+ * @param {boolean}
+ * @return {Object} this
+ * @public
+ */
+ this.setUpperCase = function (a) {
+ if (typeof a === 'boolean') {
+ hexcase = a;
+ }
+ return this;
+ };
+ /**
+ * @description Defines a base64 pad string
+ * @param {string} Pad
+ * @return {Object} this
+ * @public
+ */
+ this.setPad = function (a) {
+ b64pad = a || b64pad;
+ return this;
+ };
+ /**
+ * @description Defines a base64 pad string
+ * @param {boolean}
+ * @return {Object} this
+ * @public
+ */
+ this.setUTF8 = function (a) {
+ if (typeof a === 'boolean') {
+ utf8 = a;
+ }
+ return this;
+ };
-/**
- * is.false
- * Test if `value` is false.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is false, false otherwise
- * @api public
- */
+ /* private methods */
+
+ /**
+ * Calculate the SHA-512 of a raw string
+ */
+ function rstr(s) {
+ s = (utf8) ? utf8Encode(s) : s;
+ return binb2rstr(binb(rstr2binb(s), s.length * 8));
+ }
+ /*
+ * Calculate the HMAC-SHA-512 of a key and some data (raw strings)
+ */
+ function rstr_hmac(key, data) {
+ key = (utf8) ? utf8Encode(key) : key;
+ data = (utf8) ? utf8Encode(data) : data;
+
+ var hash, i = 0,
+ bkey = rstr2binb(key),
+ ipad = Array(32), opad = Array(32);
-is['false'] = function (value) {
- return is.boolean(value) && (value === false || value.valueOf() === false);
-};
+ if (bkey.length > 32) { bkey = binb(bkey, key.length * 8); }
+
+ for (; i < 32; i+=1) {
+ ipad[i] = bkey[i] ^ 0x36363636;
+ opad[i] = bkey[i] ^ 0x5C5C5C5C;
+ }
+
+ hash = binb(ipad.concat(rstr2binb(data)), 1024 + data.length * 8);
+ return binb2rstr(binb(opad.concat(hash), 1024 + 512));
+ }
+
+ /**
+ * Calculate the SHA-512 of an array of big-endian dwords, and a bit length
+ */
+ function binb(x, len) {
+ var j, i, l,
+ W = new Array(80),
+ hash = new Array(16),
+ //Initial hash values
+ H = [
+ new int64(0x6a09e667, -205731576),
+ new int64(-1150833019, -2067093701),
+ new int64(0x3c6ef372, -23791573),
+ new int64(-1521486534, 0x5f1d36f1),
+ new int64(0x510e527f, -1377402159),
+ new int64(-1694144372, 0x2b3e6c1f),
+ new int64(0x1f83d9ab, -79577749),
+ new int64(0x5be0cd19, 0x137e2179)
+ ],
+ T1 = new int64(0, 0),
+ T2 = new int64(0, 0),
+ a = new int64(0,0),
+ b = new int64(0,0),
+ c = new int64(0,0),
+ d = new int64(0,0),
+ e = new int64(0,0),
+ f = new int64(0,0),
+ g = new int64(0,0),
+ h = new int64(0,0),
+ //Temporary variables not specified by the document
+ s0 = new int64(0, 0),
+ s1 = new int64(0, 0),
+ Ch = new int64(0, 0),
+ Maj = new int64(0, 0),
+ r1 = new int64(0, 0),
+ r2 = new int64(0, 0),
+ r3 = new int64(0, 0);
-/**
- * is.true
- * Test if `value` is true.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is true, false otherwise
- * @api public
- */
-
-is['true'] = function (value) {
- return is.boolean(value) && (value === true || value.valueOf() === true);
-};
+ if (sha512_k === undefined) {
+ //SHA512 constants
+ sha512_k = [
+ new int64(0x428a2f98, -685199838), new int64(0x71374491, 0x23ef65cd),
+ new int64(-1245643825, -330482897), new int64(-373957723, -2121671748),
+ new int64(0x3956c25b, -213338824), new int64(0x59f111f1, -1241133031),
+ new int64(-1841331548, -1357295717), new int64(-1424204075, -630357736),
+ new int64(-670586216, -1560083902), new int64(0x12835b01, 0x45706fbe),
+ new int64(0x243185be, 0x4ee4b28c), new int64(0x550c7dc3, -704662302),
+ new int64(0x72be5d74, -226784913), new int64(-2132889090, 0x3b1696b1),
+ new int64(-1680079193, 0x25c71235), new int64(-1046744716, -815192428),
+ new int64(-459576895, -1628353838), new int64(-272742522, 0x384f25e3),
+ new int64(0xfc19dc6, -1953704523), new int64(0x240ca1cc, 0x77ac9c65),
+ new int64(0x2de92c6f, 0x592b0275), new int64(0x4a7484aa, 0x6ea6e483),
+ new int64(0x5cb0a9dc, -1119749164), new int64(0x76f988da, -2096016459),
+ new int64(-1740746414, -295247957), new int64(-1473132947, 0x2db43210),
+ new int64(-1341970488, -1728372417), new int64(-1084653625, -1091629340),
+ new int64(-958395405, 0x3da88fc2), new int64(-710438585, -1828018395),
+ new int64(0x6ca6351, -536640913), new int64(0x14292967, 0xa0e6e70),
+ new int64(0x27b70a85, 0x46d22ffc), new int64(0x2e1b2138, 0x5c26c926),
+ new int64(0x4d2c6dfc, 0x5ac42aed), new int64(0x53380d13, -1651133473),
+ new int64(0x650a7354, -1951439906), new int64(0x766a0abb, 0x3c77b2a8),
+ new int64(-2117940946, 0x47edaee6), new int64(-1838011259, 0x1482353b),
+ new int64(-1564481375, 0x4cf10364), new int64(-1474664885, -1136513023),
+ new int64(-1035236496, -789014639), new int64(-949202525, 0x654be30),
+ new int64(-778901479, -688958952), new int64(-694614492, 0x5565a910),
+ new int64(-200395387, 0x5771202a), new int64(0x106aa070, 0x32bbd1b8),
+ new int64(0x19a4c116, -1194143544), new int64(0x1e376c08, 0x5141ab53),
+ new int64(0x2748774c, -544281703), new int64(0x34b0bcb5, -509917016),
+ new int64(0x391c0cb3, -976659869), new int64(0x4ed8aa4a, -482243893),
+ new int64(0x5b9cca4f, 0x7763e373), new int64(0x682e6ff3, -692930397),
+ new int64(0x748f82ee, 0x5defb2fc), new int64(0x78a5636f, 0x43172f60),
+ new int64(-2067236844, -1578062990), new int64(-1933114872, 0x1a6439ec),
+ new int64(-1866530822, 0x23631e28), new int64(-1538233109, -561857047),
+ new int64(-1090935817, -1295615723), new int64(-965641998, -479046869),
+ new int64(-903397682, -366583396), new int64(-779700025, 0x21c0c207),
+ new int64(-354779690, -840897762), new int64(-176337025, -294727304),
+ new int64(0x6f067aa, 0x72176fba), new int64(0xa637dc5, -1563912026),
+ new int64(0x113f9804, -1090974290), new int64(0x1b710b35, 0x131c471b),
+ new int64(0x28db77f5, 0x23047d84), new int64(0x32caab7b, 0x40c72493),
+ new int64(0x3c9ebe0a, 0x15c9bebc), new int64(0x431d67c4, -1676669620),
+ new int64(0x4cc5d4be, -885112138), new int64(0x597f299c, -60457430),
+ new int64(0x5fcb6fab, 0x3ad6faec), new int64(0x6c44198c, 0x4a475817)
+ ];
+ }
+
+ for (i=0; i<80; i+=1) {
+ W[i] = new int64(0, 0);
+ }
+
+ // append padding to the source string. The format is described in the FIPS.
+ x[len >> 5] |= 0x80 << (24 - (len & 0x1f));
+ x[((len + 128 >> 10)<< 5) + 31] = len;
+ l = x.length;
+ for (i = 0; i<l; i+=32) { //32 dwords is the block size
+ int64copy(a, H[0]);
+ int64copy(b, H[1]);
+ int64copy(c, H[2]);
+ int64copy(d, H[3]);
+ int64copy(e, H[4]);
+ int64copy(f, H[5]);
+ int64copy(g, H[6]);
+ int64copy(h, H[7]);
+
+ for (j=0; j<16; j+=1) {
+ W[j].h = x[i + 2*j];
+ W[j].l = x[i + 2*j + 1];
+ }
+
+ for (j=16; j<80; j+=1) {
+ //sigma1
+ int64rrot(r1, W[j-2], 19);
+ int64revrrot(r2, W[j-2], 29);
+ int64shr(r3, W[j-2], 6);
+ s1.l = r1.l ^ r2.l ^ r3.l;
+ s1.h = r1.h ^ r2.h ^ r3.h;
+ //sigma0
+ int64rrot(r1, W[j-15], 1);
+ int64rrot(r2, W[j-15], 8);
+ int64shr(r3, W[j-15], 7);
+ s0.l = r1.l ^ r2.l ^ r3.l;
+ s0.h = r1.h ^ r2.h ^ r3.h;
+
+ int64add4(W[j], s1, W[j-7], s0, W[j-16]);
+ }
+
+ for (j = 0; j < 80; j+=1) {
+ //Ch
+ Ch.l = (e.l & f.l) ^ (~e.l & g.l);
+ Ch.h = (e.h & f.h) ^ (~e.h & g.h);
+
+ //Sigma1
+ int64rrot(r1, e, 14);
+ int64rrot(r2, e, 18);
+ int64revrrot(r3, e, 9);
+ s1.l = r1.l ^ r2.l ^ r3.l;
+ s1.h = r1.h ^ r2.h ^ r3.h;
+
+ //Sigma0
+ int64rrot(r1, a, 28);
+ int64revrrot(r2, a, 2);
+ int64revrrot(r3, a, 7);
+ s0.l = r1.l ^ r2.l ^ r3.l;
+ s0.h = r1.h ^ r2.h ^ r3.h;
+
+ //Maj
+ Maj.l = (a.l & b.l) ^ (a.l & c.l) ^ (b.l & c.l);
+ Maj.h = (a.h & b.h) ^ (a.h & c.h) ^ (b.h & c.h);
+
+ int64add5(T1, h, s1, Ch, sha512_k[j], W[j]);
+ int64add(T2, s0, Maj);
+
+ int64copy(h, g);
+ int64copy(g, f);
+ int64copy(f, e);
+ int64add(e, d, T1);
+ int64copy(d, c);
+ int64copy(c, b);
+ int64copy(b, a);
+ int64add(a, T1, T2);
+ }
+ int64add(H[0], H[0], a);
+ int64add(H[1], H[1], b);
+ int64add(H[2], H[2], c);
+ int64add(H[3], H[3], d);
+ int64add(H[4], H[4], e);
+ int64add(H[5], H[5], f);
+ int64add(H[6], H[6], g);
+ int64add(H[7], H[7], h);
+ }
+
+ //represent the hash as an array of 32-bit dwords
+ for (i=0; i<8; i+=1) {
+ hash[2*i] = H[i].h;
+ hash[2*i + 1] = H[i].l;
+ }
+ return hash;
+ }
+
+ //A constructor for 64-bit numbers
+ function int64(h, l) {
+ this.h = h;
+ this.l = l;
+ //this.toString = int64toString;
+ }
+
+ //Copies src into dst, assuming both are 64-bit numbers
+ function int64copy(dst, src) {
+ dst.h = src.h;
+ dst.l = src.l;
+ }
+
+ //Right-rotates a 64-bit number by shift
+ //Won't handle cases of shift>=32
+ //The function revrrot() is for that
+ function int64rrot(dst, x, shift) {
+ dst.l = (x.l >>> shift) | (x.h << (32-shift));
+ dst.h = (x.h >>> shift) | (x.l << (32-shift));
+ }
+
+ //Reverses the dwords of the source and then rotates right by shift.
+ //This is equivalent to rotation by 32+shift
+ function int64revrrot(dst, x, shift) {
+ dst.l = (x.h >>> shift) | (x.l << (32-shift));
+ dst.h = (x.l >>> shift) | (x.h << (32-shift));
+ }
+
+ //Bitwise-shifts right a 64-bit number by shift
+ //Won't handle shift>=32, but it's never needed in SHA512
+ function int64shr(dst, x, shift) {
+ dst.l = (x.l >>> shift) | (x.h << (32-shift));
+ dst.h = (x.h >>> shift);
+ }
+
+ //Adds two 64-bit numbers
+ //Like the original implementation, does not rely on 32-bit operations
+ function int64add(dst, x, y) {
+ var w0 = (x.l & 0xffff) + (y.l & 0xffff);
+ var w1 = (x.l >>> 16) + (y.l >>> 16) + (w0 >>> 16);
+ var w2 = (x.h & 0xffff) + (y.h & 0xffff) + (w1 >>> 16);
+ var w3 = (x.h >>> 16) + (y.h >>> 16) + (w2 >>> 16);
+ dst.l = (w0 & 0xffff) | (w1 << 16);
+ dst.h = (w2 & 0xffff) | (w3 << 16);
+ }
+
+ //Same, except with 4 addends. Works faster than adding them one by one.
+ function int64add4(dst, a, b, c, d) {
+ var w0 = (a.l & 0xffff) + (b.l & 0xffff) + (c.l & 0xffff) + (d.l & 0xffff);
+ var w1 = (a.l >>> 16) + (b.l >>> 16) + (c.l >>> 16) + (d.l >>> 16) + (w0 >>> 16);
+ var w2 = (a.h & 0xffff) + (b.h & 0xffff) + (c.h & 0xffff) + (d.h & 0xffff) + (w1 >>> 16);
+ var w3 = (a.h >>> 16) + (b.h >>> 16) + (c.h >>> 16) + (d.h >>> 16) + (w2 >>> 16);
+ dst.l = (w0 & 0xffff) | (w1 << 16);
+ dst.h = (w2 & 0xffff) | (w3 << 16);
+ }
+
+ //Same, except with 5 addends
+ function int64add5(dst, a, b, c, d, e) {
+ var w0 = (a.l & 0xffff) + (b.l & 0xffff) + (c.l & 0xffff) + (d.l & 0xffff) + (e.l & 0xffff),
+ w1 = (a.l >>> 16) + (b.l >>> 16) + (c.l >>> 16) + (d.l >>> 16) + (e.l >>> 16) + (w0 >>> 16),
+ w2 = (a.h & 0xffff) + (b.h & 0xffff) + (c.h & 0xffff) + (d.h & 0xffff) + (e.h & 0xffff) + (w1 >>> 16),
+ w3 = (a.h >>> 16) + (b.h >>> 16) + (c.h >>> 16) + (d.h >>> 16) + (e.h >>> 16) + (w2 >>> 16);
+ dst.l = (w0 & 0xffff) | (w1 << 16);
+ dst.h = (w2 & 0xffff) | (w3 << 16);
+ }
+ },
+ /**
+ * @class Hashes.RMD160
+ * @constructor
+ * @param {Object} [config]
+ *
+ * A JavaScript implementation of the RIPEMD-160 Algorithm
+ * Version 2.2 Copyright Jeremy Lin, Paul Johnston 2000 - 2009.
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
+ * See http://pajhome.org.uk/crypt/md5 for details.
+ * Also http://www.ocf.berkeley.edu/~jjlin/jsotp/
+ */
+ RMD160 : function (options) {
+ /**
+ * Private properties configuration variables. You may need to tweak these to be compatible with
+ * the server-side, but the defaults work in most cases.
+ * @see this.setUpperCase() method
+ * @see this.setPad() method
+ */
+ var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, /* hexadecimal output case format. false - lowercase; true - uppercase */
+ b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */
+ utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */
+ rmd160_r1 = [
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
+ 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
+ 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
+ 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13
+ ],
+ rmd160_r2 = [
+ 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
+ 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
+ 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
+ 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
+ 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11
+ ],
+ rmd160_s1 = [
+ 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
+ 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
+ 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
+ 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
+ 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6
+ ],
+ rmd160_s2 = [
+ 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
+ 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
+ 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
+ 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
+ 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
+ ];
-/**
- * Test date.
- */
+ /* privileged (public) methods */
+ this.hex = function (s) {
+ return rstr2hex(rstr(s, utf8));
+ };
+ this.b64 = function (s) {
+ return rstr2b64(rstr(s, utf8), b64pad);
+ };
+ this.any = function (s, e) {
+ return rstr2any(rstr(s, utf8), e);
+ };
+ this.hex_hmac = function (k, d) {
+ return rstr2hex(rstr_hmac(k, d));
+ };
+ this.b64_hmac = function (k, d) {
+ return rstr2b64(rstr_hmac(k, d), b64pad);
+ };
+ this.any_hmac = function (k, d, e) {
+ return rstr2any(rstr_hmac(k, d), e);
+ };
+ /**
+ * Perform a simple self-test to see if the VM is working
+ * @return {String} Hexadecimal hash sample
+ * @public
+ */
+ this.vm_test = function () {
+ return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72';
+ };
+ /**
+ * @description Enable/disable uppercase hexadecimal returned string
+ * @param {boolean}
+ * @return {Object} this
+ * @public
+ */
+ this.setUpperCase = function (a) {
+ if (typeof a === 'boolean' ) { hexcase = a; }
+ return this;
+ };
+ /**
+ * @description Defines a base64 pad string
+ * @param {string} Pad
+ * @return {Object} this
+ * @public
+ */
+ this.setPad = function (a) {
+ if (typeof a !== 'undefined' ) { b64pad = a; }
+ return this;
+ };
+ /**
+ * @description Defines a base64 pad string
+ * @param {boolean}
+ * @return {Object} this
+ * @public
+ */
+ this.setUTF8 = function (a) {
+ if (typeof a === 'boolean') { utf8 = a; }
+ return this;
+ };
-/**
- * is.date
- * Test if `value` is a date.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is a date, false otherwise
- * @api public
- */
+ /* private methods */
-is.date = function (value) {
- return '[object Date]' === toString.call(value);
-};
+ /**
+ * Calculate the rmd160 of a raw string
+ */
+ function rstr(s) {
+ s = (utf8) ? utf8Encode(s) : s;
+ return binl2rstr(binl(rstr2binl(s), s.length * 8));
+ }
-/**
- * Test element.
- */
+ /**
+ * Calculate the HMAC-rmd160 of a key and some data (raw strings)
+ */
+ function rstr_hmac(key, data) {
+ key = (utf8) ? utf8Encode(key) : key;
+ data = (utf8) ? utf8Encode(data) : data;
+ var i, hash,
+ bkey = rstr2binl(key),
+ ipad = Array(16), opad = Array(16);
-/**
- * is.element
- * Test if `value` is an html element.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an HTML Element, false otherwise
- * @api public
- */
+ if (bkey.length > 16) {
+ bkey = binl(bkey, key.length * 8);
+ }
+
+ for (i = 0; i < 16; i+=1) {
+ ipad[i] = bkey[i] ^ 0x36363636;
+ opad[i] = bkey[i] ^ 0x5C5C5C5C;
+ }
+ hash = binl(ipad.concat(rstr2binl(data)), 512 + data.length * 8);
+ return binl2rstr(binl(opad.concat(hash), 512 + 160));
+ }
-is.element = function (value) {
- return value !== undefined
- && typeof HTMLElement !== 'undefined'
- && value instanceof HTMLElement
- && value.nodeType === 1;
-};
+ /**
+ * Convert an array of little-endian words to a string
+ */
+ function binl2rstr(input) {
+ var i, output = '', l = input.length * 32;
+ for (i = 0; i < l; i += 8) {
+ output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF);
+ }
+ return output;
+ }
-/**
- * Test error.
- */
+ /**
+ * Calculate the RIPE-MD160 of an array of little-endian words, and a bit length.
+ */
+ function binl(x, len) {
+ var T, j, i, l,
+ h0 = 0x67452301,
+ h1 = 0xefcdab89,
+ h2 = 0x98badcfe,
+ h3 = 0x10325476,
+ h4 = 0xc3d2e1f0,
+ A1, B1, C1, D1, E1,
+ A2, B2, C2, D2, E2;
-/**
- * is.error
- * Test if `value` is an error object.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an error object, false otherwise
- * @api public
- */
+ /* append padding */
+ x[len >> 5] |= 0x80 << (len % 32);
+ x[(((len + 64) >>> 9) << 4) + 14] = len;
+ l = x.length;
+
+ for (i = 0; i < l; i+=16) {
+ A1 = A2 = h0; B1 = B2 = h1; C1 = C2 = h2; D1 = D2 = h3; E1 = E2 = h4;
+ for (j = 0; j <= 79; j+=1) {
+ T = safe_add(A1, rmd160_f(j, B1, C1, D1));
+ T = safe_add(T, x[i + rmd160_r1[j]]);
+ T = safe_add(T, rmd160_K1(j));
+ T = safe_add(bit_rol(T, rmd160_s1[j]), E1);
+ A1 = E1; E1 = D1; D1 = bit_rol(C1, 10); C1 = B1; B1 = T;
+ T = safe_add(A2, rmd160_f(79-j, B2, C2, D2));
+ T = safe_add(T, x[i + rmd160_r2[j]]);
+ T = safe_add(T, rmd160_K2(j));
+ T = safe_add(bit_rol(T, rmd160_s2[j]), E2);
+ A2 = E2; E2 = D2; D2 = bit_rol(C2, 10); C2 = B2; B2 = T;
+ }
-is.error = function (value) {
- return '[object Error]' === toString.call(value);
-};
+ T = safe_add(h1, safe_add(C1, D2));
+ h1 = safe_add(h2, safe_add(D1, E2));
+ h2 = safe_add(h3, safe_add(E1, A2));
+ h3 = safe_add(h4, safe_add(A1, B2));
+ h4 = safe_add(h0, safe_add(B1, C2));
+ h0 = T;
+ }
+ return [h0, h1, h2, h3, h4];
+ }
-/**
- * Test function.
- */
+ // specific algorithm methods
+ function rmd160_f(j, x, y, z) {
+ return ( 0 <= j && j <= 15) ? (x ^ y ^ z) :
+ (16 <= j && j <= 31) ? (x & y) | (~x & z) :
+ (32 <= j && j <= 47) ? (x | ~y) ^ z :
+ (48 <= j && j <= 63) ? (x & z) | (y & ~z) :
+ (64 <= j && j <= 79) ? x ^ (y | ~z) :
+ 'rmd160_f: j out of range';
+ }
-/**
- * is.fn / is.function (deprecated)
- * Test if `value` is a function.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is a function, false otherwise
- * @api public
- */
+ function rmd160_K1(j) {
+ return ( 0 <= j && j <= 15) ? 0x00000000 :
+ (16 <= j && j <= 31) ? 0x5a827999 :
+ (32 <= j && j <= 47) ? 0x6ed9eba1 :
+ (48 <= j && j <= 63) ? 0x8f1bbcdc :
+ (64 <= j && j <= 79) ? 0xa953fd4e :
+ 'rmd160_K1: j out of range';
+ }
-is.fn = is['function'] = function (value) {
- var isAlert = typeof window !== 'undefined' && value === window.alert;
- return isAlert || '[object Function]' === toString.call(value);
+ function rmd160_K2(j){
+ return ( 0 <= j && j <= 15) ? 0x50a28be6 :
+ (16 <= j && j <= 31) ? 0x5c4dd124 :
+ (32 <= j && j <= 47) ? 0x6d703ef3 :
+ (48 <= j && j <= 63) ? 0x7a6d76e9 :
+ (64 <= j && j <= 79) ? 0x00000000 :
+ 'rmd160_K2: j out of range';
+ }
+ }
};
-/**
- * Test number.
- */
-
-/**
- * is.number
- * Test if `value` is a number.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is a number, false otherwise
- * @api public
- */
-
-is.number = function (value) {
- return '[object Number]' === toString.call(value);
-};
+ // exposes Hashes
+ (function( window, undefined ) {
+ var freeExports = false;
+ if (typeof exports === 'object' ) {
+ freeExports = exports;
+ if (exports && typeof global === 'object' && global && global === global.global ) { window = global; }
+ }
-/**
- * is.infinite
- * Test if `value` is positive or negative infinity.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is positive or negative Infinity, false otherwise
- * @api public
- */
-is.infinite = function (value) {
- return value === Infinity || value === -Infinity;
-};
+ if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
+ // define as an anonymous module, so, through path mapping, it can be aliased
+ define(function () { return Hashes; });
+ }
+ else if ( freeExports ) {
+ // in Node.js or RingoJS v0.8.0+
+ if ( typeof module === 'object' && module && module.exports === freeExports ) {
+ module.exports = Hashes;
+ }
+ // in Narwhal or RingoJS v0.7.0-
+ else {
+ freeExports.Hashes = Hashes;
+ }
+ }
+ else {
+ // in a browser or Rhino
+ window.Hashes = Hashes;
+ }
+ }( this ));
+}()); // IIFE
-/**
- * is.decimal
- * Test if `value` is a decimal number.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is a decimal number, false otherwise
- * @api public
- */
+})(window)
+},{}],2:[function(require,module,exports){
+'use strict';
-is.decimal = function (value) {
- return is.number(value) && !isActualNaN(value) && value % 1 !== 0;
+var hashes = require('jshashes'),
+ xtend = require('xtend'),
+ sha1 = new hashes.SHA1();
+
+var ohauth = {};
+
+ohauth.qsString = function(obj) {
+ return Object.keys(obj).sort().map(function(key) {
+ return ohauth.percentEncode(key) + '=' +
+ ohauth.percentEncode(obj[key]);
+ }).join('&');
};
-/**
- * is.divisibleBy
- * Test if `value` is divisible by `n`.
- *
- * @param {Number} value value to test
- * @param {Number} n dividend
- * @return {Boolean} true if `value` is divisible by `n`, false otherwise
- * @api public
- */
+ohauth.stringQs = function(str) {
+ return str.split('&').reduce(function(obj, pair){
+ var parts = pair.split('=');
+ obj[decodeURIComponent(parts[0])] = (null === parts[1]) ?
+ '' : decodeURIComponent(parts[1]);
+ return obj;
+ }, {});
+};
-is.divisibleBy = function (value, n) {
- var isDividendInfinite = is.infinite(value);
- var isDivisorInfinite = is.infinite(n);
- var isNonZeroNumber = is.number(value) && !isActualNaN(value) && is.number(n) && !isActualNaN(n) && n !== 0;
- return isDividendInfinite || isDivisorInfinite || (isNonZeroNumber && value % n === 0);
+ohauth.rawxhr = function(method, url, data, headers, callback) {
+ var xhr = new XMLHttpRequest(),
+ twoHundred = /^20\d$/;
+ xhr.onreadystatechange = function() {
+ if (4 == xhr.readyState && 0 !== xhr.status) {
+ if (twoHundred.test(xhr.status)) callback(null, xhr);
+ else return callback(xhr, null);
+ }
+ };
+ xhr.onerror = function(e) { return callback(e, null); };
+ xhr.open(method, url, true);
+ for (var h in headers) xhr.setRequestHeader(h, headers[h]);
+ xhr.send(data);
};
-/**
- * is.int
- * Test if `value` is an integer.
- *
- * @param value to test
- * @return {Boolean} true if `value` is an integer, false otherwise
- * @api public
- */
+ohauth.xhr = function(method, url, auth, data, options, callback) {
+ var headers = (options && options.header) || {
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ };
+ headers.Authorization = 'OAuth ' + ohauth.authHeader(auth);
+ ohauth.rawxhr(method, url, data, headers, callback);
+};
-is.int = function (value) {
- return is.number(value) && !isActualNaN(value) && value % 1 === 0;
+ohauth.nonce = function() {
+ for (var o = ''; o.length < 6;) {
+ o += '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'[Math.floor(Math.random() * 61)];
+ }
+ return o;
};
-/**
- * is.maximum
- * Test if `value` is greater than 'others' values.
- *
- * @param {Number} value value to test
- * @param {Array} others values to compare with
- * @return {Boolean} true if `value` is greater than `others` values
- * @api public
- */
+ohauth.authHeader = function(obj) {
+ return Object.keys(obj).sort().map(function(key) {
+ return encodeURIComponent(key) + '="' + encodeURIComponent(obj[key]) + '"';
+ }).join(', ');
+};
-is.maximum = function (value, others) {
- if (isActualNaN(value)) {
- throw new TypeError('NaN is not a valid value');
- } else if (!is.arraylike(others)) {
- throw new TypeError('second argument must be array-like');
- }
- var len = others.length;
+ohauth.timestamp = function() { return ~~((+new Date()) / 1000); };
- while (--len >= 0) {
- if (value < others[len]) {
- return false;
- }
- }
+ohauth.percentEncode = function(s) {
+ return encodeURIComponent(s)
+ .replace(/\!/g, '%21').replace(/\'/g, '%27')
+ .replace(/\*/g, '%2A').replace(/\(/g, '%28').replace(/\)/g, '%29');
+};
- return true;
+ohauth.baseString = function(method, url, params) {
+ if (params.oauth_signature) delete params.oauth_signature;
+ return [
+ method,
+ ohauth.percentEncode(url),
+ ohauth.percentEncode(ohauth.qsString(params))].join('&');
+};
+
+ohauth.signature = function(oauth_secret, token_secret, baseString) {
+ return sha1.b64_hmac(
+ ohauth.percentEncode(oauth_secret) + '&' +
+ ohauth.percentEncode(token_secret),
+ baseString);
};
/**
- * is.minimum
- * Test if `value` is less than `others` values.
+ * Takes an options object for configuration (consumer_key,
+ * consumer_secret, version, signature_method, token) and returns a
+ * function that generates the Authorization header for given data.
*
- * @param {Number} value value to test
- * @param {Array} others values to compare with
- * @return {Boolean} true if `value` is less than `others` values
- * @api public
+ * The returned function takes these parameters:
+ * - method: GET/POST/...
+ * - uri: full URI with protocol, port, path and query string
+ * - extra_params: any extra parameters (that are passed in the POST data),
+ * can be an object or a from-urlencoded string.
+ *
+ * Returned function returns full OAuth header with "OAuth" string in it.
*/
-is.minimum = function (value, others) {
- if (isActualNaN(value)) {
- throw new TypeError('NaN is not a valid value');
- } else if (!is.arraylike(others)) {
- throw new TypeError('second argument must be array-like');
- }
- var len = others.length;
+ohauth.headerGenerator = function(options) {
+ options = options || {};
+ var consumer_key = options.consumer_key || '',
+ consumer_secret = options.consumer_secret || '',
+ signature_method = options.signature_method || 'HMAC-SHA1',
+ version = options.version || '1.0',
+ token = options.token || '';
- while (--len >= 0) {
- if (value > others[len]) {
- return false;
- }
- }
+ return function(method, uri, extra_params) {
+ method = method.toUpperCase();
+ if (typeof extra_params === 'string' && extra_params.length > 0) {
+ extra_params = ohauth.stringQs(extra_params);
+ }
- return true;
+ var uri_parts = uri.split('?', 2),
+ base_uri = uri_parts[0];
+
+ var query_params = uri_parts.length === 2 ?
+ ohauth.stringQs(uri_parts[1]) : {};
+
+ var oauth_params = {
+ oauth_consumer_key: consumer_key,
+ oauth_signature_method: signature_method,
+ oauth_version: version,
+ oauth_timestamp: ohauth.timestamp(),
+ oauth_nonce: ohauth.nonce()
+ };
+
+ if (token) oauth_params.oauth_token = token;
+
+ var all_params = xtend({}, oauth_params, query_params, extra_params),
+ base_str = ohauth.baseString(method, base_uri, all_params);
+
+ oauth_params.oauth_signature = ohauth.signature(consumer_secret, token, base_str);
+
+ return 'OAuth ' + ohauth.authHeader(oauth_params);
+ };
};
-/**
- * is.nan
- * Test if `value` is not a number.
- *
- * @param {Mixed} value value to test
- * @return {Boolean} true if `value` is not a number, false otherwise
- * @api public
+module.exports = ohauth;
+
+},{"jshashes":7,"xtend":4}],6:[function(require,module,exports){
+module.exports = Object.keys || require('./shim');
+
+
+},{"./shim":8}],8:[function(require,module,exports){
+(function () {
+ "use strict";
+
+ // modified from https://github.com/kriskowal/es5-shim
+ var has = Object.prototype.hasOwnProperty,
+ is = require('is'),
+ forEach = require('foreach'),
+ hasDontEnumBug = !({'toString': null}).propertyIsEnumerable('toString'),
+ dontEnums = [
+ "toString",
+ "toLocaleString",
+ "valueOf",
+ "hasOwnProperty",
+ "isPrototypeOf",
+ "propertyIsEnumerable",
+ "constructor"
+ ],
+ keysShim;
+
+ keysShim = function keys(object) {
+ if (!is.object(object) && !is.array(object)) {
+ throw new TypeError("Object.keys called on a non-object");
+ }
+
+ var name, theKeys = [];
+ for (name in object) {
+ if (has.call(object, name)) {
+ theKeys.push(name);
+ }
+ }
+
+ if (hasDontEnumBug) {
+ forEach(dontEnums, function (dontEnum) {
+ if (has.call(object, dontEnum)) {
+ theKeys.push(dontEnum);
+ }
+ });
+ }
+ return theKeys;
+ };
+
+ module.exports = keysShim;
+}());
+
+
+},{"is":9,"foreach":10}],9:[function(require,module,exports){
+
+/**!
+ * is
+ * the definitive JavaScript type testing library
+ *
+ * @copyright 2013 Enrico Marino
+ * @license MIT
*/
-is.nan = function (value) {
- return !is.number(value) || value !== value;
+var objProto = Object.prototype;
+var owns = objProto.hasOwnProperty;
+var toString = objProto.toString;
+var isActualNaN = function (value) {
+ return value !== value;
+};
+var NON_HOST_TYPES = {
+ "boolean": 1,
+ "number": 1,
+ "string": 1,
+ "undefined": 1
};
/**
- * is.even
- * Test if `value` is an even number.
- *
- * @param {Number} value value to test
- * @return {Boolean} true if `value` is an even number, false otherwise
- * @api public
+ * Expose `is`
*/
-is.even = function (value) {
- return is.infinite(value) || (is.number(value) && value === value && value % 2 === 0);
-};
+var is = module.exports = {};
/**
- * is.odd
- * Test if `value` is an odd number.
+ * Test general.
+ */
+
+/**
+ * is.type
+ * Test if `value` is a type of `type`.
*
- * @param {Number} value value to test
- * @return {Boolean} true if `value` is an odd number, false otherwise
+ * @param {Mixed} value value to test
+ * @param {String} type type
+ * @return {Boolean} true if `value` is a type of `type`, false otherwise
* @api public
*/
-is.odd = function (value) {
- return is.infinite(value) || (is.number(value) && value === value && value % 2 !== 0);
+is.a =
+is.type = function (value, type) {
+ return typeof value === type;
};
/**
- * is.ge
- * Test if `value` is greater than or equal to `other`.
+ * is.defined
+ * Test if `value` is defined.
*
- * @param {Number} value value to test
- * @param {Number} other value to compare with
- * @return {Boolean}
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if 'value' is defined, false otherwise
* @api public
*/
-is.ge = function (value, other) {
- if (isActualNaN(value) || isActualNaN(other)) {
- throw new TypeError('NaN is not a valid value');
- }
- return !is.infinite(value) && !is.infinite(other) && value >= other;
+is.defined = function (value) {
+ return value !== undefined;
};
/**
- * is.gt
- * Test if `value` is greater than `other`.
+ * is.empty
+ * Test if `value` is empty.
*
- * @param {Number} value value to test
- * @param {Number} other value to compare with
- * @return {Boolean}
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is empty, false otherwise
* @api public
*/
-is.gt = function (value, other) {
- if (isActualNaN(value) || isActualNaN(other)) {
- throw new TypeError('NaN is not a valid value');
+is.empty = function (value) {
+ var type = toString.call(value);
+ var key;
+
+ if ('[object Array]' === type || '[object Arguments]' === type) {
+ return value.length === 0;
}
- return !is.infinite(value) && !is.infinite(other) && value > other;
+
+ if ('[object Object]' === type) {
+ for (key in value) if (owns.call(value, key)) return false;
+ return true;
+ }
+
+ if ('[object String]' === type) {
+ return '' === value;
+ }
+
+ return false;
};
/**
- * is.le
- * Test if `value` is less than or equal to `other`.
+ * is.equal
+ * Test if `value` is equal to `other`.
*
- * @param {Number} value value to test
- * @param {Number} other value to compare with
- * @return {Boolean} if 'value' is less than or equal to 'other'
- * @api public
+ * @param {Mixed} value value to test
+ * @param {Mixed} other value to compare with
+ * @return {Boolean} true if `value` is equal to `other`, false otherwise
*/
-is.le = function (value, other) {
- if (isActualNaN(value) || isActualNaN(other)) {
- throw new TypeError('NaN is not a valid value');
+is.equal = function (value, other) {
+ var type = toString.call(value)
+ var key;
+
+ if (type !== toString.call(other)) {
+ return false;
}
- return !is.infinite(value) && !is.infinite(other) && value <= other;
+
+ if ('[object Object]' === type) {
+ for (key in value) {
+ if (!is.equal(value[key], other[key])) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ if ('[object Array]' === type) {
+ key = value.length;
+ if (key !== other.length) {
+ return false;
+ }
+ while (--key) {
+ if (!is.equal(value[key], other[key])) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ if ('[object Function]' === type) {
+ return value.prototype === other.prototype;
+ }
+
+ if ('[object Date]' === type) {
+ return value.getTime() === other.getTime();
+ }
+
+ return value === other;
};
/**
- * is.lt
- * Test if `value` is less than `other`.
+ * is.hosted
+ * Test if `value` is hosted by `host`.
*
- * @param {Number} value value to test
- * @param {Number} other value to compare with
- * @return {Boolean} if `value` is less than `other`
+ * @param {Mixed} value to test
+ * @param {Mixed} host host to test with
+ * @return {Boolean} true if `value` is hosted by `host`, false otherwise
* @api public
*/
-is.lt = function (value, other) {
- if (isActualNaN(value) || isActualNaN(other)) {
- throw new TypeError('NaN is not a valid value');
- }
- return !is.infinite(value) && !is.infinite(other) && value < other;
+is.hosted = function (value, host) {
+ var type = typeof host[value];
+ return type === 'object' ? !!host[value] : !NON_HOST_TYPES[type];
};
/**
- * is.within
- * Test if `value` is within `start` and `finish`.
+ * is.instance
+ * Test if `value` is an instance of `constructor`.
*
- * @param {Number} value value to test
- * @param {Number} start lower bound
- * @param {Number} finish upper bound
- * @return {Boolean} true if 'value' is is within 'start' and 'finish'
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is an instance of `constructor`
* @api public
*/
-is.within = function (value, start, finish) {
- if (isActualNaN(value) || isActualNaN(start) || isActualNaN(finish)) {
- throw new TypeError('NaN is not a valid value');
- } else if (!is.number(value) || !is.number(start) || !is.number(finish)) {
- throw new TypeError('all arguments must be numbers');
- }
- var isAnyInfinite = is.infinite(value) || is.infinite(start) || is.infinite(finish);
- return isAnyInfinite || (value >= start && value <= finish);
-};
-/**
- * Test object.
- */
+is.instance = is['instanceof'] = function (value, constructor) {
+ return value instanceof constructor;
+};
/**
- * is.object
- * Test if `value` is an object.
+ * is.null
+ * Test if `value` is null.
*
* @param {Mixed} value value to test
- * @return {Boolean} true if `value` is an object, false otherwise
+ * @return {Boolean} true if `value` is null, false otherwise
* @api public
*/
-is.object = function (value) {
- return value && '[object Object]' === toString.call(value);
+is['null'] = function (value) {
+ return value === null;
};
/**
- * is.hash
- * Test if `value` is a hash - a plain object literal.
+ * is.undefined
+ * Test if `value` is undefined.
*
* @param {Mixed} value value to test
- * @return {Boolean} true if `value` is a hash, false otherwise
+ * @return {Boolean} true if `value` is undefined, false otherwise
* @api public
*/
-is.hash = function (value) {
- return is.object(value) && value.constructor === Object && !value.nodeType && !value.setInterval;
+is.undefined = function (value) {
+ return value === undefined;
};
/**
- * Test regexp.
+ * Test arguments.
*/
/**
- * is.regexp
- * Test if `value` is a regular expression.
+ * is.arguments
+ * Test if `value` is an arguments object.
*
* @param {Mixed} value value to test
- * @return {Boolean} true if `value` is a regexp, false otherwise
+ * @return {Boolean} true if `value` is an arguments object, false otherwise
* @api public
*/
-is.regexp = function (value) {
- return '[object RegExp]' === toString.call(value);
+is.arguments = function (value) {
+ var isStandardArguments = '[object Arguments]' === toString.call(value);
+ var isOldArguments = !is.array(value) && is.arraylike(value) && is.object(value) && is.fn(value.callee);
+ return isStandardArguments || isOldArguments;
};
/**
- * Test string.
+ * Test array.
*/
/**
- * is.string
- * Test if `value` is a string.
+ * is.array
+ * Test if 'value' is an array.
*
* @param {Mixed} value value to test
- * @return {Boolean} true if 'value' is a string, false otherwise
+ * @return {Boolean} true if `value` is an array, false otherwise
* @api public
*/
-is.string = function (value) {
- return '[object String]' === toString.call(value);
+is.array = function (value) {
+ return '[object Array]' === toString.call(value);
};
+/**
+ * is.arguments.empty
+ * Test if `value` is an empty arguments object.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is an empty arguments object, false otherwise
+ * @api public
+ */
+is.arguments.empty = function (value) {
+ return is.arguments(value) && value.length === 0;
+};
+
+/**
+ * is.array.empty
+ * Test if `value` is an empty array.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is an empty array, false otherwise
+ * @api public
+ */
+is.array.empty = function (value) {
+ return is.array(value) && value.length === 0;
+};
+
+/**
+ * is.arraylike
+ * Test if `value` is an arraylike object.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is an arguments object, false otherwise
+ * @api public
+ */
+
+is.arraylike = function (value) {
+ return !!value && !is.boolean(value)
+ && owns.call(value, 'length')
+ && isFinite(value.length)
+ && is.number(value.length)
+ && value.length >= 0;
+};
+
+/**
+ * Test boolean.
+ */
+
+/**
+ * is.boolean
+ * Test if `value` is a boolean.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is a boolean, false otherwise
+ * @api public
+ */
+
+is.boolean = function (value) {
+ return '[object Boolean]' === toString.call(value);
+};
+
+/**
+ * is.false
+ * Test if `value` is false.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is false, false otherwise
+ * @api public
+ */
+
+is['false'] = function (value) {
+ return is.boolean(value) && (value === false || value.valueOf() === false);
+};
+
+/**
+ * is.true
+ * Test if `value` is true.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is true, false otherwise
+ * @api public
+ */
+
+is['true'] = function (value) {
+ return is.boolean(value) && (value === true || value.valueOf() === true);
+};
+
+/**
+ * Test date.
+ */
+
+/**
+ * is.date
+ * Test if `value` is a date.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is a date, false otherwise
+ * @api public
+ */
+
+is.date = function (value) {
+ return '[object Date]' === toString.call(value);
+};
+
+/**
+ * Test element.
+ */
+
+/**
+ * is.element
+ * Test if `value` is an html element.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is an HTML Element, false otherwise
+ * @api public
+ */
+
+is.element = function (value) {
+ return value !== undefined
+ && typeof HTMLElement !== 'undefined'
+ && value instanceof HTMLElement
+ && value.nodeType === 1;
+};
+
+/**
+ * Test error.
+ */
+
+/**
+ * is.error
+ * Test if `value` is an error object.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is an error object, false otherwise
+ * @api public
+ */
+
+is.error = function (value) {
+ return '[object Error]' === toString.call(value);
+};
+
+/**
+ * Test function.
+ */
+
+/**
+ * is.fn / is.function (deprecated)
+ * Test if `value` is a function.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is a function, false otherwise
+ * @api public
+ */
+
+is.fn = is['function'] = function (value) {
+ var isAlert = typeof window !== 'undefined' && value === window.alert;
+ return isAlert || '[object Function]' === toString.call(value);
+};
+
+/**
+ * Test number.
+ */
+
+/**
+ * is.number
+ * Test if `value` is a number.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is a number, false otherwise
+ * @api public
+ */
+
+is.number = function (value) {
+ return '[object Number]' === toString.call(value);
+};
+
+/**
+ * is.infinite
+ * Test if `value` is positive or negative infinity.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is positive or negative Infinity, false otherwise
+ * @api public
+ */
+is.infinite = function (value) {
+ return value === Infinity || value === -Infinity;
+};
+
+/**
+ * is.decimal
+ * Test if `value` is a decimal number.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is a decimal number, false otherwise
+ * @api public
+ */
+
+is.decimal = function (value) {
+ return is.number(value) && !isActualNaN(value) && value % 1 !== 0;
+};
+
+/**
+ * is.divisibleBy
+ * Test if `value` is divisible by `n`.
+ *
+ * @param {Number} value value to test
+ * @param {Number} n dividend
+ * @return {Boolean} true if `value` is divisible by `n`, false otherwise
+ * @api public
+ */
+
+is.divisibleBy = function (value, n) {
+ var isDividendInfinite = is.infinite(value);
+ var isDivisorInfinite = is.infinite(n);
+ var isNonZeroNumber = is.number(value) && !isActualNaN(value) && is.number(n) && !isActualNaN(n) && n !== 0;
+ return isDividendInfinite || isDivisorInfinite || (isNonZeroNumber && value % n === 0);
+};
+
+/**
+ * is.int
+ * Test if `value` is an integer.
+ *
+ * @param value to test
+ * @return {Boolean} true if `value` is an integer, false otherwise
+ * @api public
+ */
+
+is.int = function (value) {
+ return is.number(value) && !isActualNaN(value) && value % 1 === 0;
+};
+
+/**
+ * is.maximum
+ * Test if `value` is greater than 'others' values.
+ *
+ * @param {Number} value value to test
+ * @param {Array} others values to compare with
+ * @return {Boolean} true if `value` is greater than `others` values
+ * @api public
+ */
+
+is.maximum = function (value, others) {
+ if (isActualNaN(value)) {
+ throw new TypeError('NaN is not a valid value');
+ } else if (!is.arraylike(others)) {
+ throw new TypeError('second argument must be array-like');
+ }
+ var len = others.length;
+
+ while (--len >= 0) {
+ if (value < others[len]) {
+ return false;
+ }
+ }
+
+ return true;
+};
+
+/**
+ * is.minimum
+ * Test if `value` is less than `others` values.
+ *
+ * @param {Number} value value to test
+ * @param {Array} others values to compare with
+ * @return {Boolean} true if `value` is less than `others` values
+ * @api public
+ */
+
+is.minimum = function (value, others) {
+ if (isActualNaN(value)) {
+ throw new TypeError('NaN is not a valid value');
+ } else if (!is.arraylike(others)) {
+ throw new TypeError('second argument must be array-like');
+ }
+ var len = others.length;
+
+ while (--len >= 0) {
+ if (value > others[len]) {
+ return false;
+ }
+ }
+
+ return true;
+};
+
+/**
+ * is.nan
+ * Test if `value` is not a number.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is not a number, false otherwise
+ * @api public
+ */
+
+is.nan = function (value) {
+ return !is.number(value) || value !== value;
+};
+
+/**
+ * is.even
+ * Test if `value` is an even number.
+ *
+ * @param {Number} value value to test
+ * @return {Boolean} true if `value` is an even number, false otherwise
+ * @api public
+ */
+
+is.even = function (value) {
+ return is.infinite(value) || (is.number(value) && value === value && value % 2 === 0);
+};
+
+/**
+ * is.odd
+ * Test if `value` is an odd number.
+ *
+ * @param {Number} value value to test
+ * @return {Boolean} true if `value` is an odd number, false otherwise
+ * @api public
+ */
+
+is.odd = function (value) {
+ return is.infinite(value) || (is.number(value) && value === value && value % 2 !== 0);
+};
+
+/**
+ * is.ge
+ * Test if `value` is greater than or equal to `other`.
+ *
+ * @param {Number} value value to test
+ * @param {Number} other value to compare with
+ * @return {Boolean}
+ * @api public
+ */
+
+is.ge = function (value, other) {
+ if (isActualNaN(value) || isActualNaN(other)) {
+ throw new TypeError('NaN is not a valid value');
+ }
+ return !is.infinite(value) && !is.infinite(other) && value >= other;
+};
+
+/**
+ * is.gt
+ * Test if `value` is greater than `other`.
+ *
+ * @param {Number} value value to test
+ * @param {Number} other value to compare with
+ * @return {Boolean}
+ * @api public
+ */
+
+is.gt = function (value, other) {
+ if (isActualNaN(value) || isActualNaN(other)) {
+ throw new TypeError('NaN is not a valid value');
+ }
+ return !is.infinite(value) && !is.infinite(other) && value > other;
+};
+
+/**
+ * is.le
+ * Test if `value` is less than or equal to `other`.
+ *
+ * @param {Number} value value to test
+ * @param {Number} other value to compare with
+ * @return {Boolean} if 'value' is less than or equal to 'other'
+ * @api public
+ */
+
+is.le = function (value, other) {
+ if (isActualNaN(value) || isActualNaN(other)) {
+ throw new TypeError('NaN is not a valid value');
+ }
+ return !is.infinite(value) && !is.infinite(other) && value <= other;
+};
+
+/**
+ * is.lt
+ * Test if `value` is less than `other`.
+ *
+ * @param {Number} value value to test
+ * @param {Number} other value to compare with
+ * @return {Boolean} if `value` is less than `other`
+ * @api public
+ */
+
+is.lt = function (value, other) {
+ if (isActualNaN(value) || isActualNaN(other)) {
+ throw new TypeError('NaN is not a valid value');
+ }
+ return !is.infinite(value) && !is.infinite(other) && value < other;
+};
+
+/**
+ * is.within
+ * Test if `value` is within `start` and `finish`.
+ *
+ * @param {Number} value value to test
+ * @param {Number} start lower bound
+ * @param {Number} finish upper bound
+ * @return {Boolean} true if 'value' is is within 'start' and 'finish'
+ * @api public
+ */
+is.within = function (value, start, finish) {
+ if (isActualNaN(value) || isActualNaN(start) || isActualNaN(finish)) {
+ throw new TypeError('NaN is not a valid value');
+ } else if (!is.number(value) || !is.number(start) || !is.number(finish)) {
+ throw new TypeError('all arguments must be numbers');
+ }
+ var isAnyInfinite = is.infinite(value) || is.infinite(start) || is.infinite(finish);
+ return isAnyInfinite || (value >= start && value <= finish);
+};
+
+/**
+ * Test object.
+ */
+
+/**
+ * is.object
+ * Test if `value` is an object.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is an object, false otherwise
+ * @api public
+ */
+
+is.object = function (value) {
+ return value && '[object Object]' === toString.call(value);
+};
+
+/**
+ * is.hash
+ * Test if `value` is a hash - a plain object literal.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is a hash, false otherwise
+ * @api public
+ */
+
+is.hash = function (value) {
+ return is.object(value) && value.constructor === Object && !value.nodeType && !value.setInterval;
+};
+
+/**
+ * Test regexp.
+ */
+
+/**
+ * is.regexp
+ * Test if `value` is a regular expression.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if `value` is a regexp, false otherwise
+ * @api public
+ */
+
+is.regexp = function (value) {
+ return '[object RegExp]' === toString.call(value);
+};
+
+/**
+ * Test string.
+ */
+
+/**
+ * is.string
+ * Test if `value` is a string.
+ *
+ * @param {Mixed} value value to test
+ * @return {Boolean} true if 'value' is a string, false otherwise
+ * @api public
+ */
+
+is.string = function (value) {
+ return '[object String]' === toString.call(value);
+};
+
+
+},{}],10:[function(require,module,exports){
-},{}],10:[function(require,module,exports){
-
var hasOwn = Object.prototype.hasOwnProperty;
var toString = Object.prototype.toString;
function rbush(maxEntries, format) {
// jshint newcap: false, validthis: true
- if (!(this instanceof rbush)) { return new rbush(maxEntries, format); }
+ if (!(this instanceof rbush)) return new rbush(maxEntries, format);
// max entries in a node is 9 by default; min node fill is 40% for best performance
this._maxEntries = Math.max(4, maxEntries || 9);
search: function (bbox) {
var node = this.data,
- result = [];
+ result = [],
+ toBBox = this.toBBox;
- if (!this._intersects(bbox, node.bbox)) { return result; }
+ if (!intersects(bbox, node.bbox)) return result;
var nodesToSearch = [],
i, len, child, childBBox;
while (node) {
for (i = 0, len = node.children.length; i < len; i++) {
- child = node.children[i];
- childBBox = node.leaf ? this.toBBox(child) : child.bbox;
-
- if (this._intersects(bbox, childBBox)) {
-
- if (node.leaf) {
- result.push(child);
- } else if (this._contains(bbox, childBBox)) {
- this._all(child, result);
+ child = node.children[i];
+ childBBox = node.leaf ? toBBox(child) : child.bbox;
- } else {
- nodesToSearch.push(child);
- }
+ if (intersects(bbox, childBBox)) {
+ if (node.leaf) result.push(child);
+ else if (contains(bbox, childBBox)) this._all(child, result);
+ else nodesToSearch.push(child);
}
}
-
node = nodesToSearch.pop();
}
},
load: function (data) {
- if (!(data && data.length)) { return this; }
+ if (!(data && data.length)) return this;
if (data.length < this._minEntries) {
for (var i = 0, len = data.length; i < len; i++) {
}
// recursively build the tree with the given data from stratch using OMT algorithm
- var node = this._build(data.slice(), 0);
+ var node = this._build(data.slice(), 0, data.length - 1, 0);
if (!this.data.children.length) {
// save as is if tree is empty
},
insert: function (item) {
- if (item) {
- this._insert(item, this.data.height - 1);
- }
+ if (item) this._insert(item, this.data.height - 1);
return this;
},
clear: function () {
this.data = {
children: [],
- leaf: true,
- bbox: this._empty(),
- height: 1
+ height: 1,
+ bbox: empty(),
+ leaf: true
};
return this;
},
remove: function (item) {
- if (!item) { return this; }
+ if (!item) return this;
var node = this.data,
bbox = this.toBBox(item),
}
}
- if (!goingUp && !node.leaf && this._intersects(bbox, node.bbox)) { // go down
+ if (!goingUp && !node.leaf && contains(node.bbox, bbox)) { // go down
path.push(node);
indexes.push(i);
i = 0;
node = parent.children[i];
goingUp = false;
- } else { // nothing found
- node = null;
- }
+ } else node = null; // nothing found
}
return this;
_all: function (node, result) {
var nodesToSearch = [];
while (node) {
- if (node.leaf) {
- result.push.apply(result, node.children);
- } else {
- nodesToSearch.push.apply(nodesToSearch, node.children);
- }
+ if (node.leaf) result.push.apply(result, node.children);
+ else nodesToSearch.push.apply(nodesToSearch, node.children);
+
node = nodesToSearch.pop();
}
return result;
},
- _build: function (items, level, height) {
+ _build: function (items, left, right, level, height) {
- var N = items.length,
+ var N = right - left + 1,
M = this._maxEntries,
node;
if (N <= M) {
node = {
- children: items,
- leaf: true,
- height: 1
+ children: items.slice(left, right + 1),
+ height: 1,
+ bbox: null,
+ leaf: true
};
- this._calcBBox(node);
+ calcBBox(node, this.toBBox);
return node;
}
// target number of root entries to maximize storage utilization
M = Math.ceil(N / Math.pow(M, height - 1));
-
- items.sort(this.compareMinX);
}
// TODO eliminate recursion?
node = {
children: [],
- height: height
+ height: height,
+ bbox: null
};
- var N1 = Math.ceil(N / M) * Math.ceil(Math.sqrt(M)),
- N2 = Math.ceil(N / M),
- compare = level % 2 === 1 ? this.compareMinX : this.compareMinY,
- i, j, slice, sliceLen, childNode;
+ var N2 = Math.ceil(N / M),
+ N1 = N2 * Math.ceil(Math.sqrt(M)),
+ i, j, right2, childNode;
// split the items into M mostly square tiles
- for (i = 0; i < N; i += N1) {
- slice = items.slice(i, i + N1).sort(compare);
+ for (i = left; i <= right; i += N1) {
+
+ if (i + N1 <= right) partitionSort(items, i, right, i + N1, this.compareMinX);
+ right2 = Math.min(i + N1 - 1, right);
+
+ for (j = i; j <= right2; j += N2) {
+
+ if (j + N2 <= right2) partitionSort(items, j, right2, j + N2, this.compareMinY);
- for (j = 0, sliceLen = slice.length; j < sliceLen; j += N2) {
// pack each entry recursively
- childNode = this._build(slice.slice(j, j + N2), level + 1, height - 1);
+ childNode = this._build(items, j, Math.min(j + N2 - 1, right2), level + 1, height - 1);
node.children.push(childNode);
}
}
- this._calcBBox(node);
+ calcBBox(node, this.toBBox);
return node;
},
while (true) {
path.push(node);
- if (node.leaf || path.length - 1 === level) { break; }
+ if (node.leaf || path.length - 1 === level) break;
minArea = minEnlargement = Infinity;
for (i = 0, len = node.children.length; i < len; i++) {
child = node.children[i];
- area = this._area(child.bbox);
- enlargement = this._enlargedArea(bbox, child.bbox) - area;
+ area = bboxArea(child.bbox);
+ enlargement = enlargedArea(bbox, child.bbox) - area;
// choose entry with the least area enlargement
if (enlargement < minEnlargement) {
return node;
},
- _insert: function (item, level, isNode, root) {
+ _insert: function (item, level, isNode) {
- var bbox = isNode ? item.bbox : this.toBBox(item),
+ var toBBox = this.toBBox,
+ bbox = isNode ? item.bbox : toBBox(item),
insertPath = [];
// find the best node for accommodating the item, saving all nodes along the path too
- var node = this._chooseSubtree(bbox, root || this.data, level, insertPath),
- splitOccured;
+ var node = this._chooseSubtree(bbox, this.data, level, insertPath);
// put the item into the node
node.children.push(item);
- this._extend(node.bbox, bbox);
+ extend(node.bbox, bbox);
// split on node overflow; propagate upwards if necessary
- do {
- splitOccured = false;
+ while (level >= 0) {
if (insertPath[level].children.length > this._maxEntries) {
this._split(insertPath, level);
- splitOccured = true;
level--;
- }
- } while (level >= 0 && splitOccured);
+ } else break;
+ }
// adjust bboxes along the insertion path
this._adjustParentBBoxes(bbox, insertPath, level);
height: node.height
};
- if (node.leaf) {
- newNode.leaf = true;
- }
+ if (node.leaf) newNode.leaf = true;
- this._calcBBox(node);
- this._calcBBox(newNode);
+ calcBBox(node, this.toBBox);
+ calcBBox(newNode, this.toBBox);
- if (level) {
- insertPath[level - 1].children.push(newNode);
- } else {
- this._splitRoot(node, newNode);
- }
+ if (level) insertPath[level - 1].children.push(newNode);
+ else this._splitRoot(node, newNode);
},
_splitRoot: function (node, newNode) {
// split root node
- this.data = {};
- this.data.children = [node, newNode];
- this.data.height = node.height + 1;
- this._calcBBox(this.data);
+ this.data = {
+ children: [node, newNode],
+ height: node.height + 1
+ };
+ calcBBox(this.data, this.toBBox);
},
_chooseSplitIndex: function (node, m, M) {
minOverlap = minArea = Infinity;
for (i = m; i <= M - m; i++) {
- bbox1 = this._distBBox(node, 0, i);
- bbox2 = this._distBBox(node, i, M);
+ bbox1 = distBBox(node, 0, i, this.toBBox);
+ bbox2 = distBBox(node, i, M, this.toBBox);
- overlap = this._intersectionArea(bbox1, bbox2);
- area = this._area(bbox1) + this._area(bbox2);
+ overlap = intersectionArea(bbox1, bbox2);
+ area = bboxArea(bbox1) + bboxArea(bbox2);
// choose distribution with minimum overlap
if (overlap < minOverlap) {
// sorts node children by the best axis for split
_chooseSplitAxis: function (node, m, M) {
- var compareMinX = node.leaf ? this.compareMinX : this._compareNodeMinX,
- compareMinY = node.leaf ? this.compareMinY : this._compareNodeMinY,
+ var compareMinX = node.leaf ? this.compareMinX : compareNodeMinX,
+ compareMinY = node.leaf ? this.compareMinY : compareNodeMinY,
xMargin = this._allDistMargin(node, m, M, compareMinX),
yMargin = this._allDistMargin(node, m, M, compareMinY);
// if total distributions margin value is minimal for x, sort by minX,
// otherwise it's already sorted by minY
-
- if (xMargin < yMargin) {
- node.children.sort(compareMinX);
- }
+ if (xMargin < yMargin) node.children.sort(compareMinX);
},
// total margin of all possible split distributions where each node is at least m full
node.children.sort(compare);
- var leftBBox = this._distBBox(node, 0, m),
- rightBBox = this._distBBox(node, M - m, M),
- margin = this._margin(leftBBox) + this._margin(rightBBox),
+ var toBBox = this.toBBox,
+ leftBBox = distBBox(node, 0, m, toBBox),
+ rightBBox = distBBox(node, M - m, M, toBBox),
+ margin = bboxMargin(leftBBox) + bboxMargin(rightBBox),
i, child;
for (i = m; i < M - m; i++) {
child = node.children[i];
- this._extend(leftBBox, node.leaf ? this.toBBox(child) : child.bbox);
- margin += this._margin(leftBBox);
+ extend(leftBBox, node.leaf ? toBBox(child) : child.bbox);
+ margin += bboxMargin(leftBBox);
}
- for (i = M - m - 1; i >= 0; i--) {
+ for (i = M - m - 1; i >= m; i--) {
child = node.children[i];
- this._extend(rightBBox, node.leaf ? this.toBBox(child) : child.bbox);
- margin += this._margin(rightBBox);
+ extend(rightBBox, node.leaf ? toBBox(child) : child.bbox);
+ margin += bboxMargin(rightBBox);
}
return margin;
},
- // min bounding rectangle of node children from k to p-1
- _distBBox: function (node, k, p) {
- var bbox = this._empty();
-
- for (var i = k, child; i < p; i++) {
- child = node.children[i];
- this._extend(bbox, node.leaf ? this.toBBox(child) : child.bbox);
- }
-
- return bbox;
- },
-
- // calculate node's bbox from bboxes of its children
- _calcBBox: function (node) {
- node.bbox = this._empty();
-
- for (var i = 0, len = node.children.length, child; i < len; i++) {
- child = node.children[i];
- this._extend(node.bbox, node.leaf ? this.toBBox(child) : child.bbox);
- }
- },
-
- _adjustParentBBoxes: function (bbox, path, level) {
- // adjust bboxes along the given tree path
- for (var i = level; i >= 0; i--) {
- this._extend(path[i].bbox, bbox);
+ _adjustParentBBoxes: function (bbox, path, level) {
+ // adjust bboxes along the given tree path
+ for (var i = level; i >= 0; i--) {
+ extend(path[i].bbox, bbox);
}
},
_condense: function (path) {
// go through the path, removing empty nodes and updating bboxes
- for (var i = path.length - 1, parent; i >= 0; i--) {
+ for (var i = path.length - 1, siblings; i >= 0; i--) {
if (path[i].children.length === 0) {
if (i > 0) {
- parent = path[i - 1].children;
- parent.splice(parent.indexOf(path[i]), 1);
- } else {
- this.clear();
- }
- } else {
- this._calcBBox(path[i]);
- }
- }
- },
-
- _contains: function(a, b) {
- return a[0] <= b[0] &&
- a[1] <= b[1] &&
- b[2] <= a[2] &&
- b[3] <= a[3];
- },
-
- _intersects: function (a, b) {
- return b[0] <= a[2] &&
- b[1] <= a[3] &&
- b[2] >= a[0] &&
- b[3] >= a[1];
- },
+ siblings = path[i - 1].children;
+ siblings.splice(siblings.indexOf(path[i]), 1);
- _extend: function (a, b) {
- a[0] = Math.min(a[0], b[0]);
- a[1] = Math.min(a[1], b[1]);
- a[2] = Math.max(a[2], b[2]);
- a[3] = Math.max(a[3], b[3]);
- return a;
- },
-
- _area: function (a) { return (a[2] - a[0]) * (a[3] - a[1]); },
- _margin: function (a) { return (a[2] - a[0]) + (a[3] - a[1]); },
-
- _enlargedArea: function (a, b) {
- return (Math.max(b[2], a[2]) - Math.min(b[0], a[0])) *
- (Math.max(b[3], a[3]) - Math.min(b[1], a[1]));
- },
-
- _intersectionArea: function (a, b) {
- var minX = Math.max(a[0], b[0]),
- minY = Math.max(a[1], b[1]),
- maxX = Math.min(a[2], b[2]),
- maxY = Math.min(a[3], b[3]);
+ } else this.clear();
- return Math.max(0, maxX - minX) *
- Math.max(0, maxY - minY);
+ } else calcBBox(path[i], this.toBBox);
+ }
},
- _empty: function () { return [Infinity, Infinity, -Infinity, -Infinity]; },
-
- _compareNodeMinX: function (a, b) { return a.bbox[0] - b.bbox[0]; },
- _compareNodeMinY: function (a, b) { return a.bbox[1] - b.bbox[1]; },
-
_initFormat: function (format) {
// data format (minX, minY, maxX, maxY accessors)
}
};
-if (typeof define === 'function' && define.amd) {
- define(function() {
- return rbush;
- });
-} else if (typeof module !== 'undefined') {
- module.exports = rbush;
-} else if (typeof self !== 'undefined') {
- self.rbush = rbush;
-} else {
- window.rbush = rbush;
+// calculate node's bbox from bboxes of its children
+function calcBBox(node, toBBox) {
+ node.bbox = distBBox(node, 0, node.children.length, toBBox);
}
-})();
-(function(e){if("function"==typeof bootstrap)bootstrap("sexagesimal",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeSexagesimal=e}else"undefined"!=typeof window?window.sexagesimal=e():global.sexagesimal=e()})(function(){var define,ses,bootstrap,module,exports;
+// min bounding rectangle of node children from k to p-1
+function distBBox(node, k, p, toBBox) {
+ var bbox = empty();
+
+ for (var i = k, child; i < p; i++) {
+ child = node.children[i];
+ extend(bbox, node.leaf ? toBBox(child) : child.bbox);
+ }
+
+ return bbox;
+}
+
+
+function empty() { return [Infinity, Infinity, -Infinity, -Infinity]; }
+
+function extend(a, b) {
+ a[0] = Math.min(a[0], b[0]);
+ a[1] = Math.min(a[1], b[1]);
+ a[2] = Math.max(a[2], b[2]);
+ a[3] = Math.max(a[3], b[3]);
+ return a;
+}
+
+function compareNodeMinX(a, b) { return a.bbox[0] - b.bbox[0]; }
+function compareNodeMinY(a, b) { return a.bbox[1] - b.bbox[1]; }
+
+function bboxArea(a) { return (a[2] - a[0]) * (a[3] - a[1]); }
+function bboxMargin(a) { return (a[2] - a[0]) + (a[3] - a[1]); }
+
+function enlargedArea(a, b) {
+ return (Math.max(b[2], a[2]) - Math.min(b[0], a[0])) *
+ (Math.max(b[3], a[3]) - Math.min(b[1], a[1]));
+}
+
+function intersectionArea (a, b) {
+ var minX = Math.max(a[0], b[0]),
+ minY = Math.max(a[1], b[1]),
+ maxX = Math.min(a[2], b[2]),
+ maxY = Math.min(a[3], b[3]);
+
+ return Math.max(0, maxX - minX) *
+ Math.max(0, maxY - minY);
+}
+
+function contains(a, b) {
+ return a[0] <= b[0] &&
+ a[1] <= b[1] &&
+ b[2] <= a[2] &&
+ b[3] <= a[3];
+}
+
+function intersects (a, b) {
+ return b[0] <= a[2] &&
+ b[1] <= a[3] &&
+ b[2] >= a[0] &&
+ b[3] >= a[1];
+}
+
+
+function partitionSort(arr, left, right, k, compare) {
+ var pivot;
+
+ while (true) {
+ pivot = Math.floor((left + right) / 2);
+ pivot = partition(arr, left, right, pivot, compare);
+
+ if (k === pivot) break;
+ else if (k < pivot) right = pivot - 1;
+ else left = pivot + 1;
+ }
+
+ partition(arr, left, right, k, compare);
+}
+
+function partition(arr, left, right, pivot, compare) {
+ var k = left,
+ value = arr[pivot];
+
+ swap(arr, pivot, right);
+
+ for (var i = left; i < right; i++) {
+ if (compare(arr[i], value) < 0) {
+ swap(arr, k, i);
+ k++;
+ }
+ }
+ swap(arr, right, k);
+
+ return k;
+}
+
+function swap(arr, i, j) {
+ var tmp = arr[i];
+ arr[i] = arr[j];
+ arr[j] = tmp;
+}
+
+
+// export as AMD/CommonJS module or global variable
+if (typeof define === 'function' && define.amd) define(function() { return rbush; });
+else if (typeof module !== 'undefined') module.exports = rbush;
+else if (typeof self !== 'undefined') self.rbush = rbush;
+else window.rbush = rbush;
+
+})();(function(e){if("function"==typeof bootstrap)bootstrap("sexagesimal",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeSexagesimal=e}else"undefined"!=typeof window?window.sexagesimal=e():global.sexagesimal=e()})(function(){var define,ses,bootstrap,module,exports;
return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
module.exports = element;
module.exports.pair = pair;
}).call(function() {
return this || (typeof window !== 'undefined' ? window : global);
}());
-/* jshint ignore:start */
(function () {
'use strict';
window.iD = function () {
// https://github.com/openstreetmap/iD/issues/772
// http://mathiasbynens.be/notes/localstorage-pattern#comment-9
- try { storage = localStorage; } catch (e) {}
+ try { storage = localStorage; } catch (e) {} // eslint-disable-line no-empty
storage = storage || (function() {
var s = {};
return {
else storage.setItem(k, v);
} catch(e) {
// localstorage quota exceeded
- /* jshint devel:true */
+ /* eslint-disable no-console */
if (typeof console !== 'undefined') console.error('localStorage quota exceeded');
- /* jshint devel:false */
+ /* eslint-enable no-console */
}
};
+ /* Accessor for setting minimum zoom for editing features. */
+
+ var minEditableZoom = 16;
+ context.minEditableZoom = function(_) {
+ if (!arguments.length) return minEditableZoom;
+ minEditableZoom = _;
+ connection.tileZoom(_);
+ return context;
+ };
+
var history = iD.History(context),
dispatch = d3.dispatch('enter', 'exit'),
mode,
locale = locale.split('-')[0];
}
- connection.on('load.context', function loadContext(err, result) {
- history.merge(result.data, result.extent);
- });
-
context.preauth = function(options) {
connection.switch(options);
return context;
};
- context.locale = function(_, path) {
- locale = _;
+ context.locale = function(loc, path) {
+ locale = loc;
localePath = path;
+
+ // Also set iD.detect().locale (unless we detected 'en-us' and openstreetmap wants 'en')..
+ if (!(loc.toLowerCase() === 'en' && iD.detect().locale.toLowerCase() === 'en-us')) {
+ iD.detect().locale = loc;
+ }
+
return context;
};
context.connection = function() { return connection; };
context.history = function() { return history; };
+ /* Connection */
+ function entitiesLoaded(err, result) {
+ if (!err) history.merge(result.data, result.extent);
+ }
+
+ context.loadTiles = function(projection, dimensions, callback) {
+ function done(err, result) {
+ entitiesLoaded(err, result);
+ if (callback) callback(err, result);
+ }
+ connection.loadTiles(projection, dimensions, done);
+ };
+
+ context.loadEntity = function(id, callback) {
+ function done(err, result) {
+ entitiesLoaded(err, result);
+ if (callback) callback(err, result);
+ }
+ connection.loadEntity(id, done);
+ };
+
+ context.zoomToEntity = function(id, zoomTo) {
+ if (zoomTo !== false) {
+ this.loadEntity(id, function(err, result) {
+ if (err) return;
+ var entity = _.find(result.data, function(e) { return e.id === id; });
+ if (entity) { map.zoomTo(entity); }
+ });
+ }
+
+ map.on('drawn.zoomToEntity', function() {
+ if (!context.hasEntity(id)) return;
+ map.on('drawn.zoomToEntity', null);
+ context.on('enter.zoomToEntity', null);
+ context.enter(iD.modes.Select(context, [id]));
+ });
+
+ context.on('enter.zoomToEntity', function() {
+ if (mode.id !== 'browse') {
+ map.on('drawn.zoomToEntity', null);
+ context.on('enter.zoomToEntity', null);
+ }
+ });
+ };
+
/* History */
context.graph = history.graph;
context.changes = history.changes;
};
context.save = function() {
- if (inIntro) return;
+ if (inIntro || (mode && mode.id === 'save')) return;
history.save();
if (history.hasChanges()) return t('save.unsaved_changes');
};
context.flush = function() {
connection.flush();
+ features.reset();
history.reset();
return context;
};
context.perform = withDebouncedSave(history.perform);
context.replace = withDebouncedSave(history.replace);
context.pop = withDebouncedSave(history.pop);
+ context.overwrite = withDebouncedSave(history.overwrite);
context.undo = withDebouncedSave(history.undo);
context.redo = withDebouncedSave(history.redo);
}
};
- context.loadEntity = function(id, zoomTo) {
- if (zoomTo !== false) {
- connection.loadEntity(id, function(error, entity) {
- if (entity) {
- map.zoomTo(entity);
- }
- });
- }
-
- map.on('drawn.loadEntity', function() {
- if (!context.hasEntity(id)) return;
- map.on('drawn.loadEntity', null);
- context.on('enter.loadEntity', null);
- context.enter(iD.modes.Select(context, [id]));
- });
-
- context.on('enter.loadEntity', function() {
- if (mode.id !== 'browse') {
- map.on('drawn.loadEntity', null);
- context.on('enter.loadEntity', null);
- }
- });
- };
-
- context.editable = function() {
- return map.editable() && mode && mode.id !== 'save';
- };
-
/* Behaviors */
context.install = function(behavior) {
context.surface().call(behavior);
context.surface().call(behavior.off);
};
+ /* Copy/Paste */
+ var copyIDs = [], copyGraph;
+ context.copyGraph = function() { return copyGraph; };
+ context.copyIDs = function(_) {
+ if (!arguments.length) return copyIDs;
+ copyIDs = _;
+ copyGraph = history.graph();
+ return context;
+ };
+
/* Projection */
context.projection = iD.geo.RawMercator();
var background = iD.Background(context);
context.background = function() { return background; };
+ /* Features */
+ var features = iD.Features(context);
+ context.features = function() { return features; };
+ context.hasHiddenConnections = function(id) {
+ var graph = history.graph(),
+ entity = graph.entity(id);
+ return features.hasHiddenConnections(entity, graph);
+ };
+
/* Map */
var map = iD.Map(context);
context.map = function() { return map; };
context.layers = function() { return map.layers; };
context.surface = function() { return map.surface; };
+ context.editable = function() { return map.editable(); };
context.mouse = map.mouse;
context.extent = map.extent;
context.pan = map.pan;
context.zoomIn = map.zoomIn;
context.zoomOut = map.zoomOut;
+ context.zoomInFurther = map.zoomInFurther;
+ context.zoomOutFurther = map.zoomOutFurther;
context.surfaceRect = function() {
// Work around a bug in Firefox.
};
/* Presets */
- var presets = iD.presets()
- .load(iD.data.presets);
+ var presets = iD.presets();
- context.presets = function() {
- return presets;
+ context.presets = function(_) {
+ if (!arguments.length) return presets;
+ presets.load(_);
+ iD.areaKeys = presets.areaKeys();
+ return context;
+ };
+
+ context.imagery = function(_) {
+ background.load(_);
+ return context;
};
context.container = function(_) {
return context;
};
+ /* Taginfo */
+ var taginfo;
+ context.taginfo = function(_) {
+ if (!arguments.length) return taginfo;
+ taginfo = _;
+ return context;
+ };
+
var embed = false;
context.embed = function(_) {
if (!arguments.length) return embed;
return d3.rebind(context, dispatch, 'on');
};
-iD.version = '1.5.4';
+iD.version = '1.7.4';
(function() {
var detected = {};
var ua = navigator.userAgent,
- msie = new RegExp('MSIE ([0-9]{1,}[\\.0-9]{0,})');
+ m = null;
- if (msie.exec(ua) !== null) {
- var rv = parseFloat(RegExp.$1);
- detected.support = !(rv && rv < 9);
+ m = ua.match(/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/i); // IE11+
+ if (m !== null) {
+ detected.browser = 'msie';
+ detected.version = m[1];
+ }
+ if (!detected.browser) {
+ m = ua.match(/(opr)\/?\s*(\.?\d+(\.\d+)*)/i); // Opera 15+
+ if (m !== null) {
+ detected.browser = 'Opera';
+ detected.version = m[2];
+ }
+ }
+ if (!detected.browser) {
+ m = ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
+ if (m !== null) {
+ detected.browser = m[1];
+ detected.version = m[2];
+ m = ua.match(/version\/([\.\d]+)/i);
+ if (m !== null) detected.version = m[1];
+ }
+ }
+ if (!detected.browser) {
+ detected.browser = navigator.appName;
+ detected.version = navigator.appVersion;
+ }
+
+ // keep major.minor version only..
+ detected.version = detected.version.split(/\W/).slice(0,2).join('.');
+
+ if (detected.browser.toLowerCase() === 'msie') {
+ detected.browser = 'Internet Explorer';
+ detected.support = parseFloat(detected.version) > 9;
} else {
detected.support = true;
}
// Added due to incomplete svg style support. See #715
- detected.opera = ua.indexOf('Opera') >= 0;
+ detected.opera = (detected.browser.toLowerCase() === 'opera' && parseFloat(detected.version) < 15 );
- detected.locale = navigator.language || navigator.userLanguage;
+ detected.locale = navigator.language || navigator.userLanguage || 'en-US';
detected.filedrop = (window.FileReader && 'ondrop' in window);
return navigator.userAgent.indexOf(x) !== -1;
}
- if (nav('Win')) detected.os = 'win';
- else if (nav('Mac')) detected.os = 'mac';
- else if (nav('X11')) detected.os = 'linux';
- else if (nav('Linux')) detected.os = 'linux';
- else detected.os = 'win';
+ if (nav('Win')) {
+ detected.os = 'win';
+ detected.platform = 'Windows';
+ }
+ else if (nav('Mac')) {
+ detected.os = 'mac';
+ detected.platform = 'Macintosh';
+ }
+ else if (nav('X11') || nav('Linux')) {
+ detected.os = 'linux';
+ detected.platform = 'Linux';
+ }
+ else {
+ detected.os = 'win';
+ detected.platform = 'Unknown';
+ }
iD.detect = function() { return detected; };
})();
taginfo.keys = function(parameters, callback) {
var debounce = parameters.debounce;
- parameters = clean(shorten(setSort(setFilter(parameters))));
+ parameters = clean(shorten(setSort(parameters)));
request(endpoint + 'keys/all?' +
iD.util.qsString(_.extend({
rp: 10,
if (parameters.value) path = 'tag/wiki_pages?';
else if (parameters.rtype) path = 'relation/wiki_pages?';
+ var decoratedCallback;
+ if (parameters.value) {
+ decoratedCallback = function(err, data) {
+ // The third argument to callback is the softfail flag, to
+ // make the callback function not show a message to the end
+ // user when no docs are found but just return false.
+ var docsFound = callback(err, data, true);
+ if (!docsFound) {
+ taginfo.docs(_.omit(parameters, 'value'), callback);
+ }
+ };
+ }
+
request(endpoint + path +
- iD.util.qsString(parameters), debounce, callback);
+ iD.util.qsString(parameters), debounce, decoratedCallback || callback);
};
taginfo.endpoint = function(_) {
return entity.tags[localeName] || entity.tags.name || entity.tags.ref;
};
+iD.util.displayType = function(id) {
+ return {
+ n: t('inspector.node'),
+ w: t('inspector.way'),
+ r: t('inspector.relation')
+ }[id.charAt(0)];
+};
+
iD.util.stringQs = function(str) {
return str.split('&').reduce(function(obj, pair){
var parts = pair.split('=');
};
iD.util.qsString = function(obj, noencode) {
- function softEncode(s) { return s.replace('&', '%26'); }
+ function softEncode(s) {
+ // encode everything except special characters used in certain hash parameters:
+ // "/" in map states, ":", ",", {" and "}" in background
+ return encodeURIComponent(s).replace(/(%2F|%3A|%2C|%7B|%7D)/g, decodeURIComponent);
+ }
return Object.keys(obj).sort().map(function(key) {
return encodeURIComponent(key) + '=' + (
noencode ? softEncode(obj[key]) : encodeURIComponent(obj[key]));
// 1. Only works on HTML elements, not SVG
// 2. Does not cause style recalculation
iD.util.fastMouse = function(container) {
- var rect = _.clone(container.getBoundingClientRect()),
+ var rect = container.getBoundingClientRect(),
rectLeft = rect.left,
rectTop = rect.top,
clientLeft = +container.clientLeft,
};
};
-/* jshint -W103 */
+/* eslint-disable no-proto */
iD.util.getPrototypeOf = Object.getPrototypeOf || function(obj) { return obj.__proto__; };
+/* eslint-enable no-proto */
iD.util.asyncMap = function(inputs, func, callback) {
var remaining = inputs.length,
func(d, function done(err, data) {
errors[i] = err;
results[i] = data;
- remaining --;
+ remaining--;
if (!remaining) callback(errors, results);
});
});
return null;
};
+iD.geo.pathIntersections = function(path1, path2) {
+ var intersections = [];
+ for (var i = 0; i < path1.length - 1; i++) {
+ for (var j = 0; j < path2.length - 1; j++) {
+ var a = [ path1[i], path1[i+1] ],
+ b = [ path2[j], path2[j+1] ],
+ hit = iD.geo.lineIntersection(a, b);
+ if (hit) intersections.push(hit);
+ }
+ }
+ return intersections;
+};
+
// Return whether point is contained in polygon.
//
// `point` should be a 2-item array of coordinates.
});
};
-iD.geo.polygonIntersectsPolygon = function(outer, inner) {
- return _.some(inner, function(point) {
- return iD.geo.pointInPolygon(point, outer);
- });
+iD.geo.polygonIntersectsPolygon = function(outer, inner, checkSegments) {
+ function testSegments(outer, inner) {
+ for (var i = 0; i < outer.length - 1; i++) {
+ for (var j = 0; j < inner.length - 1; j++) {
+ var a = [ outer[i], outer[i+1] ],
+ b = [ inner[j], inner[j+1] ];
+ if (iD.geo.lineIntersection(a, b)) return true;
+ }
+ }
+ return false;
+ }
+
+ function testPoints(outer, inner) {
+ return _.some(inner, function(point) {
+ return iD.geo.pointInPolygon(point, outer);
+ });
+ }
+
+ return testPoints(outer, inner) || (!!checkSegments && testSegments(outer, inner));
};
iD.geo.pathLength = function(path) {
}
};
-iD.geo.Extent.prototype = [[], []];
+iD.geo.Extent.prototype = new Array(2);
_.extend(iD.geo.Extent.prototype, {
+ equals: function (obj) {
+ return this[0][0] === obj[0][0] &&
+ this[0][1] === obj[0][1] &&
+ this[1][0] === obj[1][0] &&
+ this[1][1] === obj[1][1];
+ },
+
extend: function(obj) {
if (!(obj instanceof iD.geo.Extent)) obj = new iD.geo.Extent(obj);
return iD.geo.Extent([Math.min(obj[0][0], this[0][0]),
Math.max(obj[1][1], this[1][1])]);
},
+ _extend: function(extent) {
+ this[0][0] = Math.min(extent[0][0], this[0][0]);
+ this[0][1] = Math.min(extent[0][1], this[0][1]);
+ this[1][0] = Math.max(extent[1][0], this[1][0]);
+ this[1][1] = Math.max(extent[1][1], this[1][1]);
+ },
+
area: function() {
return Math.abs((this[1][0] - this[0][0]) * (this[1][1] - this[0][1]));
},
];
},
+ contains: function(obj) {
+ if (!(obj instanceof iD.geo.Extent)) obj = new iD.geo.Extent(obj);
+ return obj[0][0] >= this[0][0] &&
+ obj[0][1] >= this[0][1] &&
+ obj[1][0] <= this[1][0] &&
+ obj[1][1] <= this[1][1];
+ },
+
intersects: function(obj) {
if (!(obj instanceof iD.geo.Extent)) obj = new iD.geo.Extent(obj);
return obj[0][0] <= this[1][0] &&
return intersection;
};
-iD.geo.inferRestriction = function(from, via, to, projection) {
- var angle = iD.geo.angle(via, from, projection) -
- iD.geo.angle(via, to, projection);
+
+iD.geo.inferRestriction = function(graph, from, via, to, projection) {
+ var fromWay = graph.entity(from.way),
+ fromNode = graph.entity(from.node),
+ toWay = graph.entity(to.way),
+ toNode = graph.entity(to.node),
+ viaNode = graph.entity(via.node),
+ fromOneWay = (fromWay.tags.oneway === 'yes' && fromWay.last() === via.node) ||
+ (fromWay.tags.oneway === '-1' && fromWay.first() === via.node),
+ toOneWay = (toWay.tags.oneway === 'yes' && toWay.first() === via.node) ||
+ (toWay.tags.oneway === '-1' && toWay.last() === via.node),
+ angle = iD.geo.angle(viaNode, fromNode, projection) -
+ iD.geo.angle(viaNode, toNode, projection);
angle = angle * 180 / Math.PI;
while (angle < 0)
angle += 360;
- if (angle < 23)
+ if (fromNode === toNode)
+ return 'no_u_turn';
+ if ((angle < 23 || angle > 336) && fromOneWay && toOneWay)
return 'no_u_turn';
if (angle < 158)
return 'no_right_turn';
- if (angle < 202)
- return 'no_straight_on';
- if (angle < 336)
+ if (angle > 202)
return 'no_left_turn';
- return 'no_u_turn';
+ return 'no_straight_on';
};
// For fixing up rendering of multipolygons with tags on the outer member.
// https://github.com/openstreetmap/iD/issues/613
var startIndex1 = way.nodes.lastIndexOf(startNode.id),
endIndex1 = way.nodes.lastIndexOf(endNode.id),
wayDirection1 = (endIndex1 - startIndex1);
- if (wayDirection1 < -1) { wayDirection1 = 1;}
+ if (wayDirection1 < -1) { wayDirection1 = 1; }
- /*jshint -W083 */
+ /* eslint-disable no-loop-func */
_.each(_.without(graph.parentWays(keyNodes[i]), way), function(sharedWay) {
if (sharedWay.areAdjacent(startNode.id, endNode.id)) {
var startIndex2 = sharedWay.nodes.lastIndexOf(startNode.id),
endIndex2 = sharedWay.nodes.lastIndexOf(endNode.id),
wayDirection2 = (endIndex2 - startIndex2),
insertAt = endIndex2;
- if (wayDirection2 < -1) { wayDirection2 = 1;}
+ if (wayDirection2 < -1) { wayDirection2 = 1; }
if (wayDirection1 !== wayDirection2) {
inBetweenNodes.reverse();
graph = graph.replace(sharedWay);
}
});
- /*jshint +W083 */
+ /* eslint-enable no-loop-func */
}
}
for (var i = 0; i < nodeIds.length - 1; i++) {
var node = graph.entity(nodeIds[i]);
- /*jshint -W083 */
+ /* eslint-disable no-loop-func */
graph.parentWays(node).forEach(function(parent) {
if (!parent.areAdjacent(node.id, survivor.id)) {
graph = graph.replace(parent.replaceNode(node.id, survivor.id));
graph.parentRelations(node).forEach(function(parent) {
graph = graph.replace(parent.replaceMember(node, survivor));
});
- /*jshint +W083 */
+ /* eslint-enable no-loop-func */
survivor = survivor.mergeTags(node.tags);
graph = iD.actions.DeleteNode(node.id)(graph);
return graph;
};
};
+iD.actions.CopyEntity = function(id, fromGraph, deep) {
+ var newEntities = [];
+
+ var action = function(graph) {
+ var entity = fromGraph.entity(id);
+
+ newEntities = entity.copy(deep, fromGraph);
+
+ for (var i = 0; i < newEntities.length; i++) {
+ graph = graph.replace(newEntities[i]);
+ }
+
+ return graph;
+ };
+
+ action.newEntities = function() {
+ return newEntities;
+ };
+
+ return action;
+};
iD.actions.DeleteMember = function(relationId, memberIndex) {
return function(graph) {
var relation = graph.entity(relationId)
return graph.remove(way);
};
- action.disabled = function() {
- return false;
+ action.disabled = function(graph) {
+ var disabled = false;
+
+ graph.parentRelations(graph.entity(wayId)).forEach(function(parent) {
+ var type = parent.tags.type,
+ role = parent.memberById(wayId).role || 'outer';
+ if (type === 'route' || type === 'boundary' || (type === 'multipolygon' && role === 'outer')) {
+ disabled = 'part_of_relation';
+ }
+ });
+
+ return disabled;
};
return action;
return action;
};
+iD.actions.MergeRemoteChanges = function(id, localGraph, remoteGraph, formatUser) {
+ var option = 'safe', // 'safe', 'force_local', 'force_remote'
+ conflicts = [];
+
+ function user(d) {
+ return _.isFunction(formatUser) ? formatUser(d) : d;
+ }
+
+
+ function mergeLocation(remote, target) {
+ function pointEqual(a, b) {
+ var epsilon = 1e-6;
+ return (Math.abs(a[0] - b[0]) < epsilon) && (Math.abs(a[1] - b[1]) < epsilon);
+ }
+
+ if (option === 'force_local' || pointEqual(target.loc, remote.loc)) {
+ return target;
+ }
+ if (option === 'force_remote') {
+ return target.update({loc: remote.loc});
+ }
+
+ conflicts.push(t('merge_remote_changes.conflict.location', { user: user(remote.user) }));
+ return target;
+ }
+
+
+ function mergeNodes(base, remote, target) {
+ if (option === 'force_local' || _.isEqual(target.nodes, remote.nodes)) {
+ return target;
+ }
+ if (option === 'force_remote') {
+ return target.update({nodes: remote.nodes});
+ }
+
+ var ccount = conflicts.length,
+ o = base.nodes || [],
+ a = target.nodes || [],
+ b = remote.nodes || [],
+ nodes = [],
+ hunks = Diff3.diff3_merge(a, o, b, true);
+
+ for (var i = 0; i < hunks.length; i++) {
+ var hunk = hunks[i];
+ if (hunk.ok) {
+ nodes.push.apply(nodes, hunk.ok);
+ } else {
+ // for all conflicts, we can assume c.a !== c.b
+ // because `diff3_merge` called with `true` option to exclude false conflicts..
+ var c = hunk.conflict;
+ if (_.isEqual(c.o, c.a)) { // only changed remotely
+ nodes.push.apply(nodes, c.b);
+ } else if (_.isEqual(c.o, c.b)) { // only changed locally
+ nodes.push.apply(nodes, c.a);
+ } else { // changed both locally and remotely
+ conflicts.push(t('merge_remote_changes.conflict.nodelist', { user: user(remote.user) }));
+ break;
+ }
+ }
+ }
+
+ return (conflicts.length === ccount) ? target.update({nodes: nodes}) : target;
+ }
+
+
+ function mergeChildren(targetWay, children, updates, graph) {
+ function isUsed(node, targetWay) {
+ var parentWays = _.pluck(graph.parentWays(node), 'id');
+ return node.hasInterestingTags() ||
+ _.without(parentWays, targetWay.id).length > 0 ||
+ graph.parentRelations(node).length > 0;
+ }
+
+ var ccount = conflicts.length;
+
+ for (var i = 0; i < children.length; i++) {
+ var id = children[i],
+ node = graph.hasEntity(id);
+
+ // remove unused childNodes..
+ if (targetWay.nodes.indexOf(id) === -1) {
+ if (node && !isUsed(node, targetWay)) {
+ updates.removeIds.push(id);
+ }
+ continue;
+ }
+
+ // restore used childNodes..
+ var local = localGraph.hasEntity(id),
+ remote = remoteGraph.hasEntity(id),
+ target;
+
+ if (option === 'force_remote' && remote && remote.visible) {
+ updates.replacements.push(remote);
+
+ } else if (option === 'force_local' && local) {
+ target = iD.Entity(local);
+ if (remote) {
+ target = target.update({ version: remote.version });
+ }
+ updates.replacements.push(target);
+
+ } else if (option === 'safe' && local && remote && local.version !== remote.version) {
+ target = iD.Entity(local, { version: remote.version });
+ if (remote.visible) {
+ target = mergeLocation(remote, target);
+ } else {
+ conflicts.push(t('merge_remote_changes.conflict.deleted', { user: user(remote.user) }));
+ }
+
+ if (conflicts.length !== ccount) break;
+ updates.replacements.push(target);
+ }
+ }
+
+ return targetWay;
+ }
+
+
+ function updateChildren(updates, graph) {
+ for (var i = 0; i < updates.replacements.length; i++) {
+ graph = graph.replace(updates.replacements[i]);
+ }
+ if (updates.removeIds.length) {
+ graph = iD.actions.DeleteMultiple(updates.removeIds)(graph);
+ }
+ return graph;
+ }
+
+
+ function mergeMembers(remote, target) {
+ if (option === 'force_local' || _.isEqual(target.members, remote.members)) {
+ return target;
+ }
+ if (option === 'force_remote') {
+ return target.update({members: remote.members});
+ }
+
+ conflicts.push(t('merge_remote_changes.conflict.memberlist', { user: user(remote.user) }));
+ return target;
+ }
+
+
+ function mergeTags(base, remote, target) {
+ function ignoreKey(k) {
+ return _.contains(iD.data.discarded, k);
+ }
+
+ if (option === 'force_local' || _.isEqual(target.tags, remote.tags)) {
+ return target;
+ }
+ if (option === 'force_remote') {
+ return target.update({tags: remote.tags});
+ }
+
+ var ccount = conflicts.length,
+ o = base.tags || {},
+ a = target.tags || {},
+ b = remote.tags || {},
+ keys = _.reject(_.union(_.keys(o), _.keys(a), _.keys(b)), ignoreKey),
+ tags = _.clone(a),
+ changed = false;
+
+ for (var i = 0; i < keys.length; i++) {
+ var k = keys[i];
+
+ if (o[k] !== b[k] && a[k] !== b[k]) { // changed remotely..
+ if (o[k] !== a[k]) { // changed locally..
+ conflicts.push(t('merge_remote_changes.conflict.tags',
+ { tag: k, local: a[k], remote: b[k], user: user(remote.user) }));
+
+ } else { // unchanged locally, accept remote change..
+ if (b.hasOwnProperty(k)) {
+ tags[k] = b[k];
+ } else {
+ delete tags[k];
+ }
+ changed = true;
+ }
+ }
+ }
+
+ return (changed && conflicts.length === ccount) ? target.update({tags: tags}) : target;
+ }
+
+
+ // `graph.base()` is the common ancestor of the two graphs.
+ // `localGraph` contains user's edits up to saving
+ // `remoteGraph` contains remote edits to modified nodes
+ // `graph` must be a descendent of `localGraph` and may include
+ // some conflict resolution actions performed on it.
+ //
+ // --- ... --- `localGraph` -- ... -- `graph`
+ // /
+ // `graph.base()` --- ... --- `remoteGraph`
+ //
+ var action = function(graph) {
+ var updates = { replacements: [], removeIds: [] },
+ base = graph.base().entities[id],
+ local = localGraph.entity(id),
+ remote = remoteGraph.entity(id),
+ target = iD.Entity(local, { version: remote.version });
+
+ // delete/undelete
+ if (!remote.visible) {
+ if (option === 'force_remote') {
+ return iD.actions.DeleteMultiple([id])(graph);
+
+ } else if (option === 'force_local') {
+ if (target.type === 'way') {
+ target = mergeChildren(target, _.uniq(local.nodes), updates, graph);
+ graph = updateChildren(updates, graph);
+ }
+ return graph.replace(target);
+
+ } else {
+ conflicts.push(t('merge_remote_changes.conflict.deleted', { user: user(remote.user) }));
+ return graph; // do nothing
+ }
+ }
+
+ // merge
+ if (target.type === 'node') {
+ target = mergeLocation(remote, target);
+
+ } else if (target.type === 'way') {
+ // pull in any child nodes that may not be present locally..
+ graph.rebase(remoteGraph.childNodes(remote), [graph], false);
+ target = mergeNodes(base, remote, target);
+ target = mergeChildren(target, _.union(local.nodes, remote.nodes), updates, graph);
+
+ } else if (target.type === 'relation') {
+ target = mergeMembers(remote, target);
+ }
+
+ target = mergeTags(base, remote, target);
+
+ if (!conflicts.length) {
+ graph = updateChildren(updates, graph).replace(target);
+ }
+
+ return graph;
+ };
+
+ action.withOption = function(opt) {
+ option = opt;
+ return action;
+ };
+
+ action.conflicts = function() {
+ return conflicts;
+ };
+
+ return action;
+};
// https://github.com/openstreetmap/josm/blob/mirror/src/org/openstreetmap/josm/command/MoveCommand.java
// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/MoveNodeAction.as
-iD.actions.Move = function(ids, delta, projection) {
- function addNodes(ids, nodes, graph) {
- ids.forEach(function(id) {
- var entity = graph.entity(id);
- if (entity.type === 'node') {
- nodes.push(id);
- } else if (entity.type === 'way') {
- nodes.push.apply(nodes, entity.nodes);
- } else {
- addNodes(_.pluck(entity.members, 'id'), nodes, graph);
+iD.actions.Move = function(moveIds, tryDelta, projection, cache) {
+ var delta = tryDelta;
+
+ function vecAdd(a, b) { return [a[0] + b[0], a[1] + b[1]]; }
+ function vecSub(a, b) { return [a[0] - b[0], a[1] - b[1]]; }
+
+ function setupCache(graph) {
+ function canMove(nodeId) {
+ var parents = _.pluck(graph.parentWays(graph.entity(nodeId)), 'id');
+ if (parents.length < 3) return true;
+
+ // Don't move a vertex where >2 ways meet, unless all parentWays are moving too..
+ var parentsMoving = _.all(parents, function(id) { return cache.moving[id]; });
+ if (!parentsMoving) delete cache.moving[nodeId];
+
+ return parentsMoving;
+ }
+
+ function cacheEntities(ids) {
+ _.each(ids, function(id) {
+ if (cache.moving[id]) return;
+ cache.moving[id] = true;
+
+ var entity = graph.hasEntity(id);
+ if (!entity) return;
+
+ if (entity.type === 'node') {
+ cache.nodes.push(id);
+ cache.startLoc[id] = entity.loc;
+ } else if (entity.type === 'way') {
+ cache.ways.push(id);
+ cacheEntities(entity.nodes);
+ } else {
+ cacheEntities(_.pluck(entity.members, 'id'));
+ }
+ });
+ }
+
+ function cacheIntersections(ids) {
+ function isEndpoint(way, id) { return !way.isClosed() && !!way.affix(id); }
+
+ _.each(ids, function(id) {
+ // consider only intersections with 1 moved and 1 unmoved way.
+ _.each(graph.childNodes(graph.entity(id)), function(node) {
+ var parents = graph.parentWays(node);
+ if (parents.length !== 2) return;
+
+ var moved = graph.entity(id),
+ unmoved = _.find(parents, function(way) { return !cache.moving[way.id]; });
+ if (!unmoved) return;
+
+ // exclude ways that are overly connected..
+ if (_.intersection(moved.nodes, unmoved.nodes).length > 2) return;
+
+ if (moved.isArea() || unmoved.isArea()) return;
+
+ cache.intersection[node.id] = {
+ nodeId: node.id,
+ movedId: moved.id,
+ unmovedId: unmoved.id,
+ movedIsEP: isEndpoint(moved, node.id),
+ unmovedIsEP: isEndpoint(unmoved, node.id)
+ };
+ });
+ });
+ }
+
+
+ if (!cache) {
+ cache = {};
+ }
+ if (!cache.ok) {
+ cache.moving = {};
+ cache.intersection = {};
+ cache.replacedVertex = {};
+ cache.startLoc = {};
+ cache.nodes = [];
+ cache.ways = [];
+
+ cacheEntities(moveIds);
+ cacheIntersections(cache.ways);
+ cache.nodes = _.filter(cache.nodes, canMove);
+
+ cache.ok = true;
+ }
+ }
+
+
+ // Place a vertex where the moved vertex used to be, to preserve way shape..
+ function replaceMovedVertex(nodeId, wayId, graph, delta) {
+ var way = graph.entity(wayId),
+ moved = graph.entity(nodeId),
+ movedIndex = way.nodes.indexOf(nodeId),
+ len, prevIndex, nextIndex;
+
+ if (way.isClosed()) {
+ len = way.nodes.length - 1;
+ prevIndex = (movedIndex + len - 1) % len;
+ nextIndex = (movedIndex + len + 1) % len;
+ } else {
+ len = way.nodes.length;
+ prevIndex = movedIndex - 1;
+ nextIndex = movedIndex + 1;
+ }
+
+ var prev = graph.hasEntity(way.nodes[prevIndex]),
+ next = graph.hasEntity(way.nodes[nextIndex]);
+
+ // Don't add orig vertex at endpoint..
+ if (!prev || !next) return graph;
+
+ var key = wayId + '_' + nodeId,
+ orig = cache.replacedVertex[key];
+ if (!orig) {
+ orig = iD.Node();
+ cache.replacedVertex[key] = orig;
+ cache.startLoc[orig.id] = cache.startLoc[nodeId];
+ }
+
+ var start, end;
+ if (delta) {
+ start = projection(cache.startLoc[nodeId]);
+ end = projection.invert(vecAdd(start, delta));
+ } else {
+ end = cache.startLoc[nodeId];
+ }
+ orig = orig.move(end);
+
+ var angle = Math.abs(iD.geo.angle(orig, prev, projection) -
+ iD.geo.angle(orig, next, projection)) * 180 / Math.PI;
+
+ // Don't add orig vertex if it would just make a straight line..
+ if (angle > 175 && angle < 185) return graph;
+
+ // Don't add orig vertex if another point is already nearby (within 10m)
+ if (iD.geo.sphericalDistance(prev.loc, orig.loc) < 10 ||
+ iD.geo.sphericalDistance(orig.loc, next.loc) < 10) return graph;
+
+ // moving forward or backward along way?
+ var p1 = [prev.loc, orig.loc, moved.loc, next.loc].map(projection),
+ p2 = [prev.loc, moved.loc, orig.loc, next.loc].map(projection),
+ d1 = iD.geo.pathLength(p1),
+ d2 = iD.geo.pathLength(p2),
+ insertAt = (d1 < d2) ? movedIndex : nextIndex;
+
+ // moving around closed loop?
+ if (way.isClosed() && insertAt === 0) insertAt = len;
+
+ way = way.addNode(orig.id, insertAt);
+ return graph.replace(orig).replace(way);
+ }
+
+ // Reorder nodes around intersections that have moved..
+ function unZorroIntersection(intersection, graph) {
+ var vertex = graph.entity(intersection.nodeId),
+ way1 = graph.entity(intersection.movedId),
+ way2 = graph.entity(intersection.unmovedId),
+ isEP1 = intersection.movedIsEP,
+ isEP2 = intersection.unmovedIsEP;
+
+ // don't move the vertex if it is the endpoint of both ways.
+ if (isEP1 && isEP2) return graph;
+
+ var nodes1 = _.without(graph.childNodes(way1), vertex),
+ nodes2 = _.without(graph.childNodes(way2), vertex);
+
+ if (way1.isClosed() && way1.first() === vertex.id) nodes1.push(nodes1[0]);
+ if (way2.isClosed() && way2.first() === vertex.id) nodes2.push(nodes2[0]);
+
+ var edge1 = !isEP1 && iD.geo.chooseEdge(nodes1, projection(vertex.loc), projection),
+ edge2 = !isEP2 && iD.geo.chooseEdge(nodes2, projection(vertex.loc), projection),
+ loc;
+
+ // snap vertex to nearest edge (or some point between them)..
+ if (!isEP1 && !isEP2) {
+ var epsilon = 1e-4, maxIter = 10;
+ for (var i = 0; i < maxIter; i++) {
+ loc = iD.geo.interp(edge1.loc, edge2.loc, 0.5);
+ edge1 = iD.geo.chooseEdge(nodes1, projection(loc), projection);
+ edge2 = iD.geo.chooseEdge(nodes2, projection(loc), projection);
+ if (Math.abs(edge1.distance - edge2.distance) < epsilon) break;
}
+ } else if (!isEP1) {
+ loc = edge1.loc;
+ } else {
+ loc = edge2.loc;
+ }
+
+ graph = graph.replace(vertex.move(loc));
+
+ // if zorro happened, reorder nodes..
+ if (!isEP1 && edge1.index !== way1.nodes.indexOf(vertex.id)) {
+ way1 = way1.removeNode(vertex.id).addNode(vertex.id, edge1.index);
+ graph = graph.replace(way1);
+ }
+ if (!isEP2 && edge2.index !== way2.nodes.indexOf(vertex.id)) {
+ way2 = way2.removeNode(vertex.id).addNode(vertex.id, edge2.index);
+ graph = graph.replace(way2);
+ }
+
+ return graph;
+ }
+
+
+ function cleanupIntersections(graph) {
+ _.each(cache.intersection, function(obj) {
+ graph = replaceMovedVertex(obj.nodeId, obj.movedId, graph, delta);
+ graph = replaceMovedVertex(obj.nodeId, obj.unmovedId, graph, null);
+ graph = unZorroIntersection(obj, graph);
});
+
+ return graph;
}
+ // check if moving way endpoint can cross an unmoved way, if so limit delta..
+ function limitDelta(graph) {
+ _.each(cache.intersection, function(obj) {
+ if (!obj.movedIsEP) return;
+
+ var node = graph.entity(obj.nodeId),
+ start = projection(node.loc),
+ end = vecAdd(start, delta),
+ movedNodes = graph.childNodes(graph.entity(obj.movedId)),
+ movedPath = _.map(_.pluck(movedNodes, 'loc'),
+ function(loc) { return vecAdd(projection(loc), delta); }),
+ unmovedNodes = graph.childNodes(graph.entity(obj.unmovedId)),
+ unmovedPath = _.map(_.pluck(unmovedNodes, 'loc'), projection),
+ hits = iD.geo.pathIntersections(movedPath, unmovedPath);
+
+ for (var i = 0; i < hits.length; i++) {
+ if (_.isEqual(hits[i], end)) continue;
+ var edge = iD.geo.chooseEdge(unmovedNodes, end, projection);
+ delta = vecSub(projection(edge.loc), start);
+ }
+ });
+ }
+
+
var action = function(graph) {
- var nodes = [];
+ if (delta[0] === 0 && delta[1] === 0) return graph;
- addNodes(ids, nodes, graph);
+ setupCache(graph);
- _.uniq(nodes).forEach(function(id) {
+ if (!_.isEmpty(cache.intersection)) {
+ limitDelta(graph);
+ }
+
+ _.each(cache.nodes, function(id) {
var node = graph.entity(id),
start = projection(node.loc),
- end = projection.invert([start[0] + delta[0], start[1] + delta[1]]);
- graph = graph.replace(node.move(end));
+ end = vecAdd(start, delta);
+ graph = graph.replace(node.move(projection.invert(end)));
});
+ if (!_.isEmpty(cache.intersection)) {
+ graph = cleanupIntersections(graph);
+ }
+
return graph;
};
return entity.type === 'relation' && !entity.isComplete(graph);
}
- if (_.any(ids, incompleteRelation))
+ if (_.any(moveIds, incompleteRelation))
return 'incomplete_relation';
};
+ action.delta = function() {
+ return delta;
+ };
+
return action;
};
// https://github.com/openstreetmap/josm/blob/mirror/src/org/openstreetmap/josm/command/MoveCommand.java
// `from.node` in `from.way` toward `to.node` in `to.way` via `via.node`.
// (The action does not check that these entities form a valid intersection.)
//
-// If `restriction` is not provided, it is automatically determined by the
-// angle of the turn:
-//
-// 0-23 degrees: no_u_turn
-// 23-158 degrees: no_right_turn
-// 158-202 degrees: no_straight_on
-// 202-326 degrees: no_left_turn
-// 336-360 degrees: no_u_turn
+// If `restriction` is not provided, it is automatically determined by
+// iD.geo.inferRestriction.
//
// If necessary, the `from` and `to` ways are split. In these cases, `from.node`
// and `to.node` are used to determine which portion of the split ways become
type: 'restriction',
restriction: turn.restriction ||
iD.geo.inferRestriction(
- graph.entity(turn.from.node),
- via,
- graph.entity(turn.to.node),
+ graph,
+ turn.from,
+ turn.via,
+ turn.to,
projection)
},
members: [
return graph.replace(way.update({nodes: nodes, tags: tags}));
};
};
+iD.actions.Revert = function(id) {
+
+ var action = function(graph) {
+ var entity = graph.hasEntity(id),
+ base = graph.base().entities[id];
+
+ if (entity && !base) { // entity will be removed..
+ if (entity.type === 'node') {
+ graph.parentWays(entity)
+ .forEach(function(parent) {
+ parent = parent.removeNode(id);
+ graph = graph.replace(parent);
+
+ if (parent.isDegenerate()) {
+ graph = iD.actions.DeleteWay(parent.id)(graph);
+ }
+ });
+ }
+
+ graph.parentRelations(entity)
+ .forEach(function(parent) {
+ parent = parent.removeMembersWithID(id);
+ graph = graph.replace(parent);
+
+ if (parent.isDegenerate()) {
+ graph = iD.actions.DeleteRelation(parent.id)(graph);
+ }
+ });
+ }
+
+ return graph.revert(id);
+ };
+
+ return action;
+};
iD.actions.RotateWay = function(wayId, pivot, angle, projection) {
return function(graph) {
return graph.update(function(graph) {
return d3.rebind(addWay, event, 'on');
};
+iD.behavior.Copy = function(context) {
+ var keybinding = d3.keybinding('copy');
+
+ function groupEntities(ids, graph) {
+ var entities = ids.map(function (id) { return graph.entity(id); });
+ return _.extend({relation: [], way: [], node: []},
+ _.groupBy(entities, function(entity) { return entity.type; }));
+ }
+
+ function getDescendants(id, graph, descendants) {
+ var entity = graph.entity(id),
+ i, children;
+
+ descendants = descendants || {};
+
+ if (entity.type === 'relation') {
+ children = _.pluck(entity.members, 'id');
+ } else if (entity.type === 'way') {
+ children = entity.nodes;
+ } else {
+ children = [];
+ }
+
+ for (i = 0; i < children.length; i++) {
+ if (!descendants[children[i]]) {
+ descendants[children[i]] = true;
+ descendants = getDescendants(children[i], graph, descendants);
+ }
+ }
+
+ return descendants;
+ }
+
+ function doCopy() {
+ d3.event.preventDefault();
+
+ var graph = context.graph(),
+ selected = groupEntities(context.selectedIDs(), graph),
+ canCopy = [],
+ skip = {},
+ i, entity;
+
+ for (i = 0; i < selected.relation.length; i++) {
+ entity = selected.relation[i];
+ if (!skip[entity.id] && entity.isComplete(graph)) {
+ canCopy.push(entity.id);
+ skip = getDescendants(entity.id, graph, skip);
+ }
+ }
+ for (i = 0; i < selected.way.length; i++) {
+ entity = selected.way[i];
+ if (!skip[entity.id]) {
+ canCopy.push(entity.id);
+ skip = getDescendants(entity.id, graph, skip);
+ }
+ }
+ for (i = 0; i < selected.node.length; i++) {
+ entity = selected.node[i];
+ if (!skip[entity.id]) {
+ canCopy.push(entity.id);
+ }
+ }
+
+ context.copyIDs(canCopy);
+ }
+
+ function copy() {
+ keybinding.on(iD.ui.cmd('⌘C'), doCopy);
+ d3.select(document).call(keybinding);
+ return copy;
+ }
+
+ copy.off = function() {
+ d3.select(document).call(keybinding.off);
+ };
+
+ return copy;
+};
/*
`iD.behavior.drag` is like `d3.behavior.drag`, with the following differences:
context.install(hover);
context.install(edit);
- if (!iD.behavior.Draw.usedTails[tail.text()]) {
+ if (!context.inIntro() && !iD.behavior.Draw.usedTails[tail.text()]) {
context.install(tail);
}
context.uninstall(hover);
context.uninstall(edit);
- if (!iD.behavior.Draw.usedTails[tail.text()]) {
+ if (!context.inIntro() && !iD.behavior.Draw.usedTails[tail.text()]) {
context.uninstall(tail);
iD.behavior.Draw.usedTails[tail.text()] = true;
}
iD.behavior.Edit = function(context) {
function edit() {
context.map()
- .minzoom(16);
+ .minzoom(context.minEditableZoom());
}
edit.off = function() {
center = map.center(),
zoom = map.zoom(),
precision = Math.max(0, Math.ceil(Math.log(zoom) / Math.LN2)),
- q = iD.util.stringQs(location.hash.substring(1)),
+ q = _.omit(iD.util.stringQs(location.hash.substring(1)), 'comment'),
newParams = {};
if (mode && mode.id === 'browse') {
if (location.hash) {
var q = iD.util.stringQs(location.hash.substring(1));
- if (q.id) context.loadEntity(q.id.split(',')[0], !q.map);
+ if (q.id) context.zoomToEntity(q.id.split(',')[0], !q.map);
+ if (q.comment) context.storage('comment', q.comment);
hashchange();
if (q.map) hash.hadHash = true;
}
return behavior;
};
+iD.behavior.Paste = function(context) {
+ var keybinding = d3.keybinding('paste');
+
+ function omitTag(v, k) {
+ return (
+ k === 'phone' ||
+ k === 'fax' ||
+ k === 'email' ||
+ k === 'website' ||
+ k === 'url' ||
+ k === 'note' ||
+ k === 'description' ||
+ k.indexOf('name') !== -1 ||
+ k.indexOf('wiki') === 0 ||
+ k.indexOf('addr:') === 0 ||
+ k.indexOf('contact:') === 0
+ );
+ }
+
+ function doPaste() {
+ d3.event.preventDefault();
+
+ var mouse = context.mouse(),
+ projection = context.projection,
+ viewport = iD.geo.Extent(projection.clipExtent()).polygon();
+
+ if (!iD.geo.pointInPolygon(mouse, viewport)) return;
+
+ var extent = iD.geo.Extent(),
+ oldIDs = context.copyIDs(),
+ oldGraph = context.copyGraph(),
+ newIDs = [],
+ i, j;
+
+ if (!oldIDs.length) return;
+
+ for (i = 0; i < oldIDs.length; i++) {
+ var oldEntity = oldGraph.entity(oldIDs[i]),
+ action = iD.actions.CopyEntity(oldEntity.id, oldGraph, true),
+ newEntities;
+
+ extent._extend(oldEntity.extent(oldGraph));
+ context.perform(action);
+
+ // First element in `newEntities` contains the copied Entity,
+ // Subsequent array elements contain any descendants..
+ newEntities = action.newEntities();
+ newIDs.push(newEntities[0].id);
+
+ for (j = 0; j < newEntities.length; j++) {
+ var newEntity = newEntities[j],
+ tags = _.omit(newEntity.tags, omitTag);
+
+ context.perform(iD.actions.ChangeTags(newEntity.id, tags));
+ }
+ }
+
+ // Put pasted objects where mouse pointer is..
+ var center = projection(extent.center()),
+ delta = [ mouse[0] - center[0], mouse[1] - center[1] ];
+
+ context.perform(iD.actions.Move(newIDs, delta, projection));
+ context.enter(iD.modes.Move(context, newIDs));
+ }
+
+ function paste() {
+ keybinding.on(iD.ui.cmd('⌘V'), doPaste);
+ d3.select(document).call(keybinding);
+ return paste;
+ }
+
+ paste.off = function() {
+ d3.select(document).call(keybinding.off);
+ };
+
+ return paste;
+};
iD.behavior.Select = function(context) {
function keydown() {
if (d3.event && d3.event.shiftKey) {
}
function click() {
- var datum = d3.event.target.__data__;
- var lasso = d3.select('#surface .lasso').node();
+ var datum = d3.event.target.__data__,
+ lasso = d3.select('#surface .lasso').node(),
+ mode = context.mode();
+
if (!(datum instanceof iD.Entity)) {
- if (!d3.event.shiftKey && !lasso)
+ if (!d3.event.shiftKey && !lasso && mode.id !== 'browse')
context.enter(iD.modes.Browse(context));
} else if (!d3.event.shiftKey && !lasso) {
if (context.selectedIDs().length !== 1 || context.selectedIDs()[0] !== datum.id) {
context.enter(iD.modes.Select(context, [datum.id]));
} else {
- context.mode().reselect();
+ mode.suppressMenu(false).reselect();
}
} else if (context.selectedIDs().indexOf(datum.id) >= 0) {
var selectedIDs = _.without(context.selectedIDs(), datum.id);
}, sidebar;
var behaviors = [
+ iD.behavior.Paste(context),
iD.behavior.Hover(context)
.on('hover', context.ui().sidebar.hover),
iD.behavior.Select(context),
});
if (sidebar) {
- context.ui().sidebar.hide(sidebar);
+ context.ui().sidebar.hide();
}
};
}
function start(entity) {
- cancelled = d3.event.sourceEvent.shiftKey;
+ cancelled = d3.event.sourceEvent.shiftKey ||
+ context.features().hasHiddenConnections(entity, context.graph());
+
if (cancelled) return behavior.cancel();
wasMidpoint = entity.type === 'midpoint';
annotation = entityIDs.length === 1 ?
t('operations.move.annotation.' + context.geometry(entityIDs[0])) :
t('operations.move.annotation.multiple'),
+ cache,
origin,
nudgeInterval;
+ function vecSub(a, b) { return [a[0] - b[0], a[1] - b[1]]; }
+
function edge(point, size) {
var pad = [30, 100, 30, 100];
if (point[0] > size[0] - pad[0]) return [-10, 0];
if (nudgeInterval) window.clearInterval(nudgeInterval);
nudgeInterval = window.setInterval(function() {
context.pan(nudge);
- context.replace(
- iD.actions.Move(entityIDs, [-nudge[0], -nudge[1]], context.projection),
- annotation);
- var c = context.projection(origin);
- origin = context.projection.invert([c[0] - nudge[0], c[1] - nudge[1]]);
+
+ var currMouse = context.mouse(),
+ origMouse = context.projection(origin),
+ delta = vecSub(vecSub(currMouse, origMouse), nudge),
+ action = iD.actions.Move(entityIDs, delta, context.projection, cache);
+
+ context.overwrite(action, annotation);
+
}, 50);
}
}
function move() {
- var p = context.mouse();
+ var currMouse = context.mouse(),
+ origMouse = context.projection(origin),
+ delta = vecSub(currMouse, origMouse),
+ action = iD.actions.Move(entityIDs, delta, context.projection, cache);
- var delta = origin ?
- [p[0] - context.projection(origin)[0],
- p[1] - context.projection(origin)[1]] :
- [0, 0];
+ context.overwrite(action, annotation);
- var nudge = edge(p, context.map().dimensions());
+ var nudge = edge(currMouse, context.map().dimensions());
if (nudge) startNudge(nudge);
else stopNudge();
-
- origin = context.map().mouseCoordinates();
-
- context.replace(
- iD.actions.Move(entityIDs, delta, context.projection),
- annotation);
}
function finish() {
d3.event.stopPropagation();
- context.enter(iD.modes.Select(context, entityIDs)
- .suppressMenu(true));
+ context.enter(iD.modes.Select(context, entityIDs).suppressMenu(true));
stopNudge();
}
function cancel() {
context.pop();
- context.enter(iD.modes.Select(context, entityIDs)
- .suppressMenu(true));
+ context.enter(iD.modes.Select(context, entityIDs).suppressMenu(true));
stopNudge();
}
}
mode.enter = function() {
+ origin = context.map().mouseCoordinates();
+ cache = {};
+
context.install(edit);
context.perform(
};
iD.modes.Save = function(context) {
var ui = iD.ui.Commit(context)
- .on('cancel', cancel)
- .on('save', save);
+ .on('cancel', cancel)
+ .on('save', save);
function cancel() {
context.enter(iD.modes.Browse(context));
}
- function save(e) {
- var loading = iD.ui.Loading(context)
- .message(t('save.uploading'))
- .blocking(true);
+ function save(e, tryAgain) {
+ function withChildNodes(ids, graph) {
+ return _.uniq(_.reduce(ids, function(result, id) {
+ var e = graph.entity(id);
+ if (e.type === 'way') {
+ var cn = graph.childNodes(e);
+ result.push.apply(result, _.pluck(_.filter(cn, 'version'), 'id'));
+ }
+ return result;
+ }, _.clone(ids)));
+ }
+
+ var loading = iD.ui.Loading(context).message(t('save.uploading')).blocking(true),
+ history = context.history(),
+ origChanges = history.changes(iD.actions.DiscardTags(history.difference())),
+ localGraph = context.graph(),
+ remoteGraph = iD.Graph(history.base(), true),
+ modified = _.filter(history.difference().summary(), {changeType: 'modified'}),
+ toCheck = _.pluck(_.pluck(modified, 'entity'), 'id'),
+ toLoad = withChildNodes(toCheck, localGraph),
+ conflicts = [],
+ errors = [];
+
+ if (!tryAgain) history.perform(iD.actions.Noop()); // checkpoint
+ context.container().call(loading);
+
+ if (toCheck.length) {
+ context.connection().loadMultiple(toLoad, loaded);
+ } else {
+ finalize();
+ }
- context.container()
- .call(loading);
-
- context.connection().putChangeset(
- context.history().changes(iD.actions.DiscardTags(context.history().difference())),
- e.comment,
- context.history().imageryUsed(),
- function(err, changeset_id) {
- loading.close();
- if (err) {
- var confirm = iD.ui.confirm(context.container());
- confirm
- .select('.modal-section.header')
- .append('h3')
- .text(t('save.error'));
- confirm
- .select('.modal-section.message-text')
- .append('p')
- .text(err.responseText);
- } else {
- context.flush();
- success(e, changeset_id);
+
+ // Reload modified entities into an alternate graph and check for conflicts..
+ function loaded(err, result) {
+ if (errors.length) return;
+
+ if (err) {
+ errors.push({
+ msg: err.responseText,
+ details: [ t('save.status_code', { code: err.status }) ]
+ });
+ showErrors();
+
+ } else {
+ var loadMore = [];
+ _.each(result.data, function(entity) {
+ remoteGraph.replace(entity);
+ toLoad = _.without(toLoad, entity.id);
+
+ // Because loadMultiple doesn't download /full like loadEntity,
+ // need to also load children that aren't already being checked..
+ if (!entity.visible) return;
+ if (entity.type === 'way') {
+ loadMore.push.apply(loadMore,
+ _.difference(entity.nodes, toCheck, toLoad, loadMore));
+ } else if (entity.type === 'relation' && entity.isMultipolygon()) {
+ loadMore.push.apply(loadMore,
+ _.difference(_.pluck(entity.members, 'id'), toCheck, toLoad, loadMore));
+ }
+ });
+
+ if (loadMore.length) {
+ toLoad.push.apply(toLoad, loadMore);
+ context.connection().loadMultiple(loadMore, loaded);
+ }
+
+ if (!toLoad.length) {
+ checkConflicts();
}
+ }
+ }
+
+
+ function checkConflicts() {
+ function choice(id, text, action) {
+ return { id: id, text: text, action: function() { history.replace(action); } };
+ }
+ function formatUser(d) {
+ return '<a href="' + context.connection().userURL(d) + '" target="_blank">' + d + '</a>';
+ }
+ function entityName(entity) {
+ return iD.util.displayName(entity) || (iD.util.displayType(entity.id) + ' ' + entity.id);
+ }
+
+ function compareVersions(local, remote) {
+ if (local.version !== remote.version) return false;
+
+ if (local.type === 'way') {
+ var children = _.union(local.nodes, remote.nodes);
+
+ for (var i = 0; i < children.length; i++) {
+ var a = localGraph.hasEntity(children[i]),
+ b = remoteGraph.hasEntity(children[i]);
+
+ if (a && b && a.version !== b.version) return false;
+ }
+ }
+
+ return true;
+ }
+
+ _.each(toCheck, function(id) {
+ var local = localGraph.entity(id),
+ remote = remoteGraph.entity(id);
+
+ if (compareVersions(local, remote)) return;
+
+ var action = iD.actions.MergeRemoteChanges,
+ merge = action(id, localGraph, remoteGraph, formatUser);
+
+ history.replace(merge);
+
+ var mergeConflicts = merge.conflicts();
+ if (!mergeConflicts.length) return; // merged safely
+
+ var forceLocal = action(id, localGraph, remoteGraph).withOption('force_local'),
+ forceRemote = action(id, localGraph, remoteGraph).withOption('force_remote'),
+ keepMine = t('save.conflict.' + (remote.visible ? 'keep_local' : 'restore')),
+ keepTheirs = t('save.conflict.' + (remote.visible ? 'keep_remote' : 'delete'));
+
+ conflicts.push({
+ id: id,
+ name: entityName(local),
+ details: mergeConflicts,
+ chosen: 1,
+ choices: [
+ choice(id, keepMine, forceLocal),
+ choice(id, keepTheirs, forceRemote)
+ ]
+ });
});
+
+ finalize();
+ }
+
+
+ function finalize() {
+ if (conflicts.length) {
+ conflicts.sort(function(a,b) { return b.id.localeCompare(a.id); });
+ showConflicts();
+ } else if (errors.length) {
+ showErrors();
+ } else {
+ var changes = history.changes(iD.actions.DiscardTags(history.difference()));
+ if (changes.modified.length || changes.created.length || changes.deleted.length) {
+ context.connection().putChangeset(
+ changes,
+ e.comment,
+ history.imageryUsed(),
+ function(err, changeset_id) {
+ if (err) {
+ errors.push({
+ msg: err.responseText,
+ details: [ t('save.status_code', { code: err.status }) ]
+ });
+ showErrors();
+ } else {
+ history.clearSaved();
+ success(e, changeset_id);
+ // Add delay to allow for postgres replication #1646 #2678
+ window.setTimeout(function() {
+ loading.close();
+ context.flush();
+ }, 2500);
+ }
+ });
+ } else { // changes were insignificant or reverted by user
+ loading.close();
+ context.flush();
+ cancel();
+ }
+ }
+ }
+
+
+ function showConflicts() {
+ var selection = context.container()
+ .select('#sidebar')
+ .append('div')
+ .attr('class','sidebar-component');
+
+ loading.close();
+
+ selection.call(iD.ui.Conflicts(context)
+ .list(conflicts)
+ .on('download', function() {
+ var data = JXON.stringify(context.connection().osmChangeJXON('CHANGEME', origChanges)),
+ win = window.open('data:text/xml,' + encodeURIComponent(data), '_blank');
+ win.focus();
+ })
+ .on('cancel', function() {
+ history.pop();
+ selection.remove();
+ })
+ .on('save', function() {
+ for (var i = 0; i < conflicts.length; i++) {
+ if (conflicts[i].chosen === 1) { // user chose "keep theirs"
+ var entity = context.hasEntity(conflicts[i].id);
+ if (entity && entity.type === 'way') {
+ var children = _.uniq(entity.nodes);
+ for (var j = 0; j < children.length; j++) {
+ history.replace(iD.actions.Revert(children[j]));
+ }
+ }
+ history.replace(iD.actions.Revert(conflicts[i].id));
+ }
+ }
+
+ selection.remove();
+ save(e, true);
+ })
+ );
+ }
+
+
+ function showErrors() {
+ var selection = iD.ui.confirm(context.container());
+
+ history.pop();
+ loading.close();
+
+ selection
+ .select('.modal-section.header')
+ .append('h3')
+ .text(t('save.error'));
+
+ addErrors(selection, errors);
+ selection.okButton();
+ }
+
+
+ function addErrors(selection, data) {
+ var message = selection
+ .select('.modal-section.message-text');
+
+ var items = message
+ .selectAll('.error-container')
+ .data(data);
+
+ var enter = items.enter()
+ .append('div')
+ .attr('class', 'error-container');
+
+ enter
+ .append('a')
+ .attr('class', 'error-description')
+ .attr('href', '#')
+ .classed('hide-toggle', true)
+ .text(function(d) { return d.msg || t('save.unknown_error_details'); })
+ .on('click', function() {
+ var error = d3.select(this),
+ detail = d3.select(this.nextElementSibling),
+ exp = error.classed('expanded');
+
+ detail.style('display', exp ? 'none' : 'block');
+ error.classed('expanded', !exp);
+
+ d3.event.preventDefault();
+ });
+
+ var details = enter
+ .append('div')
+ .attr('class', 'error-detail-container')
+ .style('display', 'none');
+
+ details
+ .append('ul')
+ .attr('class', 'error-detail-list')
+ .selectAll('li')
+ .data(function(d) { return d.details || []; })
+ .enter()
+ .append('li')
+ .attr('class', 'error-detail-item')
+ .text(function(d) { return d; });
+
+ items.exit()
+ .remove();
+ }
+
}
+
function success(e, changeset_id) {
context.enter(iD.modes.Browse(context)
.sidebar(iD.ui.Success(context)
id: changeset_id,
comment: e.comment
})
- .on('cancel', function(ui) {
- context.ui().sidebar.hide(ui);
+ .on('cancel', function() {
+ context.ui().sidebar.hide();
})));
}
id: 'save'
};
- var behaviors = [
- iD.behavior.Hover(context),
- iD.behavior.Select(context),
- iD.behavior.Lasso(context),
- iD.modes.DragNode(context).behavior];
-
mode.enter = function() {
- behaviors.forEach(function(behavior) {
- context.install(behavior);
- });
-
context.connection().authenticate(function() {
context.ui().sidebar.show(ui);
});
};
mode.exit = function() {
- behaviors.forEach(function(behavior) {
- context.uninstall(behavior);
- });
-
- context.ui().sidebar.hide(ui);
+ context.ui().sidebar.hide();
};
return mode;
var keybinding = d3.keybinding('select'),
timeout = null,
behaviors = [
+ iD.behavior.Copy(context),
+ iD.behavior.Paste(context),
iD.behavior.Hover(context),
iD.behavior.Select(context),
iD.behavior.Lasso(context),
var wrap = context.container()
.select('.inspector-wrap');
+
function singular() {
if (selectedIDs.length === 1) {
return context.entity(selectedIDs[0]);
}
}
+ function closeMenu() {
+ if (radialMenu) {
+ context.surface().call(radialMenu.close);
+ }
+ }
+
function positionMenu() {
- var entity = singular();
+ if (suppressMenu || !radialMenu) { return; }
- if (entity && entity.type === 'node') {
+ var entity = singular();
+ if (entity && context.geometry(entity.id) === 'relation') {
+ suppressMenu = true;
+ } else if (entity && entity.type === 'node') {
radialMenu.center(context.projection(entity.loc));
} else {
- radialMenu.center(context.mouse());
+ var point = context.mouse(),
+ viewport = iD.geo.Extent(context.projection.clipExtent()).polygon();
+ if (iD.geo.pointInPolygon(point, viewport)) {
+ radialMenu.center(point);
+ } else {
+ suppressMenu = true;
+ }
}
}
function showMenu() {
- context.surface()
- .call(radialMenu.close)
- .call(radialMenu);
+ closeMenu();
+ if (!suppressMenu && radialMenu) {
+ context.surface().call(radialMenu);
+ }
+ }
+
+ function toggleMenu() {
+ if (d3.select('.radial-menu').empty()) {
+ showMenu();
+ } else {
+ closeMenu();
+ }
}
mode.selectedIDs = function() {
};
mode.enter = function() {
- behaviors.forEach(function(behavior) {
- context.install(behavior);
- });
-
- var operations = _.without(d3.values(iD.operations), iD.operations.Delete)
- .map(function(o) { return o(selectedIDs, context); })
- .filter(function(o) { return o.available(); });
- operations.unshift(iD.operations.Delete(selectedIDs, context));
-
- keybinding.on('⎋', function() {
- context.enter(iD.modes.Browse(context));
- }, true);
-
- operations.forEach(function(operation) {
- operation.keys.forEach(function(key) {
- keybinding.on(key, function() {
- if (!operation.disabled()) {
- operation();
- }
- });
- });
- });
-
- context.ui().sidebar
- .select(singular() ? singular().id : null, newFeature);
-
- context.history()
- .on('undone.select', update)
- .on('redone.select', update);
-
function update() {
- context.surface().call(radialMenu.close);
-
+ closeMenu();
if (_.any(selectedIDs, function(id) { return !context.hasEntity(id); })) {
// Exit mode if selected entity gets undone
context.enter(iD.modes.Browse(context));
}
}
- context.map().on('move.select', function() {
- context.surface().call(radialMenu.close);
- });
-
function dblclick() {
var target = d3.select(d3.event.target),
datum = target.datum();
}
}
+ function selectElements(drawn) {
+ var entity = singular();
+ if (entity && context.geometry(entity.id) === 'relation') {
+ suppressMenu = true;
+ return;
+ }
+
+ var selection = context.surface()
+ .selectAll(iD.util.entityOrMemberSelector(selectedIDs, context.graph()));
+
+ if (selection.empty()) {
+ if (drawn) { // Exit mode if selected DOM elements have disappeared..
+ context.enter(iD.modes.Browse(context));
+ }
+ } else {
+ selection
+ .classed('selected', true);
+ }
+ }
+
+
+ behaviors.forEach(function(behavior) {
+ context.install(behavior);
+ });
+
+ var operations = _.without(d3.values(iD.operations), iD.operations.Delete)
+ .map(function(o) { return o(selectedIDs, context); })
+ .filter(function(o) { return o.available(); });
+
+ operations.unshift(iD.operations.Delete(selectedIDs, context));
+
+ keybinding
+ .on('⎋', function() { context.enter(iD.modes.Browse(context)); }, true)
+ .on('space', toggleMenu);
+
+ operations.forEach(function(operation) {
+ operation.keys.forEach(function(key) {
+ keybinding.on(key, function() {
+ if (!operation.disabled()) {
+ operation();
+ }
+ });
+ });
+ });
+
d3.select(document)
.call(keybinding);
- function selectElements() {
- context.surface()
- .selectAll(iD.util.entityOrMemberSelector(selectedIDs, context.graph()))
- .classed('selected', true);
- }
+ radialMenu = iD.ui.RadialMenu(context, operations);
+
+ context.ui().sidebar
+ .select(singular() ? singular().id : null, newFeature);
+
+ context.history()
+ .on('undone.select', update)
+ .on('redone.select', update);
+
+ context.map()
+ .on('move.select', closeMenu)
+ .on('drawn.select', selectElements);
- context.map().on('drawn.select', selectElements);
selectElements();
- radialMenu = iD.ui.RadialMenu(context, operations);
var show = d3.event && !suppressMenu;
if (show) {
});
keybinding.off();
+ closeMenu();
+ radialMenu = undefined;
context.history()
.on('undone.select', null)
.on('redone.select', null);
context.surface()
- .call(radialMenu.close)
.on('dblclick.select', null)
.selectAll('.selected')
.classed('selected', false);
var reason;
if (extent.percentContainedIn(context.extent()) < 0.8) {
reason = 'too_large';
+ } else if (context.hasHiddenConnections(entityId)) {
+ reason = 'connected_to_hidden';
}
return action.disabled(context.graph()) || reason;
};
};
operation.available = function() {
- return geometries.vertex.length === 1 && geometries.line.length <= 1;
+ return geometries.vertex.length === 1 && geometries.line.length <= 1 &&
+ !context.features().hasHiddenConnections(vertex, context.graph());
};
operation.disabled = function() {
};
operation.disabled = function() {
- return action.disabled(context.graph());
+ var reason;
+ if (_.any(selectedIDs, context.hasHiddenConnections)) {
+ reason = 'connected_to_hidden';
+ }
+ return action.disabled(context.graph()) || reason;
};
operation.tooltip = function() {
};
operation.disabled = function() {
- return action.disabled(context.graph());
+ var reason;
+ if (_.any(selectedIDs, context.hasHiddenConnections)) {
+ reason = 'connected_to_hidden';
+ }
+ return action.disabled(context.graph()) || reason;
};
operation.tooltip = function() {
var reason;
if (extent.area() && extent.percentContainedIn(context.extent()) < 0.8) {
reason = 'too_large';
+ } else if (_.any(selectedIDs, context.hasHiddenConnections)) {
+ reason = 'connected_to_hidden';
}
return iD.actions.Move(selectedIDs).disabled(context.graph()) || reason;
};
var reason;
if (extent.percentContainedIn(context.extent()) < 0.8) {
reason = 'too_large';
+ } else if (context.hasHiddenConnections(entityId)) {
+ reason = 'connected_to_hidden';
}
return action.disabled(context.graph()) || reason;
};
operation.disabled = function() {
if (extent.percentContainedIn(context.extent()) < 0.8) {
return 'too_large';
+ } else if (context.hasHiddenConnections(entityId)) {
+ return 'connected_to_hidden';
} else {
return false;
}
};
operation.disabled = function() {
- return action.disabled(context.graph());
+ var reason;
+ if (_.any(selectedIDs, context.hasHiddenConnections)) {
+ reason = 'connected_to_hidden';
+ }
+ return action.disabled(context.graph()) || reason;
};
operation.tooltip = function() {
};
operation.disabled = function() {
- return action.disabled(context.graph());
+ var reason;
+ if (context.hasHiddenConnections(entityId)) {
+ reason = 'connected_to_hidden';
+ }
+ return action.disabled(context.graph()) || reason;
};
operation.tooltip = function() {
return operation;
};
-/* jshint -W109 */
-iD.areaKeys = {
- "aeroway": {
- "gate": true,
- "taxiway": true
- },
- "amenity": {
- "atm": true,
- "bbq": true,
- "bench": true,
- "clock": true,
- "drinking_water": true,
- "parking_entrance": true,
- "post_box": true,
- "telephone": true,
- "vending_machine": true,
- "waste_basket": true
- },
- "area": {},
- "barrier": {
- "block": true,
- "bollard": true,
- "cattle_grid": true,
- "cycle_barrier": true,
- "entrance": true,
- "fence": true,
- "gate": true,
- "kissing_gate": true,
- "lift_gate": true,
- "stile": true,
- "toll_booth": true
- },
- "building": {
- "entrance": true
- },
- "craft": {},
- "emergency": {
- "fire_hydrant": true,
- "phone": true
- },
- "golf": {
- "hole": true
- },
- "historic": {
- "boundary_stone": true
- },
- "landuse": {},
- "leisure": {
- "picnic_table": true,
- "slipway": true
- },
- "man_made": {
- "cutline": true,
- "embankment": true,
- "flagpole": true,
- "pipeline": true,
- "survey_point": true
- },
- "military": {},
- "natural": {
- "coastline": true,
- "peak": true,
- "spring": true,
- "tree": true
- },
- "office": {},
- "piste:type": {},
- "place": {},
- "power": {
- "line": true,
- "minor_line": true,
- "pole": true,
- "tower": true
- },
- "public_transport": {
- "stop_position": true
- },
- "shop": {},
- "tourism": {
- "viewpoint": true
- },
- "waterway": {
- "canal": true,
- "ditch": true,
- "drain": true,
- "river": true,
- "stream": true,
- "weir": true
- }
-};iD.Connection = function() {
-
- var event = d3.dispatch('authenticating', 'authenticated', 'auth', 'loading', 'load', 'loaded'),
- url = 'http://www.openstreetmap.org',
+iD.Connection = function(useHttps) {
+ if (typeof useHttps !== 'boolean') {
+ useHttps = window.location.protocol === 'https:';
+ }
+
+ var event = d3.dispatch('authenticating', 'authenticated', 'auth', 'loading', 'loaded'),
+ protocol = useHttps ? 'https:' : 'http:',
+ url = protocol + '//www.openstreetmap.org',
connection = {},
inflight = {},
loadedTiles = {},
tileZoom = 16,
oauth = osmAuth({
- url: 'http://www.openstreetmap.org',
+ url: protocol + '//www.openstreetmap.org',
oauth_consumer_key: '5A043yRSEugj4DJ5TljuapfnrflWDte8jTOcWLlT',
oauth_secret: 'aB3jKq1TRsCOUrfOIZ6oQMEDmv2ptV76PA54NGLL',
loading: authenticating,
nodeStr = 'node',
wayStr = 'way',
relationStr = 'relation',
+ userDetails,
off;
+
connection.changesetURL = function(changesetId) {
return url + '/changeset/' + changesetId;
};
};
connection.loadFromURL = function(url, callback) {
- function done(dom) {
- return callback(null, parse(dom));
+ function done(err, dom) {
+ return callback(err, parse(dom));
}
- return d3.xml(url).get().on('load', done);
+ return d3.xml(url).get(done);
};
connection.loadEntity = function(id, callback) {
connection.loadFromURL(
url + '/api/0.6/' + type + '/' + osmID + (type !== 'node' ? '/full' : ''),
function(err, entities) {
- event.load(err, {data: entities});
- if (callback) callback(err, entities && _.find(entities, function(e) { return e.id === id; }));
+ if (callback) callback(err, {data: entities});
+ });
+ };
+
+ connection.loadEntityVersion = function(id, version, callback) {
+ var type = iD.Entity.id.type(id),
+ osmID = iD.Entity.id.toOSM(id);
+
+ connection.loadFromURL(
+ url + '/api/0.6/' + type + '/' + osmID + '/' + version,
+ function(err, entities) {
+ if (callback) callback(err, {data: entities});
});
};
+ connection.loadMultiple = function(ids, callback) {
+ _.each(_.groupBy(_.uniq(ids), iD.Entity.id.type), function(v, k) {
+ var type = k + 's',
+ osmIDs = _.map(v, iD.Entity.id.toOSM);
+
+ _.each(_.chunk(osmIDs, 150), function(arr) {
+ connection.loadFromURL(
+ url + '/api/0.6/' + type + '?' + type + '=' + arr.join(),
+ function(err, entities) {
+ if (callback) callback(err, {data: entities});
+ });
+ });
+ });
+ };
+
function authenticating() {
event.authenticating();
}
event.authenticated();
}
+ function getLoc(attrs) {
+ var lon = attrs.lon && attrs.lon.value,
+ lat = attrs.lat && attrs.lat.value;
+ return [parseFloat(lon), parseFloat(lat)];
+ }
+
function getNodes(obj) {
var elems = obj.getElementsByTagName(ndStr),
nodes = new Array(elems.length);
return members;
}
+ function getVisible(attrs) {
+ return (!attrs.visible || attrs.visible.value !== 'false');
+ }
+
var parsers = {
node: function nodeData(obj) {
var attrs = obj.attributes;
return new iD.Node({
id: iD.Entity.id.fromOSM(nodeStr, attrs.id.value),
- loc: [parseFloat(attrs.lon.value), parseFloat(attrs.lat.value)],
+ loc: getLoc(attrs),
version: attrs.version.value,
user: attrs.user && attrs.user.value,
- tags: getTags(obj)
+ tags: getTags(obj),
+ visible: getVisible(attrs)
});
},
version: attrs.version.value,
user: attrs.user && attrs.user.value,
tags: getTags(obj),
- nodes: getNodes(obj)
+ nodes: getNodes(obj),
+ visible: getVisible(attrs)
});
},
version: attrs.version.value,
user: attrs.user && attrs.user.value,
tags: getTags(obj),
- members: getMembers(obj)
+ members: getMembers(obj),
+ visible: getVisible(attrs)
});
}
};
function parse(dom) {
- if (!dom || !dom.childNodes) return new Error('Bad request');
+ if (!dom || !dom.childNodes) return;
var root = dom.childNodes[0],
children = root.childNodes,
tag: _.map(tags, function(value, key) {
return { '@k': key, '@v': value };
}),
- '@version': 0.3,
+ '@version': 0.6,
'@generator': 'iD'
}
}
return {
osmChange: {
- '@version': 0.3,
+ '@version': 0.6,
'@generator': 'iD',
'create': nest(changes.created.map(rep), ['node', 'way', 'relation']),
'modify': nest(changes.modified.map(rep), ['node', 'way', 'relation']),
};
connection.changesetTags = function(comment, imageryUsed) {
- var tags = {
- imagery_used: imageryUsed.join(';').substr(0, 255),
- created_by: 'iD ' + iD.version
- };
+ var detected = iD.detect(),
+ tags = {
+ created_by: 'iD ' + iD.version,
+ imagery_used: imageryUsed.join(';').substr(0, 255),
+ host: (window.location.origin + window.location.pathname).substr(0, 255),
+ locale: detected.locale
+ };
if (comment) {
- tags.comment = comment;
+ tags.comment = comment.substr(0, 255);
}
return tags;
content: JXON.stringify(connection.osmChangeJXON(changeset_id, changes))
}, function(err) {
if (err) return callback(err);
+ // POST was successful, safe to call the callback.
+ // Still attempt to close changeset, but ignore response because #2667
+ // Add delay to allow for postgres replication #1646 #2678
+ window.setTimeout(function() { callback(null, changeset_id); }, 2500);
oauth.xhr({
method: 'PUT',
path: '/api/0.6/changeset/' + changeset_id + '/close'
- }, function(err) {
- callback(err, changeset_id);
- });
+ }, d3.functor(true));
});
});
};
- var userDetails;
-
connection.userDetails = function(callback) {
if (userDetails) {
callback(undefined, userDetails);
return connection;
};
- connection.loadTiles = function(projection, dimensions) {
+ connection.loadTiles = function(projection, dimensions, callback) {
if (off) return;
loadedTiles[id] = true;
delete inflight[id];
- event.load(err, _.extend({data: parsed}, tile));
+ if (callback) callback(err, _.extend({data: parsed}, tile));
if (_.isEmpty(inflight)) {
event.loaded();
};
connection.flush = function() {
+ userDetails = undefined;
_.forEach(inflight, abortRequest);
loadedTiles = {};
inflight = {};
};
connection.logout = function() {
+ userDetails = undefined;
oauth.logout();
event.auth();
return connection;
};
connection.authenticate = function(callback) {
+ userDetails = undefined;
function done(err, res) {
event.auth();
if (callback) callback(err, res);
var changes = {}, length = 0;
function changed(h, b) {
- return !_.isEqual(_.omit(h, 'v'), _.omit(b, 'v'));
+ return h !== b && !_.isEqual(_.omit(h, 'v'), _.omit(b, 'v'));
}
_.each(head.entities, function(h, id) {
var source = sources[i];
for (var prop in source) {
if (Object.prototype.hasOwnProperty.call(source, prop)) {
- this[prop] = source[prop];
+ if (source[prop] === undefined) {
+ delete this[prop];
+ } else {
+ this[prop] = source[prop];
+ }
}
}
}
if (!this.id && this.type) {
this.id = iD.Entity.id(this.type);
}
+ if (!this.hasOwnProperty('visible')) {
+ this.visible = true;
+ }
if (iD.debug) {
Object.freeze(this);
return this;
},
+ copy: function() {
+ // Returns an array so that we can support deep copying ways and relations.
+ // The first array element will contain this.copy, followed by any descendants.
+ return [iD.Entity(this, {id: undefined, user: undefined, version: undefined})];
+ },
+
osmId: function() {
return iD.Entity.id.toOSM(this.id);
},
this.transients = {};
this._childNodes = {};
-
- if (!mutable) {
- this.freeze();
- }
+ this.frozen = !mutable;
};
iD.Graph.prototype = {
},
parentWays: function(entity) {
- return _.map(this._parentWays[entity.id], this.entity, this);
+ var parents = this._parentWays[entity.id],
+ result = [];
+
+ if (parents) {
+ for (var i = 0; i < parents.length; i++) {
+ result.push(this.entity(parents[i]));
+ }
+ }
+ return result;
},
isPoi: function(entity) {
},
parentRelations: function(entity) {
- return _.map(this._parentRels[entity.id], this.entity, this);
+ var parents = this._parentRels[entity.id],
+ result = [];
+
+ if (parents) {
+ for (var i = 0; i < parents.length; i++) {
+ result.push(this.entity(parents[i]));
+ }
+ }
+ return result;
},
childNodes: function(entity) {
return this._childNodes[entity.id];
var nodes = [];
- for (var i = 0, l = entity.nodes.length; i < l; i++) {
- nodes[i] = this.entity(entity.nodes[i]);
+ if (entity.nodes) {
+ for (var i = 0; i < entity.nodes.length; i++) {
+ nodes[i] = this.entity(entity.nodes[i]);
+ }
}
if (iD.debug) Object.freeze(nodes);
// is used only during the history operation that merges newly downloaded
// data into each state. To external consumers, it should appear as if the
// graph always contained the newly downloaded data.
- rebase: function(entities, stack) {
+ rebase: function(entities, stack, force) {
var base = this.base(),
i, j, k, id;
for (i = 0; i < entities.length; i++) {
var entity = entities[i];
- if (base.entities[entity.id])
+ if (!entity.visible || (!force && base.entities[entity.id]))
continue;
// Merging data into the base graph
base.entities[entity.id] = entity;
- this._updateCalculated(undefined, entity,
- base.parentWays, base.parentRels);
+ this._updateCalculated(undefined, entity, base.parentWays, base.parentRels);
// Restore provisionally-deleted nodes that are discovered to have an extant parent
if (entity.type === 'way') {
});
},
+ revert: function(id) {
+ var baseEntity = this.base().entities[id],
+ headEntity = this.entities[id];
+
+ if (headEntity === baseEntity)
+ return this;
+
+ return this.update(function() {
+ this._updateCalculated(headEntity, baseEntity);
+ delete this.entities[id];
+ });
+ },
+
update: function() {
var graph = this.frozen ? iD.Graph(this, true) : this;
arguments[i].call(graph, graph);
}
- return this.frozen ? graph.freeze() : this;
- },
-
- freeze: function() {
- this.frozen = true;
-
- // No longer freezing entities here due to in-place updates needed in rebase.
+ if (this.frozen) graph.frozen = true;
- return this;
+ return graph;
},
// Obliterates any existing entities
return stack[index].graph;
},
+ base: function() {
+ return stack[0].graph;
+ },
+
merge: function(entities, extent) {
- stack[0].graph.rebase(entities, _.pluck(stack, 'graph'));
- tree.rebase(entities);
+ stack[0].graph.rebase(entities, _.pluck(stack, 'graph'), false);
+ tree.rebase(entities, false);
dispatch.change(undefined, extent);
},
}
},
+ // Same as calling pop and then perform
+ overwrite: function() {
+ var previous = stack[index].graph;
+
+ if (index > 0) {
+ index--;
+ stack.pop();
+ }
+ stack = stack.slice(0, index + 1);
+ stack.push(perform(arguments));
+ index++;
+
+ return change(previous);
+ },
+
undo: function() {
var previous = stack[index].graph;
};
},
+ validate: function(changes) {
+ return _(iD.validations)
+ .map(function(fn) { return fn()(changes, stack[index].graph); })
+ .flatten()
+ .value();
+ },
+
hasChanges: function() {
return this.difference().length() > 0;
},
},
toJSON: function() {
- if (stack.length <= 1) return;
+ if (!this.hasChanges()) return;
var allEntities = {},
baseEntities = {},
if (id in base.graph.entities) {
baseEntities[id] = base.graph.entities[id];
}
+ // get originals of parent entities too
+ _.forEach(base.graph._parentWays[id], function(parentId) {
+ if (parentId in base.graph.entities) {
+ baseEntities[parentId] = base.graph.entities[parentId];
+ }
+ });
});
var x = {};
});
},
- fromJSON: function(json) {
+ fromJSON: function(json, loadChildNodes) {
var h = JSON.parse(json);
iD.Entity.id.next = h.nextIDs;
});
if (h.version === 3) {
- // this merges originals for changed entities into the base of
+ // This merges originals for changed entities into the base of
// the stack even if the current stack doesn't have them (for
// example when iD has been restarted in a different region)
- var baseEntities = h.baseEntities.map(iD.Entity);
- stack[0].graph.rebase(baseEntities, _.pluck(stack, 'graph'));
- tree.rebase(baseEntities);
+ var baseEntities = h.baseEntities.map(function(entity) {
+ return iD.Entity(entity);
+ });
+ stack[0].graph.rebase(baseEntities, _.pluck(stack, 'graph'), true);
+ tree.rebase(baseEntities, true);
+
+ // When we restore a modified way, we also need to fetch any missing
+ // childnodes that would normally have been downloaded with it.. #2142
+ if (loadChildNodes) {
+ var missing = _(baseEntities)
+ .filter('type', 'way')
+ .pluck('nodes')
+ .flatten()
+ .uniq()
+ .reject(function(n) { return stack[0].graph.hasEntity(n); })
+ .value();
+
+ if (!_.isEmpty(missing)) {
+ var childNodesLoaded = function(err, result) {
+ if (err) return;
+
+ var visible = _.groupBy(result.data, 'visible');
+ if (!_.isEmpty(visible.true)) {
+ stack[0].graph.rebase(visible.true, _.pluck(stack, 'graph'), false);
+ tree.rebase(visible.true, false);
+ }
+
+ // fetch older versions of nodes that were deleted..
+ _.each(visible.false, function(entity) {
+ context.connection()
+ .loadEntityVersion(entity.id, +entity.version - 1, childNodesLoaded);
+ });
+ };
+
+ context.connection().loadMultiple(missing, childNodesLoaded);
+ }
+ }
}
stack = h.stack.map(function(d) {
if (!lock.locked()) return;
var json = context.storage(getKey('saved_history'));
- if (json) history.fromJSON(json);
+ if (json) history.fromJSON(json, true);
},
_getKey: getKey
type: 'relation',
members: [],
+ copy: function(deep, resolver, replacements) {
+ var copy = iD.Entity.prototype.copy.call(this);
+ if (!deep || !resolver || !this.isComplete(resolver)) {
+ return copy;
+ }
+
+ var members = [],
+ i, oldmember, oldid, newid, children;
+
+ replacements = replacements || {};
+ replacements[this.id] = copy[0].id;
+
+ for (i = 0; i < this.members.length; i++) {
+ oldmember = this.members[i];
+ oldid = oldmember.id;
+ newid = replacements[oldid];
+ if (!newid) {
+ children = resolver.entity(oldid).copy(true, resolver, replacements);
+ newid = replacements[oldid] = children[0].id;
+ copy = copy.concat(children);
+ }
+ members.push({id: newid, type: oldmember.type, role: oldmember.role});
+ }
+
+ copy[0] = copy[0].update({members: members});
+ return copy;
+ },
+
extent: function(resolver, memo) {
return resolver.transient(this, 'extent', function() {
if (memo && memo[this.id]) return iD.geo.Extent();
memo = memo || {};
memo[this.id] = true;
- return this.members.reduce(function(extent, member) {
- member = resolver.hasEntity(member.id);
+
+ var extent = iD.geo.Extent();
+ for (var i = 0; i < this.members.length; i++) {
+ var member = resolver.hasEntity(this.members[i].id);
if (member) {
- return extent.extend(member.extent(resolver, memo));
- } else {
- return extent;
+ extent._extend(member.extent(resolver, memo));
}
- }, iD.geo.Extent());
+ }
+ return extent;
});
},
}
function updateParents(entity, insertions, memo) {
- if (memo && memo[entity.id]) return;
- memo = memo || {};
- memo[entity.id] = true;
-
head.parentWays(entity).forEach(function(parent) {
if (rectangles[parent.id]) {
rtree.remove(rectangles[parent.id]);
- insertions.push(parent);
+ insertions[parent.id] = parent;
}
});
head.parentRelations(entity).forEach(function(parent) {
+ if (memo[entity.id]) return;
+ memo[entity.id] = true;
if (rectangles[parent.id]) {
rtree.remove(rectangles[parent.id]);
- insertions.push(parent);
+ insertions[parent.id] = parent;
}
updateParents(parent, insertions, memo);
});
var tree = {};
- tree.rebase = function(entities) {
- var insertions = [];
+ tree.rebase = function(entities, force) {
+ var insertions = {};
- entities.forEach(function(entity) {
- if (head.entities.hasOwnProperty(entity.id) || rectangles[entity.id])
- return;
+ for (var i = 0; i < entities.length; i++) {
+ var entity = entities[i];
- insertions.push(entity);
- updateParents(entity, insertions);
- });
+ if (!entity.visible)
+ continue;
- insertions = _.unique(insertions).map(entityRectangle);
- rtree.load(insertions);
+ if (head.entities.hasOwnProperty(entity.id) || rectangles[entity.id]) {
+ if (!force) {
+ continue;
+ } else if (rectangles[entity.id]) {
+ rtree.remove(rectangles[entity.id]);
+ }
+ }
+
+ insertions[entity.id] = entity;
+ updateParents(entity, insertions, {});
+ }
+
+ rtree.load(_.map(insertions, entityRectangle));
return tree;
};
tree.intersects = function(extent, graph) {
if (graph !== head) {
var diff = iD.Difference(head, graph),
- insertions = [];
+ insertions = {};
head = graph;
diff.modified().forEach(function(entity) {
rtree.remove(rectangles[entity.id]);
- insertions.push(entity);
- updateParents(entity, insertions);
+ insertions[entity.id] = entity;
+ updateParents(entity, insertions, {});
});
diff.created().forEach(function(entity) {
- insertions.push(entity);
+ insertions[entity.id] = entity;
});
- insertions = _.unique(insertions).map(entityRectangle);
- rtree.load(insertions);
+ rtree.load(_.map(insertions, entityRectangle));
}
return rtree.search(extentRectangle(extent)).map(function(rect) {
type: 'way',
nodes: [],
+ copy: function(deep, resolver) {
+ var copy = iD.Entity.prototype.copy.call(this);
+
+ if (!deep || !resolver) {
+ return copy;
+ }
+
+ var nodes = [],
+ replacements = {},
+ i, oldid, newid, child;
+
+ for (i = 0; i < this.nodes.length; i++) {
+ oldid = this.nodes[i];
+ newid = replacements[oldid];
+ if (!newid) {
+ child = resolver.entity(oldid).copy();
+ newid = replacements[oldid] = child[0].id;
+ copy = copy.concat(child);
+ }
+ nodes.push(newid);
+ }
+
+ copy[0] = copy[0].update({nodes: nodes});
+ return copy;
+ },
+
extent: function(resolver) {
return resolver.transient(this, 'extent', function() {
- return this.nodes.reduce(function(extent, id) {
- var node = resolver.hasEntity(id);
+ var extent = iD.geo.Extent();
+ for (var i = 0; i < this.nodes.length; i++) {
+ var node = resolver.hasEntity(this.nodes[i]);
if (node) {
- return extent.extend(node.extent());
- } else {
- return extent;
+ extent._extend(node.extent());
}
- }, iD.geo.Extent());
+ }
+ return extent;
});
},
return resolver.transient(this, 'area', function() {
var nodes = resolver.childNodes(this);
- if (!this.isClosed() && nodes.length) {
- nodes = nodes.concat([nodes[0]]);
- }
-
var json = {
type: 'Polygon',
coordinates: [_.pluck(nodes, 'loc')]
};
+ if (!this.isClosed() && nodes.length) {
+ json.coordinates[0].push(nodes[0].loc);
+ }
+
var area = d3.geo.area(json);
// Heuristic for detecting counterclockwise winding order. Assumes
// that OpenStreetMap polygons are not hemisphere-spanning.
- if (d3.geo.area(json) > 2 * Math.PI) {
+ if (area > 2 * Math.PI) {
json.coordinates[0] = json.coordinates[0].reverse();
area = d3.geo.area(json);
}
.projection(context.projection),
gpxLayer = iD.GpxLayer(context, dispatch)
.projection(context.projection),
+ mapillaryLayer = iD.MapillaryLayer(context),
overlayLayers = [];
- var backgroundSources = iD.data.imagery.map(function(source) {
- if (source.type === 'bing') {
- return iD.BackgroundSource.Bing(source, dispatch);
- } else {
- return iD.BackgroundSource(source);
- }
- });
-
- backgroundSources.unshift(iD.BackgroundSource.None());
+ var backgroundSources;
function findSource(id) {
return _.find(backgroundSources, function(d) {
base.call(baseLayer);
- var gpx = selection.selectAll('.gpx-layer')
- .data([0]);
-
- gpx.enter().insert('div', '.layer-data')
- .attr('class', 'layer-layer gpx-layer');
-
- gpx.call(gpxLayer);
-
- var overlays = selection.selectAll('.overlay-layer')
+ var overlays = selection.selectAll('.layer-overlay')
.data(overlayLayers, function(d) { return d.source().name(); });
overlays.enter().insert('div', '.layer-data')
- .attr('class', 'layer-layer overlay-layer');
+ .attr('class', 'layer-layer layer-overlay');
overlays.each(function(layer) {
d3.select(this).call(layer);
overlays.exit()
.remove();
+
+ var gpx = selection.selectAll('.layer-gpx')
+ .data([0]);
+
+ gpx.enter().insert('div')
+ .attr('class', 'layer-layer layer-gpx');
+
+ gpx.call(gpxLayer);
+
+ var mapillary = selection.selectAll('.layer-mapillary')
+ .data([0]);
+
+ mapillary.enter().insert('div')
+ .attr('class', 'layer-layer layer-mapillary');
+
+ mapillary.call(mapillaryLayer);
}
background.sources = function(extent) {
background.dimensions = function(_) {
baseLayer.dimensions(_);
gpxLayer.dimensions(_);
+ mapillaryLayer.dimensions(_);
overlayLayers.forEach(function(layer) {
layer.dimensions(_);
reader.onload = function(e) {
gpxLayer.geojson(toGeoJSON.gpx(toDom(e.target.result)));
+ iD.ui.MapInMap.gpxLayer.geojson(toGeoJSON.gpx(toDom(e.target.result)));
background.zoomToGpxLayer();
dispatch.change();
};
background.zoomToGpxLayer = function() {
if (background.hasGpxLayer()) {
- var viewport = context.map().extent().polygon(),
+ var map = context.map(),
+ viewport = map.trimmedExtent().polygon(),
coords = _.reduce(gpxLayer.geojson().features, function(coords, feature) {
var c = feature.geometry.coordinates;
return _.union(coords, feature.geometry.type === 'Point' ? [c] : c);
}, []);
- if (!iD.geo.polygonIntersectsPolygon(viewport, coords)) {
- context.map().extent(d3.geo.bounds(gpxLayer.geojson()));
+ if (!iD.geo.polygonIntersectsPolygon(viewport, coords, true)) {
+ var extent = iD.geo.Extent(d3.geo.bounds(gpxLayer.geojson()));
+ map.centerZoom(extent.center(), map.trimmedExtentZoom(extent));
}
}
};
background.toggleGpxLayer = function() {
gpxLayer.enable(!gpxLayer.enable());
+ iD.ui.MapInMap.gpxLayer.enable(!iD.ui.MapInMap.gpxLayer.enable());
+ dispatch.change();
+ };
+
+ background.showsMapillaryLayer = function() {
+ return mapillaryLayer.enable();
+ };
+
+ background.toggleMapillaryLayer = function() {
+ mapillaryLayer.enable(!mapillaryLayer.enable());
dispatch.change();
};
return background;
};
- var q = iD.util.stringQs(location.hash.substring(1)),
- chosen = q.background || q.layer;
+ background.load = function(imagery) {
+ backgroundSources = imagery.map(function(source) {
+ if (source.type === 'bing') {
+ return iD.BackgroundSource.Bing(source, dispatch);
+ } else {
+ return iD.BackgroundSource(source);
+ }
+ });
- if (chosen && chosen.indexOf('custom:') === 0) {
- background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, '')));
- } else {
- background.baseLayerSource(findSource(chosen) || findSource('Bing'));
- }
+ backgroundSources.unshift(iD.BackgroundSource.None());
- var locator = _.find(backgroundSources, function(d) {
- return d.overlay && d.default;
- });
+ var q = iD.util.stringQs(location.hash.substring(1)),
+ chosen = q.background || q.layer;
- if (locator) {
- background.toggleOverlayLayer(locator);
- }
+ if (chosen && chosen.indexOf('custom:') === 0) {
+ background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, '')));
+ } else {
+ background.baseLayerSource(findSource(chosen) || findSource('Bing') || backgroundSources[1]);
+ }
- var overlays = (q.overlays || '').split(',');
- overlays.forEach(function(overlay) {
- overlay = findSource(overlay);
- if (overlay) background.toggleOverlayLayer(overlay);
- });
+ var locator = _.find(backgroundSources, function(d) {
+ return d.overlay && d.default;
+ });
- var gpx = q.gpx;
- if (gpx) {
- d3.text(gpx, function(err, gpxTxt) {
- gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt)));
- dispatch.change();
+ if (locator) {
+ background.toggleOverlayLayer(locator);
+ }
+
+ var overlays = (q.overlays || '').split(',');
+ overlays.forEach(function(overlay) {
+ overlay = findSource(overlay);
+ if (overlay) background.toggleOverlayLayer(overlay);
});
- }
+
+ var gpx = q.gpx;
+ if (gpx) {
+ d3.text(gpx, function(err, gpxTxt) {
+ if (!err) {
+ gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt)));
+ iD.ui.MapInMap.gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt)));
+ dispatch.change();
+ }
+ });
+ }
+ };
return d3.rebind(background, dispatch, 'on');
};
name = source.name;
source.scaleExtent = data.scaleExtent || [0, 20];
+ source.overzoom = data.overzoom !== false;
source.offset = function(_) {
if (!arguments.length) return offset;
source.intersects = function(extent) {
extent = extent.polygon();
return !data.polygon || data.polygon.some(function(polygon) {
- return iD.geo.polygonIntersectsPolygon(polygon, extent);
+ return iD.geo.polygonIntersectsPolygon(polygon, extent, true);
});
};
source.validZoom = function(z) {
return source.scaleExtent[0] <= z &&
- (!source.isLocatorOverlay() || source.scaleExtent[1] > z);
+ (source.overzoom || source.scaleExtent[1] > z);
};
source.isLocatorOverlay = function() {
return source;
};
+iD.Features = function(context) {
+ var major_roads = {
+ 'motorway': true,
+ 'motorway_link': true,
+ 'trunk': true,
+ 'trunk_link': true,
+ 'primary': true,
+ 'primary_link': true,
+ 'secondary': true,
+ 'secondary_link': true,
+ 'tertiary': true,
+ 'tertiary_link': true,
+ 'residential': true
+ };
+
+ var minor_roads = {
+ 'service': true,
+ 'living_street': true,
+ 'road': true,
+ 'unclassified': true,
+ 'track': true
+ };
+
+ var paths = {
+ 'path': true,
+ 'footway': true,
+ 'cycleway': true,
+ 'bridleway': true,
+ 'steps': true,
+ 'pedestrian': true,
+ 'corridor': true
+ };
+
+ var past_futures = {
+ 'proposed': true,
+ 'construction': true,
+ 'abandoned': true,
+ 'dismantled': true,
+ 'disused': true,
+ 'razed': true,
+ 'demolished': true,
+ 'obliterated': true
+ };
+
+ var dispatch = d3.dispatch('change', 'redraw'),
+ _cullFactor = 1,
+ _cache = {},
+ _features = {},
+ _stats = {},
+ _keys = [],
+ _hidden = [];
+
+ function update() {
+ _hidden = features.hidden();
+ dispatch.change();
+ dispatch.redraw();
+ }
+
+ function defineFeature(k, filter, max) {
+ _keys.push(k);
+ _features[k] = {
+ filter: filter,
+ enabled: true, // whether the user wants it enabled..
+ count: 0,
+ currentMax: (max || Infinity),
+ defaultMax: (max || Infinity),
+ enable: function() { this.enabled = true; this.currentMax = this.defaultMax; },
+ disable: function() { this.enabled = false; this.currentMax = 0; },
+ hidden: function() { return !context.editable() || this.count > this.currentMax * _cullFactor; },
+ autoHidden: function() { return this.hidden() && this.currentMax > 0; }
+ };
+ }
+
+
+ defineFeature('points', function isPoint(entity, resolver, geometry) {
+ return geometry === 'point';
+ }, 200);
+
+ defineFeature('major_roads', function isMajorRoad(entity) {
+ return major_roads[entity.tags.highway];
+ });
+
+ defineFeature('minor_roads', function isMinorRoad(entity) {
+ return minor_roads[entity.tags.highway];
+ });
+
+ defineFeature('paths', function isPath(entity) {
+ return paths[entity.tags.highway];
+ });
+
+ defineFeature('buildings', function isBuilding(entity) {
+ return (
+ !!entity.tags['building:part'] ||
+ (!!entity.tags.building && entity.tags.building !== 'no') ||
+ entity.tags.amenity === 'shelter' ||
+ entity.tags.parking === 'multi-storey' ||
+ entity.tags.parking === 'sheds' ||
+ entity.tags.parking === 'carports' ||
+ entity.tags.parking === 'garage_boxes'
+ );
+ }, 250);
+
+ defineFeature('landuse', function isLanduse(entity, resolver, geometry) {
+ return geometry === 'area' &&
+ !_features.buildings.filter(entity) &&
+ !_features.water.filter(entity);
+ });
+
+ defineFeature('boundaries', function isBoundary(entity) {
+ return !!entity.tags.boundary;
+ });
+
+ defineFeature('water', function isWater(entity) {
+ return (
+ !!entity.tags.waterway ||
+ entity.tags.natural === 'water' ||
+ entity.tags.natural === 'coastline' ||
+ entity.tags.natural === 'bay' ||
+ entity.tags.landuse === 'pond' ||
+ entity.tags.landuse === 'basin' ||
+ entity.tags.landuse === 'reservoir' ||
+ entity.tags.landuse === 'salt_pond'
+ );
+ });
+
+ defineFeature('rail', function isRail(entity) {
+ return (
+ !!entity.tags.railway ||
+ entity.tags.landuse === 'railway'
+ ) && !(
+ major_roads[entity.tags.highway] ||
+ minor_roads[entity.tags.highway] ||
+ paths[entity.tags.highway]
+ );
+ });
+
+ defineFeature('power', function isPower(entity) {
+ return !!entity.tags.power;
+ });
+
+ // contains a past/future tag, but not in active use as a road/path/cycleway/etc..
+ defineFeature('past_future', function isPastFuture(entity) {
+ if (
+ major_roads[entity.tags.highway] ||
+ minor_roads[entity.tags.highway] ||
+ paths[entity.tags.highway]
+ ) { return false; }
+
+ var strings = Object.keys(entity.tags);
+
+ for (var i = 0; i < strings.length; i++) {
+ var s = strings[i];
+ if (past_futures[s] || past_futures[entity.tags[s]]) { return true; }
+ }
+ return false;
+ });
+
+ // Lines or areas that don't match another feature filter.
+ // IMPORTANT: The 'others' feature must be the last one defined,
+ // so that code in getMatches can skip this test if `hasMatch = true`
+ defineFeature('others', function isOther(entity, resolver, geometry) {
+ return (geometry === 'line' || geometry === 'area');
+ });
+
+
+ function features() {}
+
+ features.features = function() {
+ return _features;
+ };
+
+ features.keys = function() {
+ return _keys;
+ };
+
+ features.enabled = function(k) {
+ if (!arguments.length) {
+ return _.filter(_keys, function(k) { return _features[k].enabled; });
+ }
+ return _features[k] && _features[k].enabled;
+ };
+
+ features.disabled = function(k) {
+ if (!arguments.length) {
+ return _.reject(_keys, function(k) { return _features[k].enabled; });
+ }
+ return _features[k] && !_features[k].enabled;
+ };
+
+ features.hidden = function(k) {
+ if (!arguments.length) {
+ return _.filter(_keys, function(k) { return _features[k].hidden(); });
+ }
+ return _features[k] && _features[k].hidden();
+ };
+
+ features.autoHidden = function(k) {
+ if (!arguments.length) {
+ return _.filter(_keys, function(k) { return _features[k].autoHidden(); });
+ }
+ return _features[k] && _features[k].autoHidden();
+ };
+
+ features.enable = function(k) {
+ if (_features[k] && !_features[k].enabled) {
+ _features[k].enable();
+ update();
+ }
+ };
+
+ features.disable = function(k) {
+ if (_features[k] && _features[k].enabled) {
+ _features[k].disable();
+ update();
+ }
+ };
+
+ features.toggle = function(k) {
+ if (_features[k]) {
+ (function(f) { return f.enabled ? f.disable() : f.enable(); }(_features[k]));
+ update();
+ }
+ };
+
+ features.resetStats = function() {
+ _.each(_features, function(f) { f.count = 0; });
+ dispatch.change();
+ };
+
+ features.gatherStats = function(d, resolver, dimensions) {
+ var needsRedraw = false,
+ type = _.groupBy(d, function(ent) { return ent.type; }),
+ entities = [].concat(type.relation || [], type.way || [], type.node || []),
+ currHidden, geometry, matches;
+
+ _.each(_features, function(f) { f.count = 0; });
+
+ // adjust the threshold for point/building culling based on viewport size..
+ // a _cullFactor of 1 corresponds to a 1000x1000px viewport..
+ _cullFactor = dimensions[0] * dimensions[1] / 1000000;
+
+ for (var i = 0; i < entities.length; i++) {
+ geometry = entities[i].geometry(resolver);
+ if (!(geometry === 'vertex' || geometry === 'relation')) {
+ matches = Object.keys(features.getMatches(entities[i], resolver, geometry));
+ for (var j = 0; j < matches.length; j++) {
+ _features[matches[j]].count++;
+ }
+ }
+ }
+
+ currHidden = features.hidden();
+ if (currHidden !== _hidden) {
+ _hidden = currHidden;
+ needsRedraw = true;
+ dispatch.change();
+ }
+
+ return needsRedraw;
+ };
+
+ features.stats = function() {
+ _.each(_keys, function(k) { _stats[k] = _features[k].count; });
+ return _stats;
+ };
+
+ features.clear = function(d) {
+ for (var i = 0; i < d.length; i++) {
+ features.clearEntity(d[i]);
+ }
+ };
+
+ features.clearEntity = function(entity) {
+ delete _cache[iD.Entity.key(entity)];
+ };
+
+ features.reset = function() {
+ _cache = {};
+ };
+
+ features.getMatches = function(entity, resolver, geometry) {
+ var ent = iD.Entity.key(entity);
+
+ if (!_cache[ent]) {
+ _cache[ent] = {};
+ }
+ if (!_cache[ent].matches) {
+ var matches = {},
+ hasMatch = false;
+
+ if (!(geometry === 'vertex' || geometry === 'relation')) {
+ for (var i = 0; i < _keys.length; i++) {
+
+ if (_keys[i] === 'others') {
+ if (hasMatch) continue;
+
+ // If the entity is a way that has not matched any other
+ // feature type, see if it has a parent relation, and if so,
+ // match whatever feature types the parent has matched.
+ // (The way is a member of a multipolygon.)
+ //
+ // IMPORTANT:
+ // For this to work, getMatches must be called on relations before ways.
+ //
+ if (entity.type === 'way') {
+ var parents = features.getParents(entity, resolver, geometry);
+ if (parents.length === 1) {
+ var pkey = iD.Entity.key(parents[0]);
+ if (_cache[pkey] && _cache[pkey].matches) {
+ matches = _.clone(_cache[pkey].matches);
+ continue;
+ }
+ }
+ }
+ }
+
+ if (_features[_keys[i]].filter(entity, resolver, geometry)) {
+ matches[_keys[i]] = hasMatch = true;
+ }
+ }
+ }
+ _cache[ent].matches = matches;
+ }
+ return _cache[ent].matches;
+ };
+
+ features.getParents = function(entity, resolver, geometry) {
+ var ent = iD.Entity.key(entity);
+
+ if (!_cache[ent]) {
+ _cache[ent] = {};
+ }
+ if (!_cache[ent].parents) {
+ var parents = [];
+
+ if (geometry !== 'point') {
+ if (geometry === 'vertex') {
+ parents = resolver.parentWays(entity);
+ } else { // 'line', 'area', 'relation'
+ parents = resolver.parentRelations(entity);
+ }
+ }
+ _cache[ent].parents = parents;
+ }
+ return _cache[ent].parents;
+ };
+
+ features.isHiddenFeature = function(entity, resolver, geometry) {
+ if (!entity.version) return false;
+
+ var matches = features.getMatches(entity, resolver, geometry);
+
+ for (var i = 0; i < _hidden.length; i++) {
+ if (matches[_hidden[i]]) { return true; }
+ }
+ return false;
+ };
+
+ features.isHiddenChild = function(entity, resolver, geometry) {
+ if (!entity.version || geometry === 'point') { return false; }
+
+ var parents = features.getParents(entity, resolver, geometry);
+
+ if (!parents.length) { return false; }
+
+ for (var i = 0; i < parents.length; i++) {
+ if (!features.isHidden(parents[i], resolver, parents[i].geometry(resolver))) {
+ return false;
+ }
+ }
+ return true;
+ };
+
+ features.hasHiddenConnections = function(entity, resolver) {
+ var childNodes, connections;
+
+ if (entity.type === 'midpoint') {
+ childNodes = [resolver.entity(entity.edge[0]), resolver.entity(entity.edge[1])];
+ connections = [];
+ } else {
+ childNodes = resolver.childNodes(entity);
+ connections = features.getParents(entity, resolver, entity.geometry(resolver));
+ }
+
+ // gather ways connected to child nodes..
+ connections = _.reduce(childNodes, function(result, e) {
+ return resolver.isShared(e) ? _.union(result, resolver.parentWays(e)) : result;
+ }, connections);
+
+ return connections.length ? _.any(connections, function(e) {
+ return features.isHidden(e, resolver, e.geometry(resolver));
+ }) : false;
+ };
+
+ features.isHidden = function(entity, resolver, geometry) {
+ if (!entity.version) return false;
+
+ if (geometry === 'vertex')
+ return features.isHiddenChild(entity, resolver, geometry);
+ if (geometry === 'point')
+ return features.isHiddenFeature(entity, resolver, geometry);
+
+ return features.isHiddenFeature(entity, resolver, geometry) ||
+ features.isHiddenChild(entity, resolver, geometry);
+ };
+
+ features.filter = function(d, resolver) {
+ if (!_hidden.length)
+ return d;
+
+ var result = [];
+ for (var i = 0; i < d.length; i++) {
+ var entity = d[i];
+ if (!features.isHidden(entity, resolver, entity.geometry(resolver))) {
+ result.push(entity);
+ }
+ }
+ return result;
+ };
+
+ return d3.rebind(features, dispatch, 'on');
+};
iD.GpxLayer = function(context) {
var projection,
gj = {},
.on('change.map', redraw);
context.background()
.on('change.map', redraw);
+ context.features()
+ .on('redraw.map', redraw);
- selection.call(zoom);
+ selection
+ .on('dblclick.map', dblClick)
+ .call(zoom);
supersurface = selection.append('div')
.attr('id', 'supersurface');
- supersurface.call(context.background());
-
// Need a wrapper div because Opera can't cope with an absolutely positioned
// SVG element: http://bl.ocks.org/jfirebaugh/6fbfbd922552bf776c16
var dataLayer = supersurface.append('div')
.attr('id', 'surface')
.call(iD.svg.Surface(context));
+ supersurface.call(context.background());
+
surface.on('mousemove.map', function() {
mousemove = d3.event;
});
var all = context.intersects(map.extent()),
filter = d3.functor(true),
graph = context.graph();
+
+ all = context.features().filter(all, graph);
surface.call(vertices, graph, all, filter, map.extent(), map.zoom());
surface.call(midpoints, graph, all, filter, map.trimmedExtent());
dispatch.drawn({full: false});
function pxCenter() { return [dimensions[0] / 2, dimensions[1] / 2]; }
function drawVector(difference, extent) {
- var filter, all,
- graph = context.graph();
+ var graph = context.graph(),
+ features = context.features(),
+ all = context.intersects(map.extent()),
+ data, filter;
if (difference) {
var complete = difference.complete(map.extent());
- all = _.compact(_.values(complete));
+ data = _.compact(_.values(complete));
filter = function(d) { return d.id in complete; };
-
- } else if (extent) {
- all = context.intersects(map.extent().intersection(extent));
- var set = d3.set(_.pluck(all, 'id'));
- filter = function(d) { return set.has(d.id); };
+ features.clear(data);
} else {
- all = context.intersects(map.extent());
- filter = d3.functor(true);
+ // force a full redraw if gatherStats detects that a feature
+ // should be auto-hidden (e.g. points or buildings)..
+ if (features.gatherStats(all, graph, dimensions)) {
+ extent = undefined;
+ }
+
+ if (extent) {
+ data = context.intersects(map.extent().intersection(extent));
+ var set = d3.set(_.pluck(data, 'id'));
+ filter = function(d) { return set.has(d.id); };
+
+ } else {
+ data = all;
+ filter = d3.functor(true);
+ }
}
+ data = features.filter(data, graph);
+
surface
- .call(vertices, graph, all, filter, map.extent(), map.zoom())
- .call(lines, graph, all, filter)
- .call(areas, graph, all, filter)
- .call(midpoints, graph, all, filter, map.trimmedExtent())
- .call(labels, graph, all, filter, dimensions, !difference && !extent);
-
- if (points.points(context.intersects(map.extent()), 100).length >= 100) {
- surface.select('.layer-hit').selectAll('g.point').remove();
- } else {
- surface.call(points, points.points(all), filter);
- }
+ .call(vertices, graph, data, filter, map.extent(), map.zoom())
+ .call(lines, graph, data, filter)
+ .call(areas, graph, data, filter)
+ .call(midpoints, graph, data, filter, map.trimmedExtent())
+ .call(labels, graph, data, filter, dimensions, !difference && !extent)
+ .call(points, data, filter);
dispatch.drawn({full: true});
}
function editOff() {
- var mode = context.mode();
+ context.features().resetStats();
surface.selectAll('.layer *').remove();
dispatch.drawn({full: true});
- if (!(mode && mode.id === 'browse')) {
- context.enter(iD.modes.Browse(context));
- }
}
- function zoomPan() {
- if (d3.event && d3.event.sourceEvent.type === 'dblclick') {
- if (!dblclickEnabled) {
- zoom.scale(projection.scale() * 2 * Math.PI)
- .translate(projection.translate());
- return d3.event.sourceEvent.preventDefault();
- }
+ function dblClick() {
+ if (!dblclickEnabled) {
+ d3.event.preventDefault();
+ d3.event.stopImmediatePropagation();
}
+ }
- if (Math.log(d3.event.scale / Math.LN2 - 8) < minzoom + 1) {
+ function zoomPan() {
+ if (Math.log(d3.event.scale) / Math.LN2 - 8 < minzoom) {
+ surface.interrupt();
iD.ui.flash(context.container())
.select('.content')
.text(t('cannot_zoom'));
- return setZoom(16, true);
+ setZoom(context.minEditableZoom(), true);
+ queueRedraw();
+ dispatch.move(map);
+ return;
}
projection
}
if (map.editable()) {
- context.connection().loadTiles(projection, dimensions);
+ context.loadTiles(projection, dimensions);
drawVector(difference, extent);
} else {
editOff();
return map;
};
+ function interpolateZoom(_) {
+ var k = projection.scale(),
+ t = projection.translate();
+
+ surface.node().__chart__ = {
+ x: t[0],
+ y: t[1],
+ k: k * 2 * Math.PI
+ };
+
+ setZoom(_);
+ projection.scale(k).translate(t); // undo setZoom projection changes
+
+ zoom.event(surface.transition());
+ }
+
function setZoom(_, force) {
if (_ === map.zoom() && !force)
return false;
return redraw();
};
- map.zoomIn = function() { return map.zoom(Math.ceil(map.zoom() + 1)); };
- map.zoomOut = function() { return map.zoom(Math.floor(map.zoom() - 1)); };
+ function zoomIn(integer) {
+ interpolateZoom(~~map.zoom() + integer);
+ }
+
+ function zoomOut(integer) {
+ interpolateZoom(~~map.zoom() - integer);
+ }
+
+ map.zoomIn = function() { zoomIn(1); };
+ map.zoomInFurther = function() { zoomIn(4); };
+
+ map.zoomOut = function() { zoomOut(1); };
+ map.zoomOutFurther = function() { zoomOut(4); };
map.center = function(loc) {
if (!arguments.length) {
return Math.max(Math.log(projection.scale() * 2 * Math.PI) / Math.LN2 - 8, 0);
}
+ if (z < minzoom) {
+ surface.interrupt();
+ iD.ui.flash(context.container())
+ .select('.content')
+ .text(t('cannot_zoom'));
+ z = context.minEditableZoom();
+ }
+
if (setZoom(z)) {
dispatch.move(map);
}
};
map.zoomTo = function(entity, zoomLimits) {
- var extent = entity.extent(context.graph()),
- zoom = map.extentZoom(extent);
- zoomLimits = zoomLimits || [16, 20];
+ var extent = entity.extent(context.graph());
+ if (!isFinite(extent.area())) return;
+
+ var zoom = map.trimmedExtentZoom(extent);
+ zoomLimits = zoomLimits || [context.minEditableZoom(), 20];
map.centerZoom(extent.center(), Math.min(Math.max(zoom, zoomLimits[0]), zoomLimits[1]));
};
}
};
- map.trimmedExtent = function() {
- var headerY = 60, footerY = 30, pad = 10;
- return new iD.geo.Extent(projection.invert([pad, dimensions[1] - footerY - pad]),
- projection.invert([dimensions[0] - pad, headerY + pad]));
+ map.trimmedExtent = function(_) {
+ if (!arguments.length) {
+ var headerY = 60, footerY = 30, pad = 10;
+ return new iD.geo.Extent(projection.invert([pad, dimensions[1] - footerY - pad]),
+ projection.invert([dimensions[0] - pad, headerY + pad]));
+ } else {
+ var extent = iD.geo.Extent(_);
+ map.centerZoom(extent.center(), map.trimmedExtentZoom(extent));
+ }
};
- map.extentZoom = function(_) {
- var extent = iD.geo.Extent(_),
- tl = projection([extent[0][0], extent[1][1]]),
+ function calcZoom(extent, dim) {
+ var tl = projection([extent[0][0], extent[1][1]]),
br = projection([extent[1][0], extent[0][1]]);
// Calculate maximum zoom that fits extent
- var hFactor = (br[0] - tl[0]) / dimensions[0],
- vFactor = (br[1] - tl[1]) / dimensions[1],
+ var hFactor = (br[0] - tl[0]) / dim[0],
+ vFactor = (br[1] - tl[1]) / dim[1],
hZoomDiff = Math.log(Math.abs(hFactor)) / Math.LN2,
vZoomDiff = Math.log(Math.abs(vFactor)) / Math.LN2,
newZoom = map.zoom() - Math.max(hZoomDiff, vZoomDiff);
return newZoom;
+ }
+
+ map.extentZoom = function(_) {
+ return calcZoom(iD.geo.Extent(_), dimensions);
+ };
+
+ map.trimmedExtentZoom = function(_) {
+ var trimY = 120, trimX = 40,
+ trimmed = [dimensions[0] - trimX, dimensions[1] - trimY];
+ return calcZoom(iD.geo.Extent(_), trimmed);
};
map.editable = function() {
- return map.zoom() >= 16;
+ return map.zoom() >= context.minEditableZoom();
};
map.minzoom = function(_) {
return d3.rebind(map, dispatch, 'on');
};
+iD.MapillaryLayer = function (context) {
+ var enable = false,
+ currentImage,
+ svg, div, request;
+
+ function show(image) {
+ svg.selectAll('g')
+ .classed('selected', function(d) {
+ return currentImage && d.key === currentImage.key;
+ });
+
+ div.classed('hidden', false)
+ .classed('temp', image !== currentImage);
+
+ div.selectAll('img')
+ .attr('src', 'https://d1cuyjsrcm0gby.cloudfront.net/' + image.key + '/thumb-320.jpg');
+
+ div.selectAll('a')
+ .attr('href', 'http://mapillary.com/map/im/' + image.key);
+ }
+
+ function hide() {
+ currentImage = undefined;
+
+ svg.selectAll('g')
+ .classed('selected', false);
+
+ div.classed('hidden', true);
+ }
+
+ function transform(image) {
+ var t = 'translate(' + context.projection(image.loc) + ')';
+ if (image.ca) t += 'rotate(' + image.ca + ',0,0)';
+ return t;
+ }
+
+ function render(selection) {
+ svg = selection.selectAll('svg')
+ .data([0]);
+
+ svg.enter().append('svg')
+ .on('click', function() {
+ var image = d3.event.target.__data__;
+ if (currentImage === image) {
+ hide();
+ } else {
+ currentImage = image;
+ show(image);
+ }
+ })
+ .on('mouseover', function() {
+ show(d3.event.target.__data__);
+ })
+ .on('mouseout', function() {
+ if (currentImage) {
+ show(currentImage);
+ } else {
+ hide();
+ }
+ });
+
+ svg.style('display', enable ? 'block' : 'none');
+
+ div = context.container().selectAll('.mapillary-image')
+ .data([0]);
+
+ var enter = div.enter().append('div')
+ .attr('class', 'mapillary-image');
+
+ enter.append('button')
+ .on('click', hide)
+ .append('div')
+ .attr('class', 'icon close');
+
+ enter.append('img');
+
+ var link = enter.append('a')
+ .attr('class', 'link')
+ .attr('target', '_blank');
+
+ link.append('span')
+ .attr('class', 'icon icon-pre-text out-link');
+
+ link.append('span')
+ .text(t('mapillary.view_on_mapillary'));
+
+ if (!enable) {
+ hide();
+
+ svg.selectAll('g')
+ .remove();
+
+ return;
+ }
+
+ // Update existing images while waiting for new ones to load.
+ svg.selectAll('g')
+ .attr('transform', transform);
+
+ var extent = context.map().extent();
+
+ if (request)
+ request.abort();
+
+ request = d3.json('https://a.mapillary.com/v2/search/s/geojson?client_id=NzNRM2otQkR2SHJzaXJmNmdQWVQ0dzoxNjQ3MDY4ZTUxY2QzNGI2&min_lat=' +
+ extent[0][1] + '&max_lat=' + extent[1][1] + '&min_lon=' +
+ extent[0][0] + '&max_lon=' + extent[1][0] + '&max_results=100&geojson=true',
+ function (error, data) {
+ if (error) return;
+
+ var images = [];
+
+ for (var i = 0; i < data.features.length; i++) {
+ var sequence = data.features[i];
+ for (var j = 0; j < sequence.geometry.coordinates.length; j++) {
+ images.push({
+ key: sequence.properties.keys[j],
+ ca: sequence.properties.cas[j],
+ loc: sequence.geometry.coordinates[j]
+ });
+ if (images.length >= 1000) break;
+ }
+ }
+
+ var g = svg.selectAll('g')
+ .data(images, function(d) { return d.key; });
+
+ var enter = g.enter().append('g')
+ .attr('class', 'image');
+
+ enter.append('path')
+ .attr('class', 'viewfield')
+ .attr('transform', 'scale(1.5,1.5),translate(-8, -13)')
+ .attr('d', 'M 6,9 C 8,8.4 8,8.4 10,9 L 16,-2 C 12,-5 4,-5 0,-2 z');
+
+ enter.append('circle')
+ .attr('dx', '0')
+ .attr('dy', '0')
+ .attr('r', '6');
+
+ g.attr('transform', transform);
+
+ g.exit()
+ .remove();
+ });
+ }
+
+ render.enable = function(_) {
+ if (!arguments.length) return enable;
+ enable = _;
+ return render;
+ };
+
+ render.dimensions = function(_) {
+ if (!arguments.length) return svg.dimensions();
+ svg.dimensions(_);
+ return render;
+ };
+
+ return render;
+};
iD.TileLayer = function() {
var tileSize = 256,
tile = d3.geo.tile(),
if (entity.id in cache) {
return cache[entity.id];
} else {
- return cache[entity.id] = path(entity.asGeoJSON(graph)); // jshint ignore:line
+ return cache[entity.id] = path(entity.asGeoJSON(graph));
}
};
},
i = 0,
offset = dt,
segments = [],
- viewport = iD.geo.Extent(projection.clipExtent()),
+ clip = d3.geo.clipExtent().extent(projection.clipExtent()).stream,
coordinates = graph.childNodes(entity).map(function(n) {
return n.loc;
});
d3.geo.stream({
type: 'LineString',
coordinates: coordinates
- }, projection.stream({
+ }, projection.stream(clip({
lineStart: function() {},
lineEnd: function() {
a = null;
b = [x, y];
if (a) {
- var extent = iD.geo.Extent(a).extend(b),
- span = iD.geo.euclideanDistance(a, b) - offset;
+ var span = iD.geo.euclideanDistance(a, b) - offset;
- if (extent.intersects(viewport) && span >= 0) {
+ if (span >= 0) {
var angle = Math.atan2(b[1] - a[1], b[0] - a[0]),
dx = dt * Math.cos(angle),
dy = dt * Math.sin(angle),
a = b;
}
- }));
+ })));
return segments;
};
var patternKeys = ['landuse', 'natural', 'amenity'];
- var clipped = ['residential', 'commercial', 'retail', 'industrial'];
-
- function clip(entity) {
- return clipped.indexOf(entity.tags.landuse) !== -1;
- }
-
function setPattern(d) {
for (var i = 0; i < patternKeys.length; i++) {
if (patterns.hasOwnProperty(d.tags[patternKeys[i]])) {
- this.style.fill = 'url("#pattern-' + patterns[d.tags[patternKeys[i]]] + '")';
+ this.style.fill = this.style.stroke = 'url("#pattern-' + patterns[d.tags[patternKeys[i]]] + '")';
return;
}
}
- this.style.fill = '';
+ this.style.fill = this.style.stroke = '';
}
return function drawAreas(surface, graph, entities, filter) {
});
var data = {
- clip: areas.filter(clip),
+ clip: areas,
shadow: strokes,
stroke: strokes,
fill: areas
this.setAttribute('class', entity.type + ' area ' + layer + ' ' + entity.id);
- if (layer === 'fill' && clip(entity)) {
- this.setAttribute('clip-path', 'url(#' + entity.id + '-clippath)');
- }
-
if (layer === 'fill') {
+ this.setAttribute('clip-path', 'url(#' + entity.id + '-clippath)');
setPattern.apply(this, arguments);
}
})
function reverse(p) {
var angle = Math.atan2(p[1][1] - p[0][1], p[1][0] - p[0][0]);
- return !(p[0][0] < p[p.length - 1][0] && angle < Math.PI/2 && angle > - Math.PI/2);
+ return !(p[0][0] < p[p.length - 1][0] && angle < Math.PI/2 && angle > -Math.PI/2);
}
function lineString(nodes) {
if (!icon && !iD.util.displayName(entity))
continue;
- for (k = 0; k < label_stack.length; k ++) {
+ for (k = 0; k < label_stack.length; k++) {
if (geometry === label_stack[k][0] && entity.tags[label_stack[k][1]]) {
labelable[k].push(entity);
break;
// Try and find a valid label for labellable entities
for (k = 0; k < labelable.length; k++) {
var font_size = font_sizes[k];
- for (i = 0; i < labelable[k].length; i ++) {
+ for (i = 0; i < labelable[k].length; i++) {
entity = labelable[k][i];
var name = iD.util.displayName(entity),
width = name && textWidth(name, font_size),
length = iD.geo.pathLength(nodes);
if (length < width + 20) return;
- for (var i = 0; i < lineOffsets.length; i ++) {
+ for (var i = 0; i < lineOffsets.length; i++) {
var offset = lineOffsets[i],
middle = offset / 100 * length,
start = middle - width/2;
entitywidth = projection(extent[1])[0] - projection(extent[0])[0],
rect;
- if (!centroid || entitywidth < 20) return;
+ if (isNaN(centroid[0]) || entitywidth < 20) return;
var iconX = centroid[0] - (iconSize/2),
iconY = centroid[1] - (iconSize/2),
return b.loc[1] - a.loc[1];
}
- function drawPoints(surface, points, filter) {
+ return function drawPoints(surface, entities, filter) {
+ var graph = context.graph(),
+ wireframe = surface.classed('fill-wireframe'),
+ points = wireframe ? [] : _.filter(entities, function(e) {
+ return e.geometry(graph) === 'point';
+ });
+
points.sort(sortY);
var groups = surface.select('.layer-hit').selectAll('g.point')
groups.exit()
.remove();
- }
-
- drawPoints.points = function(entities, limit) {
- var graph = context.graph(),
- points = [];
-
- for (var i = 0; i < entities.length; i++) {
- var entity = entities[i];
- if (entity.geometry(graph) === 'point') {
- points.push(entity);
- if (limit && points.length >= limit) break;
- }
- }
-
- return points;
};
-
- return drawPoints;
};
iD.svg.Surface = function() {
return function (selection) {
};
};
iD.svg.TagClasses = function() {
- var primary = [
+ var primaries = [
'building', 'highway', 'railway', 'waterway', 'aeroway',
'motorway', 'boundary', 'power', 'amenity', 'natural', 'landuse',
'leisure', 'place'
],
- secondary = [
- 'oneway', 'bridge', 'tunnel', 'construction', 'embankment', 'cutting'
+ statuses = [
+ 'proposed', 'construction', 'disused', 'abandoned', 'dismantled',
+ 'razed', 'demolished', 'obliterated'
+ ],
+ secondaries = [
+ 'oneway', 'bridge', 'tunnel', 'embankment', 'cutting', 'barrier'
],
tagClassRe = /^tag-/,
tags = function(entity) { return entity.tags; };
+
var tagClasses = function(selection) {
selection.each(function tagClassesEach(entity) {
- var classes, value = this.className;
+ var value = this.className,
+ classes, primary, status;
if (value.baseVal !== undefined) value = value.baseVal;
var t = tags(entity), i, k, v;
- for (i = 0; i < primary.length; i++) {
- k = primary[i];
+ // pick at most one primary classification tag..
+ for (i = 0; i < primaries.length; i++) {
+ k = primaries[i];
v = t[k];
if (!v || v === 'no') continue;
- classes += ' tag-' + k + ' tag-' + k + '-' + v;
+
+ primary = k;
+ if (statuses.indexOf(v) !== -1) { // e.g. `railway=abandoned`
+ status = v;
+ classes += ' tag-' + k;
+ } else {
+ classes += ' tag-' + k + ' tag-' + k + '-' + v;
+ }
+
break;
}
- for (i = 0; i < secondary.length; i++) {
- k = secondary[i];
+ // add at most one ephemeral status tag, only if relates to primary tag..
+ if (!status) {
+ for (i = 0; i < statuses.length; i++) {
+ k = statuses[i];
+ v = t[k];
+ if (!v || v === 'no') continue;
+
+ if (v === 'yes') { // e.g. `railway=rail + abandoned=yes`
+ status = k;
+ }
+ else if (primary && primary === v) { // e.g. `railway=rail + abandoned=railway`
+ status = k;
+ } else if (!primary && primaries.indexOf(v) !== -1) { // e.g. `abandoned=railway`
+ status = k;
+ primary = v;
+ classes += ' tag-' + v;
+ } // else ignore e.g. `highway=path + abandoned=railway`
+
+ if (status) break;
+ }
+ }
+
+ if (status) {
+ classes += ' tag-ephemeral';
+ }
+
+ // add any secondary (structure) tags
+ for (i = 0; i < secondaries.length; i++) {
+ k = secondaries[i];
v = t[k];
if (!v || v === 'no') continue;
classes += ' tag-' + k + ' tag-' + k + '-' + v;
var vertices = {};
function addChildVertices(entity) {
- var i;
- if (entity.type === 'way') {
- for (i = 0; i < entity.nodes.length; i++) {
- addChildVertices(graph.entity(entity.nodes[i]));
- }
- } else if (entity.type === 'relation') {
- for (i = 0; i < entity.members.length; i++) {
- var member = context.hasEntity(entity.members[i].id);
- if (member) {
- addChildVertices(member);
+ if (!context.features().isHiddenFeature(entity, graph, entity.geometry(graph))) {
+ var i;
+ if (entity.type === 'way') {
+ for (i = 0; i < entity.nodes.length; i++) {
+ addChildVertices(graph.entity(entity.nodes[i]));
+ }
+ } else if (entity.type === 'relation') {
+ for (i = 0; i < entity.members.length; i++) {
+ var member = context.hasEntity(entity.members[i].id);
+ if (member) {
+ addChildVertices(member);
+ }
}
+ } else if (entity.intersects(extent, graph)) {
+ vertices[entity.id] = entity;
}
- } else if (entity.intersects(extent, graph)) {
- vertices[entity.id] = entity;
}
}
function drawVertices(surface, graph, entities, filter, extent, zoom) {
var selected = siblingAndChildVertices(context.selectedIDs(), graph, extent),
+ wireframe = surface.classed('fill-wireframe'),
vertices = [];
for (var i = 0; i < entities.length; i++) {
- var entity = entities[i];
+ var entity = entities[i],
+ geometry = entity.geometry(graph);
- if (entity.geometry(graph) !== 'vertex')
+ if (wireframe && geometry === 'point') {
+ vertices.push(entity);
+ continue;
+ }
+
+ if (geometry !== 'vertex')
continue;
if (entity.id in selected ||
.attr('id', 'map')
.call(map);
+ content.append('div')
+ .attr('class', 'map-in-map')
+ .style('display', 'none')
+ .call(iD.ui.MapInMap(context));
+
+ content.append('div')
+ .attr('class', 'infobox fillD2')
+ .style('display', 'none')
+ .call(iD.ui.Info(context));
+
bar.append('div')
.attr('class', 'spacer col4');
.attr('class', 'button-wrap col1')
.call(iD.ui.Save(context));
+ bar.append('div')
+ .attr('class', 'full-screen')
+ .call(iD.ui.FullScreen(context));
+
bar.append('div')
.attr('class', 'spinner')
.call(iD.ui.Spinner(context));
- content
- .call(iD.ui.Attribution(context));
-
- content.append('div')
- .style('display', 'none')
- .attr('class', 'help-wrap map-overlay fillL col5 content');
-
var controls = bar.append('div')
.attr('class', 'map-controls');
.attr('class', 'map-control background-control')
.call(iD.ui.Background(context));
+ controls.append('div')
+ .attr('class', 'map-control map-data-control')
+ .call(iD.ui.MapData(context));
+
controls.append('div')
.attr('class', 'map-control help-control')
.call(iD.ui.Help(context));
- var footer = content.append('div')
+ var about = content.append('div')
+ .attr('id', 'about');
+
+ about.append('div')
+ .attr('id', 'attrib')
+ .call(iD.ui.Attribution(context));
+
+ var footer = about.append('div')
.attr('id', 'footer')
.attr('class', 'fillD');
+ footer.append('div')
+ .attr('class', 'api-status')
+ .call(iD.ui.Status(context));
+
footer.append('div')
.attr('id', 'scale-block')
.call(iD.ui.Scale(context));
- var linkList = footer.append('div')
+ var aboutList = footer.append('div')
.attr('id', 'info-block')
.append('ul')
- .attr('id', 'about-list')
- .attr('class', 'link-list');
+ .attr('id', 'about-list');
if (!context.embed()) {
- linkList.call(iD.ui.Account(context));
+ aboutList.call(iD.ui.Account(context));
}
- linkList.append('li')
+ aboutList.append('li')
.append('a')
.attr('target', '_blank')
.attr('tabindex', -1)
.attr('href', 'http://github.com/openstreetmap/iD')
.text(iD.version);
- var bugReport = linkList.append('li')
+ var bugReport = aboutList.append('li')
.append('a')
.attr('target', '_blank')
.attr('tabindex', -1)
.placement('top')
);
- linkList.append('li')
+ aboutList.append('li')
+ .attr('class', 'feature-warning')
+ .attr('tabindex', -1)
+ .call(iD.ui.FeatureInfo(context));
+
+ aboutList.append('li')
.attr('class', 'user-list')
.attr('tabindex', -1)
.call(iD.ui.Contributors(context));
- footer.append('div')
- .attr('class', 'api-status')
- .call(iD.ui.Status(context));
-
window.onbeforeunload = function() {
return context.save();
};
context.history().unlock();
};
+ var mapDimensions = map.dimensions();
+
d3.select(window).on('resize.editor', function() {
+ mapDimensions = m.dimensions();
map.dimensions(m.dimensions());
});
function pan(d) {
return function() {
+ d3.event.preventDefault();
context.pan(d);
};
}
// pan amount
- var pa = 5;
+ var pa = 10;
var keybinding = d3.keybinding('main')
.on('⌫', function() { d3.event.preventDefault(); })
.on('←', pan([pa, 0]))
.on('↑', pan([0, pa]))
.on('→', pan([-pa, 0]))
- .on('↓', pan([0, -pa]));
+ .on('↓', pan([0, -pa]))
+ .on('⇧←', pan([mapDimensions[0], 0]))
+ .on('⇧↑', pan([0, mapDimensions[1]]))
+ .on('⇧→', pan([-mapDimensions[0], 0]))
+ .on('⇧↓', pan([0, -mapDimensions[1]]))
+ .on(iD.ui.cmd('⌘←'), pan([mapDimensions[0], 0]))
+ .on(iD.ui.cmd('⌘↑'), pan([0, mapDimensions[1]]))
+ .on(iD.ui.cmd('⌘→'), pan([-mapDimensions[0], 0]))
+ .on(iD.ui.cmd('⌘↓'), pan([0, -mapDimensions[1]]));
d3.select(document)
.call(keybinding);
};
iD.ui.tooltipHtml = function(text, key) {
- return '<span>' + text + '</span>' + '<div class="keyhint-wrap">' + '<span> ' + (t('tooltip_keyhint')) + ' </span>' + '<span class="keyhint"> ' + key + '</span></div>';
+ var s = '<span>' + text + '</span>';
+ if (key) {
+ s += '<div class="keyhint-wrap">' +
+ '<span> ' + (t('tooltip_keyhint')) + ' </span>' +
+ '<span class="keyhint"> ' + key + '</span></div>';
+ }
+ return s;
};
iD.ui.Account = function(context) {
var connection = context.connection();
function update(selection) {
if (!connection.authenticated()) {
selection.selectAll('#userLink, #logoutLink')
- .style('display', 'none');
+ .classed('hide', true);
return;
}
if (err) return;
selection.selectAll('#userLink, #logoutLink')
- .style('display', 'list-item');
+ .classed('hide', false);
// Link
userLink.append('a')
return function(selection) {
selection.append('li')
.attr('id', 'logoutLink')
- .style('display', 'none');
+ .classed('hide', true);
selection.append('li')
.attr('id', 'userLink')
- .style('display', 'none');
+ .classed('hide', true);
connection.on('auth.account', function() { update(selection); });
update(selection);
};
};
iD.ui.Background = function(context) {
- var key = 'b',
+ var key = 'B',
opacities = [1, 0.75, 0.5, 0.25],
directions = [
['left', [1, 0]],
['bottom', [0, 1]]],
opacityDefault = (context.storage('background-opacity') !== null) ?
(+context.storage('background-opacity')) : 0.5,
- customTemplate = '';
+ customTemplate = context.storage('background-custom-template') || '';
// Can be 0 from <1.3.0 use or due to issue #1923.
if (opacityDefault === 0) opacityDefault = 0.5;
function setCustom(template) {
context.background().baseLayerSource(iD.BackgroundSource.Custom(template));
selectLayer();
+ context.storage('background-custom-template', template);
}
function clickSetOverlay(d) {
selectLayer();
}
- function clickGpx() {
- context.background().toggleGpxLayer();
- update();
- }
-
function drawList(layerList, type, change, filter) {
var sources = context.background()
.sources(context.map().extent())
backgroundList.call(drawList, 'radio', clickSetSource, function(d) { return !d.overlay; });
overlayList.call(drawList, 'checkbox', clickSetOverlay, function(d) { return d.overlay; });
- var hasGpx = context.background().hasGpxLayer(),
- showsGpx = context.background().showsGpxLayer();
-
- gpxLayerItem
- .classed('active', showsGpx)
- .selectAll('input')
- .property('disabled', !hasGpx)
- .property('checked', showsGpx);
-
selectLayer();
var source = context.background().baseLayerSource();
}
}
- var content = selection.append('div')
- .attr('class', 'fillL map-overlay col3 content hide'),
- tooltip = bootstrap.tooltip()
- .placement('left')
- .html(true)
- .title(iD.ui.tooltipHtml(t('background.description'), key));
-
function hide() { setVisible(false); }
function toggle() {
}
}
- var button = selection.append('button')
+
+ var content = selection.append('div')
+ .attr('class', 'fillL map-overlay col3 content hide'),
+ tooltip = bootstrap.tooltip()
+ .placement('left')
+ .html(true)
+ .title(iD.ui.tooltipHtml(t('background.description'), key)),
+ button = selection.append('button')
.attr('tabindex', -1)
.on('click', toggle)
.call(tooltip),
- opa = content
- .append('div')
- .attr('class', 'opacity-options-wrapper'),
shown = false;
button.append('span')
.attr('class', 'icon layers light');
+
+ var opa = content.append('div')
+ .attr('class', 'opacity-options-wrapper');
+
opa.append('h4')
.text(t('background.title'));
.placement('left'))
.append('div')
.attr('class', 'opacity')
- .style('opacity', String);
+ .style('opacity', function(d) { return 1.25 - d; });
var backgroundList = content.append('ul')
.attr('class', 'layer-list');
var overlayList = content.append('ul')
.attr('class', 'layer-list');
- var gpxLayerItem = content.append('ul')
- .style('display', iD.detect().filedrop ? 'block' : 'none')
- .attr('class', 'layer-list')
- .append('li')
- .classed('layer-toggle-gpx', true);
-
- gpxLayerItem.append('button')
- .attr('class', 'layer-extent')
- .call(bootstrap.tooltip()
- .title(t('gpx.zoom'))
- .placement('left'))
- .on('click', function() {
- d3.event.preventDefault();
- d3.event.stopPropagation();
- context.background().zoomToGpxLayer();
- })
- .append('span')
- .attr('class', 'icon geolocate');
-
- gpxLayerItem.append('button')
- .attr('class', 'layer-browse')
- .call(bootstrap.tooltip()
- .title(t('gpx.browse'))
- .placement('left'))
- .on('click', function() {
- d3.select(document.createElement('input'))
- .attr('type', 'file')
- .on('change', function() {
- context.background().gpxLayerFiles(d3.event.target.files);
- })
- .node().click();
- })
- .append('span')
- .attr('class', 'icon geocode');
+ var controls = content.append('div')
+ .attr('class', 'controls-list');
- label = gpxLayerItem.append('label')
+ var minimapLabel = controls
+ .append('label')
.call(bootstrap.tooltip()
- .title(t('gpx.drag_drop'))
- .placement('top'));
+ .html(true)
+ .title(iD.ui.tooltipHtml(t('background.minimap.tooltip'), '/'))
+ .placement('top')
+ );
- label.append('input')
+ minimapLabel.classed('minimap-toggle', true)
+ .append('input')
.attr('type', 'checkbox')
- .property('disabled', true)
- .on('change', clickGpx);
+ .on('change', function() {
+ iD.ui.MapInMap.toggle();
+ d3.event.preventDefault();
+ });
- label.append('span')
- .text(t('gpx.local_layer'));
+ minimapLabel.append('span')
+ .text(t('background.minimap.description'));
var adjustments = content.append('div')
.attr('class', 'adjustments');
update();
setOpacity(opacityDefault);
- var keybinding = d3.keybinding('background');
- keybinding.on(key, toggle);
+ var keybinding = d3.keybinding('background')
+ .on(key, toggle)
+ .on('F', hide)
+ .on('H', hide);
d3.select(document)
.call(keybinding);
return keys.join('+');
};
iD.ui.Commit = function(context) {
- var event = d3.dispatch('cancel', 'save');
+ var dispatch = d3.dispatch('cancel', 'save');
function commit(selection) {
var changes = context.history().changes(),
var header = selection.append('div')
.attr('class', 'header fillL');
- header.append('button')
- .attr('class', 'fr')
- .on('click', event.cancel)
- .append('span')
- .attr('class', 'icon close');
-
header.append('h3')
.text(t('commit.title'));
var body = selection.append('div')
.attr('class', 'body');
+
// Comment Section
var commentSection = body.append('div')
.attr('class', 'modal-section form-field commit-form');
var commentField = commentSection.append('textarea')
.attr('placeholder', t('commit.description_placeholder'))
+ .attr('maxlength', 255)
.property('value', context.storage('comment') || '')
.on('blur.save', function () {
context.storage('comment', this.value);
commentField.node().select();
+
// Warnings
var warnings = body.selectAll('div.warning-section')
- .data([iD.validate(changes, context.graph())])
+ .data([context.history().validate(changes)])
.enter()
.append('div')
.attr('class', 'modal-section warning-section fillL2')
.placement('top')
);
- // Save Section
+
+ // Upload Explanation
var saveSection = body.append('div')
- .attr('class','modal-section fillL cf');
+ .attr('class','modal-section save-section fillL cf');
var prose = saveSection.append('p')
.attr('class', 'commit-info')
prose.html(t('commit.upload_explanation_with_user', {user: userLink.html()}));
});
- // Confirm Button
- var saveButton = saveSection.append('button')
- .attr('class', 'action col4 button')
+
+ // Buttons
+ var buttonSection = saveSection.append('div')
+ .attr('class','buttons fillL cf');
+
+ var saveButton = buttonSection.append('button')
+ .attr('class', 'action col5 button')
.on('click.save', function() {
- event.save({
+ dispatch.save({
comment: commentField.node().value
});
});
.attr('class', 'label')
.text(t('commit.save'));
+ var cancelButton = buttonSection.append('button')
+ .attr('class', 'action col5 button')
+ .on('click.cancel', function() { dispatch.cancel(); });
+
+ cancelButton.append('span')
+ .attr('class', 'label')
+ .text(t('commit.cancel'));
+
+
+ // Changes
var changeSection = body.selectAll('div.commit-section')
.data([0])
.enter()
.attr('class', 'commit-section modal-section fillL2');
changeSection.append('h3')
- .text(summary.length + ' Changes');
+ .text(t('commit.changes', {count: summary.length}));
var li = changeSection.append('ul')
.attr('class', 'changeset-list')
li.append('span')
.attr('class', 'change-type')
.text(function(d) {
- return d.changeType + ' ';
+ return t('commit.' + d.changeType) + ' ';
});
li.append('strong')
}
}
- return d3.rebind(commit, event, 'on');
+ return d3.rebind(commit, dispatch, 'on');
};
iD.ui.confirm = function(selection) {
var modal = iD.ui.modal(selection);
section.append('div')
.attr('class', 'modal-section message-text');
- var buttonwrap = section.append('div')
+ var buttons = section.append('div')
.attr('class', 'modal-section buttons cf');
- buttonwrap.append('button')
- .attr('class', 'col2 action')
- .on('click.confirm', function() {
- modal.remove();
- })
- .text(t('confirm.okay'));
+ modal.okButton = function() {
+ buttons
+ .append('button')
+ .attr('class', 'action col4')
+ .on('click.confirm', function() {
+ modal.remove();
+ })
+ .text(t('confirm.okay'));
+
+ return modal;
+ };
return modal;
};
+iD.ui.Conflicts = function(context) {
+ var dispatch = d3.dispatch('download', 'cancel', 'save'),
+ list;
+
+ function conflicts(selection) {
+ var header = selection
+ .append('div')
+ .attr('class', 'header fillL');
+
+ header
+ .append('button')
+ .attr('class', 'fr')
+ .on('click', function() { dispatch.cancel(); })
+ .append('span')
+ .attr('class', 'icon close');
+
+ header
+ .append('h3')
+ .text(t('save.conflict.header'));
+
+ var body = selection
+ .append('div')
+ .attr('class', 'body fillL');
+
+ body
+ .append('div')
+ .attr('class', 'conflicts-help')
+ .text(t('save.conflict.help'))
+ .append('a')
+ .attr('class', 'conflicts-download')
+ .text(t('save.conflict.download_changes'))
+ .on('click.download', function() { dispatch.download(); });
+
+ body
+ .append('div')
+ .attr('class', 'conflict-container fillL3')
+ .call(showConflict, 0);
+
+ body
+ .append('div')
+ .attr('class', 'conflicts-done')
+ .attr('opacity', 0)
+ .style('display', 'none')
+ .text(t('save.conflict.done'));
+
+ var buttons = body
+ .append('div')
+ .attr('class','buttons col12 joined conflicts-buttons');
+
+ buttons
+ .append('button')
+ .attr('disabled', list.length > 1)
+ .attr('class', 'action conflicts-button col6')
+ .text(t('save.title'))
+ .on('click.try_again', function() { dispatch.save(); });
+
+ buttons
+ .append('button')
+ .attr('class', 'secondary-action conflicts-button col6')
+ .text(t('confirm.cancel'))
+ .on('click.cancel', function() { dispatch.cancel(); });
+ }
+
+
+ function showConflict(selection, index) {
+ if (index < 0 || index >= list.length) return;
+
+ var parent = d3.select(selection.node().parentElement);
+
+ // enable save button if this is the last conflict being reviewed..
+ if (index === list.length - 1) {
+ window.setTimeout(function() {
+ parent.select('.conflicts-button')
+ .attr('disabled', null);
+
+ parent.select('.conflicts-done')
+ .transition()
+ .attr('opacity', 1)
+ .style('display', 'block');
+ }, 250);
+ }
+
+ var item = selection
+ .selectAll('.conflict')
+ .data([list[index]]);
+
+ var enter = item.enter()
+ .append('div')
+ .attr('class', 'conflict');
+
+ enter
+ .append('h4')
+ .attr('class', 'conflict-count')
+ .text(t('save.conflict.count', { num: index + 1, total: list.length }));
+
+ enter
+ .append('a')
+ .attr('class', 'conflict-description')
+ .attr('href', '#')
+ .text(function(d) { return d.name; })
+ .on('click', function(d) {
+ zoomToEntity(d.id);
+ d3.event.preventDefault();
+ });
+
+ var details = enter
+ .append('div')
+ .attr('class', 'conflict-detail-container');
+
+ details
+ .append('ul')
+ .attr('class', 'conflict-detail-list')
+ .selectAll('li')
+ .data(function(d) { return d.details || []; })
+ .enter()
+ .append('li')
+ .attr('class', 'conflict-detail-item')
+ .html(function(d) { return d; });
+
+ details
+ .append('div')
+ .attr('class', 'conflict-choices')
+ .call(addChoices);
+
+ details
+ .append('div')
+ .attr('class', 'conflict-nav-buttons joined cf')
+ .selectAll('button')
+ .data(['previous', 'next'])
+ .enter()
+ .append('button')
+ .text(function(d) { return t('save.conflict.' + d); })
+ .attr('class', 'conflict-nav-button action col6')
+ .attr('disabled', function(d, i) {
+ return (i === 0 && index === 0) ||
+ (i === 1 && index === list.length - 1) || null;
+ })
+ .on('click', function(d, i) {
+ var container = parent.select('.conflict-container'),
+ sign = (i === 0 ? -1 : 1);
+
+ container
+ .selectAll('.conflict')
+ .remove();
+
+ container
+ .call(showConflict, index + sign);
+
+ d3.event.preventDefault();
+ });
+
+ item.exit()
+ .remove();
+
+ }
+
+ function addChoices(selection) {
+ var choices = selection
+ .append('ul')
+ .attr('class', 'layer-list')
+ .selectAll('li')
+ .data(function(d) { return d.choices || []; });
+
+ var enter = choices.enter()
+ .append('li')
+ .attr('class', 'layer');
+
+ var label = enter
+ .append('label');
+
+ label
+ .append('input')
+ .attr('type', 'radio')
+ .attr('name', function(d) { return d.id; })
+ .on('change', function(d, i) {
+ var ul = this.parentElement.parentElement.parentElement;
+ ul.__data__.chosen = i;
+ choose(ul, d);
+ });
+
+ label
+ .append('span')
+ .text(function(d) { return d.text; });
+
+ choices
+ .each(function(d, i) {
+ var ul = this.parentElement;
+ if (ul.__data__.chosen === i) choose(ul, d);
+ });
+ }
+
+ function choose(ul, datum) {
+ if (d3.event) d3.event.preventDefault();
+
+ d3.select(ul)
+ .selectAll('li')
+ .classed('active', function(d) { return d === datum; })
+ .selectAll('input')
+ .property('checked', function(d) { return d === datum; });
+
+ var extent = iD.geo.Extent(),
+ entity;
+
+ entity = context.graph().hasEntity(datum.id);
+ if (entity) extent._extend(entity.extent(context.graph()));
+
+ datum.action();
+
+ entity = context.graph().hasEntity(datum.id);
+ if (entity) extent._extend(entity.extent(context.graph()));
+
+ zoomToEntity(datum.id, extent);
+ }
+
+ function zoomToEntity(id, extent) {
+ context.surface().selectAll('.hover')
+ .classed('hover', false);
+
+ var entity = context.graph().hasEntity(id);
+ if (entity) {
+ if (extent) {
+ context.map().trimmedExtent(extent);
+ } else {
+ context.map().zoomTo(entity);
+ }
+ context.surface().selectAll(
+ iD.util.entityOrMemberSelector([entity.id], context.graph()))
+ .classed('hover', true);
+ }
+ }
+
+
+ // The conflict list should be an array of objects like:
+ // {
+ // id: id,
+ // name: entityName(local),
+ // details: merge.conflicts(),
+ // chosen: 1,
+ // choices: [
+ // choice(id, keepMine, forceLocal),
+ // choice(id, keepTheirs, forceRemote)
+ // ]
+ // }
+ conflicts.list = function(_) {
+ if (!arguments.length) return list;
+ list = _;
+ return conflicts;
+ };
+
+ return d3.rebind(conflicts, dispatch, 'on');
+};
iD.ui.Contributors = function(context) {
function update(selection) {
var users = {},
return function(selection) {
update(selection);
- context.connection().on('load.contributors', function() {
+ context.connection().on('loaded.contributors', function() {
update(selection);
});
}
function clean(o) {
+
+ function cleanVal(k, v) {
+ function keepSpaces(k) {
+ var whitelist = ['opening_hours', 'service_times', 'collection_times',
+ 'operating_times', 'smoking_hours', 'happy_hours'];
+ return _.any(whitelist, function(s) { return k.indexOf(s) !== -1; });
+ }
+
+ var blacklist = ['description', 'note', 'fixme'];
+ if (_.any(blacklist, function(s) { return k.indexOf(s) !== -1; })) return v;
+
+ var cleaned = v.split(';')
+ .map(function(s) { return s.trim(); })
+ .join(keepSpaces(k) ? '; ' : ';');
+
+ // The code below is not intended to validate websites and emails.
+ // It is only intended to prevent obvious copy-paste errors. (#2323)
+
+ // clean website-like tags
+ if (k.indexOf('website') !== -1 || cleaned.indexOf('http') === 0) {
+ cleaned = cleaned
+ .replace(/[\u200B-\u200F\uFEFF]/g, '') // strip LRM and other zero width chars
+ .replace(/[^\w\+\-\.\/\?\[\]\(\)~!@#$%&*',:;=]/g, encodeURIComponent);
+
+ // clean email-like tags
+ } else if (k.indexOf('email') !== -1) {
+ cleaned = cleaned
+ .replace(/[\u200B-\u200F\uFEFF]/g, '') // strip LRM and other zero width chars
+ .replace(/[^\w\+\-\.\/\?\|~!@#$%^&*'`{};=]/g, ''); // note: ';' allowed as OSM delimiter
+ }
+
+ return cleaned;
+ }
+
var out = {}, k, v;
- /*jshint -W083 */
for (k in o) {
if (k && (v = o[k]) !== undefined) {
- out[k] = v.split(';').map(function(s) { return s.trim(); }).join(';');
+ out[k] = cleanVal(k, v);
}
}
- /*jshint +W083 */
return out;
}
if (!arguments.length) return preset;
if (_ !== preset) {
preset = _;
- reference = iD.ui.TagReference(preset.reference(context.geometry(id)))
+ reference = iD.ui.TagReference(preset.reference(context.geometry(id)), context)
.showing(false);
}
return entityEditor;
return d3.rebind(entityEditor, event, 'on');
};
+iD.ui.FeatureInfo = function(context) {
+ function update(selection) {
+ var features = context.features(),
+ stats = features.stats(),
+ count = 0,
+ hiddenList = _.compact(_.map(features.hidden(), function(k) {
+ if (stats[k]) {
+ count += stats[k];
+ return String(stats[k]) + ' ' + t('feature.' + k + '.description');
+ }
+ }));
+
+ selection.html('');
+
+ if (hiddenList.length) {
+ var tooltip = bootstrap.tooltip()
+ .placement('top')
+ .html(true)
+ .title(function() {
+ return iD.ui.tooltipHtml(hiddenList.join('<br/>'));
+ });
+
+ var warning = selection.append('a')
+ .attr('href', '#')
+ .attr('tabindex', -1)
+ .html(t('feature_info.hidden_warning', { count: count }))
+ .call(tooltip)
+ .on('click', function() {
+ tooltip.hide(warning);
+ // open map data panel?
+ d3.event.preventDefault();
+ });
+ }
+
+ selection
+ .classed('hide', !hiddenList.length);
+ }
+
+ return function(selection) {
+ update(selection);
+
+ context.features().on('change.feature_info', function() {
+ update(selection);
+ });
+ };
+};
iD.ui.FeatureList = function(context) {
var geocodeResults;
else if (d.entity) {
context.enter(iD.modes.Select(context, [d.entity.id]));
} else {
- context.loadEntity(d.id);
+ context.zoomToEntity(d.id);
}
}
return modal;
};
+iD.ui.FullScreen = function(context) {
+ var element = context.container().node(),
+ keybinding = d3.keybinding('full-screen');
+ // button;
+
+ function getFullScreenFn() {
+ if (element.requestFullscreen) {
+ return element.requestFullscreen;
+ } else if (element.msRequestFullscreen) {
+ return element.msRequestFullscreen;
+ } else if (element.mozRequestFullScreen) {
+ return element.mozRequestFullScreen;
+ } else if (element.webkitRequestFullscreen) {
+ return element.webkitRequestFullscreen;
+ }
+ }
+
+ function getExitFullScreenFn() {
+ if (document.exitFullscreen) {
+ return document.exitFullscreen;
+ } else if (document.msExitFullscreen) {
+ return document.msExitFullscreen;
+ } else if (document.mozCancelFullScreen) {
+ return document.mozCancelFullScreen;
+ } else if (document.webkitExitFullscreen) {
+ return document.webkitExitFullscreen;
+ }
+ }
+
+ function isFullScreen() {
+ return document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement ||
+ document.msFullscreenElement;
+ }
+
+ function isSupported() {
+ return !!getFullScreenFn();
+ }
+
+ function fullScreen() {
+ d3.event.preventDefault();
+ if (!isFullScreen()) {
+ // button.classed('active', true);
+ getFullScreenFn().apply(element);
+ } else {
+ // button.classed('active', false);
+ getExitFullScreenFn().apply(document);
+ }
+ }
+
+ return function() { // selection) {
+ if (!isSupported())
+ return;
+
+ // var tooltip = bootstrap.tooltip()
+ // .placement('left');
+
+ // button = selection.append('button')
+ // .attr('title', t('full_screen'))
+ // .attr('tabindex', -1)
+ // .on('click', fullScreen)
+ // .call(tooltip);
+
+ // button.append('span')
+ // .attr('class', 'icon full-screen');
+
+ keybinding
+ .on(iD.ui.cmd('f11'), fullScreen)
+ .on(iD.ui.cmd('⌘⇧F'), fullScreen);
+
+ d3.select(document)
+ .call(keybinding);
+ };
+};
iD.ui.Geolocate = function(map) {
function click() {
navigator.geolocation.getCurrentPosition(
};
};
iD.ui.Help = function(context) {
- var key = 'h';
+ var key = 'H';
var docKeys = [
'help.help',
});
function help(selection) {
- var shown = false;
function hide() {
setVisible(false);
if (show !== shown) {
button.classed('active', show);
shown = show;
+
if (show) {
+ selection.on('mousedown.help-inside', function() {
+ return d3.event.stopPropagation();
+ });
pane.style('display', 'block')
.style('right', '-500px')
.transition()
.each('end', function() {
d3.select(this).style('display', 'none');
});
+ selection.on('mousedown.help-inside', null);
}
}
}
function clickHelp(d, i) {
pane.property('scrollTop', 0);
- doctitle.text(d.title);
+ doctitle.html(d.title);
body.html(d.html);
body.selectAll('a')
.attr('target', '_blank');
clickHelp(docs[i - 1], i - 1);
});
prevLink.append('span').attr('class', 'icon back blue');
- prevLink.append('span').text(docs[i - 1].title);
+ prevLink.append('span').html(docs[i - 1].title);
}
if (i < docs.length - 1) {
var nextLink = nav.append('a')
.on('click', function() {
clickHelp(docs[i + 1], i + 1);
});
- nextLink.append('span').text(docs[i + 1].title);
+ nextLink.append('span').html(docs[i + 1].title);
nextLink.append('span').attr('class', 'icon forward blue');
}
}
setVisible(false);
}
- var tooltip = bootstrap.tooltip()
- .placement('left')
- .html(true)
- .title(iD.ui.tooltipHtml(t('help.title'), key));
- var button = selection.append('button')
- .attr('tabindex', -1)
- .on('click', toggle)
- .call(tooltip);
+ var pane = selection.append('div')
+ .attr('class', 'help-wrap map-overlay fillL col5 content hide'),
+ tooltip = bootstrap.tooltip()
+ .placement('left')
+ .html(true)
+ .title(iD.ui.tooltipHtml(t('help.title'), key)),
+ button = selection.append('button')
+ .attr('tabindex', -1)
+ .on('click', toggle)
+ .call(tooltip),
+ shown = false;
button.append('span')
.attr('class', 'icon help light');
- var pane = context.container()
- .select('.help-wrap');
var toc = pane.append('ul')
.attr('class', 'toc');
.enter()
.append('li')
.append('a')
- .text(function(d) { return d.title; })
+ .html(function(d) { return d.title; })
.on('click', clickHelp);
toc.append('li')
clickHelp(docs[0], 0);
var keybinding = d3.keybinding('help')
- .on(key, toggle);
+ .on(key, toggle)
+ .on('B', hide)
+ .on('F', hide);
d3.select(document)
.call(keybinding);
context.surface().on('mousedown.help-outside', hide);
- context.container().on('mousedown.b.help-outside', hide);
+ context.container().on('mousedown.help-outside', hide);
+ }
- pane.on('mousedown.help-inside', function() {
- return d3.event.stopPropagation();
- });
+ return help;
+};
+iD.ui.Info = function(context) {
+ var key = iD.ui.cmd('⌘I'),
+ imperial = (iD.detect().locale.toLowerCase() === 'en-us');
+
+ function info(selection) {
+ function radiansToMeters(r) {
+ // using WGS84 authalic radius (6371007.1809 m)
+ return r * 6371007.1809;
+ }
+
+ function steradiansToSqmeters(r) {
+ // http://gis.stackexchange.com/a/124857/40446
+ return r / 12.56637 * 510065621724000;
+ }
+
+ function displayLength(m) {
+ var d = m * (imperial ? 3.28084 : 1),
+ p, unit;
+
+ if (imperial) {
+ if (d >= 5280) {
+ d /= 5280;
+ unit = 'mi';
+ } else {
+ unit = 'ft';
+ }
+ } else {
+ if (d >= 1000) {
+ d /= 1000;
+ unit = 'km';
+ } else {
+ unit = 'm';
+ }
+ }
+ // drop unnecessary precision
+ p = d > 1000 ? 0 : d > 100 ? 1 : 2;
+
+ return String(d.toFixed(p)) + ' ' + unit;
+ }
+
+ function displayArea(m2) {
+ var d = m2 * (imperial ? 10.7639111056 : 1),
+ d1, d2, p1, p2, unit1, unit2;
+
+ if (imperial) {
+ if (d >= 6969600) { // > 0.25mi² show mi²
+ d1 = d / 27878400;
+ unit1 = 'mi²';
+ } else {
+ d1 = d;
+ unit1 = 'ft²';
+ }
+
+ if (d > 4356 && d < 43560000) { // 0.1 - 1000 acres
+ d2 = d / 43560;
+ unit2 = 'ac';
+ }
+
+ } else {
+ if (d >= 250000) { // > 0.25km² show km²
+ d1 = d / 1000000;
+ unit1 = 'km²';
+ } else {
+ d1 = d;
+ unit1 = 'm²';
+ }
+
+ if (d > 1000 && d < 10000000) { // 0.1 - 1000 hectares
+ d2 = d / 10000;
+ unit2 = 'ha';
+ }
+ }
+
+ // drop unnecessary precision
+ p1 = d1 > 1000 ? 0 : d1 > 100 ? 1 : 2;
+ p2 = d2 > 1000 ? 0 : d2 > 100 ? 1 : 2;
+
+ return String(d1.toFixed(p1)) + ' ' + unit1 +
+ (d2 ? ' (' + String(d2.toFixed(p2)) + ' ' + unit2 + ')' : '');
+ }
+
+
+ function redraw() {
+ if (hidden()) return;
+
+ var resolver = context.graph(),
+ selected = context.selectedIDs(),
+ singular = selected.length === 1 ? selected[0] : null,
+ extent = iD.geo.Extent(),
+ entity;
+
+ selection.html('');
+ selection.append('h4')
+ .attr('class', 'selection-heading fillD')
+ .text(singular || t('infobox.selected', { n: selected.length }));
+
+ if (!selected.length) return;
+
+ var center;
+ for (var i = 0; i < selected.length; i++) {
+ entity = context.entity(selected[i]);
+ extent._extend(entity.extent(resolver));
+ }
+ center = extent.center();
+
+
+ var list = selection.append('ul');
+
+ // multiple selection, just display extent center..
+ if (!singular) {
+ list.append('li')
+ .text(t('infobox.center') + ': ' + center[0].toFixed(5) + ', ' + center[1].toFixed(5));
+ return;
+ }
+
+ // single selection, display details..
+ if (!entity) return;
+ var geometry = entity.geometry(resolver);
+
+ if (geometry === 'line' || geometry === 'area') {
+ var closed = (entity.type === 'relation') || (entity.isClosed() && !entity.isDegenerate()),
+ feature = entity.asGeoJSON(resolver),
+ length = radiansToMeters(d3.geo.length(feature)),
+ lengthLabel = t('infobox.' + (closed ? 'perimeter' : 'length')),
+ centroid = d3.geo.centroid(feature);
+
+ list.append('li')
+ .text(t('infobox.geometry') + ': ' +
+ (closed ? t('infobox.closed') + ' ' : '') + t('geometry.' + geometry) );
+
+ if (closed) {
+ var area = steradiansToSqmeters(entity.area(resolver));
+ list.append('li')
+ .text(t('infobox.area') + ': ' + displayArea(area));
+ }
+
+ list.append('li')
+ .text(lengthLabel + ': ' + displayLength(length));
+
+ list.append('li')
+ .text(t('infobox.centroid') + ': ' + centroid[0].toFixed(5) + ', ' + centroid[1].toFixed(5));
+
+
+ var toggle = imperial ? 'imperial' : 'metric';
+ selection.append('a')
+ .text(t('infobox.' + toggle))
+ .attr('href', '#')
+ .attr('class', 'button')
+ .on('click', function() {
+ d3.event.preventDefault();
+ imperial = !imperial;
+ redraw();
+ });
+
+ } else {
+ var centerLabel = t('infobox.' + (entity.type === 'node' ? 'location' : 'center'));
+
+ list.append('li')
+ .text(t('infobox.geometry') + ': ' + t('geometry.' + geometry));
+
+ list.append('li')
+ .text(centerLabel + ': ' + center[0].toFixed(5) + ', ' + center[1].toFixed(5));
+ }
+ }
+
+
+ function hidden() {
+ return selection.style('display') === 'none';
+ }
+
+
+ function toggle() {
+ if (d3.event) d3.event.preventDefault();
+
+ if (hidden()) {
+ selection
+ .style('display', 'block')
+ .style('opacity', 0)
+ .transition()
+ .duration(200)
+ .style('opacity', 1);
+
+ redraw();
+
+ } else {
+ selection
+ .style('display', 'block')
+ .style('opacity', 1)
+ .transition()
+ .duration(200)
+ .style('opacity', 0)
+ .each('end', function() {
+ d3.select(this).style('display', 'none');
+ });
+ }
+ }
+
+ context.map()
+ .on('drawn.info', redraw);
+
+ redraw();
+
+ var keybinding = d3.keybinding('info')
+ .on(key, toggle);
+
+ d3.select(document)
+ .call(keybinding);
}
- return help;
+ return info;
};
iD.ui.Inspector = function(context) {
var presetList = iD.ui.PresetList(context),
// Load semi-real data used in intro
context.connection().toggle(false).flush();
context.history().reset();
-
+
introGraph = JSON.parse(iD.introGraph);
for (var key in introGraph) {
introGraph[key] = iD.Entity(introGraph[key]);
context.connection().toggle(true).flush().loadedTiles(loadedTiles);
context.history().reset().merge(d3.values(baseEntities));
context.background().baseLayerSource(background);
- if (history) context.history().fromJSON(history);
+ if (history) context.history().fromJSON(history, false);
window.location.replace(hash);
context.inIntro(false);
d3.select('#bar button.save').on('click', save);
return loading;
};
+iD.ui.MapData = function(context) {
+ var key = 'F',
+ features = context.features().keys(),
+ fills = ['wireframe', 'partial', 'full'],
+ fillDefault = context.storage('area-fill') || 'partial',
+ fillSelected = fillDefault;
+
+ function map_data(selection) {
+
+ function showsFeature(d) {
+ return context.features().enabled(d);
+ }
+
+ function autoHiddenFeature(d) {
+ return context.features().autoHidden(d);
+ }
+
+ function clickFeature(d) {
+ context.features().toggle(d);
+ update();
+ }
+
+ function showsFill(d) {
+ return fillSelected === d;
+ }
+
+ function setFill(d) {
+ _.each(fills, function(opt) {
+ context.surface().classed('fill-' + opt, Boolean(opt === d));
+ });
+
+ fillSelected = d;
+ if (d !== 'wireframe') {
+ fillDefault = d;
+ context.storage('area-fill', d);
+ }
+ update();
+ }
+
+ function clickGpx() {
+ context.background().toggleGpxLayer();
+ update();
+ }
+
+ function clickMapillary() {
+ context.background().toggleMapillaryLayer();
+ update();
+ }
+
+ function drawList(selection, data, type, name, change, active) {
+ var items = selection.selectAll('li')
+ .data(data);
+
+ //enter
+ var enter = items.enter()
+ .append('li')
+ .attr('class', 'layer')
+ .call(bootstrap.tooltip()
+ .html(true)
+ .title(function(d) {
+ var tip = t(name + '.' + d + '.tooltip'),
+ key = (d === 'wireframe' ? 'W' : null);
+
+ if (name === 'feature' && autoHiddenFeature(d)) {
+ tip += '<div>' + t('map_data.autohidden') + '</div>';
+ }
+ return iD.ui.tooltipHtml(tip, key);
+ })
+ .placement('top')
+ );
+
+ var label = enter.append('label');
+
+ label.append('input')
+ .attr('type', type)
+ .attr('name', name)
+ .on('change', change);
+
+ label.append('span')
+ .text(function(d) { return t(name + '.' + d + '.description'); });
+
+ //update
+ items
+ .classed('active', active)
+ .selectAll('input')
+ .property('checked', active)
+ .property('indeterminate', function(d) {
+ return (name === 'feature' && autoHiddenFeature(d));
+ });
+
+ //exit
+ items.exit()
+ .remove();
+ }
+
+ function update() {
+ featureList.call(drawList, features, 'checkbox', 'feature', clickFeature, showsFeature);
+ fillList.call(drawList, fills, 'radio', 'area_fill', setFill, showsFill);
+
+ var hasGpx = context.background().hasGpxLayer(),
+ showsGpx = context.background().showsGpxLayer(),
+ showsMapillary = context.background().showsMapillaryLayer();
+
+ gpxLayerItem
+ .classed('active', showsGpx)
+ .selectAll('input')
+ .property('disabled', !hasGpx)
+ .property('checked', showsGpx);
+
+ mapillaryLayerItem
+ .classed('active', showsMapillary)
+ .selectAll('input')
+ .property('checked', showsMapillary);
+ }
+
+ function hidePanel() { setVisible(false); }
+
+ function togglePanel() {
+ if (d3.event) d3.event.preventDefault();
+ tooltip.hide(button);
+ setVisible(!button.classed('active'));
+ }
+
+ function toggleWireframe() {
+ if (d3.event) {
+ d3.event.preventDefault();
+ d3.event.stopPropagation();
+ }
+ setFill((fillSelected === 'wireframe' ? fillDefault : 'wireframe'));
+ context.map().pan([0,0]); // trigger a redraw
+ }
+
+ function setVisible(show) {
+ if (show !== shown) {
+ button.classed('active', show);
+ shown = show;
+
+ if (show) {
+ selection.on('mousedown.map_data-inside', function() {
+ return d3.event.stopPropagation();
+ });
+ content.style('display', 'block')
+ .style('right', '-300px')
+ .transition()
+ .duration(200)
+ .style('right', '0px');
+ } else {
+ content.style('display', 'block')
+ .style('right', '0px')
+ .transition()
+ .duration(200)
+ .style('right', '-300px')
+ .each('end', function() {
+ d3.select(this).style('display', 'none');
+ });
+ selection.on('mousedown.map_data-inside', null);
+ }
+ }
+ }
+
+
+ var content = selection.append('div')
+ .attr('class', 'fillL map-overlay col3 content hide'),
+ tooltip = bootstrap.tooltip()
+ .placement('left')
+ .html(true)
+ .title(iD.ui.tooltipHtml(t('map_data.description'), key)),
+ button = selection.append('button')
+ .attr('tabindex', -1)
+ .on('click', togglePanel)
+ .call(tooltip),
+ shown = false;
+
+ button.append('span')
+ .attr('class', 'icon data light');
+
+ content.append('h4')
+ .text(t('map_data.title'));
+
+
+ // data layers
+ content.append('a')
+ .text(t('map_data.data_layers'))
+ .attr('href', '#')
+ .classed('hide-toggle', true)
+ .classed('expanded', true)
+ .on('click', function() {
+ var exp = d3.select(this).classed('expanded');
+ layerContainer.style('display', exp ? 'none' : 'block');
+ d3.select(this).classed('expanded', !exp);
+ d3.event.preventDefault();
+ });
+
+ var layerContainer = content.append('div')
+ .attr('class', 'filters')
+ .style('display', 'block');
+
+ // mapillary
+ var mapillaryLayerItem = layerContainer.append('ul')
+ .attr('class', 'layer-list')
+ .append('li');
+
+ var label = mapillaryLayerItem.append('label')
+ .call(bootstrap.tooltip()
+ .title(t('mapillary.tooltip'))
+ .placement('top'));
+
+ label.append('input')
+ .attr('type', 'checkbox')
+ .on('change', clickMapillary);
+
+ label.append('span')
+ .text(t('mapillary.title'));
+
+ // gpx
+ var gpxLayerItem = layerContainer.append('ul')
+ .style('display', iD.detect().filedrop ? 'block' : 'none')
+ .attr('class', 'layer-list')
+ .append('li')
+ .classed('layer-toggle-gpx', true);
+
+ gpxLayerItem.append('button')
+ .attr('class', 'layer-extent')
+ .call(bootstrap.tooltip()
+ .title(t('gpx.zoom'))
+ .placement('left'))
+ .on('click', function() {
+ d3.event.preventDefault();
+ d3.event.stopPropagation();
+ context.background().zoomToGpxLayer();
+ })
+ .append('span')
+ .attr('class', 'icon geolocate');
+
+ gpxLayerItem.append('button')
+ .attr('class', 'layer-browse')
+ .call(bootstrap.tooltip()
+ .title(t('gpx.browse'))
+ .placement('left'))
+ .on('click', function() {
+ d3.select(document.createElement('input'))
+ .attr('type', 'file')
+ .on('change', function() {
+ context.background().gpxLayerFiles(d3.event.target.files);
+ })
+ .node().click();
+ })
+ .append('span')
+ .attr('class', 'icon geocode');
+
+ label = gpxLayerItem.append('label')
+ .call(bootstrap.tooltip()
+ .title(t('gpx.drag_drop'))
+ .placement('top'));
+
+ label.append('input')
+ .attr('type', 'checkbox')
+ .property('disabled', true)
+ .on('change', clickGpx);
+
+ label.append('span')
+ .text(t('gpx.local_layer'));
+
+
+ // area fills
+ content.append('a')
+ .text(t('map_data.fill_area'))
+ .attr('href', '#')
+ .classed('hide-toggle', true)
+ .classed('expanded', false)
+ .on('click', function() {
+ var exp = d3.select(this).classed('expanded');
+ fillContainer.style('display', exp ? 'none' : 'block');
+ d3.select(this).classed('expanded', !exp);
+ d3.event.preventDefault();
+ });
+
+ var fillContainer = content.append('div')
+ .attr('class', 'filters')
+ .style('display', 'none');
+
+ var fillList = fillContainer.append('ul')
+ .attr('class', 'layer-list');
+
+
+ // feature filters
+ content.append('a')
+ .text(t('map_data.map_features'))
+ .attr('href', '#')
+ .classed('hide-toggle', true)
+ .classed('expanded', false)
+ .on('click', function() {
+ var exp = d3.select(this).classed('expanded');
+ featureContainer.style('display', exp ? 'none' : 'block');
+ d3.select(this).classed('expanded', !exp);
+ d3.event.preventDefault();
+ });
+
+ var featureContainer = content.append('div')
+ .attr('class', 'filters')
+ .style('display', 'none');
+
+ var featureList = featureContainer.append('ul')
+ .attr('class', 'layer-list');
+
+
+ context.features()
+ .on('change.map_data-update', update);
+
+ setFill(fillDefault);
+
+ var keybinding = d3.keybinding('features')
+ .on(key, togglePanel)
+ .on('W', toggleWireframe)
+ .on('B', hidePanel)
+ .on('H', hidePanel);
+
+ d3.select(document)
+ .call(keybinding);
+
+ context.surface().on('mousedown.map_data-outside', hidePanel);
+ context.container().on('mousedown.map_data-outside', hidePanel);
+ }
+
+ return map_data;
+};
+iD.ui.MapInMap = function(context) {
+ var key = '/';
+
+ function map_in_map(selection) {
+
+ var backgroundLayer = iD.TileLayer(),
+ dispatch = d3.dispatch('change'),
+ gpxLayer = iD.GpxLayer(context, dispatch),
+ overlayLayer = iD.TileLayer(),
+ projection = iD.geo.RawMercator(),
+ zoom = d3.behavior.zoom()
+ .scaleExtent([ztok(0.5), ztok(24)])
+ .on('zoom', zoomPan),
+ transformed = false,
+ panning = false,
+ zDiff = 6, // by default, minimap renders at (main zoom - 6)
+ tStart, tLast, tCurr, kLast, kCurr, tiles, svg, gpx, timeoutId;
+
+ iD.ui.MapInMap.gpxLayer = gpxLayer;
+
+ function ztok(z) { return 256 * Math.pow(2, z); }
+ function ktoz(k) { return Math.log(k) / Math.LN2 - 8; }
+
+
+ function startMouse() {
+ context.surface().on('mouseup.map-in-map-outside', endMouse);
+ context.container().on('mouseup.map-in-map-outside', endMouse);
+
+ tStart = tLast = tCurr = projection.translate();
+ panning = true;
+ }
+
+
+ function zoomPan() {
+ var e = d3.event.sourceEvent,
+ t = d3.event.translate,
+ k = d3.event.scale,
+ zMain = ktoz(context.projection.scale() * 2 * Math.PI),
+ zMini = ktoz(k);
+
+ // restrict minimap zoom to < (main zoom - 3)
+ if (zMini > zMain - 3) {
+ zMini = zMain - 3;
+ zoom.scale(kCurr).translate(tCurr); // restore last good values
+ return;
+ }
+
+ tCurr = t;
+ kCurr = k;
+ zDiff = zMain - zMini;
+
+ var scale = kCurr / kLast,
+ tX = Math.round((tCurr[0] / scale - tLast[0]) * scale),
+ tY = Math.round((tCurr[1] / scale - tLast[1]) * scale);
+
+ iD.util.setTransform(tiles, tX, tY, scale);
+ iD.util.setTransform(svg, 0, 0, scale);
+ iD.util.setTransform(gpx, 0, 0, scale);
+ transformed = true;
+
+ queueRedraw();
+
+ e.preventDefault();
+ e.stopPropagation();
+ }
+
+
+ function endMouse() {
+ context.surface().on('mouseup.map-in-map-outside', null);
+ context.container().on('mouseup.map-in-map-outside', null);
+
+ updateProjection();
+ panning = false;
+
+ if (tCurr[0] !== tStart[0] && tCurr[1] !== tStart[1]) {
+ var dMini = selection.dimensions(),
+ cMini = [ dMini[0] / 2, dMini[1] / 2 ];
+
+ context.map().center(projection.invert(cMini));
+ }
+ }
+
+
+ function updateProjection() {
+ var loc = context.map().center(),
+ dMini = selection.dimensions(),
+ cMini = [ dMini[0] / 2, dMini[1] / 2 ],
+ tMain = context.projection.translate(),
+ kMain = context.projection.scale(),
+ zMain = ktoz(kMain * 2 * Math.PI),
+ zMini = Math.max(zMain - zDiff, 0.5),
+ kMini = ztok(zMini);
+
+ projection
+ .translate(tMain)
+ .scale(kMini / (2 * Math.PI));
+
+ var s = projection(loc),
+ mouse = panning ? [ tCurr[0] - tStart[0], tCurr[1] - tStart[1] ] : [0, 0],
+ tMini = [
+ cMini[0] - s[0] + tMain[0] + mouse[0],
+ cMini[1] - s[1] + tMain[1] + mouse[1]
+ ];
+
+ projection
+ .translate(tMini)
+ .clipExtent([[0, 0], dMini]);
+
+ zoom
+ .center(cMini)
+ .translate(tMini)
+ .scale(kMini);
+
+ tLast = tCurr = tMini;
+ kLast = kCurr = kMini;
+
+ if (transformed) {
+ iD.util.setTransform(tiles, 0, 0);
+ iD.util.setTransform(svg, 0, 0);
+ iD.util.setTransform(gpx, 0, 0);
+ transformed = false;
+ }
+ }
+
+
+ function redraw() {
+ if (hidden()) return;
+
+ updateProjection();
+
+ var dMini = selection.dimensions(),
+ zMini = ktoz(projection.scale() * 2 * Math.PI);
+
+ // setup tile container
+ tiles = selection
+ .selectAll('.map-in-map-tiles')
+ .data([0]);
+
+ tiles
+ .enter()
+ .append('div')
+ .attr('class', 'map-in-map-tiles');
+
+ // redraw background
+ backgroundLayer
+ .source(context.background().baseLayerSource())
+ .projection(projection)
+ .dimensions(dMini);
+
+ var background = tiles
+ .selectAll('.map-in-map-background')
+ .data([0]);
+
+ background.enter()
+ .append('div')
+ .attr('class', 'map-in-map-background');
+
+ background
+ .call(backgroundLayer);
+
+ // redraw overlay
+ var overlaySources = context.background().overlayLayerSources(),
+ hasOverlay = false;
+
+ for (var i = 0; i < overlaySources.length; i++) {
+ if (overlaySources[i].validZoom(zMini)) {
+ overlayLayer
+ .source(overlaySources[i])
+ .projection(projection)
+ .dimensions(dMini);
+
+ hasOverlay = true;
+ break;
+ }
+ }
+
+ var overlay = tiles
+ .selectAll('.map-in-map-overlay')
+ .data(hasOverlay ? [0] : []);
+
+ overlay.enter()
+ .append('div')
+ .attr('class', 'map-in-map-overlay');
+
+ overlay.exit()
+ .remove();
+
+ if (hasOverlay) {
+ overlay
+ .call(overlayLayer);
+ }
+
+ gpxLayer
+ .projection(projection);
+
+ gpx = tiles
+ .selectAll('.map-in-map-gpx')
+ .data([0]);
+
+ gpx.enter()
+ .append('div')
+ .attr('class', 'map-in-map-gpx');
+
+ gpx.call(gpxLayer);
+ gpx.dimensions(dMini);
+
+ // redraw bounding box
+ if (!panning) {
+ var getPath = d3.geo.path().projection(projection),
+ bbox = { type: 'Polygon', coordinates: [context.map().extent().polygon()] };
+
+ svg = selection.selectAll('.map-in-map-svg')
+ .data([0]);
+
+ svg.enter()
+ .append('svg')
+ .attr('class', 'map-in-map-svg');
+
+ var path = svg.selectAll('.map-in-map-bbox')
+ .data([bbox]);
+
+ path.enter()
+ .append('path')
+ .attr('class', 'map-in-map-bbox');
+
+ path
+ .attr('d', getPath)
+ .classed('thick', function(d) { return getPath.area(d) < 30; });
+ }
+ }
+
+
+ function queueRedraw() {
+ clearTimeout(timeoutId);
+ timeoutId = setTimeout(function() { redraw(); }, 300);
+ }
+
+
+ function hidden() {
+ return selection.style('display') === 'none';
+ }
+
+
+ function toggle() {
+ if (d3.event) d3.event.preventDefault();
+
+ var label = d3.select('.minimap-toggle');
+
+ if (hidden()) {
+ selection
+ .style('display', 'block')
+ .style('opacity', 0)
+ .transition()
+ .duration(200)
+ .style('opacity', 1);
+
+ label.classed('active', true)
+ .select('input').property('checked', true);
+
+ redraw();
+
+ } else {
+ selection
+ .style('display', 'block')
+ .style('opacity', 1)
+ .transition()
+ .duration(200)
+ .style('opacity', 0)
+ .each('end', function() {
+ d3.select(this).style('display', 'none');
+ });
+
+ label.classed('active', false)
+ .select('input').property('checked', false);
+ }
+ }
+
+ iD.ui.MapInMap.toggle = toggle;
+
+ selection
+ .on('mousedown.map-in-map', startMouse)
+ .on('mouseup.map-in-map', endMouse);
+
+ selection
+ .call(zoom)
+ .on('dblclick.zoom', null);
+
+ context.map()
+ .on('drawn.map-in-map', function(drawn) {
+ if (drawn.full === true) redraw();
+ });
+
+ redraw();
+
+ var keybinding = d3.keybinding('map-in-map')
+ .on(key, toggle);
+
+ d3.select(document)
+ .call(keybinding);
+ }
+
+ return map_in_map;
+};
iD.ui.modal = function(selection, blocking) {
var previous = selection.select('div.modal');
if (animate) {
shaded.transition().style('opacity', 1);
- modal
- .style('top','0px')
- .transition()
- .duration(200)
- .style('top','40px');
} else {
shaded.style('opacity', 1);
}
-
return shaded;
};
iD.ui.Modes = function(context) {
iD.modes.AddLine(context),
iD.modes.AddArea(context)];
+ function editable() {
+ return context.editable() && context.mode().id !== 'save';
+ }
+
return function(selection) {
var buttons = selection.selectAll('button.add-button')
.data(modes);
context
.on('enter.modes', update);
- update();
-
buttons.append('span')
.attr('class', function(mode) { return mode.id + ' icon icon-pre-text'; });
var keybinding = d3.keybinding('mode-buttons');
modes.forEach(function(m) {
- keybinding.on(m.key, function() { if (context.editable()) context.enter(m); });
+ keybinding.on(m.key, function() { if (editable()) context.enter(m); });
});
d3.select(document)
.call(keybinding);
function update() {
- buttons.property('disabled', !context.editable());
+ buttons.property('disabled', !editable());
}
};
};
var button = div.append('button')
.attr('class', 'zoom-to notice')
- .on('click', function() { context.map().zoom(16); });
+ .on('click', function() { context.map().zoom(context.minEditableZoom()); });
button.append('span')
.attr('class', 'icon zoom-in-invert');
.text(t('zoom_in_edit'));
function disableTooHigh() {
- div.style('display', context.map().editable() ? 'none' : 'block');
+ div.style('display', context.editable() ? 'none' : 'block');
}
context.map()
// Enter
var $enter = $fields.enter()
- .insert('div', '.more-buttons')
+ .append('div')
.attr('class', function(field) {
return 'form-field form-field-' + field.id;
});
return field.present();
})
.each(function(field) {
- var reference = iD.ui.TagReference(field.reference || {key: field.key});
+ var reference = iD.ui.TagReference(field.reference || {key: field.key}, context);
if (state === 'hover') {
reference.showing(false);
$fields.exit()
.remove();
- var $more = selection.selectAll('.more-buttons')
- .data([0]);
+ notShown = notShown.map(function(field) {
+ return {
+ title: field.label(),
+ value: field.label(),
+ field: field
+ };
+ });
+
+ var $more = selection.selectAll('.more-fields')
+ .data((notShown.length > 0) ? [0] : []);
$more.enter().append('div')
- .attr('class', 'more-buttons inspector-inner');
+ .attr('class', 'more-fields')
+ .append('label')
+ .text(t('inspector.add_fields'));
- var $buttons = $more.selectAll('.preset-add-field')
- .data(notShown, fieldKey);
+ var $input = $more.selectAll('.value')
+ .data([0]);
- $buttons.enter()
- .append('button')
- .attr('class', 'preset-add-field')
- .call(bootstrap.tooltip()
- .placement('top')
- .title(function(d) { return d.label(); }))
- .append('span')
- .attr('class', function(d) { return 'icon ' + d.icon; });
+ $input.enter().append('input')
+ .attr('class', 'value')
+ .attr('type', 'text');
- $buttons.on('click', show);
+ $input.value('')
+ .attr('placeholder', function() {
+ var placeholder = [];
+ for (var field in notShown) {
+ placeholder.push(notShown[field].title);
+ }
+ return placeholder.slice(0,3).join(', ') + ((placeholder.length > 3) ? '…' : '');
+ })
+ .call(d3.combobox().data(notShown)
+ .minItems(1)
+ .on('accept', show));
+
+ $more.exit()
+ .remove();
- $buttons.exit()
+ $input.exit()
.remove();
function show(field) {
+ field = field.field;
field.show = true;
presets(selection);
field.input.focus();
};
item.preset = preset;
- item.reference = iD.ui.TagReference(preset.reference(context.geometry(id)));
+ item.reference = iD.ui.TagReference(preset.reference(context.geometry(id)), context);
return item;
}
};
iD.ui.RawTagEditor = function(context) {
var event = d3.dispatch('change'),
- taginfo = iD.taginfo(),
showBlank = false,
state,
preset,
selection.call(iD.ui.Disclosure()
.title(t('inspector.all_tags') + ' (' + count + ')')
- .expanded(iD.ui.RawTagEditor.expanded || preset.isFallback())
+ .expanded(context.storage('raw_tag_editor.expanded') === 'true' || preset.isFallback())
.on('toggled', toggled)
.content(content));
function toggled(expanded) {
- iD.ui.RawTagEditor.expanded = expanded;
+ context.storage('raw_tag_editor.expanded', expanded);
if (expanded) {
selection.node().parentNode.scrollTop += 200;
}
.append('span')
.attr('class', 'icon delete');
- $enter.each(bindTypeahead);
+ if (context.taginfo()) {
+ $enter.each(bindTypeahead);
+ }
// Update
$items.order();
$items.each(function(tag) {
- var reference = iD.ui.TagReference({key: tag.key});
+ var reference = iD.ui.TagReference({key: tag.key, value: tag.value}, context);
if (state === 'hover') {
reference.showing(false);
key.call(d3.combobox()
.fetcher(function(value, callback) {
- taginfo.keys({
+ context.taginfo().keys({
debounce: true,
geometry: context.geometry(id),
query: value
value.call(d3.combobox()
.fetcher(function(value, callback) {
- taginfo.values({
+ context.taginfo().values({
debounce: true,
key: key.value(),
geometry: context.geometry(id),
var tag = {};
tag[d.key] = undefined;
event.change(tag);
+ d3.select(this.parentNode).remove();
}
function addTag() {
.text('0');
var keybinding = d3.keybinding('undo-redo')
- .on(key, save);
+ .on(key, save, true);
d3.select(document)
.call(keybinding);
};
iD.ui.Scale = function(context) {
var projection = context.projection,
- imperial = (iD.detect().locale.toLowerCase() === 'en-us'),
maxLength = 180,
tickHeight = 8;
function scaleDefs(loc1, loc2) {
var lat = (loc2[1] + loc1[1]) / 2,
+ imperial = (iD.detect().locale.toLowerCase() === 'en-us'),
conversion = (imperial ? 3.28084 : 1),
dist = iD.geo.lonToMeters(loc2[0] - loc1[0], lat) * conversion,
scale = { dist: 0, px: 0, text: '' },
};
iD.ui.SelectionList = function(context, selectedIDs) {
+ function selectEntity(entity) {
+ context.enter(iD.modes.Select(context, [entity.id]).suppressMenu(true));
+ }
+
+
function selectionList(selection) {
selection.classed('selection-list-pane', true);
var enter = items.enter().append('button')
.attr('class', 'feature-list-item')
- .on('click', function(entity) {
- context.enter(iD.modes.Select(context, [entity.id]));
- });
+ .on('click', selectEntity);
// Enter
context.connection()
.switch(live ? keys[1] : keys[0]);
+ context.enter(iD.modes.Browse(context));
context.flush();
d3.select(this)
};
};
iD.ui.Success = function(context) {
- var event = d3.dispatch('cancel'),
+ var dispatch = d3.dispatch('cancel'),
changeset;
function success(selection) {
header.append('button')
.attr('class', 'fr')
+ .on('click', function() { dispatch.cancel(); })
.append('span')
- .attr('class', 'icon close')
- .on('click', function() { event.cancel(success); });
+ .attr('class', 'icon close');
header.append('h3')
.text(t('success.just_edited'));
return success;
};
- return d3.rebind(success, event, 'on');
+ return d3.rebind(success, dispatch, 'on');
};
-iD.ui.TagReference = function(tag) {
+iD.ui.TagReference = function(tag, context) {
var tagReference = {},
- taginfo = iD.taginfo(),
button,
body,
loaded,
function load() {
button.classed('tag-reference-loading', true);
- taginfo.docs(tag, function(err, docs) {
+ context.taginfo().docs(tag, function(err, docs, softfail) {
if (!err && docs) {
docs = findLocal(docs);
}
body.html('');
if (!docs || !docs.description) {
- body.append('p').text(t('inspector.no_documentation_key'));
- show();
- return;
+ if (!softfail) {
+ body.append('p').text(t('inspector.no_documentation_key'));
+ show();
+ }
+ return false;
}
if (docs.image && docs.image.thumb_url_prefix) {
wikiLink.append('span')
.text(t('inspector.reference'));
+
+ return true;
});
}
} else if (loaded) {
show();
} else {
- load();
+ if (context.taginfo()) {
+ load();
+ }
}
});
};
key: '-'
}];
+ function zoomIn() {
+ d3.event.preventDefault();
+ context.zoomIn();
+ }
+
+ function zoomOut() {
+ d3.event.preventDefault();
+ context.zoomOut();
+ }
+
+ function zoomInFurther() {
+ d3.event.preventDefault();
+ context.zoomInFurther();
+ }
+
+ function zoomOutFurther() {
+ d3.event.preventDefault();
+ context.zoomOutFurther();
+ }
+
+
return function(selection) {
var button = selection.selectAll('button')
.data(zooms)
button.append('span')
.attr('class', function(d) { return d.id + ' icon'; });
- var keybinding = d3.keybinding('zoom')
- .on('+', function() { context.zoomIn(); })
- .on('-', function() { context.zoomOut(); })
- .on('⇧=', function() { context.zoomIn(); })
- .on('dash', function() { context.zoomOut(); });
+ var keybinding = d3.keybinding('zoom');
+
+ _.each(['=','ffequals','plus','ffplus'], function(key) {
+ keybinding.on(key, zoomIn);
+ keybinding.on('⇧' + key, zoomIn);
+ keybinding.on(iD.ui.cmd('⌘' + key), zoomInFurther);
+ keybinding.on(iD.ui.cmd('⌘⇧' + key), zoomInFurther);
+ });
+ _.each(['-','ffminus','_','dash'], function(key) {
+ keybinding.on(key, zoomOut);
+ keybinding.on('⇧' + key, zoomOut);
+ keybinding.on(iD.ui.cmd('⌘' + key), zoomOutFurther);
+ keybinding.on(iD.ui.cmd('⌘⇧' + key), zoomOutFurther);
+ });
d3.select(document)
.call(keybinding);
if (type !== 'access') {
options.unshift('yes');
options.push('designated');
+
+ if (type === 'bicycle') {
+ options.push('dismount');
+ }
}
return options.map(function(option) {
return tags.access ? tags.access : field.placeholder();
});
- items.selectAll('#preset-input-access-access')
- .attr('placeholder', 'yes');
+ // items.selectAll('#preset-input-access-access')
+ // .attr('placeholder', 'yes');
- _.forEach(placeholders[tags.highway], function(value, key) {
- items.selectAll('#preset-input-access-' + key)
- .attr('placeholder', function() {
- return (tags.access && (value === 'yes' || value === 'designated')) ? tags.access : value;
- });
+ _.forEach(placeholders[tags.highway], function(v, k) {
+ items.selectAll('#preset-input-access-' + k)
+ .attr('placeholder', function() { return (tags.access || v); });
});
};
housenumber: 1/3,
street: 2/3,
city: 2/3,
+ state: 1/4,
postcode: 1/3
};
}
function address(selection) {
+ isInitialized = false;
+
selection.selectAll('.preset-input-wrap')
.remove();
};
address.focus = function() {
- wrap.selectAll('input').node().focus();
+ var node = wrap.selectAll('input').node();
+ if (node) node.focus();
};
return d3.rebind(address, event, 'on');
return d3.rebind(check, event, 'on');
};
iD.ui.preset.combo =
-iD.ui.preset.typeCombo = function(field) {
+iD.ui.preset.typeCombo = function(field, context) {
var event = d3.dispatch('change'),
optstrings = field.strings && field.strings.options,
optarray = field.options,
strings[k] = k.replace(/_+/g, ' ');
});
stringsLoaded();
- } else {
- iD.taginfo().values({key: field.key}, function(err, data) {
+ } else if (context.taginfo()) {
+ context.taginfo().values({key: field.key}, function(err, data) {
if (!err) {
_.each(_.pluck(data, 'value'), function(k) {
strings[k] = k.replace(/_+/g, ' ');
return d3.rebind(combo, event, 'on');
};
+iD.ui.preset.cycleway = function(field) {
+ var event = d3.dispatch('change'),
+ items;
+
+ function cycleway(selection) {
+ var wrap = selection.selectAll('.preset-input-wrap')
+ .data([0]);
+
+ wrap.enter().append('div')
+ .attr('class', 'cf preset-input-wrap')
+ .append('ul');
+
+ items = wrap.select('ul').selectAll('li')
+ .data(field.keys);
+
+ // Enter
+
+ var enter = items.enter().append('li')
+ .attr('class', function(d) { return 'cf preset-cycleway-' + d; });
+
+ enter.append('span')
+ .attr('class', 'col6 label preset-label-cycleway')
+ .attr('for', function(d) { return 'preset-input-cycleway-' + d; })
+ .text(function(d) { return field.t('types.' + d); });
+
+ enter.append('div')
+ .attr('class', 'col6 preset-input-cycleway-wrap')
+ .append('input')
+ .attr('type', 'text')
+ .attr('class', 'preset-input-cycleway')
+ .attr('id', function(d) { return 'preset-input-cycleway-' + d; })
+ .each(function(d) {
+ d3.select(this)
+ .call(d3.combobox()
+ .data(cycleway.options(d)));
+ });
+
+ // Update
+
+ wrap.selectAll('.preset-input-cycleway')
+ .on('change', change)
+ .on('blur', change);
+ }
+
+ function change() {
+ var inputs = d3.selectAll('.preset-input-cycleway')[0],
+ left = d3.select(inputs[0]).value(),
+ right = d3.select(inputs[1]).value(),
+ tag = {};
+ if (left === 'none' || left === '') { left = undefined; }
+ if (right === 'none' || right === '') { right = undefined; }
+
+ // Always set both left and right as changing one can affect the other
+ tag = {
+ cycleway: undefined,
+ 'cycleway:left': left,
+ 'cycleway:right': right
+ };
+
+ // If the left and right tags match, use the cycleway tag to tag both
+ // sides the same way
+ if (left === right) {
+ tag = {
+ cycleway: left,
+ 'cycleway:left': undefined,
+ 'cycleway:right': undefined
+ };
+ }
+
+ event.change(tag);
+ }
+
+ cycleway.options = function() {
+ return d3.keys(field.strings.options).map(function(option) {
+ return {
+ title: field.t('options.' + option + '.description'),
+ value: option
+ };
+ });
+ };
+
+ cycleway.tags = function(tags) {
+ items.selectAll('.preset-input-cycleway')
+ .value(function(d) {
+ // If cycleway is set, always return that
+ if (tags.cycleway) {
+ return tags.cycleway;
+ }
+ return tags[d] || '';
+ })
+ .attr('placeholder', field.placeholder());
+ };
+
+ cycleway.focus = function() {
+ items.selectAll('.preset-input-cycleway')
+ .node().focus();
+ };
+
+ return d3.rebind(cycleway, event, 'on');
+};
iD.ui.preset.text =
iD.ui.preset.number =
iD.ui.preset.tel =
} else {
preset = presets.item('type/restriction/' +
iD.geo.inferRestriction(
- graph.entity(datum.from.node),
- graph.entity(datum.via.node),
- graph.entity(datum.to.node),
+ graph,
+ datum.from,
+ datum.via,
+ datum.to,
projection));
}
function change() {
var value = title.value(),
- m = value.match(/https?:\/\/([a-z]+)\.wikipedia\.org\/wiki\/(.+)/),
- l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; });
+ m = value.match(/https?:\/\/([-a-z]+)\.wikipedia\.org\/(?:wiki|\1-[-a-z]+)\/([^#]+)(?:#(.+))?/),
+ l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; }),
+ anchor;
if (l) {
// Normalize title http://www.mediawiki.org/wiki/API:Query#Title_normalization
- value = m[2].replace(/_/g, ' ');
+ value = decodeURIComponent(m[2]).replace(/_/g, ' ');
+ if (m[3]) {
+ try {
+ // Best-effort `anchordecode:` implementation
+ anchor = decodeURIComponent(m[3].replace(/\.([0-9A-F]{2})/g, '%$1'));
+ } catch (e) {
+ anchor = decodeURIComponent(m[3]);
+ }
+ value += '#' + anchor.replace(/_/g, ' ');
+ }
value = value.slice(0, 1).toUpperCase() + value.slice(1);
lang.value(l[1]);
title.value(value);
i.tags = function(tags) {
var value = tags[field.key] || '',
- m = value.match(/([^:]+):(.+)/),
- l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; });
+ m = value.match(/([^:]+):([^#]+)(?:#(.+))?/),
+ l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; }),
+ anchor = m && m[3];
// value in correct format
if (l) {
lang.value(l[1]);
- title.value(m[2]);
- link.attr('href', 'http://' + m[1] + '.wikipedia.org/wiki/' + m[2]);
+ title.value(m[2] + (anchor ? ('#' + anchor) : ''));
+ if (anchor) {
+ try {
+ // Best-effort `anchorencode:` implementation
+ anchor = encodeURIComponent(anchor.replace(/ /g, '_')).replace(/%/g, '.');
+ } catch (e) {
+ anchor = anchor.replace(/ /g, '_');
+ }
+ }
+ link.attr('href', 'http://' + m[1] + '.wikipedia.org/wiki/' +
+ m[2].replace(/ /g, '_') + (anchor ? ('#' + anchor) : ''));
// unrecognized value format
} else {
return match || all.item(geometry);
};
+ // Because of the open nature of tagging, iD will never have a complete
+ // list of tags used in OSM, so we want it to have logic like "assume
+ // that a closed way with an amenity tag is an area, unless the amenity
+ // is one of these specific types". This function computes a structure
+ // that allows testing of such conditions, based on the presets designated
+ // as as supporting (or not supporting) the area geometry.
+ //
+ // The returned object L is a whitelist/blacklist of tags. A closed way
+ // with a tag (k, v) is considered to be an area if `k in L && !(v in L[k])`
+ // (see `iD.Way#isArea()`). In other words, the keys of L form the whitelist,
+ // and the subkeys form the blacklist.
+ all.areaKeys = function() {
+ var areaKeys = {},
+ ignore = ['barrier', 'highway', 'footway', 'railway', 'type'],
+ presets = _.reject(all.collection, 'suggestion');
+
+ // whitelist
+ presets.forEach(function(d) {
+ for (var key in d.tags) break;
+ if (!key) return;
+ if (ignore.indexOf(key) !== -1) return;
+
+ if (d.geometry.indexOf('area') !== -1) {
+ areaKeys[key] = areaKeys[key] || {};
+ }
+ });
+
+ // blacklist
+ presets.forEach(function(d) {
+ for (var key in d.tags) break;
+ if (!key) return;
+ if (ignore.indexOf(key) !== -1) return;
+
+ var value = d.tags[key];
+ if (d.geometry.indexOf('area') === -1 && key in areaKeys && value !== '*') {
+ areaKeys[key][value] = true;
+ }
+ });
+
+ return areaKeys;
+ };
+
all.load = function(d) {
if (d.fields) {
value = value.toLowerCase();
var searchable = _.filter(collection, function(a) {
- return a.searchable !== false && a.suggestion !== true;
- }),
- suggestions = _.filter(collection, function(a) {
- return a.suggestion === true;
- });
+ return a.searchable !== false && a.suggestion !== true;
+ }),
+ suggestions = _.filter(collection, function(a) {
+ return a.suggestion === true;
+ });
// matches value to preset.name
var leading_name = _.filter(searchable, function(a) {
// matches value to preset.terms values
var leading_terms = _.filter(searchable, function(a) {
- return _.any(a.terms() || [], leading);
- });
+ return _.any(a.terms() || [], leading);
+ });
+
+ // matches value to preset.tags values
+ var leading_tag_values = _.filter(searchable, function(a) {
+ return _.any(_.without(_.values(a.tags || {}), '*'), leading);
+ });
function leading(a) {
var index = a.indexOf(value);
var results = leading_name.concat(
leading_terms,
+ leading_tag_values,
leading_suggestions.slice(0, maxSuggestionResults+5),
levenstein_name,
leventstein_terms,
preset.id = id;
preset.fields = (preset.fields || []).map(getFields);
+ preset.geometry = (preset.geometry || []);
function getFields(f) {
return fields[f];
};
preset.terms = function() {
- return preset.t('terms', {'default': ''}).split(',');
+ return preset.t('terms', {'default': ''}).toLowerCase().split(/\s*,+\s*/);
};
preset.isFallback = function() {
for (var f in preset.fields) {
var field = preset.fields[f];
- if (field.matchGeometry(geometry) && field['default'] === tags[field.key]) {
+ if (field.matchGeometry(geometry) && field.default === tags[field.key]) {
delete tags[field.key];
}
}
+ delete tags.area;
return tags;
};
}
}
- // Add area=yes if necessary
- for (k in applyTags) {
- if (geometry === 'area' && !(k in iD.areaKeys))
+ // Add area=yes if necessary.
+ // This is necessary if the geometry is already an area (e.g. user drew an area) AND any of:
+ // 1. chosen preset could be either an area or a line (`barrier=city_wall`)
+ // 2. chosen preset doesn't have a key in areaKeys (`railway=station`)
+ if (geometry === 'area') {
+ var needsAreaTag = true;
+ if (preset.geometry.indexOf('line') === -1) {
+ for (k in applyTags) {
+ if (k in iD.areaKeys) {
+ needsAreaTag = false;
+ break;
+ }
+ }
+ }
+ if (needsAreaTag) {
tags.area = 'yes';
- break;
+ }
}
for (var f in preset.fields) {
var field = preset.fields[f];
- if (field.matchGeometry(geometry) && field.key && !tags[field.key] && field['default']) {
- tags[field.key] = field['default'];
+ if (field.matchGeometry(geometry) && field.key && !tags[field.key] && field.default) {
+ tags[field.key] = field.default;
}
}
return preset;
};
-iD.validate = function(changes, graph) {
- var warnings = [];
+iD.validations = {};
+iD.validations.DeprecatedTag = function() {
+
+ var validation = function(changes) {
+ var warnings = [];
+ for (var i = 0; i < changes.created.length; i++) {
+ var change = changes.created[i],
+ deprecatedTags = change.deprecatedTags();
+
+ if (!_.isEmpty(deprecatedTags)) {
+ var tags = iD.util.tagText({ tags: deprecatedTags });
+ warnings.push({
+ id: 'deprecated_tags',
+ message: t('validations.deprecated_tags', { tags: tags }),
+ entity: change
+ });
+ }
+ }
+ return warnings;
+ };
+
+ return validation;
+};
+iD.validations.ManyDeletions = function() {
+ var threshold = 100;
+
+ var validation = function(changes) {
+ var warnings = [];
+ if (changes.deleted.length > threshold) {
+ warnings.push({
+ id: 'many_deletions',
+ message: t('validations.many_deletions', { n: changes.deleted.length })
+ });
+ }
+ return warnings;
+ };
+
+ return validation;
+};
+iD.validations.MissingTag = function() {
+
+ var validation = function(changes, graph) {
+ var warnings = [];
+ for (var i = 0; i < changes.created.length; i++) {
+ var change = changes.created[i],
+ geometry = change.geometry(graph);
+
+ if ((geometry === 'point' || geometry === 'line' || geometry === 'area') && !change.isUsed(graph)) {
+ warnings.push({
+ id: 'missing_tag',
+ message: t('validations.untagged_' + geometry),
+ tooltip: t('validations.untagged_' + geometry + '_tooltip'),
+ entity: change
+ });
+ }
+ }
+ return warnings;
+ };
+
+ return validation;
+};
+iD.validations.TagSuggestsArea = function() {
// https://github.com/openstreetmap/josm/blob/mirror/src/org/
// openstreetmap/josm/data/validation/tests/UnclosedWays.java#L80
- function tagSuggestsArea(change) {
- if (_.isEmpty(change.tags)) return false;
- var tags = change.tags;
+ function tagSuggestsArea(tags) {
+ if (_.isEmpty(tags)) return false;
+
var presence = ['landuse', 'amenities', 'tourism', 'shop'];
for (var i = 0; i < presence.length; i++) {
if (tags[presence[i]] !== undefined) {
return presence[i] + '=' + tags[presence[i]];
}
}
- if (tags.building && tags.building === 'yes') return 'building=yes';
- }
- if (changes.deleted.length > 100) {
- warnings.push({
- message: t('validations.many_deletions', { n: changes.deleted.length })
- });
+ if (tags.building && tags.building === 'yes') return 'building=yes';
}
- for (var i = 0; i < changes.created.length; i++) {
- var change = changes.created[i],
- geometry = change.geometry(graph);
-
- if ((geometry === 'point' || geometry === 'line' || geometry === 'area') && !change.isUsed(graph)) {
- warnings.push({
- message: t('validations.untagged_' + geometry),
- tooltip: t('validations.untagged_' + geometry + '_tooltip'),
- entity: change
- });
- }
-
- var deprecatedTags = change.deprecatedTags();
- if (!_.isEmpty(deprecatedTags)) {
- warnings.push({
- message: t('validations.deprecated_tags', {
- tags: iD.util.tagText({ tags: deprecatedTags })
- }), entity: change });
- }
+ var validation = function(changes, graph) {
+ var warnings = [];
+ for (var i = 0; i < changes.created.length; i++) {
+ var change = changes.created[i],
+ geometry = change.geometry(graph),
+ suggestion = (geometry === 'line' ? tagSuggestsArea(change.tags) : undefined);
- if (geometry === 'line' && tagSuggestsArea(change)) {
- warnings.push({
- message: t('validations.tag_suggests_area', {tag: tagSuggestsArea(change)}),
- entity: change
- });
+ if (suggestion) {
+ warnings.push({
+ id: 'tag_suggests_area',
+ message: t('validations.tag_suggests_area', { tag: suggestion }),
+ entity: change
+ });
+ }
}
- }
+ return warnings;
+ };
- return warnings;
+ return validation;
};
-/* jshint ignore:start */
})();
window.locale = { _current: 'en' };
"yh:WIDTH_RANK",
"SK53_bulk:load"
],
- "imagery": [
- {
- "name": "7th Series (OS7)",
- "type": "tms",
- "template": "http://ooc.openstreetmap.org/os7/{zoom}/{x}/{y}.jpg",
- "polygon": [
- [
- [
- -9,
- 49.8
- ],
- [
- -9,
- 61.1
- ],
- [
- 1.9,
- 61.1
- ],
- [
- 1.9,
- 49.8
- ],
- [
- -9,
- 49.8
- ]
- ]
- ]
- },
- {
- "name": "AGRI black-and-white 2.5m",
- "type": "tms",
- "template": "http://agri.openstreetmap.org/{zoom}/{x}/{y}.png",
- "polygon": [
- [
- [
- 112.28778,
- -28.784589
- ],
- [
- 112.71488,
- -31.13894
- ],
- [
- 114.11263,
- -34.178287
- ],
- [
- 113.60788,
- -37.39012
- ],
- [
- 117.17992,
- -37.451794
- ],
- [
- 119.31538,
- -37.42096
- ],
- [
- 121.72262,
- -36.708394
- ],
- [
- 123.81925,
- -35.76893
- ],
- [
- 125.9547,
- -34.3066
- ],
- [
- 127.97368,
- -33.727398
- ],
- [
- 130.07031,
- -33.24166
- ],
- [
- 130.10913,
- -33.888704
- ],
- [
- 131.00214,
- -34.049705
- ],
- [
- 131.0798,
- -34.72257
- ],
- [
- 132.28342,
- -35.39
- ],
- [
- 134.18591,
- -35.61126
- ],
- [
- 133.8753,
- -37.1119
- ],
- [
- 134.8459,
- -37.6365
- ],
- [
- 139.7769,
- -37.82075
- ],
- [
- 139.93223,
- -39.4283
- ],
- [
- 141.6017,
- -39.8767
- ],
- [
- 142.3783,
- -39.368294
- ],
- [
- 142.3783,
- -40.64702
- ],
- [
- 142.49478,
- -42.074874
- ],
- [
- 144.009,
- -44.060127
- ],
- [
- 147.23161,
- -44.03222
- ],
- [
- 149.05645,
- -42.534313
- ],
- [
- 149.52237,
- -40.99959
- ],
- [
- 149.9494,
- -40.852921
- ],
- [
- 150.8036,
- -38.09627
- ],
- [
- 151.81313,
- -38.12682
- ],
- [
- 156.20052,
- -22.667706
- ],
- [
- 156.20052,
- -20.10109
- ],
- [
- 156.62761,
- -17.417627
- ],
- [
- 155.26869,
- -17.19521
- ],
- [
- 154.14272,
- -19.51662
- ],
- [
- 153.5215,
- -18.34139
- ],
- [
- 153.05558,
- -16.5636
- ],
- [
- 152.78379,
- -15.256768
- ],
- [
- 152.27905,
- -13.4135
- ],
- [
- 151.3472,
- -12.391767
- ],
- [
- 149.48354,
- -12.05024
- ],
- [
- 146.9598,
- -9.992408
- ],
- [
- 135.9719,
- -9.992408
- ],
- [
- 130.3032,
- -10.33636
- ],
- [
- 128.09016,
- -12.164136
- ],
- [
- 125.91588,
- -12.315912
- ],
- [
- 124.3239,
- -11.860326
- ],
- [
- 122.03323,
- -11.974295
- ],
- [
- 118.26706,
- -16.9353
- ],
- [
- 115.93747,
- -19.11357
- ],
- [
- 114.0738,
- -21.11863
- ],
- [
- 113.49141,
- -22.596033
- ],
- [
- 112.28778,
- -28.784589
- ]
- ]
- ],
- "terms_text": "AGRI"
- },
- {
- "name": "Bing aerial imagery",
- "type": "bing",
- "description": "Satellite and aerial imagery.",
- "template": "http://www.bing.com/maps/",
- "scaleExtent": [
- 0,
- 22
- ],
- "id": "Bing",
- "default": true
- },
- {
- "name": "British Columbia Mosaic",
- "type": "tms",
- "template": "http://{switch:a,b,c,d}.imagery.paulnorman.ca/tiles/bc_mosaic/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 9,
- 20
- ],
- "polygon": [
- [
- [
- -123.3176032,
- 49.3272567
- ],
- [
- -123.4405258,
- 49.3268222
- ],
- [
- -123.440717,
- 49.3384429
- ],
- [
- -123.4398375,
- 49.3430357
- ],
- [
- -123.4401258,
- 49.3435398
- ],
- [
- -123.4401106,
- 49.3439946
- ],
- [
- -123.4406265,
- 49.3444493
- ],
- [
- -123.4404747,
- 49.3455762
- ],
- [
- -123.4397768,
- 49.3460606
- ],
- [
- -123.4389726,
- 49.3461298
- ],
- [
- -123.4372904,
- 49.3567236
- ],
- [
- -123.4374774,
- 49.3710843
- ],
- [
- -123.4335292,
- 49.3709446
- ],
- [
- -123.4330357,
- 49.373725
- ],
- [
- -123.4332717,
- 49.3751221
- ],
- [
- -123.4322847,
- 49.3761001
- ],
- [
- -123.4317482,
- 49.3791736
- ],
- [
- -123.4314264,
- 49.3795927
- ],
- [
- -123.4307826,
- 49.3823866
- ],
- [
- -123.4313405,
- 49.3827358
- ],
- [
- -123.4312118,
- 49.3838533
- ],
- [
- -123.4300415,
- 49.3845883
- ],
- [
- -123.4189858,
- 49.3847087
- ],
- [
- -123.4192235,
- 49.4135198
- ],
- [
- -123.3972532,
- 49.4135691
- ],
- [
- -123.3972758,
- 49.4243473
- ],
- [
- -123.4006929,
- 49.4243314
- ],
- [
- -123.4007741,
- 49.5703491
- ],
- [
- -123.4000812,
- 49.570345
- ],
- [
- -123.4010761,
- 49.5933838
- ],
- [
- -123.3760399,
- 49.5932848
- ],
- [
- -123.3769811,
- 49.6756063
- ],
- [
- -123.3507288,
- 49.6756396
- ],
- [
- -123.3507969,
- 49.7086751
- ],
- [
- -123.332887,
- 49.708722
- ],
- [
- -123.3327888,
- 49.7256288
- ],
- [
- -123.3007111,
- 49.7255625
- ],
- [
- -123.3009164,
- 49.7375384
- ],
- [
- -123.2885986,
- 49.737638
- ],
- [
- -123.2887823,
- 49.8249207
- ],
- [
- -123.2997955,
- 49.8249207
- ],
- [
- -123.3011721,
- 49.8497814
- ],
- [
- -123.3218218,
- 49.850669
- ],
- [
- -123.3273284,
- 49.8577696
- ],
- [
- -123.3276726,
- 49.9758852
- ],
- [
- -123.3008279,
- 49.9752212
- ],
- [
- -123.3007204,
- 50.0997002
- ],
- [
- -123.2501716,
- 50.100735
- ],
- [
- -123.25091,
- 50.2754901
- ],
- [
- -123.0224338,
- 50.2755598
- ],
- [
- -123.0224879,
- 50.3254853
- ],
- [
- -123.0009318,
- 50.3254689
- ],
- [
- -123.0007778,
- 50.3423899
- ],
- [
- -122.9775023,
- 50.3423408
- ],
- [
- -122.9774766,
- 50.3504306
- ],
- [
- -122.9508137,
- 50.3504961
- ],
- [
- -122.950795,
- 50.3711984
- ],
- [
- -122.9325221,
- 50.3711521
- ],
- [
- -122.9321048,
- 50.399793
- ],
- [
- -122.8874234,
- 50.3999748
- ],
- [
- -122.8873385,
- 50.4256108
- ],
- [
- -122.6620152,
- 50.4256959
- ],
- [
- -122.6623083,
- 50.3994506
- ],
- [
- -122.5990316,
- 50.3992413
- ],
- [
- -122.5988274,
- 50.3755206
- ],
- [
- -122.5724832,
- 50.3753706
- ],
- [
- -122.5735621,
- 50.2493891
- ],
- [
- -122.5990415,
- 50.2494643
- ],
- [
- -122.5991504,
- 50.2265663
- ],
- [
- -122.6185016,
- 50.2266359
- ],
- [
- -122.6185741,
- 50.2244081
- ],
- [
- -122.6490609,
- 50.2245126
- ],
- [
- -122.6492181,
- 50.1993528
- ],
- [
- -122.7308575,
- 50.1993758
- ],
- [
- -122.7311583,
- 50.1244287
- ],
- [
- -122.7490352,
- 50.1245109
- ],
- [
- -122.7490541,
- 50.0903032
- ],
- [
- -122.7687806,
- 50.0903435
- ],
- [
- -122.7689801,
- 49.9494546
- ],
- [
- -122.999047,
- 49.9494706
- ],
- [
- -122.9991199,
- 49.8754553
- ],
- [
- -122.9775894,
- 49.8754553
- ],
- [
- -122.9778145,
- 49.6995098
- ],
- [
- -122.9992362,
- 49.6994781
- ],
- [
- -122.9992524,
- 49.6516526
- ],
- [
- -123.0221525,
- 49.6516526
- ],
- [
- -123.0221162,
- 49.5995096
- ],
- [
- -123.0491898,
- 49.5994625
- ],
- [
- -123.0491898,
- 49.5940523
- ],
- [
- -123.0664647,
- 49.5940405
- ],
- [
- -123.0663594,
- 49.5451868
- ],
- [
- -123.0699906,
- 49.5451202
- ],
- [
- -123.0699008,
- 49.5413153
- ],
- [
- -123.0706835,
- 49.5392837
- ],
- [
- -123.0708888,
- 49.5379931
- ],
- [
- -123.0711454,
- 49.5368773
- ],
- [
- -123.0711069,
- 49.5358115
- ],
- [
- -123.0713764,
- 49.532822
- ],
- [
- -123.0716458,
- 49.5321141
- ],
- [
- -123.07171,
- 49.5313896
- ],
- [
- -123.0720308,
- 49.5304153
- ],
- [
- -123.0739554,
- 49.5303486
- ],
- [
- -123.0748023,
- 49.5294992
- ],
- [
- -123.0748151,
- 49.5288079
- ],
- [
- -123.0743403,
- 49.5280584
- ],
- [
- -123.073532,
- 49.5274588
- ],
- [
- -123.0733652,
- 49.5270423
- ],
- [
- -123.0732882,
- 49.5255932
- ],
- [
- -123.0737116,
- 49.5249602
- ],
- [
- -123.0736218,
- 49.5244938
- ],
- [
- -123.0992583,
- 49.5244854
- ],
- [
- -123.0991649,
- 49.4754502
- ],
- [
- -123.071052,
- 49.4755252
- ],
- [
- -123.071088,
- 49.4663034
- ],
- [
- -123.0739204,
- 49.4663054
- ],
- [
- -123.07422,
- 49.4505028
- ],
- [
- -123.0746319,
- 49.4500858
- ],
- [
- -123.074651,
- 49.449329
- ],
- [
- -123.0745999,
- 49.449018
- ],
- [
- -123.0744619,
- 49.4486927
- ],
- [
- -123.0743336,
- 49.4479899
- ],
- [
- -123.0742427,
- 49.4477688
- ],
- [
- -123.0743061,
- 49.4447473
- ],
- [
- -123.0747103,
- 49.4447556
- ],
- [
- -123.0746384,
- 49.4377306
- ],
- [
- -122.9996506,
- 49.4377363
- ],
- [
- -122.9996506,
- 49.4369214
- ],
- [
- -122.8606163,
- 49.4415314
- ],
- [
- -122.8102616,
- 49.4423972
- ],
- [
- -122.8098984,
- 49.3766739
- ],
- [
- -122.4036093,
- 49.3766617
- ],
- [
- -122.4036341,
- 49.3771944
- ],
- [
- -122.264739,
- 49.3773028
- ],
- [
- -122.263542,
- 49.2360088
- ],
- [
- -122.2155742,
- 49.236139
- ],
- [
- -122.0580956,
- 49.235878
- ],
- [
- -121.9538274,
- 49.2966525
- ],
- [
- -121.9400911,
- 49.3045389
- ],
- [
- -121.9235761,
- 49.3142257
- ],
- [
- -121.8990871,
- 49.3225436
- ],
- [
- -121.8883447,
- 49.3259752
- ],
- [
- -121.8552982,
- 49.3363575
- ],
- [
- -121.832697,
- 49.3441519
- ],
- [
- -121.7671336,
- 49.3654361
- ],
- [
- -121.6736683,
- 49.3654589
- ],
- [
- -121.6404153,
- 49.3743775
- ],
- [
- -121.5961976,
- 49.3860493
- ],
- [
- -121.5861178,
- 49.3879193
- ],
- [
- -121.5213684,
- 49.3994649
- ],
- [
- -121.5117375,
- 49.4038378
- ],
- [
- -121.4679302,
- 49.4229024
- ],
- [
- -121.4416803,
- 49.4345607
- ],
- [
- -121.422429,
- 49.4345788
- ],
- [
- -121.3462885,
- 49.3932312
- ],
- [
- -121.3480144,
- 49.3412388
- ],
- [
- -121.5135035,
- 49.320577
- ],
- [
- -121.6031683,
- 49.2771727
- ],
- [
- -121.6584065,
- 49.1856125
- ],
- [
- -121.679953,
- 49.1654109
- ],
- [
- -121.7815793,
- 49.0702559
- ],
- [
- -121.8076228,
- 49.0622471
- ],
- [
- -121.9393997,
- 49.0636219
- ],
- [
- -121.9725524,
- 49.0424179
- ],
- [
- -121.9921394,
- 49.0332869
- ],
- [
- -122.0035289,
- 49.0273413
- ],
- [
- -122.0178564,
- 49.0241067
- ],
- [
- -122.1108634,
- 48.9992786
- ],
- [
- -122.1493067,
- 48.9995305
- ],
- [
- -122.1492705,
- 48.9991498
- ],
- [
- -122.1991447,
- 48.9996019
- ],
- [
- -122.199181,
- 48.9991974
- ],
- [
- -122.234365,
- 48.9994829
- ],
- [
- -122.234365,
- 49.000173
- ],
- [
- -122.3994722,
- 49.0012385
- ],
- [
- -122.4521338,
- 49.0016326
- ],
- [
- -122.4521338,
- 49.000883
- ],
- [
- -122.4584089,
- 49.0009306
- ],
- [
- -122.4584814,
- 48.9993124
- ],
- [
- -122.4992458,
- 48.9995022
- ],
- [
- -122.4992458,
- 48.9992906
- ],
- [
- -122.5492618,
- 48.9995107
- ],
- [
- -122.5492564,
- 48.9993206
- ],
- [
- -122.6580785,
- 48.9994212
- ],
- [
- -122.6581061,
- 48.9954007
- ],
- [
- -122.7067604,
- 48.9955344
- ],
- [
- -122.7519761,
- 48.9956392
- ],
- [
- -122.7922063,
- 48.9957204
- ],
- [
- -122.7921907,
- 48.9994331
- ],
- [
- -123.0350417,
- 48.9995724
- ],
- [
- -123.0350437,
- 49.0000958
- ],
- [
- -123.0397091,
- 49.0000536
- ],
- [
- -123.0397444,
- 49.0001812
- ],
- [
- -123.0485506,
- 49.0001348
- ],
- [
- -123.0485329,
- 49.0004712
- ],
- [
- -123.0557122,
- 49.000448
- ],
- [
- -123.0556324,
- 49.0002284
- ],
- [
- -123.0641365,
- 49.0001293
- ],
- [
- -123.064158,
- 48.9999421
- ],
- [
- -123.074899,
- 48.9996928
- ],
- [
- -123.0750717,
- 49.0006218
- ],
- [
- -123.0899573,
- 49.0003726
- ],
- [
- -123.109229,
- 48.9999421
- ],
- [
- -123.1271193,
- 49.0003046
- ],
- [
- -123.1359953,
- 48.9998741
- ],
- [
- -123.1362716,
- 49.0005765
- ],
- [
- -123.153851,
- 48.9998061
- ],
- [
- -123.1540533,
- 49.0006806
- ],
- [
- -123.1710015,
- 49.0001274
- ],
- [
- -123.2000916,
- 48.9996849
- ],
- [
- -123.2003446,
- 49.0497785
- ],
- [
- -123.2108845,
- 49.0497232
- ],
- [
- -123.2112218,
- 49.051989
- ],
- [
- -123.2070479,
- 49.0520857
- ],
- [
- -123.2078911,
- 49.0607884
- ],
- [
- -123.2191688,
- 49.0600978
- ],
- [
- -123.218958,
- 49.0612719
- ],
- [
- -123.2251766,
- 49.0612719
- ],
- [
- -123.2253874,
- 49.0622388
- ],
- [
- -123.2297088,
- 49.0620316
- ],
- [
- -123.2298142,
- 49.068592
- ],
- [
- -123.2331869,
- 49.0687301
- ],
- [
- -123.2335031,
- 49.0705945
- ],
- [
- -123.249313,
- 49.0702493
- ],
- [
- -123.2497346,
- 49.0802606
- ],
- [
- -123.2751358,
- 49.0803986
- ],
- [
- -123.2751358,
- 49.0870947
- ],
- [
- -123.299483,
- 49.0873018
- ],
- [
- -123.29944,
- 49.080253
- ],
- [
- -123.3254508,
- 49.0803944
- ],
- [
- -123.3254353,
- 49.1154662
- ],
- [
- -123.2750966,
- 49.1503341
- ],
- [
- -123.275181,
- 49.1873267
- ],
- [
- -123.2788067,
- 49.1871063
- ],
- [
- -123.278891,
- 49.1910741
- ],
- [
- -123.3004767,
- 49.1910741
- ],
- [
- -123.3004186,
- 49.2622933
- ],
- [
- -123.3126185,
- 49.2622416
- ],
- [
- -123.3125958,
- 49.2714948
- ],
- [
- -123.3154251,
- 49.2714727
- ],
- [
- -123.3156628,
- 49.2818906
- ],
- [
- -123.3174735,
- 49.2818832
- ],
- [
- -123.3174961,
- 49.2918488
- ],
- [
- -123.3190353,
- 49.2918488
- ],
- [
- -123.3190692,
- 49.298602
- ],
- [
- -123.3202349,
- 49.2985651
- ],
- [
- -123.3202786,
- 49.3019749
- ],
- [
- -123.3222679,
- 49.3019605
- ],
- [
- -123.3223943,
- 49.3118263
- ],
- [
- -123.3254002,
- 49.3118086
- ],
- [
- -123.3253898,
- 49.3201721
- ],
- [
- -123.3192695,
- 49.3201957
- ],
- [
- -123.3192242,
- 49.3246748
- ],
- [
- -123.3179437,
- 49.3246596
- ],
- [
- -123.3179861,
- 49.3254065
- ]
- ]
- ],
- "terms_url": "http://imagery.paulnorman.ca/tiles/about.html",
- "terms_text": "Copyright Province of British Columbia, City of Surrey"
- },
- {
- "name": "Cambodia, Laos, Thailand, Vietnam bilingual",
- "type": "tms",
- "template": "http://{switch:a,b,c,d}.tile.osm-tools.org/osm_then/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 19
- ],
- "polygon": [
- [
- [
- 97.3,
- 5.6
- ],
- [
- 97.3,
- 23.4
- ],
- [
- 109.6,
- 23.4
- ],
- [
- 109.6,
- 5.6
- ],
- [
- 97.3,
- 5.6
- ]
- ]
- ],
- "terms_url": "http://www.osm-tools.org/",
- "terms_text": "© osm-tools.org & OpenStreetMap contributors, CC-BY-SA"
- },
- {
- "name": "Freemap.sk Car",
- "type": "tms",
- "template": "http://t{switch:1,2,3,4}.freemap.sk/A/{zoom}/{x}/{y}.jpeg",
- "scaleExtent": [
- 8,
- 16
- ],
- "polygon": [
- [
- [
- 19.83682,
- 49.25529
- ],
- [
- 19.80075,
- 49.42385
- ],
- [
- 19.60437,
- 49.48058
- ],
- [
- 19.49179,
- 49.63961
- ],
- [
- 19.21831,
- 49.52604
- ],
- [
- 19.16778,
- 49.42521
- ],
- [
- 19.00308,
- 49.42236
- ],
- [
- 18.97611,
- 49.5308
- ],
- [
- 18.54685,
- 49.51425
- ],
- [
- 18.31432,
- 49.33818
- ],
- [
- 18.15913,
- 49.2961
- ],
- [
- 18.05564,
- 49.11134
- ],
- [
- 17.56396,
- 48.84938
- ],
- [
- 17.17929,
- 48.88816
- ],
- [
- 17.058,
- 48.81105
- ],
- [
- 16.90426,
- 48.61947
- ],
- [
- 16.79685,
- 48.38561
- ],
- [
- 17.06762,
- 48.01116
- ],
- [
- 17.32787,
- 47.97749
- ],
- [
- 17.51699,
- 47.82535
- ],
- [
- 17.74776,
- 47.73093
- ],
- [
- 18.29515,
- 47.72075
- ],
- [
- 18.67959,
- 47.75541
- ],
- [
- 18.89755,
- 47.81203
- ],
- [
- 18.79463,
- 47.88245
- ],
- [
- 18.84318,
- 48.04046
- ],
- [
- 19.46212,
- 48.05333
- ],
- [
- 19.62064,
- 48.22938
- ],
- [
- 19.89585,
- 48.09387
- ],
- [
- 20.33766,
- 48.2643
- ],
- [
- 20.55395,
- 48.52358
- ],
- [
- 20.82335,
- 48.55714
- ],
- [
- 21.10271,
- 48.47096
- ],
- [
- 21.45863,
- 48.55513
- ],
- [
- 21.74536,
- 48.31435
- ],
- [
- 22.15293,
- 48.37179
- ],
- [
- 22.61255,
- 49.08914
- ],
- [
- 22.09997,
- 49.23814
- ],
- [
- 21.9686,
- 49.36363
- ],
- [
- 21.6244,
- 49.46989
- ],
- [
- 21.06873,
- 49.46402
- ],
- [
- 20.94336,
- 49.31088
- ],
- [
- 20.73052,
- 49.44006
- ],
- [
- 20.22804,
- 49.41714
- ],
- [
- 20.05234,
- 49.23052
- ],
- [
- 19.83682,
- 49.25529
- ]
- ]
- ],
- "terms_text": "Copyright ©2007-2012 Freemap Slovakia (www.freemap.sk). Some rights reserved."
- },
- {
- "name": "Freemap.sk Cyclo",
- "type": "tms",
- "template": "http://t{switch:1,2,3,4}.freemap.sk/C/{zoom}/{x}/{y}.jpeg",
- "scaleExtent": [
- 8,
- 16
- ],
- "polygon": [
- [
- [
- 19.83682,
- 49.25529
- ],
- [
- 19.80075,
- 49.42385
- ],
- [
- 19.60437,
- 49.48058
- ],
- [
- 19.49179,
- 49.63961
- ],
- [
- 19.21831,
- 49.52604
- ],
- [
- 19.16778,
- 49.42521
- ],
- [
- 19.00308,
- 49.42236
- ],
- [
- 18.97611,
- 49.5308
- ],
- [
- 18.54685,
- 49.51425
- ],
- [
- 18.31432,
- 49.33818
- ],
- [
- 18.15913,
- 49.2961
- ],
- [
- 18.05564,
- 49.11134
- ],
- [
- 17.56396,
- 48.84938
- ],
- [
- 17.17929,
- 48.88816
- ],
- [
- 17.058,
- 48.81105
- ],
- [
- 16.90426,
- 48.61947
- ],
- [
- 16.79685,
- 48.38561
- ],
- [
- 17.06762,
- 48.01116
- ],
- [
- 17.32787,
- 47.97749
- ],
- [
- 17.51699,
- 47.82535
- ],
- [
- 17.74776,
- 47.73093
- ],
- [
- 18.29515,
- 47.72075
- ],
- [
- 18.67959,
- 47.75541
- ],
- [
- 18.89755,
- 47.81203
- ],
- [
- 18.79463,
- 47.88245
- ],
- [
- 18.84318,
- 48.04046
- ],
- [
- 19.46212,
- 48.05333
- ],
- [
- 19.62064,
- 48.22938
- ],
- [
- 19.89585,
- 48.09387
- ],
- [
- 20.33766,
- 48.2643
- ],
- [
- 20.55395,
- 48.52358
- ],
- [
- 20.82335,
- 48.55714
- ],
- [
- 21.10271,
- 48.47096
- ],
- [
- 21.45863,
- 48.55513
- ],
- [
- 21.74536,
- 48.31435
- ],
- [
- 22.15293,
- 48.37179
- ],
- [
- 22.61255,
- 49.08914
- ],
- [
- 22.09997,
- 49.23814
- ],
- [
- 21.9686,
- 49.36363
- ],
- [
- 21.6244,
- 49.46989
- ],
- [
- 21.06873,
- 49.46402
- ],
- [
- 20.94336,
- 49.31088
- ],
- [
- 20.73052,
- 49.44006
- ],
- [
- 20.22804,
- 49.41714
- ],
- [
- 20.05234,
- 49.23052
- ],
- [
- 19.83682,
- 49.25529
- ]
- ]
- ],
- "terms_text": "Copyright ©2007-2012 Freemap Slovakia (www.freemap.sk). Some rights reserved."
- },
- {
- "name": "Freemap.sk Hiking",
- "type": "tms",
- "template": "http://t{switch:1,2,3,4}.freemap.sk/T/{zoom}/{x}/{y}.jpeg",
- "scaleExtent": [
- 8,
- 16
- ],
- "polygon": [
- [
- [
- 19.83682,
- 49.25529
- ],
- [
- 19.80075,
- 49.42385
- ],
- [
- 19.60437,
- 49.48058
- ],
- [
- 19.49179,
- 49.63961
- ],
- [
- 19.21831,
- 49.52604
- ],
- [
- 19.16778,
- 49.42521
- ],
- [
- 19.00308,
- 49.42236
- ],
- [
- 18.97611,
- 49.5308
- ],
- [
- 18.54685,
- 49.51425
- ],
- [
- 18.31432,
- 49.33818
- ],
- [
- 18.15913,
- 49.2961
- ],
- [
- 18.05564,
- 49.11134
- ],
- [
- 17.56396,
- 48.84938
- ],
- [
- 17.17929,
- 48.88816
- ],
- [
- 17.058,
- 48.81105
- ],
- [
- 16.90426,
- 48.61947
- ],
- [
- 16.79685,
- 48.38561
- ],
- [
- 17.06762,
- 48.01116
- ],
- [
- 17.32787,
- 47.97749
- ],
- [
- 17.51699,
- 47.82535
- ],
- [
- 17.74776,
- 47.73093
- ],
- [
- 18.29515,
- 47.72075
- ],
- [
- 18.67959,
- 47.75541
- ],
- [
- 18.89755,
- 47.81203
- ],
- [
- 18.79463,
- 47.88245
- ],
- [
- 18.84318,
- 48.04046
- ],
- [
- 19.46212,
- 48.05333
- ],
- [
- 19.62064,
- 48.22938
- ],
- [
- 19.89585,
- 48.09387
- ],
- [
- 20.33766,
- 48.2643
- ],
- [
- 20.55395,
- 48.52358
- ],
- [
- 20.82335,
- 48.55714
- ],
- [
- 21.10271,
- 48.47096
- ],
- [
- 21.45863,
- 48.55513
- ],
- [
- 21.74536,
- 48.31435
- ],
- [
- 22.15293,
- 48.37179
- ],
- [
- 22.61255,
- 49.08914
- ],
- [
- 22.09997,
- 49.23814
- ],
- [
- 21.9686,
- 49.36363
- ],
- [
- 21.6244,
- 49.46989
- ],
- [
- 21.06873,
- 49.46402
- ],
- [
- 20.94336,
- 49.31088
- ],
- [
- 20.73052,
- 49.44006
- ],
- [
- 20.22804,
- 49.41714
- ],
- [
- 20.05234,
- 49.23052
- ],
- [
- 19.83682,
- 49.25529
- ]
- ]
- ],
- "terms_text": "Copyright ©2007-2012 Freemap Slovakia (www.freemap.sk). Some rights reserved."
- },
- {
- "name": "Freemap.sk Ski",
- "type": "tms",
- "template": "http://t{switch:1,2,3,4}.freemap.sk/K/{zoom}/{x}/{y}.jpeg",
- "scaleExtent": [
- 8,
- 16
- ],
- "polygon": [
- [
- [
- 19.83682,
- 49.25529
- ],
- [
- 19.80075,
- 49.42385
- ],
- [
- 19.60437,
- 49.48058
- ],
- [
- 19.49179,
- 49.63961
- ],
- [
- 19.21831,
- 49.52604
- ],
- [
- 19.16778,
- 49.42521
- ],
- [
- 19.00308,
- 49.42236
- ],
- [
- 18.97611,
- 49.5308
- ],
- [
- 18.54685,
- 49.51425
- ],
- [
- 18.31432,
- 49.33818
- ],
- [
- 18.15913,
- 49.2961
- ],
- [
- 18.05564,
- 49.11134
- ],
- [
- 17.56396,
- 48.84938
- ],
- [
- 17.17929,
- 48.88816
- ],
- [
- 17.058,
- 48.81105
- ],
- [
- 16.90426,
- 48.61947
- ],
- [
- 16.79685,
- 48.38561
- ],
- [
- 17.06762,
- 48.01116
- ],
- [
- 17.32787,
- 47.97749
- ],
- [
- 17.51699,
- 47.82535
- ],
- [
- 17.74776,
- 47.73093
- ],
- [
- 18.29515,
- 47.72075
- ],
- [
- 18.67959,
- 47.75541
- ],
- [
- 18.89755,
- 47.81203
- ],
- [
- 18.79463,
- 47.88245
- ],
- [
- 18.84318,
- 48.04046
- ],
- [
- 19.46212,
- 48.05333
- ],
- [
- 19.62064,
- 48.22938
- ],
- [
- 19.89585,
- 48.09387
- ],
- [
- 20.33766,
- 48.2643
- ],
- [
- 20.55395,
- 48.52358
- ],
- [
- 20.82335,
- 48.55714
- ],
- [
- 21.10271,
- 48.47096
- ],
- [
- 21.45863,
- 48.55513
- ],
- [
- 21.74536,
- 48.31435
- ],
- [
- 22.15293,
- 48.37179
- ],
- [
- 22.61255,
- 49.08914
- ],
- [
- 22.09997,
- 49.23814
- ],
- [
- 21.9686,
- 49.36363
- ],
- [
- 21.6244,
- 49.46989
- ],
- [
- 21.06873,
- 49.46402
- ],
- [
- 20.94336,
- 49.31088
- ],
- [
- 20.73052,
- 49.44006
- ],
- [
- 20.22804,
- 49.41714
- ],
- [
- 20.05234,
- 49.23052
- ],
- [
- 19.83682,
- 49.25529
- ]
- ]
- ],
- "terms_text": "Copyright ©2007-2012 Freemap Slovakia (www.freemap.sk). Some rights reserved."
- },
- {
- "name": "Fugro (Denmark)",
- "type": "tms",
- "template": "http://{switch:a,b,c}.tile.openstreetmap.dk/fugro2005/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 19
- ],
- "polygon": [
- [
- [
- 8.3743941,
- 54.9551655
- ],
- [
- 8.3683809,
- 55.4042149
- ],
- [
- 8.2103997,
- 55.4039795
- ],
- [
- 8.2087314,
- 55.4937345
- ],
- [
- 8.0502655,
- 55.4924731
- ],
- [
- 8.0185123,
- 56.7501399
- ],
- [
- 8.1819161,
- 56.7509948
- ],
- [
- 8.1763274,
- 57.0208898
- ],
- [
- 8.3413329,
- 57.0219872
- ],
- [
- 8.3392467,
- 57.1119574
- ],
- [
- 8.5054433,
- 57.1123212
- ],
- [
- 8.5033923,
- 57.2020499
- ],
- [
- 9.3316304,
- 57.2027636
- ],
- [
- 9.3319079,
- 57.2924835
- ],
- [
- 9.4978864,
- 57.2919578
- ],
- [
- 9.4988593,
- 57.3820608
- ],
- [
- 9.6649749,
- 57.3811615
- ],
- [
- 9.6687295,
- 57.5605591
- ],
- [
- 9.8351961,
- 57.5596265
- ],
- [
- 9.8374896,
- 57.6493322
- ],
- [
- 10.1725726,
- 57.6462818
- ],
- [
- 10.1754245,
- 57.7367768
- ],
- [
- 10.5118282,
- 57.7330269
- ],
- [
- 10.5152095,
- 57.8228945
- ],
- [
- 10.6834853,
- 57.8207722
- ],
- [
- 10.6751613,
- 57.6412021
- ],
- [
- 10.5077045,
- 57.6433097
- ],
- [
- 10.5039992,
- 57.5535088
- ],
- [
- 10.671038,
- 57.5514113
- ],
- [
- 10.6507805,
- 57.1024538
- ],
- [
- 10.4857673,
- 57.1045138
- ],
- [
- 10.4786236,
- 56.9249051
- ],
- [
- 10.3143981,
- 56.9267573
- ],
- [
- 10.3112341,
- 56.8369269
- ],
- [
- 10.4750295,
- 56.83509
- ],
- [
- 10.4649016,
- 56.5656681
- ],
- [
- 10.9524239,
- 56.5589761
- ],
- [
- 10.9479249,
- 56.4692243
- ],
- [
- 11.1099335,
- 56.4664675
- ],
- [
- 11.1052639,
- 56.376833
- ],
- [
- 10.9429901,
- 56.3795284
- ],
- [
- 10.9341235,
- 56.1994768
- ],
- [
- 10.7719685,
- 56.2020244
- ],
- [
- 10.7694751,
- 56.1120103
- ],
- [
- 10.6079695,
- 56.1150259
- ],
- [
- 10.4466742,
- 56.116717
- ],
- [
- 10.2865948,
- 56.118675
- ],
- [
- 10.2831527,
- 56.0281851
- ],
- [
- 10.4439274,
- 56.0270388
- ],
- [
- 10.4417713,
- 55.7579243
- ],
- [
- 10.4334961,
- 55.6693533
- ],
- [
- 10.743814,
- 55.6646861
- ],
- [
- 10.743814,
- 55.5712253
- ],
- [
- 10.8969041,
- 55.5712253
- ],
- [
- 10.9051793,
- 55.3953852
- ],
- [
- 11.0613726,
- 55.3812841
- ],
- [
- 11.0593038,
- 55.1124061
- ],
- [
- 11.0458567,
- 55.0318621
- ],
- [
- 11.2030844,
- 55.0247474
- ],
- [
- 11.2030844,
- 55.117139
- ],
- [
- 11.0593038,
- 55.1124061
- ],
- [
- 11.0613726,
- 55.3812841
- ],
- [
- 11.0789572,
- 55.5712253
- ],
- [
- 10.8969041,
- 55.5712253
- ],
- [
- 10.9258671,
- 55.6670198
- ],
- [
- 10.743814,
- 55.6646861
- ],
- [
- 10.7562267,
- 55.7579243
- ],
- [
- 10.4417713,
- 55.7579243
- ],
- [
- 10.4439274,
- 56.0270388
- ],
- [
- 10.4466742,
- 56.116717
- ],
- [
- 10.6079695,
- 56.1150259
- ],
- [
- 10.6052053,
- 56.0247462
- ],
- [
- 10.9258671,
- 56.0201215
- ],
- [
- 10.9197132,
- 55.9309388
- ],
- [
- 11.0802782,
- 55.92792
- ],
- [
- 11.0858066,
- 56.0178284
- ],
- [
- 11.7265047,
- 56.005058
- ],
- [
- 11.7319981,
- 56.0952142
- ],
- [
- 12.0540333,
- 56.0871256
- ],
- [
- 12.0608477,
- 56.1762576
- ],
- [
- 12.7023469,
- 56.1594405
- ],
- [
- 12.6611131,
- 55.7114318
- ],
- [
- 12.9792318,
- 55.7014026
- ],
- [
- 12.9612912,
- 55.5217294
- ],
- [
- 12.3268659,
- 55.5412096
- ],
- [
- 12.3206071,
- 55.4513655
- ],
- [
- 12.4778226,
- 55.447067
- ],
- [
- 12.4702432,
- 55.3570479
- ],
- [
- 12.6269738,
- 55.3523837
- ],
- [
- 12.6200898,
- 55.2632576
- ],
- [
- 12.4627339,
- 55.26722
- ],
- [
- 12.4552949,
- 55.1778223
- ],
- [
- 12.2987046,
- 55.1822303
- ],
- [
- 12.2897344,
- 55.0923641
- ],
- [
- 12.6048608,
- 55.0832904
- ],
- [
- 12.5872011,
- 54.9036285
- ],
- [
- 12.2766618,
- 54.9119031
- ],
- [
- 12.2610181,
- 54.7331602
- ],
- [
- 12.1070691,
- 54.7378161
- ],
- [
- 12.0858621,
- 54.4681655
- ],
- [
- 11.7794953,
- 54.4753579
- ],
- [
- 11.7837381,
- 54.5654783
- ],
- [
- 11.1658525,
- 54.5782155
- ],
- [
- 11.1706443,
- 54.6686508
- ],
- [
- 10.8617173,
- 54.6733956
- ],
- [
- 10.8651245,
- 54.7634667
- ],
- [
- 10.7713646,
- 54.7643888
- ],
- [
- 10.7707276,
- 54.7372807
- ],
- [
- 10.7551428,
- 54.7375776
- ],
- [
- 10.7544039,
- 54.7195666
- ],
- [
- 10.7389074,
- 54.7197588
- ],
- [
- 10.7384368,
- 54.7108482
- ],
- [
- 10.7074486,
- 54.7113045
- ],
- [
- 10.7041094,
- 54.6756741
- ],
- [
- 10.5510973,
- 54.6781698
- ],
- [
- 10.5547184,
- 54.7670245
- ],
- [
- 10.2423994,
- 54.7705935
- ],
- [
- 10.2459845,
- 54.8604673
- ],
- [
- 10.0902268,
- 54.8622134
- ],
- [
- 10.0873731,
- 54.7723851
- ],
- [
- 9.1555798,
- 54.7769557
- ],
- [
- 9.1562752,
- 54.8675369
- ],
- [
- 8.5321973,
- 54.8663765
- ],
- [
- 8.531432,
- 54.95516
- ]
- ],
- [
- [
- 11.4577738,
- 56.819554
- ],
- [
- 11.7849181,
- 56.8127385
- ],
- [
- 11.7716715,
- 56.6332796
- ],
- [
- 11.4459621,
- 56.6401087
- ]
- ],
- [
- [
- 11.3274736,
- 57.3612962
- ],
- [
- 11.3161808,
- 57.1818004
- ],
- [
- 11.1508692,
- 57.1847276
- ],
- [
- 11.1456628,
- 57.094962
- ],
- [
- 10.8157703,
- 57.1001693
- ],
- [
- 10.8290599,
- 57.3695272
- ]
- ],
- [
- [
- 11.5843266,
- 56.2777928
- ],
- [
- 11.5782882,
- 56.1880397
- ],
- [
- 11.7392309,
- 56.1845765
- ],
- [
- 11.7456428,
- 56.2743186
- ]
- ],
- [
- [
- 14.6825922,
- 55.3639405
- ],
- [
- 14.8395247,
- 55.3565231
- ],
- [
- 14.8263755,
- 55.2671261
- ],
- [
- 15.1393406,
- 55.2517359
- ],
- [
- 15.1532015,
- 55.3410836
- ],
- [
- 15.309925,
- 55.3330556
- ],
- [
- 15.295719,
- 55.2437356
- ],
- [
- 15.1393406,
- 55.2517359
- ],
- [
- 15.1255631,
- 55.1623802
- ],
- [
- 15.2815819,
- 55.1544167
- ],
- [
- 15.2535578,
- 54.9757646
- ],
- [
- 14.6317464,
- 55.0062496
- ]
- ]
- ],
- "terms_url": "http://wiki.openstreetmap.org/wiki/Fugro",
- "terms_text": "Fugro Aerial Mapping"
- },
- {
- "name": "Geodatastyrelsen (Denmark)",
- "type": "tms",
- "template": "http://mapproxy.gpweb.dk/tiles/1.0.0/kortforsyningen_ortoforaar/EPSG3857/{zoom}/{x}/{y}.jpeg",
- "scaleExtent": [
- 0,
- 21
- ],
- "polygon": [
- [
- [
- 8.3743941,
- 54.9551655
- ],
- [
- 8.3683809,
- 55.4042149
- ],
- [
- 8.2103997,
- 55.4039795
- ],
- [
- 8.2087314,
- 55.4937345
- ],
- [
- 8.0502655,
- 55.4924731
- ],
- [
- 8.0185123,
- 56.7501399
- ],
- [
- 8.1819161,
- 56.7509948
- ],
- [
- 8.1763274,
- 57.0208898
- ],
- [
- 8.3413329,
- 57.0219872
- ],
- [
- 8.3392467,
- 57.1119574
- ],
- [
- 8.5054433,
- 57.1123212
- ],
- [
- 8.5033923,
- 57.2020499
- ],
- [
- 9.3316304,
- 57.2027636
- ],
- [
- 9.3319079,
- 57.2924835
- ],
- [
- 9.4978864,
- 57.2919578
- ],
- [
- 9.4988593,
- 57.3820608
- ],
- [
- 9.6649749,
- 57.3811615
- ],
- [
- 9.6687295,
- 57.5605591
- ],
- [
- 9.8351961,
- 57.5596265
- ],
- [
- 9.8374896,
- 57.6493322
- ],
- [
- 10.1725726,
- 57.6462818
- ],
- [
- 10.1754245,
- 57.7367768
- ],
- [
- 10.5118282,
- 57.7330269
- ],
- [
- 10.5152095,
- 57.8228945
- ],
- [
- 10.6834853,
- 57.8207722
- ],
- [
- 10.6751613,
- 57.6412021
- ],
- [
- 10.5077045,
- 57.6433097
- ],
- [
- 10.5039992,
- 57.5535088
- ],
- [
- 10.671038,
- 57.5514113
- ],
- [
- 10.6507805,
- 57.1024538
- ],
- [
- 10.4857673,
- 57.1045138
- ],
- [
- 10.4786236,
- 56.9249051
- ],
- [
- 10.3143981,
- 56.9267573
- ],
- [
- 10.3112341,
- 56.8369269
- ],
- [
- 10.4750295,
- 56.83509
- ],
- [
- 10.4649016,
- 56.5656681
- ],
- [
- 10.9524239,
- 56.5589761
- ],
- [
- 10.9479249,
- 56.4692243
- ],
- [
- 11.1099335,
- 56.4664675
- ],
- [
- 11.1052639,
- 56.376833
- ],
- [
- 10.9429901,
- 56.3795284
- ],
- [
- 10.9341235,
- 56.1994768
- ],
- [
- 10.7719685,
- 56.2020244
- ],
- [
- 10.7694751,
- 56.1120103
- ],
- [
- 10.6079695,
- 56.1150259
- ],
- [
- 10.4466742,
- 56.116717
- ],
- [
- 10.2865948,
- 56.118675
- ],
- [
- 10.2831527,
- 56.0281851
- ],
- [
- 10.4439274,
- 56.0270388
- ],
- [
- 10.4417713,
- 55.7579243
- ],
- [
- 10.4334961,
- 55.6693533
- ],
- [
- 10.743814,
- 55.6646861
- ],
- [
- 10.743814,
- 55.5712253
- ],
- [
- 10.8969041,
- 55.5712253
- ],
- [
- 10.9051793,
- 55.3953852
- ],
- [
- 11.0613726,
- 55.3812841
- ],
- [
- 11.0593038,
- 55.1124061
- ],
- [
- 11.0458567,
- 55.0318621
- ],
- [
- 11.2030844,
- 55.0247474
- ],
- [
- 11.2030844,
- 55.117139
- ],
- [
- 11.0593038,
- 55.1124061
- ],
- [
- 11.0613726,
- 55.3812841
- ],
- [
- 11.0789572,
- 55.5712253
- ],
- [
- 10.8969041,
- 55.5712253
- ],
- [
- 10.9258671,
- 55.6670198
- ],
- [
- 10.743814,
- 55.6646861
- ],
- [
- 10.7562267,
- 55.7579243
- ],
- [
- 10.4417713,
- 55.7579243
- ],
- [
- 10.4439274,
- 56.0270388
- ],
- [
- 10.4466742,
- 56.116717
- ],
- [
- 10.6079695,
- 56.1150259
- ],
- [
- 10.6052053,
- 56.0247462
- ],
- [
- 10.9258671,
- 56.0201215
- ],
- [
- 10.9197132,
- 55.9309388
- ],
- [
- 11.0802782,
- 55.92792
- ],
- [
- 11.0858066,
- 56.0178284
- ],
- [
- 11.7265047,
- 56.005058
- ],
- [
- 11.7319981,
- 56.0952142
- ],
- [
- 12.0540333,
- 56.0871256
- ],
- [
- 12.0608477,
- 56.1762576
- ],
- [
- 12.7023469,
- 56.1594405
- ],
- [
- 12.6611131,
- 55.7114318
- ],
- [
- 12.9792318,
- 55.7014026
- ],
- [
- 12.9612912,
- 55.5217294
- ],
- [
- 12.3268659,
- 55.5412096
- ],
- [
- 12.3206071,
- 55.4513655
- ],
- [
- 12.4778226,
- 55.447067
- ],
- [
- 12.4702432,
- 55.3570479
- ],
- [
- 12.6269738,
- 55.3523837
- ],
- [
- 12.6200898,
- 55.2632576
- ],
- [
- 12.4627339,
- 55.26722
- ],
- [
- 12.4552949,
- 55.1778223
- ],
- [
- 12.2987046,
- 55.1822303
- ],
- [
- 12.2897344,
- 55.0923641
- ],
- [
- 12.6048608,
- 55.0832904
- ],
- [
- 12.5872011,
- 54.9036285
- ],
- [
- 12.2766618,
- 54.9119031
- ],
- [
- 12.2610181,
- 54.7331602
- ],
- [
- 12.1070691,
- 54.7378161
- ],
- [
- 12.0858621,
- 54.4681655
- ],
- [
- 11.7794953,
- 54.4753579
- ],
- [
- 11.7837381,
- 54.5654783
- ],
- [
- 11.1658525,
- 54.5782155
- ],
- [
- 11.1706443,
- 54.6686508
- ],
- [
- 10.8617173,
- 54.6733956
- ],
- [
- 10.8651245,
- 54.7634667
- ],
- [
- 10.7713646,
- 54.7643888
- ],
- [
- 10.7707276,
- 54.7372807
- ],
- [
- 10.7551428,
- 54.7375776
- ],
- [
- 10.7544039,
- 54.7195666
- ],
- [
- 10.7389074,
- 54.7197588
- ],
- [
- 10.7384368,
- 54.7108482
- ],
- [
- 10.7074486,
- 54.7113045
- ],
- [
- 10.7041094,
- 54.6756741
- ],
- [
- 10.5510973,
- 54.6781698
- ],
- [
- 10.5547184,
- 54.7670245
- ],
- [
- 10.2423994,
- 54.7705935
- ],
- [
- 10.2459845,
- 54.8604673
- ],
- [
- 10.0902268,
- 54.8622134
- ],
- [
- 10.0873731,
- 54.7723851
- ],
- [
- 9.1555798,
- 54.7769557
- ],
- [
- 9.1562752,
- 54.8675369
- ],
- [
- 8.5321973,
- 54.8663765
- ],
- [
- 8.531432,
- 54.95516
- ]
- ],
- [
- [
- 11.4577738,
- 56.819554
- ],
- [
- 11.7849181,
- 56.8127385
- ],
- [
- 11.7716715,
- 56.6332796
- ],
- [
- 11.4459621,
- 56.6401087
- ]
- ],
- [
- [
- 11.3274736,
- 57.3612962
- ],
- [
- 11.3161808,
- 57.1818004
- ],
- [
- 11.1508692,
- 57.1847276
- ],
- [
- 11.1456628,
- 57.094962
- ],
- [
- 10.8157703,
- 57.1001693
- ],
- [
- 10.8290599,
- 57.3695272
- ]
- ],
- [
- [
- 11.5843266,
- 56.2777928
- ],
- [
- 11.5782882,
- 56.1880397
- ],
- [
- 11.7392309,
- 56.1845765
- ],
- [
- 11.7456428,
- 56.2743186
- ]
- ],
- [
- [
- 14.6825922,
- 55.3639405
- ],
- [
- 14.8395247,
- 55.3565231
- ],
- [
- 14.8263755,
- 55.2671261
- ],
- [
- 15.1393406,
- 55.2517359
- ],
- [
- 15.1532015,
- 55.3410836
- ],
- [
- 15.309925,
- 55.3330556
- ],
- [
- 15.295719,
- 55.2437356
- ],
- [
- 15.1393406,
- 55.2517359
- ],
- [
- 15.1255631,
- 55.1623802
- ],
- [
- 15.2815819,
- 55.1544167
- ],
- [
- 15.2535578,
- 54.9757646
- ],
- [
- 14.6317464,
- 55.0062496
- ]
- ]
- ],
- "terms_url": "http://download.kortforsyningen.dk/content/vilkaar-og-betingelser",
- "terms_text": "Geodatastyrelsen og Danske Kommuner"
- },
- {
- "name": "Geoimage.at MaxRes",
- "type": "tms",
- "template": "http://geoimage.openstreetmap.at/4d80de696cd562a63ce463a58a61488d/{zoom}/{x}/{y}.jpg",
- "polygon": [
- [
- [
- 16.5073284,
- 46.9929304
- ],
- [
- 16.283417,
- 46.9929304
- ],
- [
- 16.135839,
- 46.8713046
- ],
- [
- 15.9831722,
- 46.8190947
- ],
- [
- 16.0493278,
- 46.655175
- ],
- [
- 15.8610387,
- 46.7180116
- ],
- [
- 15.7592608,
- 46.6900933
- ],
- [
- 15.5607938,
- 46.6796202
- ],
- [
- 15.5760605,
- 46.6342132
- ],
- [
- 15.4793715,
- 46.6027553
- ],
- [
- 15.4335715,
- 46.6516819
- ],
- [
- 15.2249267,
- 46.6342132
- ],
- [
- 15.0468154,
- 46.6481886
- ],
- [
- 14.9908376,
- 46.5887681
- ],
- [
- 14.9603042,
- 46.6237293
- ],
- [
- 14.8534374,
- 46.6027553
- ],
- [
- 14.8330818,
- 46.5012666
- ],
- [
- 14.7516595,
- 46.4977636
- ],
- [
- 14.6804149,
- 46.4381781
- ],
- [
- 14.6142593,
- 46.4381781
- ],
- [
- 14.578637,
- 46.3785275
- ],
- [
- 14.4412369,
- 46.4311638
- ],
- [
- 14.1613476,
- 46.4276563
- ],
- [
- 14.1257253,
- 46.4767409
- ],
- [
- 14.0188585,
- 46.4767409
- ],
- [
- 13.9119917,
- 46.5257813
- ],
- [
- 13.8254805,
- 46.5047694
- ],
- [
- 13.4438134,
- 46.560783
- ],
- [
- 13.3064132,
- 46.5502848
- ],
- [
- 13.1283019,
- 46.5887681
- ],
- [
- 12.8433237,
- 46.6132433
- ],
- [
- 12.7262791,
- 46.6412014
- ],
- [
- 12.5125455,
- 46.6656529
- ],
- [
- 12.3598787,
- 46.7040543
- ],
- [
- 12.3649676,
- 46.7703197
- ],
- [
- 12.2886341,
- 46.7772902
- ],
- [
- 12.2733674,
- 46.8852187
- ],
- [
- 12.2072118,
- 46.8747835
- ],
- [
- 12.1308784,
- 46.9026062
- ],
- [
- 12.1156117,
- 46.9998721
- ],
- [
- 12.2530119,
- 47.0657733
- ],
- [
- 12.2123007,
- 47.0934969
- ],
- [
- 11.9833004,
- 47.0449712
- ],
- [
- 11.7339445,
- 46.9616816
- ],
- [
- 11.6321666,
- 47.010283
- ],
- [
- 11.5405665,
- 46.9755722
- ],
- [
- 11.4998553,
- 47.0068129
- ],
- [
- 11.418433,
- 46.9651546
- ],
- [
- 11.2555884,
- 46.9755722
- ],
- [
- 11.1130993,
- 46.913036
- ],
- [
- 11.0418548,
- 46.7633482
- ],
- [
- 10.8891879,
- 46.7598621
- ],
- [
- 10.7416099,
- 46.7842599
- ],
- [
- 10.7059877,
- 46.8643462
- ],
- [
- 10.5787653,
- 46.8399847
- ],
- [
- 10.4566318,
- 46.8504267
- ],
- [
- 10.4769874,
- 46.9269392
- ],
- [
- 10.3853873,
- 46.9894592
- ],
- [
- 10.2327204,
- 46.8643462
- ],
- [
- 10.1207647,
- 46.8330223
- ],
- [
- 9.8663199,
- 46.9408389
- ],
- [
- 9.9019422,
- 47.0033426
- ],
- [
- 9.6831197,
- 47.0588402
- ],
- [
- 9.6118752,
- 47.0380354
- ],
- [
- 9.6322307,
- 47.128131
- ],
- [
- 9.5813418,
- 47.1662025
- ],
- [
- 9.5406306,
- 47.2664422
- ],
- [
- 9.6067863,
- 47.3492559
- ],
- [
- 9.6729419,
- 47.369939
- ],
- [
- 9.6424085,
- 47.4457079
- ],
- [
- 9.5660751,
- 47.4801122
- ],
- [
- 9.7136531,
- 47.5282405
- ],
- [
- 9.7848976,
- 47.5969187
- ],
- [
- 9.8357866,
- 47.5454185
- ],
- [
- 9.9477423,
- 47.538548
- ],
- [
- 10.0902313,
- 47.4491493
- ],
- [
- 10.1105869,
- 47.3664924
- ],
- [
- 10.2428982,
- 47.3871688
- ],
- [
- 10.1869203,
- 47.2698953
- ],
- [
- 10.3243205,
- 47.2975125
- ],
- [
- 10.4820763,
- 47.4491493
- ],
- [
- 10.4311873,
- 47.4869904
- ],
- [
- 10.4413651,
- 47.5900549
- ],
- [
- 10.4871652,
- 47.5522881
- ],
- [
- 10.5482319,
- 47.5351124
- ],
- [
- 10.5991209,
- 47.5660246
- ],
- [
- 10.7568766,
- 47.5316766
- ],
- [
- 10.8891879,
- 47.5454185
- ],
- [
- 10.9400769,
- 47.4869904
- ],
- [
- 10.9960547,
- 47.3906141
- ],
- [
- 11.2352328,
- 47.4422662
- ],
- [
- 11.2810328,
- 47.3975039
- ],
- [
- 11.4235219,
- 47.5144941
- ],
- [
- 11.5761888,
- 47.5076195
- ],
- [
- 11.6067221,
- 47.5900549
- ],
- [
- 11.8357224,
- 47.5866227
- ],
- [
- 12.003656,
- 47.6243647
- ],
- [
- 12.2072118,
- 47.6037815
- ],
- [
- 12.1614117,
- 47.6963421
- ],
- [
- 12.2581008,
- 47.7442718
- ],
- [
- 12.2530119,
- 47.6792136
- ],
- [
- 12.4311232,
- 47.7100408
- ],
- [
- 12.4921899,
- 47.631224
- ],
- [
- 12.5685234,
- 47.6277944
- ],
- [
- 12.6295901,
- 47.6894913
- ],
- [
- 12.7720792,
- 47.6689338
- ],
- [
- 12.8331459,
- 47.5419833
- ],
- [
- 12.975635,
- 47.4732332
- ],
- [
- 13.0417906,
- 47.4938677
- ],
- [
- 13.0367017,
- 47.5557226
- ],
- [
- 13.0977685,
- 47.6415112
- ],
- [
- 13.0316128,
- 47.7100408
- ],
- [
- 12.9043905,
- 47.7203125
- ],
- [
- 13.0061684,
- 47.84683
- ],
- [
- 12.9451016,
- 47.9355501
- ],
- [
- 12.8636793,
- 47.9594103
- ],
- [
- 12.8636793,
- 48.0036929
- ],
- [
- 12.7517236,
- 48.0989418
- ],
- [
- 12.8738571,
- 48.2109733
- ],
- [
- 12.9603683,
- 48.2109733
- ],
- [
- 13.0417906,
- 48.2652035
- ],
- [
- 13.1842797,
- 48.2990682
- ],
- [
- 13.2606131,
- 48.2922971
- ],
- [
- 13.3980133,
- 48.3565867
- ],
- [
- 13.4438134,
- 48.417418
- ],
- [
- 13.4387245,
- 48.5523383
- ],
- [
- 13.509969,
- 48.5860123
- ],
- [
- 13.6117469,
- 48.5725454
- ],
- [
- 13.7287915,
- 48.5118999
- ],
- [
- 13.7847694,
- 48.5725454
- ],
- [
- 13.8203916,
- 48.6263915
- ],
- [
- 13.7949471,
- 48.7171267
- ],
- [
- 13.850925,
- 48.7741724
- ],
- [
- 14.0595697,
- 48.6633774
- ],
- [
- 14.0137696,
- 48.6331182
- ],
- [
- 14.0748364,
- 48.5927444
- ],
- [
- 14.2173255,
- 48.5961101
- ],
- [
- 14.3649034,
- 48.5489696
- ],
- [
- 14.4666813,
- 48.6499311
- ],
- [
- 14.5582815,
- 48.5961101
- ],
- [
- 14.5989926,
- 48.6263915
- ],
- [
- 14.7211261,
- 48.5759124
- ],
- [
- 14.7211261,
- 48.6868997
- ],
- [
- 14.822904,
- 48.7271983
- ],
- [
- 14.8178151,
- 48.777526
- ],
- [
- 14.9647227,
- 48.7851754
- ],
- [
- 14.9893637,
- 49.0126611
- ],
- [
- 15.1485933,
- 48.9950306
- ],
- [
- 15.1943934,
- 48.9315502
- ],
- [
- 15.3063491,
- 48.9850128
- ],
- [
- 15.3928603,
- 48.9850128
- ],
- [
- 15.4844604,
- 48.9282069
- ],
- [
- 15.749083,
- 48.8545973
- ],
- [
- 15.8406831,
- 48.8880697
- ],
- [
- 16.0086166,
- 48.7808794
- ],
- [
- 16.2070835,
- 48.7339115
- ],
- [
- 16.3953727,
- 48.7372678
- ],
- [
- 16.4920617,
- 48.8110498
- ],
- [
- 16.6905286,
- 48.7741724
- ],
- [
- 16.7057953,
- 48.7339115
- ],
- [
- 16.8991733,
- 48.713769
- ],
- [
- 16.9755067,
- 48.515271
- ],
- [
- 16.8482844,
- 48.4511817
- ],
- [
- 16.8533733,
- 48.3464411
- ],
- [
- 16.9551512,
- 48.2516513
- ],
- [
- 16.9907734,
- 48.1498955
- ],
- [
- 17.0925513,
- 48.1397088
- ],
- [
- 17.0823736,
- 48.0241182
- ],
- [
- 17.1739737,
- 48.0207146
- ],
- [
- 17.0823736,
- 47.8741447
- ],
- [
- 16.9856845,
- 47.8673174
- ],
- [
- 17.0823736,
- 47.8092489
- ],
- [
- 17.0925513,
- 47.7031919
- ],
- [
- 16.7414176,
- 47.6792136
- ],
- [
- 16.7057953,
- 47.7511153
- ],
- [
- 16.5378617,
- 47.7545368
- ],
- [
- 16.5480395,
- 47.7066164
- ],
- [
- 16.4208172,
- 47.6689338
- ],
- [
- 16.573484,
- 47.6175045
- ],
- [
- 16.670173,
- 47.631224
- ],
- [
- 16.7108842,
- 47.538548
- ],
- [
- 16.6599952,
- 47.4491493
- ],
- [
- 16.5429506,
- 47.3940591
- ],
- [
- 16.4615283,
- 47.3940591
- ],
- [
- 16.4920617,
- 47.276801
- ],
- [
- 16.425906,
- 47.1973317
- ],
- [
- 16.4717061,
- 47.1489007
- ],
- [
- 16.5480395,
- 47.1489007
- ],
- [
- 16.476795,
- 47.0796369
- ],
- [
- 16.527684,
- 47.0588402
- ]
- ]
- ],
- "terms_text": "geoimage.at",
- "id": "geoimage.at"
- },
- {
- "name": "Imagerie Drone (Haiti)",
- "type": "tms",
- "template": "http://wms.openstreetmap.fr/tms/1.0.0/iomhaiti/{zoom}/{x}/{y}",
- "polygon": [
- [
- [
- -72.1547401,
- 19.6878969
- ],
- [
- -72.162234,
- 19.689011
- ],
- [
- -72.164995,
- 19.6932445
- ],
- [
- -72.1657838,
- 19.6979977
- ],
- [
- -72.161603,
- 19.7035677
- ],
- [
- -72.1487449,
- 19.7028993
- ],
- [
- -72.1477194,
- 19.7026765
- ],
- [
- -72.1485082,
- 19.7001514
- ],
- [
- -72.1436963,
- 19.7011169
- ],
- [
- -72.1410143,
- 19.7000029
- ],
- [
- -72.139476,
- 19.6973664
- ],
- [
- -72.1382533,
- 19.6927617
- ],
- [
- -72.1386872,
- 19.6923161
- ],
- [
- -72.1380561,
- 19.6896423
- ],
- [
- -72.1385294,
- 19.6894938
- ],
- [
- -72.1388055,
- 19.6901251
- ],
- [
- -72.1388844,
- 19.6876741
- ],
- [
- -72.1378195,
- 19.6872656
- ],
- [
- -72.13778,
- 19.6850003
- ],
- [
- -72.1369517,
- 19.6855945
- ],
- [
- -72.136794,
- 19.6840719
- ],
- [
- -72.135729,
- 19.6835148
- ],
- [
- -72.1355713,
- 19.6740817
- ],
- [
- -72.1366362,
- 19.6708133
- ],
- [
- -72.1487843,
- 19.6710733
- ],
- [
- -72.1534779,
- 19.6763843
- ],
- [
- -72.1530835,
- 19.6769414
- ],
- [
- -72.1533251,
- 19.6769768
- ],
- [
- -72.1532807,
- 19.6796525
- ],
- [
- -72.1523834,
- 19.6797175
- ],
- [
- -72.1522749,
- 19.6803488
- ],
- [
- -72.1519101,
- 19.6803395
- ],
- [
- -72.1518608,
- 19.6805067
- ],
- [
- -72.1528173,
- 19.6806552
- ],
- [
- -72.1522299,
- 19.6833011
- ],
- [
- -72.1507801,
- 19.6831499
- ],
- [
- -72.1504457,
- 19.6847862
- ],
- [
- -72.1508591,
- 19.6843492
- ],
- [
- -72.1530087,
- 19.6849898
- ],
- [
- -72.1546258,
- 19.6854354
- ],
- [
- -72.1543103,
- 19.6870694
- ],
- [
- -72.1547244,
- 19.6868466
- ],
- [
- -72.1548501,
- 19.6877564
- ],
- [
- -72.1545814,
- 19.6877982
- ]
- ],
- [
- [
- -72.1310601,
- 19.6718929
- ],
- [
- -72.1259842,
- 19.6772765
- ],
- [
- -72.1255379,
- 19.6776179
- ],
- [
- -72.1216891,
- 19.6776442
- ],
- [
- -72.1149677,
- 19.672602
- ],
- [
- -72.1152745,
- 19.6687152
- ],
- [
- -72.1198205,
- 19.6627535
- ],
- [
- -72.1227768,
- 19.6625696
- ],
- [
- -72.1248965,
- 19.662701
- ],
- [
- -72.1285779,
- 19.6645394
- ],
- [
- -72.1308091,
- 19.6661677
- ],
- [
- -72.1316737,
- 19.668794
- ],
- [
- -72.1315621,
- 19.671
- ]
- ],
- [
- [
- -71.845795,
- 19.6709758
- ],
- [
- -71.8429354,
- 19.6759525
- ],
- [
- -71.8410027,
- 19.6759525
- ],
- [
- -71.8380249,
- 19.6755254
- ],
- [
- -71.8378671,
- 19.6745041
- ],
- [
- -71.8390504,
- 19.6743927
- ],
- [
- -71.8390109,
- 19.6741141
- ],
- [
- -71.8398392,
- 19.673947
- ],
- [
- -71.8389123,
- 19.6736127
- ],
- [
- -71.8380249,
- 19.67209
- ],
- [
- -71.8380052,
- 19.6726285
- ],
- [
- -71.8376699,
- 19.6727214
- ],
- [
- -71.8376305,
- 19.672545
- ],
- [
- -71.8354414,
- 19.6732135
- ],
- [
- -71.835333,
- 19.6729999
- ],
- [
- -71.8331242,
- 19.6734642
- ],
- [
- -71.8326706,
- 19.6716815
- ],
- [
- -71.8321579,
- 19.67209
- ],
- [
- -71.8307183,
- 19.6694902
- ],
- [
- -71.8306009,
- 19.6697594
- ],
- [
- -71.8302174,
- 19.6698907
- ],
- [
- -71.8291833,
- 19.6672095
- ],
- [
- -71.8290749,
- 19.6672095
- ],
- [
- -71.8289122,
- 19.6667916
- ],
- [
- -71.8289516,
- 19.6666199
- ],
- [
- -71.8288333,
- 19.6663506
- ],
- [
- -71.8285572,
- 19.6664759
- ],
- [
- -71.8288678,
- 19.6672466
- ],
- [
- -71.8287593,
- 19.6674138
- ],
- [
- -71.8277979,
- 19.6678177
- ],
- [
- -71.8277112,
- 19.6678586
- ],
- [
- -71.8278263,
- 19.6679637
- ],
- [
- -71.8271831,
- 19.6681212
- ],
- [
- -71.8271761,
- 19.6680917
- ],
- [
- -71.8264405,
- 19.6683921
- ],
- [
- -71.8264074,
- 19.6683231
- ],
- [
- -71.8261954,
- 19.6684253
- ],
- [
- -71.8261806,
- 19.6683556
- ],
- [
- -71.8258946,
- 19.6684206
- ],
- [
- -71.8258897,
- 19.6686574
- ],
- [
- -71.8251551,
- 19.6687549
- ],
- [
- -71.8254509,
- 19.6691588
- ],
- [
- -71.8229332,
- 19.6695739
- ],
- [
- -71.822713,
- 19.6696658
- ],
- [
- -71.8227688,
- 19.6697577
- ],
- [
- -71.8201751,
- 19.6709855
- ],
- [
- -71.8198474,
- 19.6704537
- ],
- [
- -71.8197985,
- 19.6706014
- ],
- [
- -71.8194674,
- 19.6707557
- ],
- [
- -71.8182472,
- 19.6713433
- ],
- [
- -71.8181426,
- 19.6711431
- ],
- [
- -71.8175813,
- 19.6714254
- ],
- [
- -71.816959,
- 19.6707672
- ],
- [
- -71.8176388,
- 19.6718965
- ],
- [
- -71.8171403,
- 19.6720376
- ],
- [
- -71.8158225,
- 19.6718045
- ],
- [
- -71.8138354,
- 19.6711874
- ],
- [
- -71.8123259,
- 19.6706982
- ],
- [
- -71.8121759,
- 19.6704258
- ],
- [
- -71.8124304,
- 19.6701467
- ],
- [
- -71.8119184,
- 19.6700141
- ],
- [
- -71.8118765,
- 19.6705828
- ],
- [
- -71.811169,
- 19.6703483
- ],
- [
- -71.8095938,
- 19.6698516
- ],
- [
- -71.8077992,
- 19.6692829
- ],
- [
- -71.8056028,
- 19.668612
- ],
- [
- -71.8051443,
- 19.6668942
- ],
- [
- -71.8051196,
- 19.6652322
- ],
- [
- -71.8052315,
- 19.661979
- ],
- [
- -71.8065603,
- 19.6523921
- ],
- [
- -71.8073412,
- 19.6482946
- ],
- [
- -71.8099686,
- 19.6468292
- ],
- [
- -71.8147517,
- 19.6454502
- ],
- [
- -71.8147726,
- 19.6455619
- ],
- [
- -71.8150027,
- 19.6455093
- ],
- [
- -71.8149469,
- 19.6453846
- ],
- [
- -71.8159928,
- 19.6450234
- ],
- [
- -71.8158882,
- 19.6448855
- ],
- [
- -71.8165854,
- 19.6446097
- ],
- [
- -71.8190119,
- 19.643802
- ],
- [
- -71.8211524,
- 19.643454
- ],
- [
- -71.8221564,
- 19.6433292
- ],
- [
- -71.8269046,
- 19.643211
- ],
- [
- -71.8280481,
- 19.6432241
- ],
- [
- -71.8304466,
- 19.6440778
- ],
- [
- -71.8306419,
- 19.6448592
- ],
- [
- -71.8295263,
- 19.6450365
- ],
- [
- -71.8296064,
- 19.6456111
- ],
- [
- -71.8299411,
- 19.6455651
- ],
- [
- -71.8303699,
- 19.6451744
- ],
- [
- -71.830471,
- 19.6453452
- ],
- [
- -71.8308092,
- 19.6451974
- ],
- [
- -71.8310184,
- 19.6451088
- ],
- [
- -71.8312519,
- 19.6458541
- ],
- [
- -71.8311125,
- 19.6458245
- ],
- [
- -71.831367,
- 19.6465862
- ],
- [
- -71.8328939,
- 19.646189
- ],
- [
- -71.8344566,
- 19.6457062
- ],
- [
- -71.8344664,
- 19.6463052
- ],
- [
- -71.834215,
- 19.6461938
- ],
- [
- -71.8342002,
- 19.6465513
- ],
- [
- -71.8346702,
- 19.6463
- ],
- [
- -71.8349118,
- 19.6463905
- ],
- [
- -71.8347984,
- 19.6462187
- ],
- [
- -71.8354393,
- 19.6458496
- ],
- [
- -71.8355034,
- 19.6458032
- ],
- [
- -71.8364747,
- 19.6461328
- ],
- [
- -71.8376382,
- 19.6472658
- ],
- [
- -71.8379143,
- 19.647888
- ],
- [
- -71.8390483,
- 19.6508039
- ],
- [
- -71.8456942,
- 19.6696203
- ]
- ],
- [
- [
- -72.098878,
- 18.54843
- ],
- [
- -72.096993,
- 18.5501994
- ],
- [
- -72.0972888,
- 18.5503209
- ],
- [
- -72.0968451,
- 18.5503489
- ],
- [
- -72.0955632,
- 18.551854
- ],
- [
- -72.0956428,
- 18.5526742
- ],
- [
- -72.0959914,
- 18.5533748
- ],
- [
- -72.0962145,
- 18.553203
- ],
- [
- -72.0962842,
- 18.5535665
- ],
- [
- -72.0964446,
- 18.5535533
- ],
- [
- -72.0965352,
- 18.5539764
- ],
- [
- -72.0965056,
- 18.554173
- ],
- [
- -72.0966085,
- 18.5541747
- ],
- [
- -72.0965178,
- 18.5542127
- ],
- [
- -72.0968769,
- 18.5546588
- ],
- [
- -72.0979018,
- 18.5552141
- ],
- [
- -72.1006211,
- 18.5555875
- ],
- [
- -72.1014926,
- 18.5556206
- ],
- [
- -72.1024339,
- 18.5555016
- ],
- [
- -72.103417,
- 18.5543515
- ],
- [
- -72.1034798,
- 18.5516215
- ],
- [
- -72.1030789,
- 18.5516149
- ],
- [
- -72.1033752,
- 18.5515224
- ],
- [
- -72.1035042,
- 18.5515224
- ],
- [
- -72.1035239,
- 18.5502417
- ],
- [
- -72.1028701,
- 18.5503062
- ],
- [
- -72.1029015,
- 18.55025
- ],
- [
- -72.1028457,
- 18.5501773
- ],
- [
- -72.1035081,
- 18.5500252
- ],
- [
- -72.103491,
- 18.5497396
- ],
- [
- -72.1035181,
- 18.5497361
- ],
- [
- -72.1035398,
- 18.5489039
- ],
- [
- -72.1034317,
- 18.5487056
- ],
- [
- -72.102717,
- 18.5481437
- ],
- [
- -72.1025601,
- 18.5481536
- ],
- [
- -72.10229,
- 18.5482751
- ],
- [
- -72.1022891,
- 18.5482569
- ],
- [
- -72.1025201,
- 18.5481396
- ],
- [
- -72.1023388,
- 18.5481321
- ],
- [
- -72.0999082,
- 18.5480901
- ],
- [
- -72.09907,
- 18.5483799
- ]
- ],
- [
- [
- -72.2542503,
- 18.568262
- ],
- [
- -72.2560252,
- 18.5717765
- ],
- [
- -72.2557886,
- 18.5748049
- ],
- [
- -72.2535009,
- 18.5755526
- ],
- [
- -72.2522782,
- 18.5755526
- ],
- [
- -72.2499906,
- 18.5740945
- ],
- [
- -72.2473874,
- 18.5698323
- ],
- [
- -72.2460069,
- 18.566729
- ],
- [
- -72.2458492,
- 18.5629527
- ],
- [
- -72.2479396,
- 18.5625414
- ],
- [
- -72.2501483,
- 18.5628031
- ],
- [
- -72.2519232,
- 18.5650839
- ]
- ],
- [
- [
- -72.303145,
- 18.5332749
- ],
- [
- -72.3031275,
- 18.5331799
- ],
- [
- -72.3048311,
- 18.5311081
- ],
- [
- -72.3097397,
- 18.5311081
- ],
- [
- -72.3164332,
- 18.5324302
- ],
- [
- -72.3234056,
- 18.5366083
- ],
- [
- -72.3261388,
- 18.5387765
- ],
- [
- -72.3261946,
- 18.5426371
- ],
- [
- -72.3170468,
- 18.5540596
- ],
- [
- -72.3130864,
- 18.5540596
- ],
- [
- -72.2987511,
- 18.5453342
- ],
- [
- -72.2988627,
- 18.5407333
- ],
- [
- -72.2962969,
- 18.5404689
- ],
- [
- -72.2954602,
- 18.5395169
- ],
- [
- -72.2961853,
- 18.5338582
- ],
- [
- -72.2971893,
- 18.5332235
- ],
- [
- -72.3007034,
- 18.5332764
- ],
- [
- -72.3022652,
- 18.5342284
- ],
- [
- -72.3028486,
- 18.5335189
- ],
- [
- -72.303104,
- 18.5333361
- ],
- [
- -72.303181,
- 18.5334007
- ],
- [
- -72.3035793,
- 18.5335614
- ],
- [
- -72.3030793,
- 18.5346463
- ],
- [
- -72.303715,
- 18.5339873
- ],
- [
- -72.3045286,
- 18.5344052
- ],
- [
- -72.3044015,
- 18.5345097
- ],
- [
- -72.3062747,
- 18.5352571
- ],
- [
- -72.3063107,
- 18.5352741
- ],
- [
- -72.3061219,
- 18.5357628
- ],
- [
- -72.3061219,
- 18.5358196
- ],
- [
- -72.30637,
- 18.5358928
- ],
- [
- -72.3062726,
- 18.5354869
- ],
- [
- -72.3066688,
- 18.5350891
- ],
- [
- -72.3061963,
- 18.5349706
- ],
- [
- -72.3058869,
- 18.5349385
- ],
- [
- -72.3055373,
- 18.5346833
- ],
- [
- -72.3054864,
- 18.534613
- ],
- [
- -72.3055585,
- 18.5345065
- ],
- [
- -72.3046749,
- 18.5342293
- ],
- [
- -72.3047617,
- 18.5338817
- ],
- [
- -72.3043252,
- 18.5337511
- ],
- [
- -72.3042595,
- 18.5336346
- ]
- ],
- [
- [
- -72.2981405,
- 18.477502
- ],
- [
- -72.2935652,
- 18.4948587
- ],
- [
- -72.2922242,
- 18.4964297
- ],
- [
- -72.2931708,
- 18.4972526
- ],
- [
- -72.2892266,
- 18.5057058
- ],
- [
- -72.2878067,
- 18.5080996
- ],
- [
- -72.2850458,
- 18.5119893
- ],
- [
- -72.2840203,
- 18.5113161
- ],
- [
- -72.2808649,
- 18.515879
- ],
- [
- -72.2773151,
- 18.5175994
- ],
- [
- -72.2723454,
- 18.5175246
- ],
- [
- -72.2662714,
- 18.5144578
- ],
- [
- -72.2665869,
- 18.5066783
- ],
- [
- -72.2692643,
- 18.5046154
- ],
- [
- -72.2661965,
- 18.5029756
- ],
- [
- -72.2688181,
- 18.4965222
- ],
- [
- -72.2691528,
- 18.4959403
- ],
- [
- -72.2702684,
- 18.4961519
- ],
- [
- -72.2702684,
- 18.4955964
- ],
- [
- -72.2690691,
- 18.49557
- ],
- [
- -72.2692922,
- 18.4937714
- ],
- [
- -72.2736988,
- 18.4859951
- ],
- [
- -72.2746749,
- 18.4850429
- ],
- [
- -72.2751769,
- 18.483403
- ],
- [
- -72.2765435,
- 18.4813398
- ],
- [
- -72.2773523,
- 18.4814985
- ],
- [
- -72.2783006,
- 18.4809694
- ],
- [
- -72.2778544,
- 18.4807049
- ],
- [
- -72.2771013,
- 18.480123
- ],
- [
- -72.2789978,
- 18.4775836
- ],
- [
- -72.279723,
- 18.4772927
- ],
- [
- -72.2806433,
- 18.4776365
- ],
- [
- -72.2813685,
- 18.4771604
- ],
- [
- -72.2808386,
- 18.4769752
- ],
- [
- -72.2812848,
- 18.4758378
- ],
- [
- -72.2823167,
- 18.4751765
- ],
- [
- -72.2851615,
- 18.4750971
- ],
- [
- -72.2849941,
- 18.4763668
- ],
- [
- -72.2854404,
- 18.4769752
- ],
- [
- -72.286277,
- 18.4756262
- ],
- [
- -72.2869325,
- 18.4754675
- ],
- [
- -72.2865978,
- 18.4751897
- ],
- [
- -72.2865978,
- 18.4750046
- ],
- [
- -72.2909765,
- 18.4747268
- ],
- [
- -72.2946579,
- 18.4749384
- ],
- [
- -72.2973911,
- 18.476843
- ]
- ],
- [
- [
- -72.3466657,
- 18.5222375
- ],
- [
- -72.346833,
- 18.5244325
- ],
- [
- -72.3475303,
- 18.5277645
- ],
- [
- -72.3455501,
- 18.5291131
- ],
- [
- -72.3403069,
- 18.5292189
- ],
- [
- -72.3383267,
- 18.5280289
- ],
- [
- -72.3369043,
- 18.530118
- ],
- [
- -72.3338086,
- 18.5296684
- ],
- [
- -72.3289279,
- 18.5270769
- ],
- [
- -72.328649,
- 18.5253316
- ],
- [
- -72.3292068,
- 18.5232689
- ],
- [
- -72.330406,
- 18.5220524
- ],
- [
- -72.3321631,
- 18.5221847
- ],
- [
- -72.3322467,
- 18.5191963
- ],
- [
- -72.3369183,
- 18.5183633
- ],
- [
- -72.3382012,
- 18.5184691
- ],
- [
- -72.3381454,
- 18.5181782
- ],
- [
- -72.3411993,
- 18.5177947
- ],
- [
- -72.3454943,
- 18.5171997
- ],
- [
- -72.3492595,
- 18.517279
- ],
- [
- -72.3504308,
- 18.5188922
- ],
- [
- -72.3503472,
- 18.5206112
- ],
- [
- -72.3496778,
- 18.5220392
- ]
- ],
- [
- [
- -72.3303078,
- 18.5486462
- ],
- [
- -72.3429687,
- 18.5508149
- ],
- [
- -72.3433236,
- 18.5530585
- ],
- [
- -72.3413121,
- 18.5614341
- ],
- [
- -72.3390639,
- 18.5613593
- ],
- [
- -72.3384723,
- 18.5638271
- ],
- [
- -72.3375257,
- 18.5654348
- ],
- [
- -72.3348436,
- 18.5650609
- ],
- [
- -72.3311755,
- 18.5638271
- ],
- [
- -72.3312149,
- 18.5616211
- ],
- [
- -72.3232082,
- 18.5606863
- ],
- [
- -72.3212361,
- 18.559602
- ],
- [
- -72.3208023,
- 18.5587046
- ],
- [
- -72.3208811,
- 18.557882
- ],
- [
- -72.3259493,
- 18.5580274
- ],
- [
- -72.3266186,
- 18.5581993
- ],
- [
- -72.3259214,
- 18.5577498
- ],
- [
- -72.3250986,
- 18.5573797
- ],
- [
- -72.3233767,
- 18.552263
- ],
- [
- -72.3245994,
- 18.5478507
- ],
- [
- -72.3288986,
- 18.5483742
- ],
- [
- -72.329979,
- 18.5489548
- ]
- ],
- [
- [
- -72.3231383,
- 18.5269828
- ],
- [
- -72.3223434,
- 18.528067
- ],
- [
- -72.3209629,
- 18.5279745
- ],
- [
- -72.3207816,
- 18.5271282
- ],
- [
- -72.3208513,
- 18.5253697
- ],
- [
- -72.3214649,
- 18.5249598
- ],
- [
- -72.3225666,
- 18.5248937
- ],
- [
- -72.3228454,
- 18.52533
- ],
- [
- -72.3232359,
- 18.5264804
- ]
- ],
- [
- [
- -72.2160832,
- 18.6457752
- ],
- [
- -72.2159649,
- 18.6553795
- ],
- [
- -72.2030279,
- 18.6558279
- ],
- [
- -72.1947057,
- 18.6553421
- ],
- [
- -72.1922208,
- 18.6545573
- ],
- [
- -72.1920631,
- 18.6521283
- ],
- [
- -72.193483,
- 18.6477559
- ],
- [
- -72.201253,
- 18.6385249
- ],
- [
- -72.2069327,
- 18.6388239
- ],
- [
- -72.2120996,
- 18.6424117
- ],
- [
- -72.2118068,
- 18.6430591
- ],
- [
- -72.2121693,
- 18.6426892
- ],
- [
- -72.2127968,
- 18.6427552
- ],
- [
- -72.2134662,
- 18.6431252
- ],
- [
- -72.2135638,
- 18.6437462
- ],
- [
- -72.2154176,
- 18.6443947
- ],
- [
- -72.2158909,
- 18.6450301
- ]
- ],
- [
- [
- -72.2867654,
- 18.6482017
- ],
- [
- -72.2900977,
- 18.6527446
- ],
- [
- -72.28981,
- 18.6536532
- ],
- [
- -72.2900738,
- 18.6542664
- ],
- [
- -72.290721,
- 18.6537667
- ],
- [
- -72.2910327,
- 18.6544709
- ],
- [
- -72.2912485,
- 18.654221
- ],
- [
- -72.29168,
- 18.6558905
- ],
- [
- -72.2912245,
- 18.656606
- ],
- [
- -72.2922673,
- 18.65597
- ],
- [
- -72.2926869,
- 18.6567536
- ],
- [
- -72.2930705,
- 18.6567309
- ],
- [
- -72.2941253,
- 18.6581846
- ],
- [
- -72.2960192,
- 18.6608421
- ],
- [
- -72.2959713,
- 18.6619096
- ],
- [
- -72.2932862,
- 18.664567
- ],
- [
- -72.2906731,
- 18.6659979
- ],
- [
- -72.2895943,
- 18.6661342
- ],
- [
- -72.2895943,
- 18.6665657
- ],
- [
- -72.2877004,
- 18.6664749
- ],
- [
- -72.2875805,
- 18.6676559
- ],
- [
- -72.2831214,
- 18.6697227
- ],
- [
- -72.2796453,
- 18.6696546
- ],
- [
- -72.2784311,
- 18.6690787
- ],
- [
- -72.2783972,
- 18.6687736
- ],
- [
- -72.277736,
- 18.6691671
- ],
- [
- -72.2774394,
- 18.669143
- ],
- [
- -72.2770071,
- 18.6683159
- ],
- [
- -72.2765575,
- 18.6681125
- ],
- [
- -72.2765385,
- 18.6680583
- ],
- [
- -72.2752319,
- 18.6685239
- ],
- [
- -72.2749292,
- 18.6674649
- ],
- [
- -72.2746416,
- 18.6674309
- ],
- [
- -72.2734668,
- 18.6682145
- ],
- [
- -72.2732271,
- 18.6682712
- ],
- [
- -72.2726757,
- 18.6671583
- ],
- [
- -72.2719147,
- 18.6674288
- ],
- [
- -72.2718808,
- 18.6673405
- ],
- [
- -72.2688149,
- 18.6681868
- ],
- [
- -72.2688269,
- 18.6671761
- ],
- [
- -72.2690786,
- 18.6668241
- ],
- [
- -72.2688149,
- 18.66679
- ],
- [
- -72.2681077,
- 18.6670739
- ],
- [
- -72.2676282,
- 18.6673805
- ],
- [
- -72.2675563,
- 18.6666878
- ],
- [
- -72.266861,
- 18.666949
- ],
- [
- -72.2655904,
- 18.6673578
- ],
- [
- -72.2654466,
- 18.6670058
- ],
- [
- -72.2647514,
- 18.6674146
- ],
- [
- -72.2629893,
- 18.6681868
- ],
- [
- -72.2628455,
- 18.6681754
- ],
- [
- -72.2626537,
- 18.6676076
- ],
- [
- -72.2623001,
- 18.6677098
- ],
- [
- -72.2624799,
- 18.6679199
- ],
- [
- -72.2624799,
- 18.6682322
- ],
- [
- -72.262306,
- 18.6682606
- ],
- [
- -72.2620963,
- 18.6679654
- ],
- [
- -72.2622761,
- 18.6689193
- ],
- [
- -72.2601484,
- 18.6688966
- ],
- [
- -72.2542749,
- 18.6687944
- ],
- [
- -72.2505388,
- 18.6683476
- ],
- [
- -72.2504371,
- 18.669536
- ],
- [
- -72.2477926,
- 18.6698893
- ],
- [
- -72.2415204,
- 18.669793
- ],
- [
- -72.2414187,
- 18.6741933
- ],
- [
- -72.2389167,
- 18.6739759
- ],
- [
- -72.2387249,
- 18.6734649
- ],
- [
- -72.2383653,
- 18.6733059
- ],
- [
- -72.2387009,
- 18.6739532
- ],
- [
- -72.2375502,
- 18.6738964
- ],
- [
- -72.2374183,
- 18.6735103
- ],
- [
- -72.237742,
- 18.67334
- ],
- [
- -72.2375142,
- 18.6732605
- ],
- [
- -72.236843,
- 18.6734876
- ],
- [
- -72.2364354,
- 18.6724088
- ],
- [
- -72.2355124,
- 18.6726019
- ],
- [
- -72.2354045,
- 18.6724202
- ],
- [
- -72.2353027,
- 18.6729028
- ],
- [
- -72.2345475,
- 18.6726871
- ],
- [
- -72.2343077,
- 18.6724599
- ],
- [
- -72.2342358,
- 18.6734706
- ],
- [
- -72.2334087,
- 18.6734592
- ],
- [
- -72.2332889,
- 18.6733003
- ],
- [
- -72.2327375,
- 18.6732889
- ],
- [
- -72.2327135,
- 18.6735047
- ],
- [
- -72.227703,
- 18.6725281
- ],
- [
- -72.2265283,
- 18.6716537
- ],
- [
- -72.226804,
- 18.6715742
- ],
- [
- -72.2274993,
- 18.6715855
- ],
- [
- -72.2274873,
- 18.6714493
- ],
- [
- -72.2272899,
- 18.6714623
- ],
- [
- -72.2272814,
- 18.6712977
- ],
- [
- -72.2272094,
- 18.671358
- ],
- [
- -72.2261785,
- 18.6713693
- ],
- [
- -72.2256032,
- 18.670881
- ],
- [
- -72.2255073,
- 18.6694502
- ],
- [
- -72.2261066,
- 18.6696886
- ],
- [
- -72.2261785,
- 18.6695949
- ],
- [
- -72.2259837,
- 18.6695495
- ],
- [
- -72.225777,
- 18.6691379
- ],
- [
- -72.2253335,
- 18.6694643
- ],
- [
- -72.2249739,
- 18.66947
- ],
- [
- -72.2245783,
- 18.6678802
- ],
- [
- -72.2235525,
- 18.6677046
- ],
- [
- -72.2235907,
- 18.6675921
- ],
- [
- -72.2224634,
- 18.6676283
- ],
- [
- -72.2223659,
- 18.667022
- ],
- [
- -72.2223277,
- 18.6670943
- ],
- [
- -72.2219209,
- 18.667026
- ],
- [
- -72.2208105,
- 18.6669015
- ],
- [
- -72.220809,
- 18.6665325
- ],
- [
- -72.2208705,
- 18.6663593
- ],
- [
- -72.2206023,
- 18.6668107
- ],
- [
- -72.2203895,
- 18.6666361
- ],
- [
- -72.2184341,
- 18.6650535
- ],
- [
- -72.21829,
- 18.6640979
- ],
- [
- -72.2183493,
- 18.6608376
- ],
- [
- -72.2187223,
- 18.6606541
- ],
- [
- -72.2186894,
- 18.660603
- ],
- [
- -72.2187253,
- 18.6604525
- ],
- [
- -72.2189771,
- 18.6603247
- ],
- [
- -72.2187823,
- 18.6601998
- ],
- [
- -72.2186984,
- 18.6602367
- ],
- [
- -72.2185815,
- 18.6600352
- ],
- [
- -72.2186085,
- 18.6600039
- ],
- [
- -72.2187823,
- 18.6601345
- ],
- [
- -72.218995,
- 18.6600181
- ],
- [
- -72.2189111,
- 18.6599131
- ],
- [
- -72.2189681,
- 18.6597938
- ],
- [
- -72.2183807,
- 18.6595837
- ],
- [
- -72.2184728,
- 18.6539662
- ],
- [
- -72.2201001,
- 18.6511554
- ],
- [
- -72.225796,
- 18.6469472
- ],
- [
- -72.2283048,
- 18.6457265
- ],
- [
- -72.2379335,
- 18.645855
- ],
- [
- -72.237764,
- 18.6446985
- ],
- [
- -72.2400355,
- 18.6432529
- ],
- [
- -72.2455958,
- 18.6433493
- ],
- [
- -72.2482742,
- 18.6450358
- ],
- [
- -72.2487488,
- 18.6436705
- ],
- [
- -72.2511067,
- 18.6429775
- ],
- [
- -72.2512385,
- 18.6433409
- ],
- [
- -72.2512625,
- 18.6431592
- ],
- [
- -72.2514843,
- 18.6431365
- ],
- [
- -72.2513284,
- 18.6429718
- ],
- [
- -72.2533602,
- 18.6423471
- ],
- [
- -72.253516,
- 18.6426765
- ],
- [
- -72.2539535,
- 18.6425402
- ],
- [
- -72.2541453,
- 18.642932
- ],
- [
- -72.2543851,
- 18.6428696
- ],
- [
- -72.2543791,
- 18.6427503
- ],
- [
- -72.2564168,
- 18.6423244
- ],
- [
- -72.2566925,
- 18.6431365
- ],
- [
- -72.2568783,
- 18.6428582
- ],
- [
- -72.2568184,
- 18.6425288
- ],
- [
- -72.258843,
- 18.6420991
- ],
- [
- -72.258885,
- 18.6422467
- ],
- [
- -72.2592626,
- 18.6422297
- ],
- [
- -72.2596461,
- 18.6424057
- ],
- [
- -72.2592206,
- 18.6406907
- ],
- [
- -72.2599545,
- 18.6404815
- ],
- [
- -72.2601156,
- 18.6406341
- ],
- [
- -72.2601156,
- 18.6399393
- ],
- [
- -72.2615268,
- 18.6394669
- ],
- [
- -72.2626056,
- 18.6391034
- ],
- [
- -72.2654465,
- 18.6387286
- ],
- [
- -72.2719433,
- 18.6386832
- ],
- [
- -72.272201,
- 18.6388649
- ],
- [
- -72.2730341,
- 18.6394158
- ],
- [
- -72.273166,
- 18.6412558
- ],
- [
- -72.2738732,
- 18.6410286
- ],
- [
- -72.2742208,
- 18.6416079
- ],
- [
- -72.2752187,
- 18.6416987
- ],
- [
- -72.2754524,
- 18.6415738
- ],
- [
- -72.2755513,
- 18.6416874
- ],
- [
- -72.2755394,
- 18.6417527
- ],
- [
- -72.2764713,
- 18.6418634
- ],
- [
- -72.276753,
- 18.6418975
- ],
- [
- -72.2762953,
- 18.6426002
- ],
- [
- -72.2774226,
- 18.6429978
- ],
- [
- -72.277982,
- 18.6427247
- ],
- [
- -72.2785796,
- 18.6431303
- ],
- [
- -72.2785669,
- 18.6432307
- ],
- [
- -72.2789017,
- 18.6433471
- ],
- [
- -72.279851,
- 18.6439655
- ],
- [
- -72.2858703,
- 18.6469651
- ]
- ],
- [
- [
- -72.5557247,
- 18.5305893
- ],
- [
- -72.5555866,
- 18.5367036
- ],
- [
- -72.554995,
- 18.537975
- ],
- [
- -72.5488026,
- 18.537919
- ],
- [
- -72.5486646,
- 18.5372832
- ],
- [
- -72.548842,
- 18.5306267
- ],
- [
- -72.5493745,
- 18.5301031
- ],
- [
- -72.555133,
- 18.5301218
- ]
- ],
- [
- [
- -72.6235278,
- 18.5079877
- ],
- [
- -72.6234441,
- 18.5095217
- ],
- [
- -72.6226074,
- 18.5104341
- ],
- [
- -72.6204878,
- 18.511849
- ],
- [
- -72.6183403,
- 18.5107514
- ],
- [
- -72.6162207,
- 18.5083183
- ],
- [
- -72.6162625,
- 18.506467
- ],
- [
- -72.618661,
- 18.5044438
- ],
- [
- -72.6204041,
- 18.5044967
- ],
- [
- -72.6228305,
- 18.506996
- ]
- ]
- ]
- },
- {
- "name": "Ireland Bartholomew Quarter-Inch 1940",
- "type": "tms",
- "template": "http://geo.nls.uk/maps/ireland/bartholomew/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 5,
- 13
- ],
- "polygon": [
- [
- [
- -8.8312773,
- 55.3963337
- ],
- [
- -7.3221271,
- 55.398605
- ],
- [
- -7.2891331,
- 55.4333162
- ],
- [
- -7.2368042,
- 55.4530757
- ],
- [
- -7.18881,
- 55.4497995
- ],
- [
- -7.1528144,
- 55.3968384
- ],
- [
- -6.90561,
- 55.394903
- ],
- [
- -6.9047153,
- 55.3842114
- ],
- [
- -5.8485282,
- 55.3922956
- ],
- [
- -5.8378629,
- 55.248676
- ],
- [
- -5.3614762,
- 55.2507024
- ],
- [
- -5.3899172,
- 53.8466464
- ],
- [
- -5.8734141,
- 53.8487436
- ],
- [
- -5.8983,
- 52.8256258
- ],
- [
- -6.0191742,
- 52.8256258
- ],
- [
- -6.0262844,
- 51.7712367
- ],
- [
- -8.1131422,
- 51.7712367
- ],
- [
- -8.1273627,
- 51.3268839
- ],
- [
- -10.6052842,
- 51.3091083
- ],
- [
- -10.6271879,
- 52.0328254
- ],
- [
- -10.6469845,
- 52.0322454
- ],
- [
- -10.6469845,
- 52.0440365
- ],
- [
- -10.6271879,
- 52.0448095
- ],
- [
- -10.6290733,
- 52.0745627
- ],
- [
- -10.6699234,
- 52.0743695
- ],
- [
- -10.6702376,
- 52.0876941
- ],
- [
- -10.6312729,
- 52.0898179
- ],
- [
- -10.6393128,
- 52.4147202
- ],
- [
- -10.3137689,
- 52.4185533
- ],
- [
- -10.3166401,
- 53.3341342
- ],
- [
- -10.3699669,
- 53.3330727
- ],
- [
- -10.385965,
- 54.3534472
- ],
- [
- -8.8163777,
- 54.3586265
- ],
- [
- -8.8173427,
- 54.6595721
- ],
- [
- -8.8413398,
- 54.6616284
- ],
- [
- -8.8422286,
- 54.6929749
- ],
- [
- -8.8315632,
- 54.7145436
- ],
- [
- -8.8151208,
- 54.7145436
- ]
- ]
- ],
- "terms_url": "http://geo.nls.uk/maps/",
- "terms_text": "National Library of Scotland Historic Maps"
- },
- {
- "name": "Ireland British War Office 1:25k GSGS 3906",
- "type": "tms",
- "template": "http://mapwarper.net/layers/tile/101/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 18
- ],
- "polygon": [
- [
- [
- -10.71,
- 51.32
- ],
- [
- -10.71,
- 55.46
- ],
- [
- -5.37,
- 55.46
- ],
- [
- -5.37,
- 51.32
- ],
- [
- -10.71,
- 51.32
- ]
- ]
- ],
- "terms_url": "http://wiki.openstreetmap.org/wiki/WikiProject_Ireland#Trinity_College_Dublin",
- "terms_text": "Glucksman Map Library, Trinity College Dublin",
- "id": "GSGS3906"
- },
- {
- "name": "Ireland British War Office One-Inch 1941-43 GSGS 4136",
- "type": "tms",
- "template": "http://geo.nls.uk/maps/ireland/gsgs4136/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 5,
- 15
- ],
- "polygon": [
- [
- [
- -10.0847426,
- 51.4147902
- ],
- [
- -10.0906535,
- 51.5064103
- ],
- [
- -10.4564222,
- 51.5003961
- ],
- [
- -10.5005905,
- 52.3043019
- ],
- [
- -10.0837522,
- 52.312741
- ],
- [
- -10.0840973,
- 52.3404698
- ],
- [
- -10.055802,
- 52.3408915
- ],
- [
- -10.0768509,
- 52.7628238
- ],
- [
- -9.7780248,
- 52.7684611
- ],
- [
- -9.7818205,
- 52.8577261
- ],
- [
- -9.6337877,
- 52.8596012
- ],
- [
- -9.6449626,
- 53.1294502
- ],
- [
- -10.0919663,
- 53.1227152
- ],
- [
- -10.1051422,
- 53.3912913
- ],
- [
- -10.4052593,
- 53.3866349
- ],
- [
- -10.4530828,
- 54.193502
- ],
- [
- -10.2998523,
- 54.1974988
- ],
- [
- -10.3149801,
- 54.4669592
- ],
- [
- -8.9276095,
- 54.4853897
- ],
- [
- -8.9339534,
- 54.7546562
- ],
- [
- -8.7773069,
- 54.755501
- ],
- [
- -8.7826749,
- 55.0252208
- ],
- [
- -8.9402974,
- 55.0238221
- ],
- [
- -8.9451773,
- 55.2934155
- ],
- [
- -7.528039,
- 55.2970274
- ],
- [
- -7.525599,
- 55.3874955
- ],
- [
- -7.0541955,
- 55.3841691
- ],
- [
- -7.0556595,
- 55.2939712
- ],
- [
- -6.3241545,
- 55.2859128
- ],
- [
- -6.3217146,
- 55.3253556
- ],
- [
- -6.1035807,
- 55.3223016
- ],
- [
- -6.1045566,
- 55.2828557
- ],
- [
- -5.7985836,
- 55.2772968
- ],
- [
- -5.8117595,
- 55.0087135
- ],
- [
- -5.656577,
- 55.0056351
- ],
- [
- -5.6721928,
- 54.7355021
- ],
- [
- -5.3618278,
- 54.729585
- ],
- [
- -5.3964755,
- 54.1917889
- ],
- [
- -5.855679,
- 54.2017807
- ],
- [
- -5.9220464,
- 52.8524504
- ],
- [
- -6.070885,
- 52.8551025
- ],
- [
- -6.1030927,
- 52.1373337
- ],
- [
- -6.8331336,
- 52.1463183
- ],
- [
- -6.8355736,
- 52.0578908
- ],
- [
- -7.5641506,
- 52.0617913
- ],
- [
- -7.5661026,
- 51.7921593
- ],
- [
- -8.147305,
- 51.792763
- ],
- [
- -8.146329,
- 51.7033331
- ],
- [
- -8.2912636,
- 51.7027283
- ],
- [
- -8.2897996,
- 51.5227274
- ],
- [
- -9.1174397,
- 51.516958
- ],
- [
- -9.1179277,
- 51.4625685
- ],
- [
- -9.3692452,
- 51.4616564
- ],
- [
- -9.3672933,
- 51.4254613
- ]
- ]
- ],
- "terms_url": "http://geo.nls.uk/maps/",
- "terms_text": "National Library of Scotland Historic Maps",
- "id": "GSGS4136"
- },
- {
- "name": "Ireland EEA CORINE 2006",
- "type": "tms",
- "template": "http://a.tile.openstreetmap.ie/tiles/corine/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 5,
- 16
- ],
- "polygon": [
- [
- [
- -5.842956,
- 53.8627976
- ],
- [
- -5.8341575,
- 53.7633541
- ],
- [
- -5.6267647,
- 53.5383692
- ],
- [
- -5.9648778,
- 52.1631197
- ],
- [
- -6.0453211,
- 52.0527275
- ],
- [
- -6.1823261,
- 51.9699475
- ],
- [
- -6.3960035,
- 51.9234618
- ],
- [
- -6.5945978,
- 51.883911
- ],
- [
- -7.2481994,
- 51.9056295
- ],
- [
- -7.341212,
- 51.8148076
- ],
- [
- -8.1971787,
- 51.5037019
- ],
- [
- -8.3191005,
- 51.4167737
- ],
- [
- -9.4478202,
- 51.1991221
- ],
- [
- -9.9015706,
- 51.2266802
- ],
- [
- -10.472215,
- 51.4050139
- ],
- [
- -10.8857437,
- 51.6770619
- ],
- [
- -11.035318,
- 52.0620016
- ],
- [
- -10.9950963,
- 52.1831616
- ],
- [
- -10.8178697,
- 52.3139827
- ],
- [
- -9.8839736,
- 52.9032208
- ],
- [
- -10.1165049,
- 52.9676141
- ],
- [
- -10.5514014,
- 53.3317027
- ],
- [
- -10.6896633,
- 53.5854022
- ],
- [
- -10.6444139,
- 54.0100436
- ],
- [
- -10.5501445,
- 54.257482
- ],
- [
- -10.2824192,
- 54.4742405
- ],
- [
- -9.8073011,
- 54.5705346
- ],
- [
- -9.196435,
- 54.5486695
- ],
- [
- -9.2253443,
- 54.7000264
- ],
- [
- -8.8985435,
- 55.1363582
- ],
- [
- -8.0476045,
- 55.4711977
- ],
- [
- -7.4367384,
- 55.6191092
- ],
- [
- -7.2205471,
- 55.6205288
- ],
- [
- -6.8258723,
- 55.5608644
- ],
- [
- -6.0679458,
- 55.3727567
- ],
- [
- -5.5639184,
- 55.0759594
- ],
- [
- -5.0649187,
- 54.4640142
- ],
- [
- -5.2572284,
- 54.1582424
- ]
- ]
- ],
- "terms_url": "http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1",
- "terms_text": "EEA Corine 2006"
- },
- {
- "name": "Ireland EEA GMES Urban Atlas",
- "type": "tms",
- "template": "http://a.tile.openstreetmap.ie/tiles/urbanatlas/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 5,
- 17
- ],
- "polygon": [
- [
- [
- -9.2759602,
- 52.7993666
- ],
- [
- -9.215509,
- 52.8276933
- ],
- [
- -9.1086618,
- 52.9128016
- ],
- [
- -9.0196831,
- 52.8837107
- ],
- [
- -8.8760649,
- 52.8978445
- ],
- [
- -8.8001797,
- 52.8833558
- ],
- [
- -8.7665597,
- 52.9065354
- ],
- [
- -8.5938079,
- 52.9238592
- ],
- [
- -8.5241972,
- 52.8869724
- ],
- [
- -8.4956786,
- 52.9105906
- ],
- [
- -8.3506448,
- 52.9238592
- ],
- [
- -8.2718204,
- 52.9492401
- ],
- [
- -8.2249679,
- 52.8991338
- ],
- [
- -8.1564001,
- 52.9149986
- ],
- [
- -8.0881237,
- 52.7630417
- ],
- [
- -8.1360092,
- 52.7239783
- ],
- [
- -8.1570652,
- 52.6766443
- ],
- [
- -8.2059695,
- 52.6185385
- ],
- [
- -8.2025734,
- 52.5954396
- ],
- [
- -8.2231242,
- 52.5599691
- ],
- [
- -8.2236294,
- 52.5095371
- ],
- [
- -8.2976651,
- 52.5025088
- ],
- [
- -8.3295888,
- 52.4721087
- ],
- [
- -8.3589695,
- 52.4986072
- ],
- [
- -8.3737385,
- 52.4764529
- ],
- [
- -8.432326,
- 52.4342609
- ],
- [
- -8.4754569,
- 52.4216289
- ],
- [
- -8.5017727,
- 52.3870011
- ],
- [
- -8.5476205,
- 52.3681351
- ],
- [
- -8.6444103,
- 52.3376422
- ],
- [
- -8.6841451,
- 52.3660614
- ],
- [
- -8.8154099,
- 52.3721014
- ],
- [
- -8.8614233,
- 52.3521652
- ],
- [
- -8.9074451,
- 52.3824674
- ],
- [
- -8.9388551,
- 52.3789166
- ],
- [
- -8.9782502,
- 52.4093811
- ],
- [
- -9.0298715,
- 52.4104169
- ],
- [
- -9.1059449,
- 52.420981
- ],
- [
- -9.1084962,
- 52.4415071
- ],
- [
- -9.140702,
- 52.4650891
- ],
- [
- -9.1315765,
- 52.5136207
- ],
- [
- -9.1739699,
- 52.5620573
- ],
- [
- -9.1426235,
- 52.589645
- ],
- [
- -9.1542382,
- 52.610216
- ],
- [
- -9.1426231,
- 52.6387401
- ],
- [
- -9.1776844,
- 52.6447573
- ],
- [
- -9.2012184,
- 52.6526248
- ],
- [
- -9.2036198,
- 52.6686468
- ],
- [
- -9.2238348,
- 52.6706578
- ],
- [
- -9.2161072,
- 52.6919412
- ],
- [
- -9.1882395,
- 52.7057242
- ],
- [
- -9.2750099,
- 52.7350292
- ],
- [
- -9.2601152,
- 52.7616711
- ]
- ],
- [
- [
- -7.307313219981238,
- 53.81625879275365
- ],
- [
- -7.245858447032101,
- 53.78300449111207
- ],
- [
- -7.15144468970801,
- 53.81179938127503
- ],
- [
- -7.086900011973722,
- 53.784424420834
- ],
- [
- -7.0347149533800435,
- 53.77996162275688
- ],
- [
- -6.975320116954343,
- 53.788481098127924
- ],
- [
- -6.928628222423156,
- 53.81443454540607
- ],
- [
- -6.992829577403537,
- 53.86609081229548
- ],
- [
- -6.975320116954343,
- 53.87945028968944
- ],
- [
- -6.949914233165313,
- 53.87094929783329
- ],
- [
- -6.9375546140247035,
- 53.87540241385127
- ],
- [
- -6.936867968516893,
- 53.896649390754646
- ],
- [
- -6.897042529063821,
- 53.889770599553906
- ],
- [
- -6.867516772227924,
- 53.880259817835736
- ],
- [
- -6.851037280040446,
- 53.88450958346468
- ],
- [
- -6.842454211192801,
- 53.89786317755242
- ],
- [
- -6.812928454356904,
- 53.90069520963246
- ],
- [
- -6.79850889869286,
- 53.89280549994937
- ],
- [
- -6.789925829845217,
- 53.89462633440526
- ],
- [
- -6.791985766368652,
- 53.904538374710896
- ],
- [
- -6.778939501720231,
- 53.918087767078354
- ],
- [
- -6.77001311011868,
- 53.91505470292794
- ],
- [
- -6.75868345923979,
- 53.921727153244476
- ],
- [
- -6.744263903575747,
- 53.916065748791254
- ],
- [
- -6.727441088634364,
- 53.92334455637637
- ],
- [
- -6.713021532970319,
- 53.90777445003927
- ],
- [
- -6.684182421642232,
- 53.90292024303218
- ],
- [
- -6.623757616954815,
- 53.88187882710815
- ],
- [
- -6.590455309825955,
- 53.857789593974296
- ],
- [
- -6.591141955333765,
- 53.835509894663346
- ],
- [
- -6.574319140392382,
- 53.82254170362619
- ],
- [
- -6.571572558361136,
- 53.804703885117576
- ],
- [
- -6.5533764524041285,
- 53.79983770791046
- ],
- [
- -6.541360156017425,
- 53.78300449111207
- ],
- [
- -6.511491076427622,
- 53.76900546961285
- ],
- [
- -6.472695605236269,
- 53.77326653566421
- ],
- [
- -6.443513171154276,
- 53.76393220797015
- ],
- [
- -6.44728972144724,
- 53.75114486961979
- ],
- [
- -6.4775021237909485,
- 53.728199094666586
- ],
- [
- -6.459649340587848,
- 53.71682309412751
- ],
- [
- -6.435616747814443,
- 53.72230833571077
- ],
- [
- -6.4198239011347775,
- 53.72921465935537
- ],
- [
- -6.4009411496699595,
- 53.72169889975152
- ],
- [
- -6.375878588634836,
- 53.718042098526006
- ],
- [
- -6.359055773693453,
- 53.708695495259434
- ],
- [
- -6.340173022228636,
- 53.708085862042424
- ],
- [
- -6.329873339611461,
- 53.71296268045594
- ],
- [
- -6.325753466564592,
- 53.72210519137233
- ],
- [
- -6.2938244504513525,
- 53.72576163932632
- ],
- [
- -6.265328661877173,
- 53.7363229253304
- ],
- [
- -6.240952746349864,
- 53.734292114843086
- ],
- [
- -6.180871264416349,
- 53.632015710147016
- ],
- [
- -6.092793818322125,
- 53.588038288422446
- ],
- [
- -5.985734079608837,
- 53.49383447350347
- ],
- [
- -6.0887447432153685,
- 53.27174268379562
- ],
- [
- -6.033272979232964,
- 53.1191110041494
- ],
- [
- -5.984663357119282,
- 52.9651254915577
- ],
- [
- -6.122679104189409,
- 52.73207538466633
- ],
- [
- -6.185163845400262,
- 52.73706461957944
- ],
- [
- -6.1899703639549415,
- 52.76075568810044
- ],
- [
- -6.319059719423517,
- 52.782357357522855
- ],
- [
- -6.393904079774976,
- 52.7790347214105
- ],
- [
- -6.465315212587381,
- 52.6946379192593
- ],
- [
- -6.534666408876349,
- 52.673409093161446
- ],
- [
- -6.612257351259057,
- 52.69255711803012
- ],
- [
- -6.6692489284074155,
- 52.74745702505679
- ],
- [
- -6.671308864930852,
- 52.76948072949997
- ],
- [
- -6.720747341493285,
- 52.7748810695361
- ],
- [
- -6.71456753192298,
- 52.80311808637125
- ],
- [
- -6.658949245790243,
- 52.84709806982182
- ],
- [
- -6.582044948915348,
- 52.81349473557279
- ],
- [
- -6.547712673524768,
- 52.83133677935633
- ],
- [
- -6.531233181337292,
- 52.87404491274922
- ],
- [
- -6.617750515321548,
- 52.87528820923615
- ],
- [
- -6.728987087587023,
- 52.90635903963372
- ],
- [
- -6.780485500672891,
- 52.859122574848655
- ],
- [
- -6.870436062196207,
- 52.85165948109425
- ],
- [
- -6.938413967469552,
- 52.86658438536895
- ],
- [
- -6.965879787782016,
- 52.89766145203082
- ],
- [
- -6.987852444031986,
- 52.969260966642985
- ],
- [
- -7.039350857117853,
- 52.9560260536776
- ],
- [
- -7.109388698914634,
- 53.007288776633686
- ],
- [
- -7.068876613953752,
- 53.058078015357786
- ],
- [
- -7.088789333680287,
- 53.11869890949892
- ],
- [
- -7.119688381531809,
- 53.15000684568904
- ],
- [
- -7.105955471375577,
- 53.16112391039828
- ],
- [
- -7.127928127625547,
- 53.17223809655703
- ],
- [
- -7.180113186219227,
- 53.182526443342745
- ],
- [
- -7.160887112000503,
- 53.19898266621498
- ],
- [
- -7.057890285828767,
- 53.19898266621498
- ],
- [
- -7.048963894227218,
- 53.217077217179636
- ],
- [
- -7.0915359157115345,
- 53.235575105358386
- ],
- [
- -7.0434707301647235,
- 53.25735126035676
- ],
- [
- -7.05102383075065,
- 53.29717703664696
- ],
- [
- -6.996778835633536,
- 53.31112780504489
- ],
- [
- -7.044157375672535,
- 53.33368557548294
- ],
- [
- -7.105955471375576,
- 53.371801590024276
- ],
- [
- -7.22050647653913,
- 53.432465115081854
- ],
- [
- -7.149441429887032,
- 53.45731709817442
- ],
- [
- -7.099891489102085,
- 53.463915962572514
- ],
- [
- -7.0744645458045445,
- 53.48370640260363
- ],
- [
- -7.079028356140001,
- 53.504650927752664
- ],
- [
- -7.047733656696876,
- 53.515119311359335
- ],
- [
- -7.029478415355053,
- 53.54147267392419
- ],
- [
- -7.054253385747527,
- 53.56471202500164
- ],
- [
- -7.009267255298033,
- 53.58561652973758
- ],
- [
- -6.992641946218873,
- 53.602642188744426
- ],
- [
- -6.989056095241016,
- 53.62739453790707
- ],
- [
- -6.9717788132567895,
- 53.63686620586593
- ],
- [
- -6.9633031654909425,
- 53.650973114934644
- ],
- [
- -6.9871001765258205,
- 53.66623418009986
- ],
- [
- -6.999813648174589,
- 53.67086935885432
- ],
- [
- -7.008289295940436,
- 53.65908728051006
- ],
- [
- -7.044473792171549,
- 53.65367801032349
- ],
- [
- -7.066640870943764,
- 53.63918547390694
- ],
- [
- -7.101847407817279,
- 53.65870092708686
- ],
- [
- -7.120754622064167,
- 53.672993645380515
- ],
- [
- -7.137379931143327,
- 53.66893809633893
- ],
- [
- -7.160850955725672,
- 53.683034277255075
- ],
- [
- -7.174216400279507,
- 53.686316272406906
- ],
- [
- -7.196057492599188,
- 53.69017711570491
- ],
- [
- -7.210726882963154,
- 53.69480966037566
- ],
- [
- -7.247237365646801,
- 53.71661437518035
- ],
- [
- -7.239413690786019,
- 53.73223735177976
- ],
- [
- -7.260276823748104,
- 53.74361339729716
- ],
- [
- -7.2814659431627184,
- 53.75922634307083
- ],
- [
- -7.289615604476034,
- 53.77271433845693
- ],
- [
- -7.3238441819919515,
- 53.78465723043301
- ],
- [
- -7.337209626545788,
- 53.78658318504567
- ],
- [
- -7.351227044004687,
- 53.80141007448381
- ],
- [
- -7.307313219981238,
- 53.81625879275365
- ]
- ],
- [
- [
- -5.685433013282673,
- 54.77854496390836
- ],
- [
- -5.696867084279401,
- 54.73050346921268
- ],
- [
- -5.8223689524230124,
- 54.70033215177621
- ],
- [
- -5.878760568989772,
- 54.649492182564074
- ],
- [
- -5.743404719024681,
- 54.68128223623249
- ],
- [
- -5.581196917402638,
- 54.68781619319656
- ],
- [
- -5.571488953592992,
- 54.67074450064368
- ],
- [
- -5.582915011231644,
- 54.66440901595977
- ],
- [
- -5.58291501123164,
- 54.65085746679818
- ],
- [
- -5.6086481910584185,
- 54.63997082553691
- ],
- [
- -5.6354970593650116,
- 54.61551371292451
- ],
- [
- -5.728732824433139,
- 54.6184944610979
- ],
- [
- -5.822612969913913,
- 54.49193018941315
- ],
- [
- -5.896754545381575,
- 54.44975600798866
- ],
- [
- -5.936834914186871,
- 54.38213187386197
- ],
- [
- -6.0187561190025445,
- 54.36974944197913
- ],
- [
- -6.059257912638059,
- 54.38280030737259
- ],
- [
- -6.101784280694663,
- 54.41510088826871
- ],
- [
- -6.1740201072375225,
- 54.43476829635816
- ],
- [
- -6.216261364689026,
- 54.42827259213158
- ],
- [
- -6.264329002478664,
- 54.487825014814625
- ],
- [
- -6.249277519938476,
- 54.49741303545491
- ],
- [
- -6.288340515296785,
- 54.53143435197413
- ],
- [
- -6.283750270272458,
- 54.54447449434036
- ],
- [
- -6.321445027854273,
- 54.58928767713928
- ],
- [
- -6.264329002478664,
- 54.604982769755765
- ],
- [
- -6.240052417736423,
- 54.59541999854735
- ],
- [
- -6.098762694536575,
- 54.631690374598676
- ],
- [
- -6.051950538018501,
- 54.61314575326238
- ],
- [
- -6.031509408441251,
- 54.620921248201434
- ],
- [
- -6.002995140908084,
- 54.65571636730639
- ],
- [
- -6.0647754758974335,
- 54.6634355452454
- ],
- [
- -6.059920158948984,
- 54.704134188139534
- ],
- [
- -6.047781866577864,
- 54.71395188569398
- ],
- [
- -6.120611620804591,
- 54.801644524994515
- ],
- [
- -6.002141887262449,
- 54.80836072138932
- ],
- [
- -5.984662746248036,
- 54.78652900156178
- ],
- [
- -5.685433013282673,
- 54.77854496390836
- ]
- ],
- [
- [
- -9.128658300749114,
- 53.24759266864586
- ],
- [
- -9.024510568479629,
- 53.26744820137083
- ],
- [
- -9.016360907166316,
- 53.26364619217274
- ],
- [
- -9.001854510028616,
- 53.26588844362053
- ],
- [
- -8.9951717877517,
- 53.259258838409615
- ],
- [
- -8.973493688658284,
- 53.262378780650025
- ],
- [
- -8.95230456924367,
- 53.271444820907114
- ],
- [
- -8.956705386352859,
- 53.281580911863244
- ],
- [
- -8.961106203462048,
- 53.28119110665652
- ],
- [
- -8.960780217009516,
- 53.28908396911955
- ],
- [
- -8.954260487958864,
- 53.28927883616923
- ],
- [
- -8.95230456924367,
- 53.30155366854246
- ],
- [
- -8.963714095082308,
- 53.303793931840495
- ],
- [
- -8.9811543702928,
- 53.294734752711804
- ],
- [
- -8.985718180628256,
- 53.30174847871221
- ],
- [
- -9.019946758144176,
- 53.30768976199425
- ],
- [
- -9.00837423907927,
- 53.31596722087059
- ],
- [
- -9.01880580556031,
- 53.31625933715475
- ],
- [
- -9.045862681120513,
- 53.31275380979257
- ],
- [
- -9.06444390891487,
- 53.32122500810515
- ],
- [
- -9.080906224767762,
- 53.307397587062724
- ],
- [
- -9.08106921799403,
- 53.303404329274585
- ],
- [
- -9.09019683866494,
- 53.30574189135002
- ],
- [
- -9.095901601584261,
- 53.298826232852214
- ],
- [
- -9.10128037805105,
- 53.3008718259498
- ],
- [
- -9.115623781962478,
- 53.28450433758295
- ],
- [
- -9.121491538108067,
- 53.2832375443259
- ],
- [
- -9.13273807072044,
- 53.28557621023763
- ],
- [
- -9.144636576237877,
- 53.27865728614638
- ],
- [
- -9.13876882009229,
- 53.26345120822951
- ],
- [
- -9.128658300749114,
- 53.24759266864586
- ]
- ],
- [
- [
- -8.595266214281438,
- 51.69264788483154
- ],
- [
- -8.55819409885298,
- 51.69306638852667
- ],
- [
- -8.566697711835303,
- 51.682644706464686
- ],
- [
- -8.579130708100188,
- 51.67349700898941
- ],
- [
- -8.544554623426079,
- 51.66520531197343
- ],
- [
- -8.494765061495364,
- 51.667778759675976
- ],
- [
- -8.30113898732036,
- 51.7235009029955
- ],
- [
- -8.268406960495541,
- 51.784858633837544
- ],
- [
- -8.154536388302146,
- 51.7814362126791
- ],
- [
- -8.115350159004825,
- 51.809093351533164
- ],
- [
- -8.068326683848039,
- 51.870050153657075
- ],
- [
- -8.10059769621054,
- 51.89964422561186
- ],
- [
- -8.08123508879304,
- 51.918414974037226
- ],
- [
- -8.09183842142643,
- 51.95337589170907
- ],
- [
- -8.124570448251253,
- 51.95479649105758
- ],
- [
- -8.132407694110718,
- 51.970988142592034
- ],
- [
- -8.099675667285895,
- 51.978371865876596
- ],
- [
- -8.144394070131078,
- 52.02151390085561
- ],
- [
- -8.159607547387685,
- 52.064330945363764
- ],
- [
- -8.140705954432507,
- 52.07254939152303
- ],
- [
- -8.165600735397863,
- 52.09294727054506
- ],
- [
- -8.18726841512697,
- 52.0835993998731
- ],
- [
- -8.2093971093184,
- 52.10512489114057
- ],
- [
- -8.207092037006792,
- 52.12494181389489
- ],
- [
- -8.227837687811258,
- 52.143052434929714
- ],
- [
- -8.222766528725723,
- 52.16454923557058
- ],
- [
- -8.30298304516965,
- 52.1829264222872
- ],
- [
- -8.427456949996438,
- 52.17783811526099
- ],
- [
- -8.46710419375608,
- 52.169921813849676
- ],
- [
- -8.509978538751975,
- 52.18405707812542
- ],
- [
- -8.530263175094117,
- 52.16511480067495
- ],
- [
- -8.574981577939297,
- 52.18066502436804
- ],
- [
- -8.587889982884295,
- 52.16963906274442
- ],
- [
- -8.642289689438227,
- 52.18829678149147
- ],
- [
- -8.719279104645906,
- 52.15804472022032
- ],
- [
- -8.698533453841442,
- 52.13541291452849
- ],
- [
- -8.740946784375014,
- 52.10823956240069
- ],
- [
- -8.77460084012448,
- 52.05951253229793
- ],
- [
- -8.803183736788409,
- 52.03768144571248
- ],
- [
- -8.86818677597573,
- 52.03286015807593
- ],
- [
- -8.870491848287335,
- 52.01839317543363
- ],
- [
- -8.844214023935015,
- 51.991148511559096
- ],
- [
- -8.79811257770287,
- 51.964455373040394
- ],
- [
- -8.782899100446263,
- 51.931777239822054
- ],
- [
- -8.835915763613228,
- 51.9292188160068
- ],
- [
- -8.838681850387156,
- 51.90277322850554
- ],
- [
- -8.802261707863764,
- 51.89367006943167
- ],
- [
- -8.792580404155013,
- 51.85695425263326
- ],
- [
- -8.765841565340368,
- 51.82476769939557
- ],
- [
- -8.758926348405547,
- 51.80054140901511
- ],
- [
- -8.79811257770287,
- 51.78628456602828
- ],
- [
- -8.832227647914657,
- 51.79626482935233
- ],
- [
- -8.836837792537873,
- 51.77687258059678
- ],
- [
- -8.885705325543944,
- 51.746055989869106
- ],
- [
- -8.859888515653944,
- 51.72435763090916
- ],
- [
- -8.807332866949299,
- 51.71093369500414
- ],
- [
- -8.678248817499297,
- 51.693505197270746
- ],
- [
- -8.60540853245251,
- 51.67835695335278
- ],
- [
- -8.595266214281438,
- 51.69264788483154
- ]
- ],
- [
- [
- -7.138279151048154,
- 55.06131559970097
- ],
- [
- -7.117994514706011,
- 54.99631329558348
- ],
- [
- -7.070049010624583,
- 54.98784996056705
- ],
- [
- -7.076503213097081,
- 54.93332450204895
- ],
- [
- -7.025791622241725,
- 54.91159959910791
- ],
- [
- -7.007351043748867,
- 54.87872502112528
- ],
- [
- -7.024869593317081,
- 54.8511320998998
- ],
- [
- -6.990754523105296,
- 54.81661438893913
- ],
- [
- -7.051608432131725,
- 54.80598761598125
- ],
- [
- -7.115228427932084,
- 54.80651902101645
- ],
- [
- -7.170550163410654,
- 54.84847793920564
- ],
- [
- -7.199133060074584,
- 54.84316909395457
- ],
- [
- -7.222183783190655,
- 54.85803210052931
- ],
- [
- -7.2111194360949415,
- 54.862808332627324
- ],
- [
- -7.212041465019584,
- 54.882438010878076
- ],
- [
- -7.279349576518514,
- 54.880846771447125
- ],
- [
- -7.273817402970655,
- 54.91530955931841
- ],
- [
- -7.3033223285592275,
- 54.915839525718205
- ],
- [
- -7.363254208661015,
- 54.90894941815292
- ],
- [
- -7.385382902852443,
- 54.91636948513913
- ],
- [
- -7.391837105324943,
- 54.93438395336098
- ],
- [
- -7.429640291235302,
- 54.95291983389722
- ],
- [
- -7.420420001988872,
- 54.99208185118366
- ],
- [
- -7.410277683817801,
- 55.03437621938347
- ],
- [
- -7.3577220351131585,
- 55.057619110599035
- ],
- [
- -7.265519142648871,
- 55.07557028899173
- ],
- [
- -7.138279151048154,
- 55.06131559970097
- ]
- ],
- [
- [
- -7.190498776293322,
- 52.26144368927652
- ],
- [
- -7.156844720543858,
- 52.28443443581867
- ],
- [
- -7.132871968503143,
- 52.27343421670601
- ],
- [
- -7.113278853854483,
- 52.26779201951648
- ],
- [
- -7.098295883829036,
- 52.27230583471742
- ],
- [
- -7.089767116276089,
- 52.25509445009032
- ],
- [
- -7.07109603055207,
- 52.259186286149074
- ],
- [
- -7.033984366335195,
- 52.257352061495865
- ],
- [
- -7.027530163862696,
- 52.250720000975015
- ],
- [
- -7.034675888028678,
- 52.247756419376
- ],
- [
- -7.031218279561267,
- 52.24013487190721
- ],
- [
- -7.034214873566356,
- 52.23222966213934
- ],
- [
- -7.050580886978767,
- 52.2296884028405
- ],
- [
- -7.062567262999124,
- 52.21980434486687
- ],
- [
- -7.076858711331088,
- 52.216132562953725
- ],
- [
- -7.084926464421715,
- 52.22065163604718
- ],
- [
- -7.084465449959392,
- 52.22785295843095
- ],
- [
- -7.101292477834124,
- 52.221498911062525
- ],
- [
- -7.105211100763858,
- 52.21726237433474
- ],
- [
- -7.111665303236357,
- 52.21796849185403
- ],
- [
- -7.107977187537785,
- 52.21104805609072
- ],
- [
- -7.117773744862115,
- 52.20928246619701
- ],
- [
- -7.129760120882472,
- 52.21690931136535
- ],
- [
- -7.14497359813908,
- 52.21782726924826
- ],
- [
- -7.150505771686938,
- 52.22375823207553
- ],
- [
- -7.158112510315241,
- 52.22262858593765
- ],
- [
- -7.158804032008724,
- 52.22700580464912
- ],
- [
- -7.158573524777563,
- 52.23180612902503
- ],
- [
- -7.167563306792832,
- 52.23985256723076
- ],
- [
- -7.16733279956167,
- 52.244580933687786
- ],
- [
- -7.172519212262786,
- 52.24676851484933
- ],
- [
- -7.177590371348324,
- 52.25114335361416
- ],
- [
- -7.190498776293322,
- 52.26144368927652
- ]
- ]
- ],
- "terms_url": "http://www.eea.europa.eu/data-and-maps/data/urban-atlas",
- "terms_text": "EEA GMES Urban Atlas"
- },
- {
- "name": "Kanton Aargau 25cm (AGIS 2011)",
- "type": "tms",
- "template": "http://tiles.poole.ch/AGIS/OF2011/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 14,
- 19
- ],
- "polygon": [
- [
- [
- 7.7,
- 47.12
- ],
- [
- 7.7,
- 47.63
- ],
- [
- 8.5,
- 47.63
- ],
- [
- 8.5,
- 47.12
- ],
- [
- 7.7,
- 47.12
- ]
- ]
- ],
- "terms_text": "AGIS OF2011"
- },
- {
- "name": "Katastrálna mapa Slovenska (KaPor, 2010-04)",
- "type": "tms",
- "template": "http://www.freemap.sk/tms/kapor2/{zoom}/{x}/{y}.jpg",
- "polygon": [
- [
- [
- 19.83682,
- 49.25529
- ],
- [
- 19.80075,
- 49.42385
- ],
- [
- 19.60437,
- 49.48058
- ],
- [
- 19.49179,
- 49.63961
- ],
- [
- 19.21831,
- 49.52604
- ],
- [
- 19.16778,
- 49.42521
- ],
- [
- 19.00308,
- 49.42236
- ],
- [
- 18.97611,
- 49.5308
- ],
- [
- 18.54685,
- 49.51425
- ],
- [
- 18.31432,
- 49.33818
- ],
- [
- 18.15913,
- 49.2961
- ],
- [
- 18.05564,
- 49.11134
- ],
- [
- 17.56396,
- 48.84938
- ],
- [
- 17.17929,
- 48.88816
- ],
- [
- 17.058,
- 48.81105
- ],
- [
- 16.90426,
- 48.61947
- ],
- [
- 16.79685,
- 48.38561
- ],
- [
- 17.06762,
- 48.01116
- ],
- [
- 17.32787,
- 47.97749
- ],
- [
- 17.51699,
- 47.82535
- ],
- [
- 17.74776,
- 47.73093
- ],
- [
- 18.29515,
- 47.72075
- ],
- [
- 18.67959,
- 47.75541
- ],
- [
- 18.89755,
- 47.81203
- ],
- [
- 18.79463,
- 47.88245
- ],
- [
- 18.84318,
- 48.04046
- ],
- [
- 19.46212,
- 48.05333
- ],
- [
- 19.62064,
- 48.22938
- ],
- [
- 19.89585,
- 48.09387
- ],
- [
- 20.33766,
- 48.2643
- ],
- [
- 20.55395,
- 48.52358
- ],
- [
- 20.82335,
- 48.55714
- ],
- [
- 21.10271,
- 48.47096
- ],
- [
- 21.45863,
- 48.55513
- ],
- [
- 21.74536,
- 48.31435
- ],
- [
- 22.15293,
- 48.37179
- ],
- [
- 22.61255,
- 49.08914
- ],
- [
- 22.09997,
- 49.23814
- ],
- [
- 21.9686,
- 49.36363
- ],
- [
- 21.6244,
- 49.46989
- ],
- [
- 21.06873,
- 49.46402
- ],
- [
- 20.94336,
- 49.31088
- ],
- [
- 20.73052,
- 49.44006
- ],
- [
- 20.22804,
- 49.41714
- ],
- [
- 20.05234,
- 49.23052
- ],
- [
- 19.83682,
- 49.25529
- ]
- ]
- ],
- "terms_url": "http://wiki.freemap.sk/KatasterPortal",
- "terms_text": "Permisssion by UGKK"
- },
- {
- "name": "Katastrálna mapa Slovenska (KaPor, 2011-05)",
- "type": "tms",
- "template": "http://www.freemap.sk/tms/kapor2_201105/{zoom}/{x}/{y}.jpg",
- "polygon": [
- [
- [
- 19.83682,
- 49.25529
- ],
- [
- 19.80075,
- 49.42385
- ],
- [
- 19.60437,
- 49.48058
- ],
- [
- 19.49179,
- 49.63961
- ],
- [
- 19.21831,
- 49.52604
- ],
- [
- 19.16778,
- 49.42521
- ],
- [
- 19.00308,
- 49.42236
- ],
- [
- 18.97611,
- 49.5308
- ],
- [
- 18.54685,
- 49.51425
- ],
- [
- 18.31432,
- 49.33818
- ],
- [
- 18.15913,
- 49.2961
- ],
- [
- 18.05564,
- 49.11134
- ],
- [
- 17.56396,
- 48.84938
- ],
- [
- 17.17929,
- 48.88816
- ],
- [
- 17.058,
- 48.81105
- ],
- [
- 16.90426,
- 48.61947
- ],
- [
- 16.79685,
- 48.38561
- ],
- [
- 17.06762,
- 48.01116
- ],
- [
- 17.32787,
- 47.97749
- ],
- [
- 17.51699,
- 47.82535
- ],
- [
- 17.74776,
- 47.73093
- ],
- [
- 18.29515,
- 47.72075
- ],
- [
- 18.67959,
- 47.75541
- ],
- [
- 18.89755,
- 47.81203
- ],
- [
- 18.79463,
- 47.88245
- ],
- [
- 18.84318,
- 48.04046
- ],
- [
- 19.46212,
- 48.05333
- ],
- [
- 19.62064,
- 48.22938
- ],
- [
- 19.89585,
- 48.09387
- ],
- [
- 20.33766,
- 48.2643
- ],
- [
- 20.55395,
- 48.52358
- ],
- [
- 20.82335,
- 48.55714
- ],
- [
- 21.10271,
- 48.47096
- ],
- [
- 21.45863,
- 48.55513
- ],
- [
- 21.74536,
- 48.31435
- ],
- [
- 22.15293,
- 48.37179
- ],
- [
- 22.61255,
- 49.08914
- ],
- [
- 22.09997,
- 49.23814
- ],
- [
- 21.9686,
- 49.36363
- ],
- [
- 21.6244,
- 49.46989
- ],
- [
- 21.06873,
- 49.46402
- ],
- [
- 20.94336,
- 49.31088
- ],
- [
- 20.73052,
- 49.44006
- ],
- [
- 20.22804,
- 49.41714
- ],
- [
- 20.05234,
- 49.23052
- ],
- [
- 19.83682,
- 49.25529
- ]
- ]
- ],
- "terms_url": "http://wiki.freemap.sk/KatasterPortal",
- "terms_text": "Permisssion by UGKK"
- },
- {
- "name": "Kelowna 2012",
- "type": "tms",
- "description": "High quality aerial imagery taken for the City of Kelowna",
- "template": "http://{switch:a,b,c,d}.tile.paulnorman.ca/kelowna2012/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 9,
- 20
- ],
- "polygon": [
- [
- [
- -119.5867318,
- 49.7928087
- ],
- [
- -119.5465655,
- 49.7928097
- ],
- [
- -119.5465661,
- 49.8013837
- ],
- [
- -119.5343374,
- 49.8013841
- ],
- [
- -119.5343376,
- 49.8047321
- ],
- [
- -119.5296211,
- 49.8047322
- ],
- [
- -119.5296216,
- 49.8119555
- ],
- [
- -119.5104463,
- 49.811956
- ],
- [
- -119.5115683,
- 49.8744325
- ],
- [
- -119.5108946,
- 49.8744904
- ],
- [
- -119.5114111,
- 49.8843312
- ],
- [
- -119.5114115,
- 49.9221763
- ],
- [
- -119.49386,
- 49.9223477
- ],
- [
- -119.4940505,
- 49.9313031
- ],
- [
- -119.4803936,
- 49.9317529
- ],
- [
- -119.4804572,
- 49.9407474
- ],
- [
- -119.4666732,
- 49.9409927
- ],
- [
- -119.4692775,
- 49.9913717
- ],
- [
- -119.4551337,
- 49.9916078
- ],
- [
- -119.4556736,
- 50.0121242
- ],
- [
- -119.4416673,
- 50.0123895
- ],
- [
- -119.4417308,
- 50.0136345
- ],
- [
- -119.4221492,
- 50.0140377
- ],
- [
- -119.4221042,
- 50.0119306
- ],
- [
- -119.4121303,
- 50.012165
- ],
- [
- -119.4126082,
- 50.0216913
- ],
- [
- -119.4123387,
- 50.0216913
- ],
- [
- -119.4124772,
- 50.0250773
- ],
- [
- -119.4120917,
- 50.0250821
- ],
- [
- -119.4121954,
- 50.0270769
- ],
- [
- -119.4126083,
- 50.0270718
- ],
- [
- -119.4128328,
- 50.0321946
- ],
- [
- -119.3936313,
- 50.0326418
- ],
- [
- -119.393529,
- 50.0307781
- ],
- [
- -119.3795727,
- 50.0310116
- ],
- [
- -119.3795377,
- 50.0287584
- ],
- [
- -119.3735764,
- 50.0288621
- ],
- [
- -119.371544,
- 49.9793618
- ],
- [
- -119.3573506,
- 49.9793618
- ],
- [
- -119.3548353,
- 49.9256081
- ],
- [
- -119.3268079,
- 49.9257238
- ],
- [
- -119.3256573,
- 49.8804068
- ],
- [
- -119.3138893,
- 49.8806528
- ],
- [
- -119.3137097,
- 49.8771651
- ],
- [
- -119.3132156,
- 49.877223
- ],
- [
- -119.3131482,
- 49.8749652
- ],
- [
- -119.312452,
- 49.8749073
- ],
- [
- -119.3122275,
- 49.87236
- ],
- [
- -119.3117558,
- 49.872331
- ],
- [
- -119.3115986,
- 49.8696098
- ],
- [
- -119.3112169,
- 49.8694217
- ],
- [
- -119.3109199,
- 49.8632417
- ],
- [
- -119.3103721,
- 49.8632724
- ],
- [
- -119.3095139,
- 49.8512388
- ],
- [
- -119.3106368,
- 49.8512316
- ],
- [
- -119.3103859,
- 49.8462564
- ],
- [
- -119.3245344,
- 49.8459957
- ],
- [
- -119.3246018,
- 49.8450689
- ],
- [
- -119.3367018,
- 49.844875
- ],
- [
- -119.3367467,
- 49.8435136
- ],
- [
- -119.337937,
- 49.8434702
- ],
- [
- -119.3378023,
- 49.8382055
- ],
- [
- -119.3383637,
- 49.8381041
- ],
- [
- -119.3383749,
- 49.8351202
- ],
- [
- -119.3390936,
- 49.8351058
- ],
- [
- -119.3388016,
- 49.8321217
- ],
- [
- -119.3391497,
- 49.8320565
- ],
- [
- -119.3391722,
- 49.8293331
- ],
- [
- -119.3394641,
- 49.8293331
- ],
- [
- -119.3395879,
- 49.8267878
- ],
- [
- -119.3500053,
- 49.8265829
- ],
- [
- -119.3493701,
- 49.8180588
- ],
- [
- -119.4046964,
- 49.8163785
- ],
- [
- -119.4045694,
- 49.8099022
- ],
- [
- -119.4101592,
- 49.8099022
- ],
- [
- -119.4102862,
- 49.8072787
- ],
- [
- -119.4319467,
- 49.8069098
- ],
- [
- -119.4322643,
- 49.7907965
- ],
- [
- -119.4459847,
- 49.7905504
- ],
- [
- -119.445286,
- 49.7820201
- ],
- [
- -119.4967376,
- 49.7811587
- ],
- [
- -119.4966105,
- 49.7784927
- ],
- [
- -119.5418371,
- 49.7775082
- ],
- [
- -119.5415892,
- 49.7718277
- ],
- [
- -119.5560296,
- 49.7714941
- ],
- [
- -119.5561194,
- 49.7718422
- ],
- [
- -119.5715704,
- 49.7715086
- ],
- [
- -119.5716153,
- 49.7717262
- ],
- [
- -119.5819235,
- 49.7714941
- ],
- [
- -119.5820133,
- 49.7717697
- ],
- [
- -119.5922991,
- 49.7715231
- ],
- [
- -119.592344,
- 49.7718132
- ],
- [
- -119.6003839,
- 49.7715957
- ],
- [
- -119.6011924,
- 49.7839081
- ],
- [
- -119.5864365,
- 49.7843863
- ]
- ]
- ],
- "id": "kelowna_2012",
- "default": true
- },
- {
- "name": "Kelowna Roads overlay",
- "type": "tms",
- "template": "http://{switch:a,b,c,d}.tile.paulnorman.ca/kelowna_overlay/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 9,
- 20
- ],
- "polygon": [
- [
- [
- -119.5867318,
- 49.7928087
- ],
- [
- -119.5465655,
- 49.7928097
- ],
- [
- -119.5465661,
- 49.8013837
- ],
- [
- -119.5343374,
- 49.8013841
- ],
- [
- -119.5343376,
- 49.8047321
- ],
- [
- -119.5296211,
- 49.8047322
- ],
- [
- -119.5296216,
- 49.8119555
- ],
- [
- -119.5104463,
- 49.811956
- ],
- [
- -119.5115683,
- 49.8744325
- ],
- [
- -119.5108946,
- 49.8744904
- ],
- [
- -119.5114111,
- 49.8843312
- ],
- [
- -119.5114115,
- 49.9221763
- ],
- [
- -119.49386,
- 49.9223477
- ],
- [
- -119.4940505,
- 49.9313031
- ],
- [
- -119.4803936,
- 49.9317529
- ],
- [
- -119.4804572,
- 49.9407474
- ],
- [
- -119.4666732,
- 49.9409927
- ],
- [
- -119.4692775,
- 49.9913717
- ],
- [
- -119.4551337,
- 49.9916078
- ],
- [
- -119.4556736,
- 50.0121242
- ],
- [
- -119.4416673,
- 50.0123895
- ],
- [
- -119.4417308,
- 50.0136345
- ],
- [
- -119.4221492,
- 50.0140377
- ],
- [
- -119.4221042,
- 50.0119306
- ],
- [
- -119.4121303,
- 50.012165
- ],
- [
- -119.4126082,
- 50.0216913
- ],
- [
- -119.4123387,
- 50.0216913
- ],
- [
- -119.4124772,
- 50.0250773
- ],
- [
- -119.4120917,
- 50.0250821
- ],
- [
- -119.4121954,
- 50.0270769
- ],
- [
- -119.4126083,
- 50.0270718
- ],
- [
- -119.4128328,
- 50.0321946
- ],
- [
- -119.3936313,
- 50.0326418
- ],
- [
- -119.393529,
- 50.0307781
- ],
- [
- -119.3795727,
- 50.0310116
- ],
- [
- -119.3795377,
- 50.0287584
- ],
- [
- -119.3735764,
- 50.0288621
- ],
- [
- -119.371544,
- 49.9793618
- ],
- [
- -119.3573506,
- 49.9793618
- ],
- [
- -119.3548353,
- 49.9256081
- ],
- [
- -119.3268079,
- 49.9257238
- ],
- [
- -119.3256573,
- 49.8804068
- ],
- [
- -119.3138893,
- 49.8806528
- ],
- [
- -119.3137097,
- 49.8771651
- ],
- [
- -119.3132156,
- 49.877223
- ],
- [
- -119.3131482,
- 49.8749652
- ],
- [
- -119.312452,
- 49.8749073
- ],
- [
- -119.3122275,
- 49.87236
- ],
- [
- -119.3117558,
- 49.872331
- ],
- [
- -119.3115986,
- 49.8696098
- ],
- [
- -119.3112169,
- 49.8694217
- ],
- [
- -119.3109199,
- 49.8632417
- ],
- [
- -119.3103721,
- 49.8632724
- ],
- [
- -119.3095139,
- 49.8512388
- ],
- [
- -119.3106368,
- 49.8512316
- ],
- [
- -119.3103859,
- 49.8462564
- ],
- [
- -119.3245344,
- 49.8459957
- ],
- [
- -119.3246018,
- 49.8450689
- ],
- [
- -119.3367018,
- 49.844875
- ],
- [
- -119.3367467,
- 49.8435136
- ],
- [
- -119.337937,
- 49.8434702
- ],
- [
- -119.3378023,
- 49.8382055
- ],
- [
- -119.3383637,
- 49.8381041
- ],
- [
- -119.3383749,
- 49.8351202
- ],
- [
- -119.3390936,
- 49.8351058
- ],
- [
- -119.3388016,
- 49.8321217
- ],
- [
- -119.3391497,
- 49.8320565
- ],
- [
- -119.3391722,
- 49.8293331
- ],
- [
- -119.3394641,
- 49.8293331
- ],
- [
- -119.3395879,
- 49.8267878
- ],
- [
- -119.3500053,
- 49.8265829
- ],
- [
- -119.3493701,
- 49.8180588
- ],
- [
- -119.4046964,
- 49.8163785
- ],
- [
- -119.4045694,
- 49.8099022
- ],
- [
- -119.4101592,
- 49.8099022
- ],
- [
- -119.4102862,
- 49.8072787
- ],
- [
- -119.4319467,
- 49.8069098
- ],
- [
- -119.4322643,
- 49.7907965
- ],
- [
- -119.4459847,
- 49.7905504
- ],
- [
- -119.445286,
- 49.7820201
- ],
- [
- -119.4967376,
- 49.7811587
- ],
- [
- -119.4966105,
- 49.7784927
- ],
- [
- -119.5418371,
- 49.7775082
- ],
- [
- -119.5415892,
- 49.7718277
- ],
- [
- -119.5560296,
- 49.7714941
- ],
- [
- -119.5561194,
- 49.7718422
- ],
- [
- -119.5715704,
- 49.7715086
- ],
- [
- -119.5716153,
- 49.7717262
- ],
- [
- -119.5819235,
- 49.7714941
- ],
- [
- -119.5820133,
- 49.7717697
- ],
- [
- -119.5922991,
- 49.7715231
- ],
- [
- -119.592344,
- 49.7718132
- ],
- [
- -119.6003839,
- 49.7715957
- ],
- [
- -119.6011924,
- 49.7839081
- ],
- [
- -119.5864365,
- 49.7843863
- ]
- ]
- ],
- "id": "kelowna_roads",
- "overlay": true
- },
- {
- "name": "Landsat 233055",
- "type": "tms",
- "description": "Recent Landsat imagery",
- "template": "http://{switch:a,b,c,d}.tile.paulnorman.ca/landsat_233055/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 5,
- 14
- ],
- "polygon": [
- [
- [
- -60.8550011,
- 6.1765004
- ],
- [
- -60.4762612,
- 7.9188291
- ],
- [
- -62.161689,
- 8.2778675
- ],
- [
- -62.5322549,
- 6.5375488
- ]
- ]
- ],
- "id": "landsat_233055"
- },
- {
- "name": "Latest southwest British Columbia Landsat",
- "type": "tms",
- "description": "Recent lower-resolution landwsat imagery for southwest British Columbia",
- "template": "http://{switch:a,b,c,d}.tile.paulnorman.ca/landsat_047026/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 5,
- 13
- ],
- "polygon": [
- [
- [
- -121.9355512,
- 47.7820648
- ],
- [
- -121.5720582,
- 48.6410125
- ],
- [
- -121.2015461,
- 49.4846247
- ],
- [
- -121.8375516,
- 49.6023246
- ],
- [
- -122.4767046,
- 49.7161735
- ],
- [
- -123.118912,
- 49.8268824
- ],
- [
- -123.760228,
- 49.9335836
- ],
- [
- -124.0887706,
- 49.0870469
- ],
- [
- -124.4128889,
- 48.2252567
- ],
- [
- -123.792772,
- 48.1197334
- ],
- [
- -123.1727942,
- 48.0109592
- ],
- [
- -122.553553,
- 47.8982299
- ]
- ]
- ],
- "id": "landsat_047026"
- },
- {
- "name": "Lithuania - NŽT ORT10LT",
- "type": "tms",
- "template": "http://mapproxy.openmap.lt/ort10lt/g/{z}/{x}/{y}.jpeg",
- "scaleExtent": [
- 4,
- 18
- ],
- "polygon": [
- [
- [
- 21.4926054,
- 56.3592046
- ],
- [
- 21.8134688,
- 56.4097144
- ],
- [
- 21.9728753,
- 56.4567587
- ],
- [
- 22.2158294,
- 56.4604404
- ],
- [
- 22.2183922,
- 56.4162361
- ],
- [
- 23.3511527,
- 56.4267251
- ],
- [
- 23.3521778,
- 56.3824815
- ],
- [
- 23.9179035,
- 56.383305
- ],
- [
- 23.9176231,
- 56.3392908
- ],
- [
- 24.5649817,
- 56.3382169
- ],
- [
- 24.564933,
- 56.3828587
- ],
- [
- 24.6475683,
- 56.4277798
- ],
- [
- 24.8099394,
- 56.470646
- ],
- [
- 24.9733979,
- 56.4698452
- ],
- [
- 25.1299701,
- 56.2890356
- ],
- [
- 25.127433,
- 56.1990144
- ],
- [
- 25.6921076,
- 56.1933684
- ],
- [
- 26.0839005,
- 56.0067879
- ],
- [
- 26.4673573,
- 55.7304232
- ],
- [
- 26.5463565,
- 55.7132705
- ],
- [
- 26.5154447,
- 55.2345969
- ],
- [
- 25.7874641,
- 54.8425656
- ],
- [
- 25.7675259,
- 54.6350898
- ],
- [
- 25.6165253,
- 54.4404007
- ],
- [
- 24.4566043,
- 53.9577649
- ],
- [
- 23.6164786,
- 53.9575517
- ],
- [
- 23.5632006,
- 54.048085
- ],
- [
- 22.8462074,
- 54.3563682
- ],
- [
- 22.831944,
- 54.9414849
- ],
- [
- 22.4306085,
- 55.1159913
- ],
- [
- 21.9605898,
- 55.1107144
- ],
- [
- 21.7253241,
- 55.1496885
- ],
- [
- 21.5628422,
- 55.2362913
- ],
- [
- 21.2209638,
- 55.2742668
- ],
- [
- 21.1630444,
- 55.2803979
- ],
- [
- 20.9277788,
- 55.3101641
- ],
- [
- 20.9257285,
- 55.3588507
- ],
- [
- 20.9980451,
- 55.4514157
- ],
- [
- 21.0282249,
- 56.0796297
- ]
- ]
- ],
- "terms_url": "http://www.geoportal.lt",
- "terms_text": "NŽT ORT10LT"
- },
- {
- "name": "Locator Overlay",
- "type": "tms",
- "description": "Shows major features to help orient you.",
- "template": "http://{switch:a,b,c}.tiles.mapbox.com/v4/openstreetmap.map-inh76ba2/{zoom}/{x}/{y}.png?access_token=pk.eyJ1Ijoib3BlbnN0cmVldG1hcCIsImEiOiJhNVlHd29ZIn0.ti6wATGDWOmCnCYen-Ip7Q",
- "scaleExtent": [
- 0,
- 16
- ],
- "terms_url": "http://www.mapbox.com/about/maps/",
- "terms_text": "Terms & Feedback",
- "default": true,
- "overlay": true
- },
- {
- "name": "MapQuest Open Aerial",
- "type": "tms",
- "template": "http://oatile{switch:1,2,3,4}.mqcdn.com/tiles/1.0.0/sat/{zoom}/{x}/{y}.png",
- "default": true
- },
- {
- "name": "Mapbox Satellite",
- "type": "tms",
- "description": "Satellite and aerial imagery.",
- "template": "http://{switch:a,b,c}.tiles.mapbox.com/v4/openstreetmap.map-inh7ifmo/{zoom}/{x}/{y}.png?access_token=pk.eyJ1Ijoib3BlbnN0cmVldG1hcCIsImEiOiJhNVlHd29ZIn0.ti6wATGDWOmCnCYen-Ip7Q",
- "scaleExtent": [
- 0,
- 19
- ],
- "terms_url": "http://www.mapbox.com/about/maps/",
- "terms_text": "Terms & Feedback",
- "id": "Mapbox",
- "default": true
- },
- {
- "name": "NLS - Bartholomew Half Inch, 1897-1907",
- "type": "tms",
- "template": "http://geo.nls.uk/mapdata2/bartholomew/great_britain/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 0,
- 15
- ],
- "polygon": [
- [
- [
- -9,
- 49.8
- ],
- [
- -9,
- 61.1
- ],
- [
- 1.9,
- 61.1
- ],
- [
- 1.9,
- 49.8
- ],
- [
- -9,
- 49.8
- ]
- ]
- ],
- "terms_url": "http://geo.nls.uk/maps/",
- "terms_text": "National Library of Scotland Historic Maps"
- },
- {
- "name": "NLS - OS 1-inch 7th Series 1955-61",
- "type": "tms",
- "template": "http://geo.nls.uk/mapdata2/os/seventh/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 5,
- 16
- ],
- "polygon": [
- [
- [
- -6.4585407,
- 49.9044128
- ],
- [
- -6.3872009,
- 49.9841116
- ],
- [
- -6.2296827,
- 49.9896159
- ],
- [
- -6.2171269,
- 49.8680087
- ],
- [
- -6.4551164,
- 49.8591793
- ]
- ],
- [
- [
- -1.4495137,
- 60.8634056
- ],
- [
- -0.7167114,
- 60.8545122
- ],
- [
- -0.7349744,
- 60.4359756
- ],
- [
- -0.6938826,
- 60.4168218
- ],
- [
- -0.7258429,
- 60.3942735
- ],
- [
- -0.7395401,
- 60.0484714
- ],
- [
- -0.9267357,
- 60.0461918
- ],
- [
- -0.9381501,
- 59.8266157
- ],
- [
- -1.4586452,
- 59.831205
- ],
- [
- -1.4455187,
- 60.0535999
- ],
- [
- -1.463211,
- 60.0535999
- ],
- [
- -1.4643524,
- 60.0630002
- ],
- [
- -1.5716475,
- 60.0638546
- ],
- [
- -1.5693646,
- 60.1790005
- ],
- [
- -1.643558,
- 60.1807033
- ],
- [
- -1.643558,
- 60.1892162
- ],
- [
- -1.8216221,
- 60.1894999
- ],
- [
- -1.8204807,
- 60.3615507
- ],
- [
- -1.8415973,
- 60.3697345
- ],
- [
- -1.8216221,
- 60.3832755
- ],
- [
- -1.8179852,
- 60.5934321
- ],
- [
- -1.453168,
- 60.5934321
- ]
- ],
- [
- [
- -4.9089213,
- 54.4242078
- ],
- [
- -4.282598,
- 54.4429861
- ],
- [
- -4.2535417,
- 54.029769
- ],
- [
- -4.8766366,
- 54.0221831
- ]
- ],
- [
- [
- -5.8667408,
- 59.1444603
- ],
- [
- -5.7759966,
- 59.1470945
- ],
- [
- -5.7720016,
- 59.1014052
- ],
- [
- -5.8621751,
- 59.0990605
- ]
- ],
- [
- [
- -1.7065887,
- 59.5703599
- ],
- [
- -1.5579165,
- 59.5693481
- ],
- [
- -1.5564897,
- 59.4965695
- ],
- [
- -1.7054472,
- 59.4975834
- ]
- ],
- [
- [
- -7.6865827,
- 58.2940975
- ],
- [
- -7.5330594,
- 58.3006957
- ],
- [
- -7.5256401,
- 58.2646905
- ],
- [
- -7.6797341,
- 58.2577853
- ]
- ],
- [
- [
- -4.5338281,
- 59.0359871
- ],
- [
- -4.481322,
- 59.0371616
- ],
- [
- -4.4796099,
- 59.0186583
- ],
- [
- -4.5332574,
- 59.0180707
- ]
- ],
- [
- [
- -8.6710698,
- 57.8769896
- ],
- [
- -8.4673234,
- 57.8897332
- ],
- [
- -8.4467775,
- 57.7907
- ],
- [
- -8.6510947,
- 57.7779213
- ]
- ],
- [
- [
- -5.2395519,
- 50.3530581
- ],
- [
- -5.7920073,
- 50.3384899
- ],
- [
- -5.760047,
- 49.9317027
- ],
- [
- -4.6551363,
- 49.9581461
- ],
- [
- -4.677965,
- 50.2860073
- ],
- [
- -4.244219,
- 50.2801723
- ],
- [
- -4.2487848,
- 50.2042525
- ],
- [
- -3.3812929,
- 50.2042525
- ],
- [
- -3.4223846,
- 50.5188201
- ],
- [
- -3.1164796,
- 50.5246258
- ],
- [
- -3.1210453,
- 50.6579592
- ],
- [
- -2.6736357,
- 50.6619495
- ],
- [
- -2.5953453,
- 50.6394325
- ],
- [
- -2.5905026,
- 50.5728419
- ],
- [
- -2.4791203,
- 50.5733545
- ],
- [
- -2.4758919,
- 50.5066704
- ],
- [
- -2.3967943,
- 50.5056438
- ],
- [
- -2.401637,
- 50.5723293
- ],
- [
- -1.0400296,
- 50.5718167
- ],
- [
- -1.0335726,
- 50.7059289
- ],
- [
- -0.549302,
- 50.7038843
- ],
- [
- -0.5460736,
- 50.7886618
- ],
- [
- -0.0924734,
- 50.7856002
- ],
- [
- -0.0876307,
- 50.7181949
- ],
- [
- 0.4789659,
- 50.7120623
- ],
- [
- 0.487037,
- 50.8182467
- ],
- [
- 0.9761503,
- 50.8049868
- ],
- [
- 0.9922927,
- 51.0126311
- ],
- [
- 1.4491213,
- 51.0004424
- ],
- [
- 1.4781775,
- 51.4090372
- ],
- [
- 1.0229632,
- 51.4271576
- ],
- [
- 1.035877,
- 51.7640881
- ],
- [
- 1.6105448,
- 51.7500992
- ],
- [
- 1.646058,
- 52.1560003
- ],
- [
- 1.7267698,
- 52.1540195
- ],
- [
- 1.749369,
- 52.4481811
- ],
- [
- 1.7870672,
- 52.4811624
- ],
- [
- 1.759102,
- 52.522505
- ],
- [
- 1.7933451,
- 52.9602749
- ],
- [
- 0.3798147,
- 52.9958468
- ],
- [
- 0.3895238,
- 53.2511239
- ],
- [
- 0.3478614,
- 53.2511239
- ],
- [
- 0.3238912,
- 53.282186
- ],
- [
- 0.3461492,
- 53.6538501
- ],
- [
- 0.128487,
- 53.6575466
- ],
- [
- 0.116582,
- 53.6674703
- ],
- [
- 0.1350586,
- 54.0655731
- ],
- [
- -0.0609831,
- 54.065908
- ],
- [
- -0.0414249,
- 54.4709448
- ],
- [
- -0.5662701,
- 54.4771794
- ],
- [
- -0.5592078,
- 54.6565127
- ],
- [
- -1.1665638,
- 54.6623485
- ],
- [
- -1.1637389,
- 54.842611
- ],
- [
- -1.3316194,
- 54.843909
- ],
- [
- -1.3257065,
- 55.2470842
- ],
- [
- -1.529453,
- 55.2487108
- ],
- [
- -1.524178,
- 55.6540122
- ],
- [
- -1.7638798,
- 55.6540122
- ],
- [
- -1.7733693,
- 55.9719116
- ],
- [
- -2.1607858,
- 55.9682981
- ],
- [
- -2.1543289,
- 56.0621387
- ],
- [
- -2.4578051,
- 56.0585337
- ],
- [
- -2.4190635,
- 56.641717
- ],
- [
- -2.0962164,
- 56.641717
- ],
- [
- -2.0833025,
- 57.0021322
- ],
- [
- -1.9283359,
- 57.0126802
- ],
- [
- -1.9180966,
- 57.3590895
- ],
- [
- -1.7502161,
- 57.3625721
- ],
- [
- -1.7695869,
- 57.7608634
- ],
- [
- -3.6937554,
- 57.7574187
- ],
- [
- -3.7066693,
- 57.9806386
- ],
- [
- -3.5969013,
- 57.9772149
- ],
- [
- -3.6033582,
- 58.1207277
- ],
- [
- -3.0222335,
- 58.1309566
- ],
- [
- -3.0286905,
- 58.5410788
- ],
- [
- -2.8478961,
- 58.530968
- ],
- [
- -2.86081,
- 58.8430508
- ],
- [
- -2.679624,
- 58.8414991
- ],
- [
- -2.6841897,
- 58.885175
- ],
- [
- -2.6339665,
- 58.9052239
- ],
- [
- -2.679624,
- 58.9335083
- ],
- [
- -2.6887555,
- 59.0229231
- ],
- [
- -2.3668703,
- 59.0229231
- ],
- [
- -2.3702946,
- 59.2652861
- ],
- [
- -2.3429001,
- 59.2821989
- ],
- [
- -2.3714361,
- 59.2996861
- ],
- [
- -2.3737189,
- 59.3707083
- ],
- [
- -2.3429001,
- 59.385825
- ],
- [
- -2.3725775,
- 59.400354
- ],
- [
- -2.3714361,
- 59.4259098
- ],
- [
- -3.0734196,
- 59.4230067
- ],
- [
- -3.0711368,
- 59.3433649
- ],
- [
- -3.103097,
- 59.3311405
- ],
- [
- -3.0745611,
- 59.3136695
- ],
- [
- -3.0722782,
- 59.232603
- ],
- [
- -3.3850319,
- 59.1484167
- ],
- [
- -3.3747589,
- 58.9352753
- ],
- [
- -3.5653789,
- 58.9323303
- ],
- [
- -3.554829,
- 58.69759
- ],
- [
- -5.2808579,
- 58.6667732
- ],
- [
- -5.2534159,
- 58.3514125
- ],
- [
- -5.5068508,
- 58.3437887
- ],
- [
- -5.4761804,
- 58.0323557
- ],
- [
- -5.8974958,
- 58.0212436
- ],
- [
- -5.8522972,
- 57.6171758
- ],
- [
- -6.1396311,
- 57.6137174
- ],
- [
- -6.1541592,
- 57.7423183
- ],
- [
- -6.2913692,
- 57.7380102
- ],
- [
- -6.3365678,
- 58.1398784
- ],
- [
- -6.1121891,
- 58.1466944
- ],
- [
- -6.1473778,
- 58.5106285
- ],
- [
- -6.2934817,
- 58.5416182
- ],
- [
- -6.8413713,
- 58.2977321
- ],
- [
- -7.0057382,
- 58.2929331
- ],
- [
- -7.1016189,
- 58.2064403
- ],
- [
- -7.2573132,
- 58.1793148
- ],
- [
- -7.2531092,
- 58.1004928
- ],
- [
- -7.4070698,
- 58.0905566
- ],
- [
- -7.391347,
- 57.7911354
- ],
- [
- -7.790991,
- 57.7733151
- ],
- [
- -7.7624215,
- 57.5444165
- ],
- [
- -7.698501,
- 57.1453194
- ],
- [
- -7.7943817,
- 57.1304547
- ],
- [
- -7.716764,
- 56.7368628
- ],
- [
- -7.0122067,
- 56.7654359
- ],
- [
- -6.979922,
- 56.5453858
- ],
- [
- -7.0638622,
- 56.5453858
- ],
- [
- -7.0444914,
- 56.3562587
- ],
- [
- -6.500676,
- 56.3812917
- ],
- [
- -6.4491433,
- 55.9793649
- ],
- [
- -6.563287,
- 55.9691456
- ],
- [
- -6.5393742,
- 55.7030135
- ],
- [
- -6.5595521,
- 55.6907321
- ],
- [
- -6.5345315,
- 55.6761713
- ],
- [
- -6.5216176,
- 55.5704434
- ],
- [
- -5.8912587,
- 55.5923416
- ],
- [
- -5.8560127,
- 55.2320733
- ],
- [
- -5.2293639,
- 55.2515958
- ],
- [
- -5.1837064,
- 54.6254139
- ],
- [
- -3.6655956,
- 54.6518373
- ],
- [
- -3.6496155,
- 54.4320023
- ],
- [
- -3.5400375,
- 54.4306744
- ],
- [
- -3.530906,
- 54.0290181
- ],
- [
- -3.0697656,
- 54.030359
- ],
- [
- -3.0675737,
- 53.8221388
- ],
- [
- -3.0804876,
- 53.7739911
- ],
- [
- -3.0619239,
- 53.7477488
- ],
- [
- -3.0611168,
- 53.6737049
- ],
- [
- -3.2144691,
- 53.6708361
- ],
- [
- -3.2057699,
- 53.4226163
- ],
- [
- -3.2799632,
- 53.355224
- ],
- [
- -3.2896655,
- 53.3608441
- ],
- [
- -3.3327547,
- 53.364931
- ],
- [
- -3.3761293,
- 53.3540318
- ],
- [
- -4.0888976,
- 53.3433102
- ],
- [
- -4.0945474,
- 53.4612036
- ],
- [
- -4.697412,
- 53.4448624
- ],
- [
- -4.6882805,
- 53.3318598
- ],
- [
- -4.7202407,
- 53.2895771
- ],
- [
- -4.6837148,
- 53.2486184
- ],
- [
- -4.6768661,
- 53.1542644
- ],
- [
- -4.8480816,
- 53.1446807
- ],
- [
- -4.8178336,
- 52.7440299
- ],
- [
- -4.2545751,
- 52.7558939
- ],
- [
- -4.228876,
- 52.254876
- ],
- [
- -4.2607571,
- 52.2536408
- ],
- [
- -4.2724603,
- 52.2432637
- ],
- [
- -4.8136263,
- 52.230095
- ],
- [
- -4.8079191,
- 52.1138892
- ],
- [
- -5.3889104,
- 52.0991668
- ],
- [
- -5.3717888,
- 51.9129667
- ],
- [
- -5.4208706,
- 51.9101502
- ],
- [
- -5.414022,
- 51.8453218
- ],
- [
- -5.3683645,
- 51.8474373
- ],
- [
- -5.3466772,
- 51.5595332
- ],
- [
- -4.773676,
- 51.5758518
- ],
- [
- -4.7656859,
- 51.4885146
- ],
- [
- -4.1915432,
- 51.4970427
- ],
- [
- -4.1869775,
- 51.4344663
- ],
- [
- -3.6151177,
- 51.4444274
- ],
- [
- -3.6105519,
- 51.3746543
- ],
- [
- -3.1494115,
- 51.3789292
- ],
- [
- -3.1494115,
- 51.2919281
- ],
- [
- -4.3038735,
- 51.2745907
- ],
- [
- -4.2861169,
- 51.0508721
- ],
- [
- -4.8543277,
- 51.0366633
- ],
- [
- -4.8372201,
- 50.7212787
- ],
- [
- -5.2618345,
- 50.7082694
- ]
- ],
- [
- [
- -2.1502671,
- 60.171318
- ],
- [
- -2.0030218,
- 60.1696146
- ],
- [
- -2.0013096,
- 60.0997023
- ],
- [
- -2.148555,
- 60.1011247
- ]
- ],
- [
- [
- -6.2086011,
- 59.1163488
- ],
- [
- -6.1229934,
- 59.1166418
- ],
- [
- -6.121852,
- 59.0714985
- ],
- [
- -6.2097426,
- 59.0714985
- ]
- ],
- [
- [
- -4.4159559,
- 59.0889036
- ],
- [
- -4.4212022,
- 59.0770848
- ],
- [
- -4.3971904,
- 59.0779143
- ],
- [
- -4.3913388,
- 59.0897328
- ]
- ]
- ],
- "terms_url": "http://geo.nls.uk/maps/",
- "terms_text": "National Library of Scotland Historic Maps"
- },
- {
- "name": "NLS - OS 1:25k 1st Series 1937-61",
- "type": "tms",
- "template": "http://geo.nls.uk/mapdata2/os/25000/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 5,
- 16
- ],
- "polygon": [
- [
- [
- -4.7157244,
- 54.6796556
- ],
- [
- -4.6850662,
- 54.6800268
- ],
- [
- -4.6835779,
- 54.6623245
- ],
- [
- -4.7148782,
- 54.6615818
- ]
- ],
- [
- [
- -3.7085748,
- 58.3371151
- ],
- [
- -3.5405937,
- 58.3380684
- ],
- [
- -3.5315137,
- 58.1608002
- ],
- [
- -3.3608086,
- 58.1622372
- ],
- [
- -3.3653486,
- 58.252173
- ],
- [
- -3.1610473,
- 58.2536063
- ],
- [
- -3.1610473,
- 58.3261509
- ],
- [
- -3.0275704,
- 58.3271045
- ],
- [
- -3.0366505,
- 58.6139001
- ],
- [
- -3.0021463,
- 58.614373
- ],
- [
- -3.0030543,
- 58.7036341
- ],
- [
- -3.4180129,
- 58.7003322
- ],
- [
- -3.4171049,
- 58.6290293
- ],
- [
- -3.7240109,
- 58.6266658
- ],
- [
- -3.7231029,
- 58.606806
- ],
- [
- -4.2361262,
- 58.5992374
- ],
- [
- -4.2334022,
- 58.5092347
- ],
- [
- -3.88836,
- 58.5144516
- ],
- [
- -3.8829119,
- 58.4261327
- ],
- [
- -3.7158389,
- 58.4270836
- ]
- ],
- [
- [
- -6.46676,
- 49.9943621
- ],
- [
- -6.1889102,
- 50.004868
- ],
- [
- -6.1789222,
- 49.8967815
- ],
- [
- -6.3169391,
- 49.8915171
- ],
- [
- -6.312399,
- 49.8200979
- ],
- [
- -6.4504159,
- 49.8159968
- ]
- ],
- [
- [
- -5.6453263,
- 50.2029809
- ],
- [
- -5.7801329,
- 50.2014076
- ],
- [
- -5.7637888,
- 50.0197267
- ],
- [
- -5.3479221,
- 50.0290604
- ],
- [
- -5.3388421,
- 49.9414854
- ],
- [
- -5.024672,
- 49.9473287
- ],
- [
- -5.0355681,
- 50.0383923
- ],
- [
- -5.0010639,
- 50.0453901
- ],
- [
- -4.9974319,
- 50.1304478
- ],
- [
- -4.855783,
- 50.13394
- ],
- [
- -4.861231,
- 50.206057
- ],
- [
- -4.6546085,
- 50.2140172
- ],
- [
- -4.6558926,
- 50.3018616
- ],
- [
- -4.5184924,
- 50.3026818
- ],
- [
- -4.51464,
- 50.325642
- ],
- [
- -4.2488284,
- 50.3264618
- ],
- [
- -4.2488284,
- 50.3100631
- ],
- [
- -4.10886,
- 50.3141633
- ],
- [
- -4.1062917,
- 50.2411267
- ],
- [
- -3.9648088,
- 50.2432047
- ],
- [
- -3.9640778,
- 50.2254158
- ],
- [
- -3.8522287,
- 50.2273626
- ],
- [
- -3.8503757,
- 50.1552563
- ],
- [
- -3.6921809,
- 50.1572487
- ],
- [
- -3.5414602,
- 50.1602198
- ],
- [
- -3.5465781,
- 50.3226814
- ],
- [
- -3.4068012,
- 50.3241013
- ],
- [
- -3.4165761,
- 50.5892711
- ],
- [
- -3.2746691,
- 50.5962721
- ],
- [
- -3.2749172,
- 50.6106323
- ],
- [
- -2.9971742,
- 50.613972
- ],
- [
- -2.9896008,
- 50.688537
- ],
- [
- -2.7120266,
- 50.690565
- ],
- [
- -2.710908,
- 50.6195964
- ],
- [
- -2.5695473,
- 50.6157538
- ],
- [
- -2.5651019,
- 50.5134083
- ],
- [
- -2.4014463,
- 50.513379
- ],
- [
- -2.3940583,
- 50.6160348
- ],
- [
- -2.2894123,
- 50.6147436
- ],
- [
- -2.2876184,
- 50.6008549
- ],
- [
- -2.1477855,
- 50.6048506
- ],
- [
- -2.1451013,
- 50.5325437
- ],
- [
- -1.9335117,
- 50.5347477
- ],
- [
- -1.9362139,
- 50.6170445
- ],
- [
- -1.8573025,
- 50.6228094
- ],
- [
- -1.8554865,
- 50.709139
- ],
- [
- -1.6066929,
- 50.709139
- ],
- [
- -1.6085089,
- 50.6239615
- ],
- [
- -1.4450678,
- 50.6228094
- ],
- [
- -1.4432518,
- 50.5317039
- ],
- [
- -1.1545059,
- 50.5293951
- ],
- [
- -1.1472419,
- 50.6170485
- ],
- [
- -1.011041,
- 50.6205051
- ],
- [
- -1.011041,
- 50.7056889
- ],
- [
- -0.704135,
- 50.7045388
- ],
- [
- -0.700503,
- 50.7769401
- ],
- [
- -0.5860943,
- 50.7723465
- ],
- [
- -0.5879103,
- 50.7907181
- ],
- [
- -0.0149586,
- 50.7798108
- ],
- [
- -0.0185906,
- 50.7625836
- ],
- [
- 0.0967261,
- 50.7620093
- ],
- [
- 0.0921861,
- 50.6913106
- ],
- [
- 0.3046595,
- 50.6890096
- ],
- [
- 0.3101075,
- 50.7757917
- ],
- [
- 0.5511831,
- 50.7726336
- ],
- [
- 0.5529991,
- 50.8432096
- ],
- [
- 0.695556,
- 50.8403428
- ],
- [
- 0.696464,
- 50.8592608
- ],
- [
- 0.9852099,
- 50.8523824
- ],
- [
- 0.9906579,
- 50.9417226
- ],
- [
- 1.0160821,
- 50.9411504
- ],
- [
- 1.0215301,
- 51.0303204
- ],
- [
- 1.2812198,
- 51.0240383
- ],
- [
- 1.2848518,
- 51.0948044
- ],
- [
- 1.4277848,
- 51.0948044
- ],
- [
- 1.4386809,
- 51.2882859
- ],
- [
- 1.4713691,
- 51.2871502
- ],
- [
- 1.4804492,
- 51.3994534
- ],
- [
- 1.1590151,
- 51.4073836
- ],
- [
- 1.1590151,
- 51.3869889
- ],
- [
- 1.0191822,
- 51.3903886
- ],
- [
- 1.0228142,
- 51.4798247
- ],
- [
- 0.8793493,
- 51.4843484
- ],
- [
- 0.8829813,
- 51.5566675
- ],
- [
- 1.0264462,
- 51.5544092
- ],
- [
- 1.0373423,
- 51.7493319
- ],
- [
- 1.2607117,
- 51.7482076
- ],
- [
- 1.2661598,
- 51.8279642
- ],
- [
- 1.3351682,
- 51.8335756
- ],
- [
- 1.3478803,
- 51.9199021
- ],
- [
- 1.4840812,
- 51.9199021
- ],
- [
- 1.4986093,
- 52.0038271
- ],
- [
- 1.6438902,
- 52.0027092
- ],
- [
- 1.6656823,
- 52.270221
- ],
- [
- 1.7310588,
- 52.270221
- ],
- [
- 1.7528509,
- 52.4465637
- ],
- [
- 1.8254914,
- 52.4476705
- ],
- [
- 1.8345714,
- 52.624408
- ],
- [
- 1.7690346,
- 52.6291402
- ],
- [
- 1.7741711,
- 52.717904
- ],
- [
- 1.6996925,
- 52.721793
- ],
- [
- 1.706113,
- 52.8103687
- ],
- [
- 1.559724,
- 52.8165777
- ],
- [
- 1.5648605,
- 52.9034116
- ],
- [
- 1.4184715,
- 52.9103818
- ],
- [
- 1.4223238,
- 52.9281894
- ],
- [
- 1.3439928,
- 52.9289635
- ],
- [
- 1.3491293,
- 53.0001194
- ],
- [
- 0.4515789,
- 53.022589
- ],
- [
- 0.4497629,
- 52.9351139
- ],
- [
- 0.3789384,
- 52.9351139
- ],
- [
- 0.3716744,
- 52.846365
- ],
- [
- 0.2227614,
- 52.8496552
- ],
- [
- 0.2336575,
- 52.9329248
- ],
- [
- 0.3062979,
- 52.9351139
- ],
- [
- 0.308114,
- 53.022589
- ],
- [
- 0.3807544,
- 53.0236813
- ],
- [
- 0.3993708,
- 53.2933729
- ],
- [
- 0.3248922,
- 53.2987454
- ],
- [
- 0.3274604,
- 53.3853782
- ],
- [
- 0.2504136,
- 53.38691
- ],
- [
- 0.2581183,
- 53.4748924
- ],
- [
- 0.1862079,
- 53.4779494
- ],
- [
- 0.1913443,
- 53.6548777
- ],
- [
- 0.1502527,
- 53.6594436
- ],
- [
- 0.1528209,
- 53.7666003
- ],
- [
- 0.0012954,
- 53.7734308
- ],
- [
- 0.0025796,
- 53.8424326
- ],
- [
- -0.0282392,
- 53.841675
- ],
- [
- -0.0226575,
- 53.9311501
- ],
- [
- -0.1406983,
- 53.9322193
- ],
- [
- -0.1416063,
- 54.0219323
- ],
- [
- -0.1706625,
- 54.0235326
- ],
- [
- -0.1679384,
- 54.0949482
- ],
- [
- -0.0126694,
- 54.0912206
- ],
- [
- -0.0099454,
- 54.1811226
- ],
- [
- -0.1615824,
- 54.1837795
- ],
- [
- -0.1606744,
- 54.2029038
- ],
- [
- -0.2405789,
- 54.2034349
- ],
- [
- -0.2378549,
- 54.2936234
- ],
- [
- -0.3894919,
- 54.2941533
- ],
- [
- -0.3857497,
- 54.3837321
- ],
- [
- -0.461638,
- 54.3856364
- ],
- [
- -0.4571122,
- 54.4939066
- ],
- [
- -0.6105651,
- 54.4965434
- ],
- [
- -0.6096571,
- 54.5676704
- ],
- [
- -0.7667421,
- 54.569776
- ],
- [
- -0.7640181,
- 54.5887213
- ],
- [
- -0.9192871,
- 54.5908258
- ],
- [
- -0.9148116,
- 54.6608348
- ],
- [
- -1.1485204,
- 54.6634343
- ],
- [
- -1.1472363,
- 54.7528316
- ],
- [
- -1.2268514,
- 54.7532021
- ],
- [
- -1.2265398,
- 54.8429879
- ],
- [
- -1.2991803,
- 54.8435107
- ],
- [
- -1.2991803,
- 54.9333391
- ],
- [
- -1.3454886,
- 54.9354258
- ],
- [
- -1.3436726,
- 55.0234878
- ],
- [
- -1.3772688,
- 55.0255698
- ],
- [
- -1.3754528,
- 55.1310877
- ],
- [
- -1.4997441,
- 55.1315727
- ],
- [
- -1.4969272,
- 55.2928323
- ],
- [
- -1.5296721,
- 55.2942946
- ],
- [
- -1.5258198,
- 55.6523803
- ],
- [
- -1.7659492,
- 55.6545537
- ],
- [
- -1.7620968,
- 55.7435626
- ],
- [
- -1.9688392,
- 55.7435626
- ],
- [
- -1.9698023,
- 55.8334505
- ],
- [
- -2.0019051,
- 55.8336308
- ],
- [
- -2.0015841,
- 55.9235526
- ],
- [
- -2.1604851,
- 55.9240613
- ],
- [
- -2.1613931,
- 55.9413549
- ],
- [
- -2.3202942,
- 55.9408463
- ],
- [
- -2.3212022,
- 56.0145126
- ],
- [
- -2.5627317,
- 56.0124824
- ],
- [
- -2.5645477,
- 56.1022207
- ],
- [
- -2.9658863,
- 56.0991822
- ],
- [
- -2.9667943,
- 56.1710304
- ],
- [
- -2.4828272,
- 56.1755797
- ],
- [
- -2.4882752,
- 56.2856078
- ],
- [
- -2.5645477,
- 56.2835918
- ],
- [
- -2.5681798,
- 56.3742075
- ],
- [
- -2.7261728,
- 56.3732019
- ],
- [
- -2.7316208,
- 56.4425301
- ],
- [
- -2.6190281,
- 56.4425301
- ],
- [
- -2.6153961,
- 56.5317671
- ],
- [
- -2.453771,
- 56.5347715
- ],
- [
- -2.4534686,
- 56.6420248
- ],
- [
- -2.4062523,
- 56.6440218
- ],
- [
- -2.3953562,
- 56.7297964
- ],
- [
- -2.2936596,
- 56.7337811
- ],
- [
- -2.2972916,
- 56.807423
- ],
- [
- -2.1629067,
- 56.8113995
- ],
- [
- -2.1592747,
- 56.9958425
- ],
- [
- -1.9922016,
- 57.0017771
- ],
- [
- -2.0067297,
- 57.2737477
- ],
- [
- -1.9195612,
- 57.2757112
- ],
- [
- -1.9304572,
- 57.3482876
- ],
- [
- -1.8106005,
- 57.3443682
- ],
- [
- -1.7997044,
- 57.4402728
- ],
- [
- -1.6616875,
- 57.4285429
- ],
- [
- -1.6689516,
- 57.5398256
- ],
- [
- -1.7452241,
- 57.5398256
- ],
- [
- -1.7524881,
- 57.6313302
- ],
- [
- -1.8287606,
- 57.6332746
- ],
- [
- -1.8287606,
- 57.7187255
- ],
- [
- -3.1768526,
- 57.7171219
- ],
- [
- -3.1794208,
- 57.734264
- ],
- [
- -3.5134082,
- 57.7292105
- ],
- [
- -3.5129542,
- 57.7112683
- ],
- [
- -3.7635638,
- 57.7076303
- ],
- [
- -3.7598539,
- 57.635713
- ],
- [
- -3.8420372,
- 57.6343382
- ],
- [
- -3.8458895,
- 57.6178365
- ],
- [
- -3.9794374,
- 57.6157733
- ],
- [
- -3.9794374,
- 57.686544
- ],
- [
- -3.8150708,
- 57.689976
- ],
- [
- -3.817639,
- 57.7968899
- ],
- [
- -3.6853753,
- 57.7989429
- ],
- [
- -3.6892276,
- 57.8891567
- ],
- [
- -3.9383458,
- 57.8877915
- ],
- [
- -3.9421981,
- 57.9750592
- ],
- [
- -3.6943641,
- 57.9784638
- ],
- [
- -3.6969323,
- 58.0695865
- ],
- [
- -4.0372226,
- 58.0641528
- ],
- [
- -4.0346543,
- 57.9730163
- ],
- [
- -4.2003051,
- 57.9702923
- ],
- [
- -4.1832772,
- 57.7012869
- ],
- [
- -4.518752,
- 57.6951111
- ],
- [
- -4.5122925,
- 57.6050682
- ],
- [
- -4.6789116,
- 57.6016628
- ],
- [
- -4.666022,
- 57.4218334
- ],
- [
- -3.6677696,
- 57.4394729
- ],
- [
- -3.671282,
- 57.5295384
- ],
- [
- -3.3384979,
- 57.5331943
- ],
- [
- -3.3330498,
- 57.4438859
- ],
- [
- -2.8336466,
- 57.4485275
- ],
- [
- -2.8236396,
- 56.9992706
- ],
- [
- -2.3305398,
- 57.0006693
- ],
- [
- -2.3298977,
- 56.9113932
- ],
- [
- -2.6579889,
- 56.9092901
- ],
- [
- -2.6559637,
- 56.8198406
- ],
- [
- -2.8216747,
- 56.8188467
- ],
- [
- -2.8184967,
- 56.7295397
- ],
- [
- -3.1449248,
- 56.7265508
- ],
- [
- -3.1435628,
- 56.6362749
- ],
- [
- -3.4679089,
- 56.6350265
- ],
- [
- -3.474265,
- 56.7238108
- ],
- [
- -3.8011471,
- 56.7188284
- ],
- [
- -3.785711,
- 56.4493026
- ],
- [
- -3.946428,
- 56.4457896
- ],
- [
- -3.9428873,
- 56.2659777
- ],
- [
- -4.423146,
- 56.2588459
- ],
- [
- -4.4141572,
- 56.0815506
- ],
- [
- -4.8944159,
- 56.0708008
- ],
- [
- -4.8791072,
- 55.8896994
- ],
- [
- -5.1994158,
- 55.8821374
- ],
- [
- -5.1852906,
- 55.7023791
- ],
- [
- -5.0273445,
- 55.7067203
- ],
- [
- -5.0222081,
- 55.6879046
- ],
- [
- -4.897649,
- 55.6907999
- ],
- [
- -4.8880181,
- 55.6002822
- ],
- [
- -4.7339244,
- 55.6046348
- ],
- [
- -4.7275038,
- 55.5342082
- ],
- [
- -4.773732,
- 55.5334815
- ],
- [
- -4.7685955,
- 55.4447227
- ],
- [
- -4.8494947,
- 55.4418092
- ],
- [
- -4.8405059,
- 55.3506535
- ],
- [
- -4.8700405,
- 55.3513836
- ],
- [
- -4.8649041,
- 55.2629462
- ],
- [
- -4.9920314,
- 55.2592875
- ],
- [
- -4.9907473,
- 55.1691779
- ],
- [
- -5.0600894,
- 55.1655105
- ],
- [
- -5.0575212,
- 55.0751884
- ],
- [
- -5.2141831,
- 55.0722477
- ],
- [
- -5.1991766,
- 54.8020337
- ],
- [
- -5.0466316,
- 54.8062205
- ],
- [
- -5.0502636,
- 54.7244996
- ],
- [
- -4.9703591,
- 54.7203043
- ],
- [
- -4.9776232,
- 54.6215905
- ],
- [
- -4.796022,
- 54.6342056
- ],
- [
- -4.796022,
- 54.7307917
- ],
- [
- -4.8977186,
- 54.7265971
- ],
- [
- -4.9086147,
- 54.8145928
- ],
- [
- -4.8069181,
- 54.8166856
- ],
- [
- -4.8105501,
- 54.7915648
- ],
- [
- -4.6943253,
- 54.7978465
- ],
- [
- -4.6761652,
- 54.7244996
- ],
- [
- -4.5744686,
- 54.7244996
- ],
- [
- -4.5599405,
- 54.6426135
- ],
- [
- -4.3093309,
- 54.6384098
- ],
- [
- -4.3333262,
- 54.8229889
- ],
- [
- -4.2626999,
- 54.8274274
- ],
- [
- -4.2549952,
- 54.7348587
- ],
- [
- -3.8338058,
- 54.7400481
- ],
- [
- -3.836374,
- 54.8141105
- ],
- [
- -3.7118149,
- 54.8133706
- ],
- [
- -3.7143831,
- 54.8318654
- ],
- [
- -3.5346072,
- 54.8355633
- ],
- [
- -3.5271039,
- 54.9066228
- ],
- [
- -3.4808758,
- 54.9084684
- ],
- [
- -3.4776655,
- 54.7457328
- ],
- [
- -3.5874573,
- 54.744621
- ],
- [
- -3.5836049,
- 54.6546166
- ],
- [
- -3.7107322,
- 54.6531308
- ],
- [
- -3.6991752,
- 54.4550407
- ],
- [
- -3.5746161,
- 54.4572801
- ],
- [
- -3.5759002,
- 54.3863042
- ],
- [
- -3.539945,
- 54.3855564
- ],
- [
- -3.5386609,
- 54.297224
- ],
- [
- -3.46033,
- 54.2957252
- ],
- [
- -3.4590458,
- 54.2079507
- ],
- [
- -3.3807149,
- 54.2102037
- ],
- [
- -3.381999,
- 54.1169788
- ],
- [
- -3.302878,
- 54.1160656
- ],
- [
- -3.300154,
- 54.0276224
- ],
- [
- -3.1013007,
- 54.0292224
- ],
- [
- -3.093596,
- 53.6062158
- ],
- [
- -3.2065981,
- 53.6016441
- ],
- [
- -3.2091663,
- 53.4917753
- ],
- [
- -3.2451215,
- 53.4887193
- ],
- [
- -3.2348486,
- 53.4045934
- ],
- [
- -3.5276266,
- 53.3999999
- ],
- [
- -3.5343966,
- 53.328481
- ],
- [
- -3.6488053,
- 53.3252272
- ],
- [
- -3.6527308,
- 53.3057716
- ],
- [
- -3.7271873,
- 53.3046865
- ],
- [
- -3.7315003,
- 53.3945257
- ],
- [
- -3.9108315,
- 53.3912769
- ],
- [
- -3.9071995,
- 53.3023804
- ],
- [
- -3.9521457,
- 53.3015665
- ],
- [
- -3.9566724,
- 53.3912183
- ],
- [
- -4.1081979,
- 53.3889209
- ],
- [
- -4.1081979,
- 53.4072967
- ],
- [
- -4.2622916,
- 53.4065312
- ],
- [
- -4.2635757,
- 53.4753707
- ],
- [
- -4.638537,
- 53.4677274
- ],
- [
- -4.6346847,
- 53.3812621
- ],
- [
- -4.7091633,
- 53.3774321
- ],
- [
- -4.7001745,
- 53.1954965
- ],
- [
- -4.5499332,
- 53.1962658
- ],
- [
- -4.5435126,
- 53.1092488
- ],
- [
- -4.3919871,
- 53.1100196
- ],
- [
- -4.3855666,
- 53.0236002
- ],
- [
- -4.6115707,
- 53.0205105
- ],
- [
- -4.603866,
- 52.9284932
- ],
- [
- -4.7566756,
- 52.9261709
- ],
- [
- -4.7476868,
- 52.8370555
- ],
- [
- -4.8208813,
- 52.8331768
- ],
- [
- -4.8208813,
- 52.7446476
- ],
- [
- -4.3701572,
- 52.7539749
- ],
- [
- -4.3765778,
- 52.8401583
- ],
- [
- -4.2314728,
- 52.8455875
- ],
- [
- -4.2237682,
- 52.7586379
- ],
- [
- -4.1056297,
- 52.7570836
- ],
- [
- -4.1015192,
- 52.6714874
- ],
- [
- -4.1487355,
- 52.6703862
- ],
- [
- -4.1305754,
- 52.4008596
- ],
- [
- -4.1995838,
- 52.3986435
- ],
- [
- -4.2050319,
- 52.3110195
- ],
- [
- -4.3466808,
- 52.303247
- ],
- [
- -4.3484968,
- 52.2365693
- ],
- [
- -4.4901457,
- 52.2332328
- ],
- [
- -4.4883297,
- 52.2098702
- ],
- [
- -4.6572188,
- 52.2098702
- ],
- [
- -4.6590348,
- 52.1385939
- ],
- [
- -4.7788916,
- 52.13525
- ],
- [
- -4.7807076,
- 52.1162967
- ],
- [
- -4.9259885,
- 52.1140663
- ],
- [
- -4.9187245,
- 52.0392855
- ],
- [
- -5.2365265,
- 52.0314653
- ],
- [
- -5.2347105,
- 51.9442339
- ],
- [
- -5.3473032,
- 51.9408755
- ],
- [
- -5.3473032,
- 51.9195995
- ],
- [
- -5.4925842,
- 51.9162392
- ],
- [
- -5.4853201,
- 51.8265386
- ],
- [
- -5.1983903,
- 51.8321501
- ],
- [
- -5.1893102,
- 51.7625177
- ],
- [
- -5.335825,
- 51.7589528
- ],
- [
- -5.3281204,
- 51.6686495
- ],
- [
- -5.1836575,
- 51.6730296
- ],
- [
- -5.1836575,
- 51.6539134
- ],
- [
- -5.0674452,
- 51.6578966
- ],
- [
- -5.0603825,
- 51.5677905
- ],
- [
- -4.5974594,
- 51.5809588
- ],
- [
- -4.60388,
- 51.6726314
- ],
- [
- -4.345773,
- 51.6726314
- ],
- [
- -4.3355001,
- 51.4962964
- ],
- [
- -3.9528341,
- 51.5106841
- ],
- [
- -3.9425611,
- 51.5905333
- ],
- [
- -3.8809237,
- 51.5953198
- ],
- [
- -3.8706508,
- 51.5074872
- ],
- [
- -3.7679216,
- 51.4978952
- ],
- [
- -3.7550805,
- 51.4242895
- ],
- [
- -3.5855774,
- 51.41468
- ],
- [
- -3.5778727,
- 51.3329177
- ],
- [
- -3.0796364,
- 51.3329177
- ],
- [
- -3.0770682,
- 51.2494018
- ],
- [
- -3.7216935,
- 51.2381477
- ],
- [
- -3.7216935,
- 51.2558315
- ],
- [
- -3.8706508,
- 51.2558315
- ],
- [
- -3.8680825,
- 51.2365398
- ],
- [
- -4.2944084,
- 51.2252825
- ],
- [
- -4.289272,
- 51.0496352
- ],
- [
- -4.5692089,
- 51.0431767
- ],
- [
- -4.5624122,
- 50.9497388
- ],
- [
- -4.5905604,
- 50.9520269
- ],
- [
- -4.5896524,
- 50.8627065
- ],
- [
- -4.6296046,
- 50.8592677
- ],
- [
- -4.6226411,
- 50.7691513
- ],
- [
- -4.6952816,
- 50.7680028
- ],
- [
- -4.6934655,
- 50.6967379
- ],
- [
- -4.8342064,
- 50.6938621
- ],
- [
- -4.8296664,
- 50.6046231
- ],
- [
- -4.9676833,
- 50.6000126
- ],
- [
- -4.9685913,
- 50.5821427
- ],
- [
- -5.1084242,
- 50.5786832
- ],
- [
- -5.1029762,
- 50.4892254
- ],
- [
- -5.1311244,
- 50.48807
- ],
- [
- -5.1274923,
- 50.4163798
- ],
- [
- -5.2664172,
- 50.4117509
- ],
- [
- -5.2609692,
- 50.3034214
- ],
- [
- -5.5124868,
- 50.2976214
- ],
- [
- -5.5061308,
- 50.2256428
- ],
- [
- -5.6468717,
- 50.2209953
- ]
- ],
- [
- [
- -5.1336607,
- 55.2630226
- ],
- [
- -5.1021999,
- 55.2639372
- ],
- [
- -5.0999527,
- 55.2458239
- ],
- [
- -5.1322161,
- 55.2446343
- ]
- ],
- [
- [
- -5.6431878,
- 55.5095745
- ],
- [
- -5.4861028,
- 55.5126594
- ],
- [
- -5.4715747,
- 55.3348829
- ],
- [
- -5.6277517,
- 55.3302345
- ]
- ],
- [
- [
- -4.7213517,
- 51.2180246
- ],
- [
- -4.5804201,
- 51.2212417
- ],
- [
- -4.5746416,
- 51.1306736
- ],
- [
- -4.7174993,
- 51.1280545
- ]
- ],
- [
- [
- -5.1608796,
- 55.4153626
- ],
- [
- -5.0045387,
- 55.4190069
- ],
- [
- -5.0184798,
- 55.6153521
- ],
- [
- -5.1755648,
- 55.6138137
- ]
- ]
- ],
- "terms_url": "http://geo.nls.uk/maps/",
- "terms_text": "National Library of Scotland Historic Maps"
- },
- {
- "name": "NLS - OS 6-inch Scotland 1842-82",
- "type": "tms",
- "template": "http://geo.nls.uk/maps/os/six_inch/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 5,
- 16
- ],
- "polygon": [
- [
- [
- -5.2112173,
- 54.8018593
- ],
- [
- -5.0642752,
- 54.8026508
- ],
- [
- -5.0560354,
- 54.6305176
- ],
- [
- -4.3158316,
- 54.6297227
- ],
- [
- -4.3117117,
- 54.7448258
- ],
- [
- -3.8530325,
- 54.7464112
- ],
- [
- -3.8530325,
- 54.8034424
- ],
- [
- -3.5522818,
- 54.8034424
- ],
- [
- -3.5522818,
- 54.8374644
- ],
- [
- -3.468511,
- 54.8406277
- ],
- [
- -3.4657644,
- 54.8983158
- ],
- [
- -3.3847403,
- 54.8991055
- ],
- [
- -3.3888601,
- 54.9559214
- ],
- [
- -3.0920786,
- 54.9539468
- ],
- [
- -3.0392359,
- 54.9923274
- ],
- [
- -3.0212713,
- 55.0493881
- ],
- [
- -2.9591232,
- 55.0463283
- ],
- [
- -2.9202807,
- 55.0666294
- ],
- [
- -2.7857081,
- 55.068652
- ],
- [
- -2.7852225,
- 55.0914426
- ],
- [
- -2.7337562,
- 55.0922761
- ],
- [
- -2.737616,
- 55.151204
- ],
- [
- -2.7648395,
- 55.1510672
- ],
- [
- -2.7013114,
- 55.1722505
- ],
- [
- -2.6635459,
- 55.2192808
- ],
- [
- -2.6460364,
- 55.2188891
- ],
- [
- -2.629042,
- 55.2233933
- ],
- [
- -2.6317886,
- 55.2287781
- ],
- [
- -2.6235488,
- 55.2446345
- ],
- [
- -2.6197723,
- 55.2454663
- ],
- [
- -2.6099017,
- 55.2454174
- ],
- [
- -2.6099876,
- 55.2486466
- ],
- [
- -2.6408121,
- 55.2590039
- ],
- [
- -2.6247896,
- 55.2615631
- ],
- [
- -2.6045186,
- 55.2823081
- ],
- [
- -2.5693176,
- 55.296132
- ],
- [
- -2.5479542,
- 55.3121617
- ],
- [
- -2.5091116,
- 55.3234891
- ],
- [
- -2.4780376,
- 55.3494471
- ],
- [
- -2.4421083,
- 55.3533118
- ],
- [
- -2.4052079,
- 55.3439256
- ],
- [
- -2.3726772,
- 55.3447539
- ],
- [
- -2.3221819,
- 55.3687665
- ],
- [
- -2.3241241,
- 55.3999337
- ],
- [
- -2.2576062,
- 55.425015
- ],
- [
- -2.1985547,
- 55.4273529
- ],
- [
- -2.1484296,
- 55.4717466
- ],
- [
- -2.1944348,
- 55.484199
- ],
- [
- -2.2040479,
- 55.529306
- ],
- [
- -2.2960584,
- 55.6379722
- ],
- [
- -2.2177808,
- 55.6379722
- ],
- [
- -2.1059266,
- 55.7452498
- ],
- [
- -1.9716874,
- 55.7462161
- ],
- [
- -1.9697453,
- 55.9190951
- ],
- [
- -2.1201694,
- 55.9207115
- ],
- [
- -2.1242893,
- 55.9776133
- ],
- [
- -2.3440159,
- 55.9783817
- ],
- [
- -2.3440159,
- 56.0390349
- ],
- [
- -2.5046909,
- 56.0413363
- ],
- [
- -2.500571,
- 56.1003588
- ],
- [
- -2.8823459,
- 56.0957629
- ],
- [
- -2.8823459,
- 56.1722898
- ],
- [
- -2.4126804,
- 56.1692316
- ],
- [
- -2.4181736,
- 56.2334017
- ],
- [
- -2.5857151,
- 56.2303484
- ],
- [
- -2.5719822,
- 56.3416356
- ],
- [
- -2.7257908,
- 56.3462022
- ],
- [
- -2.7312839,
- 56.4343808
- ],
- [
- -2.6928318,
- 56.4343808
- ],
- [
- -2.6928318,
- 56.4859769
- ],
- [
- -2.5307834,
- 56.4935587
- ],
- [
- -2.5307834,
- 56.570806
- ],
- [
- -2.5302878,
- 56.6047947
- ],
- [
- -2.3732428,
- 56.6044452
- ],
- [
- -2.3684363,
- 56.7398824
- ],
- [
- -2.3292975,
- 56.7398824
- ],
- [
- -2.3292975,
- 56.7888065
- ],
- [
- -2.3145346,
- 56.7891826
- ],
- [
- -2.3148779,
- 56.7967036
- ],
- [
- -2.171369,
- 56.7967036
- ],
- [
- -2.1703979,
- 56.9710595
- ],
- [
- -2.0101725,
- 56.9694716
- ],
- [
- -2.0101725,
- 57.0846832
- ],
- [
- -2.0817687,
- 57.085349
- ],
- [
- -2.0488097,
- 57.1259963
- ],
- [
- -2.0409133,
- 57.126369
- ],
- [
- -2.0383434,
- 57.2411129
- ],
- [
- -1.878118,
- 57.2421638
- ],
- [
- -1.8771469,
- 57.2978175
- ],
- [
- -1.9868771,
- 57.2983422
- ],
- [
- -1.9082209,
- 57.3560063
- ],
- [
- -1.8752048,
- 57.3560063
- ],
- [
- -1.8761758,
- 57.3769527
- ],
- [
- -1.8120857,
- 57.4120111
- ],
- [
- -1.7120661,
- 57.4120111
- ],
- [
- -1.7034646,
- 57.6441388
- ],
- [
- -1.8666032,
- 57.6451781
- ],
- [
- -1.8646611,
- 57.7033351
- ],
- [
- -3.1204292,
- 57.7064705
- ],
- [
- -3.1218025,
- 57.7504652
- ],
- [
- -3.4445259,
- 57.7526635
- ],
- [
- -3.4472724,
- 57.7138067
- ],
- [
- -3.5145637,
- 57.7094052
- ],
- [
- -3.5118171,
- 57.6939956
- ],
- [
- -3.7645027,
- 57.6917938
- ],
- [
- -3.7672492,
- 57.6344975
- ],
- [
- -3.842378,
- 57.6288312
- ],
- [
- -3.8438346,
- 57.5965825
- ],
- [
- -3.9414265,
- 57.5916386
- ],
- [
- -3.9404554,
- 57.6537782
- ],
- [
- -3.8894746,
- 57.6529989
- ],
- [
- -3.8826772,
- 57.7676408
- ],
- [
- -3.7224517,
- 57.766087
- ],
- [
- -3.7195385,
- 57.8819201
- ],
- [
- -3.9146888,
- 57.8853352
- ],
- [
- -3.916062,
- 57.9546243
- ],
- [
- -3.745774,
- 57.9538956
- ],
- [
- -3.7471473,
- 58.0688409
- ],
- [
- -3.5837256,
- 58.0695672
- ],
- [
- -3.5837256,
- 58.1116689
- ],
- [
- -3.4560096,
- 58.1138452
- ],
- [
- -3.4544646,
- 58.228503
- ],
- [
- -3.4379851,
- 58.2283222
- ],
- [
- -3.4243233,
- 58.2427725
- ],
- [
- -3.412307,
- 58.2438567
- ],
- [
- -3.3735115,
- 58.2695057
- ],
- [
- -3.3063919,
- 58.2862038
- ],
- [
- -3.1229154,
- 58.2859395
- ],
- [
- -3.123602,
- 58.3443661
- ],
- [
- -2.9574338,
- 58.3447264
- ],
- [
- -2.951254,
- 58.6422011
- ],
- [
- -2.8812162,
- 58.6429157
- ],
- [
- -2.8851004,
- 58.8112825
- ],
- [
- -2.7180775,
- 58.8142997
- ],
- [
- -2.7161354,
- 58.8715749
- ],
- [
- -2.556881,
- 58.8775984
- ],
- [
- -2.5544533,
- 58.9923453
- ],
- [
- -2.5567617,
- 59.0483775
- ],
- [
- -2.391893,
- 59.0485996
- ],
- [
- -2.3918002,
- 59.1106996
- ],
- [
- -2.4733695,
- 59.1106996
- ],
- [
- -2.5591563,
- 59.1783028
- ],
- [
- -2.5630406,
- 59.2210646
- ],
- [
- -2.3921334,
- 59.224046
- ],
- [
- -2.3911409,
- 59.2740075
- ],
- [
- -2.3639512,
- 59.2745036
- ],
- [
- -2.3658933,
- 59.285417
- ],
- [
- -2.3911409,
- 59.284921
- ],
- [
- -2.3911409,
- 59.3379505
- ],
- [
- -2.2221759,
- 59.3381981
- ],
- [
- -2.2233897,
- 59.395965
- ],
- [
- -2.3758467,
- 59.396583
- ],
- [
- -2.3899271,
- 59.4026383
- ],
- [
- -2.4008516,
- 59.3962122
- ],
- [
- -2.5637882,
- 59.3952604
- ],
- [
- -2.5637882,
- 59.3385811
- ],
- [
- -2.7320164,
- 59.3375306
- ],
- [
- -2.7333896,
- 59.3952604
- ],
- [
- -3.0726511,
- 59.3931174
- ],
- [
- -3.0703404,
- 59.3354759
- ],
- [
- -3.0753186,
- 59.3355634
- ],
- [
- -3.0749753,
- 59.3292593
- ],
- [
- -3.0698254,
- 59.3289091
- ],
- [
- -3.069801,
- 59.2196159
- ],
- [
- -3.2363384,
- 59.2166341
- ],
- [
- -3.2336751,
- 59.1606496
- ],
- [
- -3.4032766,
- 59.1588895
- ],
- [
- -3.394086,
- 58.9279316
- ],
- [
- -3.5664497,
- 58.9259268
- ],
- [
- -3.5611089,
- 58.8679885
- ],
- [
- -3.392508,
- 58.8699339
- ],
- [
- -3.3894734,
- 58.8698711
- ],
- [
- -3.3891093,
- 58.8684905
- ],
- [
- -3.3912942,
- 58.868616
- ],
- [
- -3.3884161,
- 58.7543084
- ],
- [
- -3.2238208,
- 58.7555677
- ],
- [
- -3.2189655,
- 58.691289
- ],
- [
- -3.4634113,
- 58.6905753
- ],
- [
- -3.4551716,
- 58.6341518
- ],
- [
- -3.787508,
- 58.6341518
- ],
- [
- -3.7861347,
- 58.5769211
- ],
- [
- -3.9028645,
- 58.5733411
- ],
- [
- -3.9028645,
- 58.6477304
- ],
- [
- -4.0690327,
- 58.6491594
- ],
- [
- -4.0690327,
- 58.5912376
- ],
- [
- -4.7364521,
- 58.5933845
- ],
- [
- -4.7364521,
- 58.6505884
- ],
- [
- -5.0715351,
- 58.6520173
- ],
- [
- -5.0654779,
- 58.5325854
- ],
- [
- -5.2332047,
- 58.5316087
- ],
- [
- -5.2283494,
- 58.4719947
- ],
- [
- -5.2424298,
- 58.4719947
- ],
- [
- -5.2366034,
- 58.4089731
- ],
- [
- -5.2283494,
- 58.4094818
- ],
- [
- -5.2210664,
- 58.3005859
- ],
- [
- -5.5657939,
- 58.2959933
- ],
- [
- -5.5580254,
- 58.2372573
- ],
- [
- -5.4146722,
- 58.2401326
- ],
- [
- -5.4141866,
- 58.2267768
- ],
- [
- -5.3885749,
- 58.2272242
- ],
- [
- -5.382714,
- 58.1198615
- ],
- [
- -5.51043,
- 58.1191362
- ],
- [
- -5.5114011,
- 58.006214
- ],
- [
- -5.6745397,
- 58.0041559
- ],
- [
- -5.6716266,
- 57.9449366
- ],
- [
- -5.6716266,
- 57.8887166
- ],
- [
- -5.8347652,
- 57.8856193
- ],
- [
- -5.8277052,
- 57.5988958
- ],
- [
- -6.0384259,
- 57.5986357
- ],
- [
- -6.0389115,
- 57.6459559
- ],
- [
- -6.1981658,
- 57.6456961
- ],
- [
- -6.2076123,
- 57.7600132
- ],
- [
- -6.537067,
- 57.7544033
- ],
- [
- -6.5312406,
- 57.6402392
- ],
- [
- -6.7002056,
- 57.6360809
- ],
- [
- -6.6807844,
- 57.5236293
- ],
- [
- -6.8516915,
- 57.5152857
- ],
- [
- -6.8361545,
- 57.3385811
- ],
- [
- -6.6730158,
- 57.3438213
- ],
- [
- -6.674958,
- 57.2850883
- ],
- [
- -6.5098772,
- 57.2850883
- ],
- [
- -6.4982244,
- 57.1757637
- ],
- [
- -6.3506228,
- 57.1820797
- ],
- [
- -6.3312015,
- 57.1251969
- ],
- [
- -6.1797156,
- 57.1230884
- ],
- [
- -6.1719471,
- 57.0682265
- ],
- [
- -6.4593819,
- 57.059779
- ],
- [
- -6.4564687,
- 57.1093806
- ],
- [
- -6.6671895,
- 57.1062165
- ],
- [
- -6.6730158,
- 57.002708
- ],
- [
- -6.5021087,
- 57.0048233
- ],
- [
- -6.4836097,
- 56.8917522
- ],
- [
- -6.3266104,
- 56.8894062
- ],
- [
- -6.3156645,
- 56.7799312
- ],
- [
- -6.2146739,
- 56.775675
- ],
- [
- -6.2146739,
- 56.7234965
- ],
- [
- -6.6866107,
- 56.7224309
- ],
- [
- -6.6769001,
- 56.6114413
- ],
- [
- -6.8419809,
- 56.607166
- ],
- [
- -6.8400387,
- 56.5483307
- ],
- [
- -7.1546633,
- 56.5461895
- ],
- [
- -7.1488369,
- 56.4872592
- ],
- [
- -6.9915246,
- 56.490476
- ],
- [
- -6.9876404,
- 56.4325329
- ],
- [
- -6.6827265,
- 56.4314591
- ],
- [
- -6.6769001,
- 56.5472601
- ],
- [
- -6.5292985,
- 56.5504717
- ],
- [
- -6.5234721,
- 56.4379018
- ],
- [
- -6.3661598,
- 56.4368281
- ],
- [
- -6.3642177,
- 56.3766524
- ],
- [
- -6.5273563,
- 56.3712749
- ],
- [
- -6.5171745,
- 56.2428427
- ],
- [
- -6.4869621,
- 56.247421
- ],
- [
- -6.4869621,
- 56.1893882
- ],
- [
- -6.3001945,
- 56.1985572
- ],
- [
- -6.3029411,
- 56.2581017
- ],
- [
- -5.9019401,
- 56.256576
- ],
- [
- -5.8964469,
- 56.0960466
- ],
- [
- -6.0282829,
- 56.0883855
- ],
- [
- -6.0392692,
- 56.1557502
- ],
- [
- -6.3853385,
- 56.1542205
- ],
- [
- -6.3606193,
- 55.96099
- ],
- [
- -6.2123039,
- 55.9640647
- ],
- [
- -6.2047508,
- 55.9202269
- ],
- [
- -6.5185478,
- 55.9129158
- ],
- [
- -6.5061881,
- 55.7501763
- ],
- [
- -6.6764762,
- 55.7409005
- ],
- [
- -6.6599967,
- 55.6263176
- ],
- [
- -6.3551261,
- 55.6232161
- ],
- [
- -6.3578727,
- 55.5689002
- ],
- [
- -6.0392692,
- 55.5720059
- ],
- [
- -6.0310294,
- 55.6247669
- ],
- [
- -5.7398917,
- 55.6309694
- ],
- [
- -5.7371452,
- 55.4569279
- ],
- [
- -5.8964469,
- 55.4600426
- ],
- [
- -5.8964469,
- 55.2789864
- ],
- [
- -5.4350211,
- 55.2821151
- ],
- [
- -5.4405143,
- 55.4506979
- ],
- [
- -5.2867057,
- 55.4569279
- ],
- [
- -5.3086784,
- 55.4070602
- ],
- [
- -4.9735954,
- 55.4008223
- ],
- [
- -4.9845817,
- 55.2038242
- ],
- [
- -5.1493766,
- 55.2038242
- ],
- [
- -5.1411369,
- 55.037337
- ],
- [
- -5.2152946,
- 55.0341891
- ]
- ],
- [
- [
- -2.1646559,
- 60.1622059
- ],
- [
- -1.9930299,
- 60.1609801
- ],
- [
- -1.9946862,
- 60.1035151
- ],
- [
- -2.1663122,
- 60.104743
- ]
- ],
- [
- [
- -1.5360658,
- 59.8570831
- ],
- [
- -1.3653566,
- 59.8559841
- ],
- [
- -1.366847,
- 59.7975565
- ],
- [
- -1.190628,
- 59.7964199
- ],
- [
- -1.1862046,
- 59.9695391
- ],
- [
- -1.0078652,
- 59.9683948
- ],
- [
- -1.0041233,
- 60.114145
- ],
- [
- -0.8360832,
- 60.1130715
- ],
- [
- -0.834574,
- 60.1716772
- ],
- [
- -1.0074262,
- 60.1727795
- ],
- [
- -1.0052165,
- 60.2583924
- ],
- [
- -0.8299659,
- 60.2572778
- ],
- [
- -0.826979,
- 60.3726551
- ],
- [
- -0.6507514,
- 60.3715381
- ],
- [
- -0.6477198,
- 60.4882292
- ],
- [
- -0.9984896,
- 60.4904445
- ],
- [
- -0.9970279,
- 60.546555
- ],
- [
- -0.6425288,
- 60.5443201
- ],
- [
- -0.6394896,
- 60.6606792
- ],
- [
- -0.8148133,
- 60.6617806
- ],
- [
- -0.8132987,
- 60.7196112
- ],
- [
- -0.6383298,
- 60.7185141
- ],
- [
- -0.635467,
- 60.8275393
- ],
- [
- -0.797568,
- 60.8285523
- ],
- [
- -0.9941426,
- 60.8297807
- ],
- [
- -0.9954966,
- 60.7782667
- ],
- [
- -1.1670282,
- 60.7793403
- ],
- [
- -1.1700357,
- 60.6646181
- ],
- [
- -1.5222599,
- 60.6668304
- ],
- [
- -1.5237866,
- 60.6084426
- ],
- [
- -1.6975673,
- 60.609536
- ],
- [
- -1.7021271,
- 60.4345249
- ],
- [
- -1.5260578,
- 60.4334111
- ],
- [
- -1.5275203,
- 60.3770719
- ],
- [
- -1.8751127,
- 60.3792746
- ],
- [
- -1.8781372,
- 60.2624647
- ],
- [
- -1.7019645,
- 60.2613443
- ],
- [
- -1.7049134,
- 60.1470532
- ],
- [
- -1.528659,
- 60.1459283
- ]
- ],
- [
- [
- -0.9847667,
- 60.8943762
- ],
- [
- -0.9860347,
- 60.8361105
- ],
- [
- -0.8078362,
- 60.8351904
- ],
- [
- -0.8065683,
- 60.8934578
- ]
- ],
- [
- [
- -7.7696901,
- 56.8788231
- ],
- [
- -7.7614504,
- 56.7608274
- ],
- [
- -7.6009049,
- 56.7641903
- ],
- [
- -7.5972473,
- 56.819332
- ],
- [
- -7.4479894,
- 56.8203948
- ],
- [
- -7.4489319,
- 56.8794098
- ],
- [
- -7.2841369,
- 56.8794098
- ],
- [
- -7.2813904,
- 57.0471152
- ],
- [
- -7.1303283,
- 57.0515969
- ],
- [
- -7.1330749,
- 57.511801
- ],
- [
- -6.96828,
- 57.5147514
- ],
- [
- -6.9765198,
- 57.6854668
- ],
- [
- -6.8062317,
- 57.6913392
- ],
- [
- -6.8089782,
- 57.8041985
- ],
- [
- -6.6496765,
- 57.8071252
- ],
- [
- -6.6441833,
- 57.8612267
- ],
- [
- -6.3200866,
- 57.8626878
- ],
- [
- -6.3200866,
- 58.1551617
- ],
- [
- -6.1607849,
- 58.1522633
- ],
- [
- -6.1552917,
- 58.20874
- ],
- [
- -5.9850036,
- 58.2101869
- ],
- [
- -5.9904968,
- 58.2680163
- ],
- [
- -6.1497986,
- 58.2665717
- ],
- [
- -6.1415588,
- 58.5557514
- ],
- [
- -6.3173401,
- 58.5557514
- ],
- [
- -6.3091003,
- 58.4983923
- ],
- [
- -6.4876282,
- 58.4955218
- ],
- [
- -6.4876282,
- 58.4423768
- ],
- [
- -6.6606628,
- 58.4395018
- ],
- [
- -6.6469299,
- 58.3819525
- ],
- [
- -6.8117248,
- 58.3805125
- ],
- [
- -6.8117248,
- 58.3286357
- ],
- [
- -6.9792663,
- 58.3286357
- ],
- [
- -6.9710266,
- 58.2694608
- ],
- [
- -7.1413147,
- 58.2680163
- ],
- [
- -7.1403816,
- 58.0358742
- ],
- [
- -7.3020636,
- 58.0351031
- ],
- [
- -7.3030347,
- 57.9774797
- ],
- [
- -7.1379539,
- 57.9777372
- ],
- [
- -7.1413526,
- 57.9202792
- ],
- [
- -7.1398961,
- 57.8640206
- ],
- [
- -7.3020636,
- 57.862471
- ],
- [
- -7.298484,
- 57.7442293
- ],
- [
- -7.4509193,
- 57.7456951
- ],
- [
- -7.4550392,
- 57.6899522
- ],
- [
- -7.6186131,
- 57.6906048
- ],
- [
- -7.6198341,
- 57.7456951
- ],
- [
- -7.7901222,
- 57.7442293
- ],
- [
- -7.7873756,
- 57.6855477
- ],
- [
- -7.6222332,
- 57.6853817
- ],
- [
- -7.6173779,
- 57.5712602
- ],
- [
- -7.788285,
- 57.5709998
- ],
- [
- -7.7892561,
- 57.512109
- ],
- [
- -7.7038025,
- 57.5115874
- ],
- [
- -7.6999183,
- 57.4546902
- ],
- [
- -7.5367796,
- 57.4552126
- ],
- [
- -7.5348375,
- 57.5126306
- ],
- [
- -7.4581235,
- 57.5131521
- ],
- [
- -7.4552103,
- 57.2824165
- ],
- [
- -7.6115515,
- 57.2845158
- ],
- [
- -7.6144647,
- 57.2272651
- ],
- [
- -7.451326,
- 57.2256881
- ],
- [
- -7.451326,
- 57.1103873
- ],
- [
- -7.6164068,
- 57.1088053
- ],
- [
- -7.603783,
- 56.8792358
- ]
- ],
- [
- [
- -1.7106618,
- 59.5626284
- ],
- [
- -1.5417509,
- 59.562215
- ],
- [
- -1.5423082,
- 59.5037224
- ],
- [
- -1.7112191,
- 59.5041365
- ]
- ]
- ],
- "terms_url": "http://geo.nls.uk/maps/",
- "terms_text": "National Library of Scotland Historic Maps"
- },
- {
- "name": "New & Misaligned TIGER Roads",
- "type": "tms",
- "description": "At zoom level 16+, public domain map data from the US Census. At lower zooms, only changes since 2006 minus changes already incorporated into OpenStreetMap",
- "template": "http://{switch:a,b,c}.tiles.mapbox.com/v3/enf.y5c4ygb9,enf.ho20a3n1,enf.game1617/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 22
- ],
- "polygon": [
- [
- [
- -124.7617886,
- 48.4130148
- ],
- [
- -124.6059492,
- 45.90245
- ],
- [
- -124.9934269,
- 40.0557614
- ],
- [
- -122.5369737,
- 36.8566086
- ],
- [
- -119.9775867,
- 33.0064099
- ],
- [
- -117.675935,
- 32.4630223
- ],
- [
- -114.8612307,
- 32.4799891
- ],
- [
- -111.0089311,
- 31.336015
- ],
- [
- -108.1992687,
- 31.3260016
- ],
- [
- -108.1871123,
- 31.7755116
- ],
- [
- -106.5307225,
- 31.7820947
- ],
- [
- -106.4842052,
- 31.7464455
- ],
- [
- -106.429317,
- 31.7520583
- ],
- [
- -106.2868855,
- 31.5613291
- ],
- [
- -106.205248,
- 31.446704
- ],
- [
- -105.0205259,
- 30.5360988
- ],
- [
- -104.5881916,
- 29.6997856
- ],
- [
- -103.2518856,
- 28.8908685
- ],
- [
- -102.7173632,
- 29.3920567
- ],
- [
- -102.1513983,
- 29.7475702
- ],
- [
- -101.2552871,
- 29.4810523
- ],
- [
- -100.0062436,
- 28.0082173
- ],
- [
- -99.2351068,
- 26.4475962
- ],
- [
- -98.0109067,
- 25.9928035
- ],
- [
- -97.435024,
- 25.8266009
- ],
- [
- -96.9555259,
- 25.9821589
- ],
- [
- -96.8061741,
- 27.7978168
- ],
- [
- -95.5563349,
- 28.5876066
- ],
- [
- -93.7405308,
- 29.4742093
- ],
- [
- -90.9028456,
- 28.8564513
- ],
- [
- -88.0156706,
- 28.9944338
- ],
- [
- -88.0162494,
- 30.0038862
- ],
- [
- -86.0277506,
- 30.0047454
- ],
- [
- -84.0187909,
- 28.9961781
- ],
- [
- -81.9971976,
- 25.9826768
- ],
- [
- -81.9966618,
- 25.0134917
- ],
- [
- -84.0165592,
- 25.0125783
- ],
- [
- -84.0160068,
- 24.0052745
- ],
- [
- -80.0199985,
- 24.007096
- ],
- [
- -79.8901116,
- 26.8550713
- ],
- [
- -80.0245309,
- 32.0161282
- ],
- [
- -75.4147385,
- 35.0531894
- ],
- [
- -74.0211163,
- 39.5727927
- ],
- [
- -72.002019,
- 40.9912464
- ],
- [
- -69.8797398,
- 40.9920457
- ],
- [
- -69.8489304,
- 43.2619916
- ],
- [
- -66.9452845,
- 44.7104937
- ],
- [
- -67.7596632,
- 47.0990024
- ],
- [
- -69.2505131,
- 47.5122328
- ],
- [
- -70.4614886,
- 46.2176574
- ],
- [
- -71.412273,
- 45.254878
- ],
- [
- -72.0222508,
- 45.0059846
- ],
- [
- -75.0798841,
- 44.9802854
- ],
- [
- -76.9023061,
- 43.8024568
- ],
- [
- -78.7623935,
- 43.6249578
- ],
- [
- -79.15798,
- 43.4462589
- ],
- [
- -79.0060087,
- 42.8005317
- ],
- [
- -82.662475,
- 41.6889458
- ],
- [
- -82.1761642,
- 43.588535
- ],
- [
- -83.2813977,
- 46.138853
- ],
- [
- -87.5064535,
- 48.0142702
- ],
- [
- -88.3492194,
- 48.2963271
- ],
- [
- -89.4353148,
- 47.9837822
- ],
- [
- -93.9981078,
- 49.0067142
- ],
- [
- -95.1105379,
- 49.412004
- ],
- [
- -96.0131199,
- 49.0060547
- ],
- [
- -123.3228926,
- 49.0042878
- ],
- [
- -123.2275233,
- 48.1849927
- ]
- ],
- [
- [
- -160.5787616,
- 22.5062947
- ],
- [
- -160.5782192,
- 21.4984647
- ],
- [
- -158.7470604,
- 21.2439843
- ],
- [
- -157.5083185,
- 20.995803
- ],
- [
- -155.9961942,
- 18.7790194
- ],
- [
- -154.6217803,
- 18.7586966
- ],
- [
- -154.6890176,
- 19.8805722
- ],
- [
- -156.2927622,
- 21.2225888
- ],
- [
- -157.5047384,
- 21.9984962
- ],
- [
- -159.0093692,
- 22.5070181
- ]
- ],
- [
- [
- -167.1571546,
- 68.721974
- ],
- [
- -164.8553982,
- 67.0255078
- ],
- [
- -168.002195,
- 66.0017503
- ],
- [
- -169.0087448,
- 66.001546
- ],
- [
- -169.0075381,
- 64.9987675
- ],
- [
- -172.5143281,
- 63.8767267
- ],
- [
- -173.8197023,
- 59.74014
- ],
- [
- -162.5018149,
- 58.0005815
- ],
- [
- -160.0159024,
- 58.0012389
- ],
- [
- -160.0149725,
- 57.000035
- ],
- [
- -160.5054788,
- 56.9999017
- ],
- [
- -165.8092575,
- 54.824847
- ],
- [
- -178.000097,
- 52.2446469
- ],
- [
- -177.9992996,
- 51.2554252
- ],
- [
- -171.4689067,
- 51.8215329
- ],
- [
- -162.40251,
- 53.956664
- ],
- [
- -159.0075717,
- 55.002502
- ],
- [
- -158.0190709,
- 55.0027849
- ],
- [
- -151.9963213,
- 55.9991902
- ],
- [
- -151.500341,
- 57.9987853
- ],
- [
- -151.5012894,
- 58.9919816
- ],
- [
- -138.5159989,
- 58.9953194
- ],
- [
- -138.5150471,
- 57.9986434
- ],
- [
- -133.9948193,
- 54.0031685
- ],
- [
- -130.0044418,
- 54.0043387
- ],
- [
- -130.0070826,
- 57.0000507
- ],
- [
- -131.975877,
- 56.9995156
- ],
- [
- -135.1229873,
- 59.756601
- ],
- [
- -138.0071813,
- 59.991805
- ],
- [
- -139.1715881,
- 60.4127229
- ],
- [
- -140.9874011,
- 61.0118551
- ],
- [
- -140.9683975,
- 69.9535069
- ],
- [
- -156.176891,
- 71.5633329
- ],
- [
- -160.413634,
- 70.7397728
- ],
- [
- -163.0218273,
- 69.9707435
- ],
- [
- -164.9717003,
- 68.994689
- ]
- ]
- ],
- "overlay": true
- },
- {
- "name": "OS 1:25k historic (OSM)",
- "type": "tms",
- "template": "http://ooc.openstreetmap.org/os1/{zoom}/{x}/{y}.jpg",
- "scaleExtent": [
- 6,
- 17
- ],
- "polygon": [
- [
- [
- -9,
- 49.8
- ],
- [
- -9,
- 61.1
- ],
- [
- 1.9,
- 61.1
- ],
- [
- 1.9,
- 49.8
- ],
- [
- -9,
- 49.8
- ]
- ]
- ]
- },
- {
- "name": "OS New Popular Edition historic",
- "type": "tms",
- "template": "http://ooc.openstreetmap.org/npe/{zoom}/{x}/{y}.png",
- "polygon": [
- [
- [
- -5.8,
- 49.8
- ],
- [
- -5.8,
- 55.8
- ],
- [
- 1.9,
- 55.8
- ],
- [
- 1.9,
- 49.8
- ],
- [
- -5.8,
- 49.8
- ]
- ]
- ]
- },
- {
- "name": "OS OpenData Locator",
- "type": "tms",
- "template": "http://tiles.itoworld.com/os_locator/{zoom}/{x}/{y}.png",
- "polygon": [
- [
- [
- -9,
- 49.8
- ],
- [
- -9,
- 61.1
- ],
- [
- 1.9,
- 61.1
- ],
- [
- 1.9,
- 49.8
- ],
- [
- -9,
- 49.8
- ]
- ]
- ],
- "overlay": true
- },
- {
- "name": "OS OpenData StreetView",
- "type": "tms",
- "template": "http://os.openstreetmap.org/sv/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 1,
- 18
- ],
- "polygon": [
- [
- [
- -5.8292886,
- 50.0229734
- ],
- [
- -5.8292886,
- 50.254819
- ],
- [
- -5.373356,
- 50.254819
- ],
- [
- -5.373356,
- 50.3530588
- ],
- [
- -5.1756021,
- 50.3530588
- ],
- [
- -5.1756021,
- 50.5925406
- ],
- [
- -4.9970743,
- 50.5925406
- ],
- [
- -4.9970743,
- 50.6935617
- ],
- [
- -4.7965738,
- 50.6935617
- ],
- [
- -4.7965738,
- 50.7822112
- ],
- [
- -4.6949503,
- 50.7822112
- ],
- [
- -4.6949503,
- 50.9607371
- ],
- [
- -4.6043131,
- 50.9607371
- ],
- [
- -4.6043131,
- 51.0692066
- ],
- [
- -4.3792215,
- 51.0692066
- ],
- [
- -4.3792215,
- 51.2521782
- ],
- [
- -3.9039346,
- 51.2521782
- ],
- [
- -3.9039346,
- 51.2916998
- ],
- [
- -3.7171671,
- 51.2916998
- ],
- [
- -3.7171671,
- 51.2453014
- ],
- [
- -3.1486246,
- 51.2453014
- ],
- [
- -3.1486246,
- 51.362067
- ],
- [
- -3.7446329,
- 51.362067
- ],
- [
- -3.7446329,
- 51.4340386
- ],
- [
- -3.8297769,
- 51.4340386
- ],
- [
- -3.8297769,
- 51.5298246
- ],
- [
- -4.0852091,
- 51.5298246
- ],
- [
- -4.0852091,
- 51.4939284
- ],
- [
- -4.3792215,
- 51.4939284
- ],
- [
- -4.3792215,
- 51.5427168
- ],
- [
- -5.1444195,
- 51.5427168
- ],
- [
- -5.1444195,
- 51.6296003
- ],
- [
- -5.7387103,
- 51.6296003
- ],
- [
- -5.7387103,
- 51.774037
- ],
- [
- -5.5095393,
- 51.774037
- ],
- [
- -5.5095393,
- 51.9802596
- ],
- [
- -5.198799,
- 51.9802596
- ],
- [
- -5.198799,
- 52.0973358
- ],
- [
- -4.8880588,
- 52.0973358
- ],
- [
- -4.8880588,
- 52.1831557
- ],
- [
- -4.4957492,
- 52.1831557
- ],
- [
- -4.4957492,
- 52.2925739
- ],
- [
- -4.3015365,
- 52.2925739
- ],
- [
- -4.3015365,
- 52.3685318
- ],
- [
- -4.1811246,
- 52.3685318
- ],
- [
- -4.1811246,
- 52.7933685
- ],
- [
- -4.4413696,
- 52.7933685
- ],
- [
- -4.4413696,
- 52.7369614
- ],
- [
- -4.8569847,
- 52.7369614
- ],
- [
- -4.8569847,
- 52.9317255
- ],
- [
- -4.7288044,
- 52.9317255
- ],
- [
- -4.7288044,
- 53.5038599
- ],
- [
- -4.1578191,
- 53.5038599
- ],
- [
- -4.1578191,
- 53.4113498
- ],
- [
- -3.3110518,
- 53.4113498
- ],
- [
- -3.3110518,
- 53.5038599
- ],
- [
- -3.2333667,
- 53.5038599
- ],
- [
- -3.2333667,
- 54.0159169
- ],
- [
- -3.3926211,
- 54.0159169
- ],
- [
- -3.3926211,
- 54.1980953
- ],
- [
- -3.559644,
- 54.1980953
- ],
- [
- -3.559644,
- 54.433732
- ],
- [
- -3.7188984,
- 54.433732
- ],
- [
- -3.7188984,
- 54.721897
- ],
- [
- -4.3015365,
- 54.721897
- ],
- [
- -4.3015365,
- 54.6140739
- ],
- [
- -5.0473132,
- 54.6140739
- ],
- [
- -5.0473132,
- 54.7532915
- ],
- [
- -5.2298731,
- 54.7532915
- ],
- [
- -5.2298731,
- 55.2190799
- ],
- [
- -5.6532567,
- 55.2190799
- ],
- [
- -5.6532567,
- 55.250088
- ],
- [
- -5.8979647,
- 55.250088
- ],
- [
- -5.8979647,
- 55.4822462
- ],
- [
- -6.5933212,
- 55.4822462
- ],
- [
- -6.5933212,
- 56.3013441
- ],
- [
- -7.1727691,
- 56.3013441
- ],
- [
- -7.1727691,
- 56.5601822
- ],
- [
- -6.8171722,
- 56.5601822
- ],
- [
- -6.8171722,
- 56.6991713
- ],
- [
- -6.5315276,
- 56.6991713
- ],
- [
- -6.5315276,
- 56.9066964
- ],
- [
- -6.811679,
- 56.9066964
- ],
- [
- -6.811679,
- 57.3716613
- ],
- [
- -6.8721038,
- 57.3716613
- ],
- [
- -6.8721038,
- 57.5518893
- ],
- [
- -7.0973235,
- 57.5518893
- ],
- [
- -7.0973235,
- 57.2411085
- ],
- [
- -7.1742278,
- 57.2411085
- ],
- [
- -7.1742278,
- 56.9066964
- ],
- [
- -7.3719817,
- 56.9066964
- ],
- [
- -7.3719817,
- 56.8075885
- ],
- [
- -7.5202972,
- 56.8075885
- ],
- [
- -7.5202972,
- 56.7142479
- ],
- [
- -7.8306806,
- 56.7142479
- ],
- [
- -7.8306806,
- 56.8994605
- ],
- [
- -7.6494061,
- 56.8994605
- ],
- [
- -7.6494061,
- 57.4739617
- ],
- [
- -7.8306806,
- 57.4739617
- ],
- [
- -7.8306806,
- 57.7915584
- ],
- [
- -7.4736249,
- 57.7915584
- ],
- [
- -7.4736249,
- 58.086063
- ],
- [
- -7.1879804,
- 58.086063
- ],
- [
- -7.1879804,
- 58.367197
- ],
- [
- -6.8034589,
- 58.367197
- ],
- [
- -6.8034589,
- 58.4155786
- ],
- [
- -6.638664,
- 58.4155786
- ],
- [
- -6.638664,
- 58.4673277
- ],
- [
- -6.5178143,
- 58.4673277
- ],
- [
- -6.5178143,
- 58.5625632
- ],
- [
- -6.0536224,
- 58.5625632
- ],
- [
- -6.0536224,
- 58.1568843
- ],
- [
- -6.1470062,
- 58.1568843
- ],
- [
- -6.1470062,
- 58.1105865
- ],
- [
- -6.2799798,
- 58.1105865
- ],
- [
- -6.2799798,
- 57.7122664
- ],
- [
- -6.1591302,
- 57.7122664
- ],
- [
- -6.1591302,
- 57.6667563
- ],
- [
- -5.9339104,
- 57.6667563
- ],
- [
- -5.9339104,
- 57.8892524
- ],
- [
- -5.80643,
- 57.8892524
- ],
- [
- -5.80643,
- 57.9621767
- ],
- [
- -5.6141692,
- 57.9621767
- ],
- [
- -5.6141692,
- 58.0911236
- ],
- [
- -5.490819,
- 58.0911236
- ],
- [
- -5.490819,
- 58.3733281
- ],
- [
- -5.3199118,
- 58.3733281
- ],
- [
- -5.3199118,
- 58.75015
- ],
- [
- -3.5719977,
- 58.75015
- ],
- [
- -3.5719977,
- 59.2091788
- ],
- [
- -3.1944501,
- 59.2091788
- ],
- [
- -3.1944501,
- 59.4759216
- ],
- [
- -2.243583,
- 59.4759216
- ],
- [
- -2.243583,
- 59.1388749
- ],
- [
- -2.4611012,
- 59.1388749
- ],
- [
- -2.4611012,
- 58.8185938
- ],
- [
- -2.7407675,
- 58.8185938
- ],
- [
- -2.7407675,
- 58.5804743
- ],
- [
- -2.9116746,
- 58.5804743
- ],
- [
- -2.9116746,
- 58.1157523
- ],
- [
- -3.4865441,
- 58.1157523
- ],
- [
- -3.4865441,
- 57.740386
- ],
- [
- -1.7153245,
- 57.740386
- ],
- [
- -1.7153245,
- 57.2225558
- ],
- [
- -1.9794538,
- 57.2225558
- ],
- [
- -1.9794538,
- 56.8760742
- ],
- [
- -2.1658979,
- 56.8760742
- ],
- [
- -2.1658979,
- 56.6333186
- ],
- [
- -2.3601106,
- 56.6333186
- ],
- [
- -2.3601106,
- 56.0477521
- ],
- [
- -1.9794538,
- 56.0477521
- ],
- [
- -1.9794538,
- 55.8650949
- ],
- [
- -1.4745008,
- 55.8650949
- ],
- [
- -1.4745008,
- 55.2499926
- ],
- [
- -1.3221997,
- 55.2499926
- ],
- [
- -1.3221997,
- 54.8221737
- ],
- [
- -1.0550014,
- 54.8221737
- ],
- [
- -1.0550014,
- 54.6746628
- ],
- [
- -0.6618765,
- 54.6746628
- ],
- [
- -0.6618765,
- 54.5527463
- ],
- [
- -0.3247617,
- 54.5527463
- ],
- [
- -0.3247617,
- 54.2865195
- ],
- [
- 0.0092841,
- 54.2865195
- ],
- [
- 0.0092841,
- 53.7938518
- ],
- [
- 0.2081962,
- 53.7938518
- ],
- [
- 0.2081962,
- 53.5217726
- ],
- [
- 0.4163548,
- 53.5217726
- ],
- [
- 0.4163548,
- 53.0298851
- ],
- [
- 1.4273388,
- 53.0298851
- ],
- [
- 1.4273388,
- 52.92021
- ],
- [
- 1.8333912,
- 52.92021
- ],
- [
- 1.8333912,
- 52.042488
- ],
- [
- 1.5235504,
- 52.042488
- ],
- [
- 1.5235504,
- 51.8261335
- ],
- [
- 1.2697049,
- 51.8261335
- ],
- [
- 1.2697049,
- 51.6967453
- ],
- [
- 1.116651,
- 51.6967453
- ],
- [
- 1.116651,
- 51.440346
- ],
- [
- 1.5235504,
- 51.440346
- ],
- [
- 1.5235504,
- 51.3331831
- ],
- [
- 1.4507565,
- 51.3331831
- ],
- [
- 1.4507565,
- 51.0207553
- ],
- [
- 1.0699883,
- 51.0207553
- ],
- [
- 1.0699883,
- 50.9008416
- ],
- [
- 0.7788126,
- 50.9008416
- ],
- [
- 0.7788126,
- 50.729843
- ],
- [
- -0.7255952,
- 50.729843
- ],
- [
- -0.7255952,
- 50.7038437
- ],
- [
- -1.0074383,
- 50.7038437
- ],
- [
- -1.0074383,
- 50.5736307
- ],
- [
- -2.3625252,
- 50.5736307
- ],
- [
- -2.3625252,
- 50.4846421
- ],
- [
- -2.4987805,
- 50.4846421
- ],
- [
- -2.4987805,
- 50.5736307
- ],
- [
- -3.4096378,
- 50.5736307
- ],
- [
- -3.4096378,
- 50.2057837
- ],
- [
- -3.6922446,
- 50.2057837
- ],
- [
- -3.6922446,
- 50.1347737
- ],
- [
- -5.005468,
- 50.1347737
- ],
- [
- -5.005468,
- 49.9474456
- ],
- [
- -5.2839506,
- 49.9474456
- ],
- [
- -5.2839506,
- 50.0229734
- ]
- ],
- [
- [
- -6.4580707,
- 49.8673563
- ],
- [
- -6.4580707,
- 49.9499935
- ],
- [
- -6.3978807,
- 49.9499935
- ],
- [
- -6.3978807,
- 50.0053797
- ],
- [
- -6.1799606,
- 50.0053797
- ],
- [
- -6.1799606,
- 49.9168614
- ],
- [
- -6.2540201,
- 49.9168614
- ],
- [
- -6.2540201,
- 49.8673563
- ]
- ],
- [
- [
- -5.8343165,
- 49.932156
- ],
- [
- -5.8343165,
- 49.9754641
- ],
- [
- -5.7683254,
- 49.9754641
- ],
- [
- -5.7683254,
- 49.932156
- ]
- ],
- [
- [
- -1.9483797,
- 60.6885737
- ],
- [
- -1.9483797,
- 60.3058841
- ],
- [
- -1.7543149,
- 60.3058841
- ],
- [
- -1.7543149,
- 60.1284428
- ],
- [
- -1.5754914,
- 60.1284428
- ],
- [
- -1.5754914,
- 59.797917
- ],
- [
- -1.0316959,
- 59.797917
- ],
- [
- -1.0316959,
- 60.0354518
- ],
- [
- -0.6626918,
- 60.0354518
- ],
- [
- -0.6626918,
- 60.9103862
- ],
- [
- -1.1034395,
- 60.9103862
- ],
- [
- -1.1034395,
- 60.8040022
- ],
- [
- -1.3506319,
- 60.8040022
- ],
- [
- -1.3506319,
- 60.6885737
- ]
- ],
- [
- [
- -2.203381,
- 60.1968568
- ],
- [
- -2.203381,
- 60.0929443
- ],
- [
- -1.9864011,
- 60.0929443
- ],
- [
- -1.9864011,
- 60.1968568
- ]
- ],
- [
- [
- -1.7543149,
- 59.5698289
- ],
- [
- -1.7543149,
- 59.4639383
- ],
- [
- -1.5373349,
- 59.4639383
- ],
- [
- -1.5373349,
- 59.5698289
- ]
- ],
- [
- [
- -4.5585981,
- 59.1370518
- ],
- [
- -4.5585981,
- 58.9569099
- ],
- [
- -4.2867004,
- 58.9569099
- ],
- [
- -4.2867004,
- 59.1370518
- ]
- ],
- [
- [
- -6.2787732,
- 59.2025744
- ],
- [
- -6.2787732,
- 59.0227769
- ],
- [
- -5.6650612,
- 59.0227769
- ],
- [
- -5.6650612,
- 59.2025744
- ]
- ],
- [
- [
- -8.7163482,
- 57.9440556
- ],
- [
- -8.7163482,
- 57.7305936
- ],
- [
- -8.3592926,
- 57.7305936
- ],
- [
- -8.3592926,
- 57.9440556
- ]
- ],
- [
- [
- -7.6077005,
- 50.4021026
- ],
- [
- -7.6077005,
- 50.2688657
- ],
- [
- -7.3907205,
- 50.2688657
- ],
- [
- -7.3907205,
- 50.4021026
- ]
- ],
- [
- [
- -7.7304303,
- 58.3579902
- ],
- [
- -7.7304303,
- 58.248313
- ],
- [
- -7.5134503,
- 58.248313
- ],
- [
- -7.5134503,
- 58.3579902
- ]
- ]
- ]
- },
- {
- "name": "OS Scottish Popular historic",
- "type": "tms",
- "template": "http://ooc.openstreetmap.org/npescotland/tiles/{zoom}/{x}/{y}.jpg",
- "scaleExtent": [
- 6,
- 15
- ],
- "polygon": [
- [
- [
- -7.8,
- 54.5
- ],
- [
- -7.8,
- 61.1
- ],
- [
- -1.1,
- 61.1
- ],
- [
- -1.1,
- 54.5
- ],
- [
- -7.8,
- 54.5
- ]
- ]
- ]
- },
- {
- "name": "OS Town Plans, Aberdeen 1866-1867 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Aberdeen 1866-1867, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/aberdeen/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.14039404,
- 57.11218789
- ],
- [
- -2.14064752,
- 57.17894161
- ],
- [
- -2.04501987,
- 57.17901252
- ],
- [
- -2.04493842,
- 57.11225862
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/aberdeen.html",
- "terms_text": "National Library of Scotland - Aberdeen 1866-1867"
- },
- {
- "name": "OS Town Plans, Airdrie 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Airdrie 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/airdrie/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.99291738,
- 55.86408041
- ],
- [
- -3.99338933,
- 55.87329115
- ],
- [
- -3.9691085,
- 55.87368212
- ],
- [
- -3.9686423,
- 55.86447124
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/airdrie.html",
- "terms_text": "National Library of Scotland - Airdrie 1858"
- },
- {
- "name": "OS Town Plans, Alexandria 1859 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Alexandria 1859, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/alexandria/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.58973571,
- 55.97536707
- ],
- [
- -4.59104461,
- 55.99493153
- ],
- [
- -4.55985072,
- 55.99558348
- ],
- [
- -4.55855754,
- 55.97601855
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/alexandria.html",
- "terms_text": "National Library of Scotland - Alexandria 1859"
- },
- {
- "name": "OS Town Plans, Alloa 1861-1862 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Alloa 1861-1862, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/alloa/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.81166061,
- 56.09864363
- ],
- [
- -3.81274448,
- 56.12169929
- ],
- [
- -3.7804609,
- 56.12216898
- ],
- [
- -3.77939631,
- 56.09911292
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/alloa.html",
- "terms_text": "National Library of Scotland - Alloa 1861-1862"
- },
- {
- "name": "OS Town Plans, Annan 1859 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Annan 1859, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/annan/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.27921439,
- 54.98252155
- ],
- [
- -3.27960062,
- 54.9946601
- ],
- [
- -3.24866331,
- 54.99498165
- ],
- [
- -3.24828642,
- 54.98284297
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/annan.html",
- "terms_text": "National Library of Scotland - Annan 1859"
- },
- {
- "name": "OS Town Plans, Arbroath 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Arbroath 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/arbroath/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.60716469,
- 56.53995105
- ],
- [
- -2.60764981,
- 56.57022426
- ],
- [
- -2.56498708,
- 56.57042549
- ],
- [
- -2.564536,
- 56.54015206
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/arbroath.html",
- "terms_text": "National Library of Scotland - Arbroath 1858"
- },
- {
- "name": "OS Town Plans, Ayr 1855 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Ayr 1855, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/ayr/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.66768105,
- 55.43748864
- ],
- [
- -4.67080057,
- 55.48363961
- ],
- [
- -4.60609844,
- 55.48503484
- ],
- [
- -4.60305426,
- 55.43888149
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/ayr.html",
- "terms_text": "National Library of Scotland - Ayr 1855"
- },
- {
- "name": "OS Town Plans, Berwick-upon-Tweed 1852 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Berwick-upon-Tweed 1852, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/berwick/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.02117487,
- 55.75577627
- ],
- [
- -2.02118763,
- 55.77904118
- ],
- [
- -1.98976956,
- 55.77904265
- ],
- [
- -1.9897755,
- 55.75577774
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/berwick.html",
- "terms_text": "National Library of Scotland - Berwick-upon-Tweed 1852"
- },
- {
- "name": "OS Town Plans, Brechin 1862 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Brechin 1862, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/brechin/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.67480248,
- 56.71456775
- ],
- [
- -2.67521172,
- 56.73739937
- ],
- [
- -2.64319679,
- 56.73756872
- ],
- [
- -2.64280695,
- 56.71473694
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/brechin.html",
- "terms_text": "National Library of Scotland - Brechin 1862"
- },
- {
- "name": "OS Town Plans, Burntisland 1894 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Burntisland 1894, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/burntisland/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.24879624,
- 56.04240046
- ],
- [
- -3.2495182,
- 56.06472996
- ],
- [
- -3.21830572,
- 56.06504207
- ],
- [
- -3.21760179,
- 56.0427123
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/burntisland.html",
- "terms_text": "National Library of Scotland - Burntisland 1894"
- },
- {
- "name": "OS Town Plans, Campbelton 1865 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Campbelton 1865, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/campbeltown/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -5.62345307,
- 55.40255998
- ],
- [
- -5.62631353,
- 55.43375303
- ],
- [
- -5.58276654,
- 55.43503753
- ],
- [
- -5.57994024,
- 55.40384299
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/campbelton.html",
- "terms_text": "National Library of Scotland - Campbelton 1865"
- },
- {
- "name": "OS Town Plans, Coatbridge 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Coatbridge 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/coatbridge/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.05035921,
- 55.84648689
- ],
- [
- -4.05157062,
- 55.86947193
- ],
- [
- -4.01953905,
- 55.87000186
- ],
- [
- -4.01834651,
- 55.84701638
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/coatbridge.html",
- "terms_text": "National Library of Scotland - Coatbridge 1858"
- },
- {
- "name": "OS Town Plans, Cupar 1854 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Cupar 1854, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/cupar1854/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.04765872,
- 56.28653177
- ],
- [
- -3.04890965,
- 56.332192
- ],
- [
- -2.98498515,
- 56.33271677
- ],
- [
- -2.98381041,
- 56.28705563
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/cupar_1.html",
- "terms_text": "National Library of Scotland - Cupar 1854"
- },
- {
- "name": "OS Town Plans, Cupar 1893-1894 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Cupar 1893-1894, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/cupar1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.0327697,
- 56.30243657
- ],
- [
- -3.03338443,
- 56.32520139
- ],
- [
- -3.00146629,
- 56.32546356
- ],
- [
- -3.00087054,
- 56.30269852
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/cupar_2.html",
- "terms_text": "National Library of Scotland - Cupar 1893-1894"
- },
- {
- "name": "OS Town Plans, Dalkeith 1852 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dalkeith 1852, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dalkeith1852/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.07862465,
- 55.88900264
- ],
- [
- -3.0790381,
- 55.90389729
- ],
- [
- -3.05835611,
- 55.90407681
- ],
- [
- -3.05795059,
- 55.88918206
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dalkeith_1.html",
- "terms_text": "National Library of Scotland - Dalkeith 1852"
- },
- {
- "name": "OS Town Plans, Dalkeith 1893 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dalkeith 1893, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dalkeith1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.08600192,
- 55.87936087
- ],
- [
- -3.08658588,
- 55.90025926
- ],
- [
- -3.0436473,
- 55.90063074
- ],
- [
- -3.04308639,
- 55.87973206
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dalkeith_2.html",
- "terms_text": "National Library of Scotland - Dalkeith 1893"
- },
- {
- "name": "OS Town Plans, Dumbarton 1859 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dumbarton 1859, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dumbarton/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.58559982,
- 55.92742578
- ],
- [
- -4.58714245,
- 55.95056014
- ],
- [
- -4.55463269,
- 55.95123882
- ],
- [
- -4.55310939,
- 55.92810387
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dumbarton.html",
- "terms_text": "National Library of Scotland - Dumbarton 1859"
- },
- {
- "name": "OS Town Plans, Dumfries 1850 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dumfries 1850, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dumfries1850/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.63928076,
- 55.03715991
- ],
- [
- -3.64116352,
- 55.08319002
- ],
- [
- -3.57823183,
- 55.08402202
- ],
- [
- -3.57642118,
- 55.0379905
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dumfries_1.html",
- "terms_text": "National Library of Scotland - Dumfries 1850"
- },
- {
- "name": "OS Town Plans, Dumfries 1893 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dumfries 1893, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dumfries1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.63179081,
- 55.04150111
- ],
- [
- -3.63330662,
- 55.07873429
- ],
- [
- -3.58259012,
- 55.07940411
- ],
- [
- -3.58112132,
- 55.04217001
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dumfries_2.html",
- "terms_text": "National Library of Scotland - Dumfries 1893"
- },
- {
- "name": "OS Town Plans, Dundee 1857-1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dundee 1857-1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dundee1857/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.02584468,
- 56.44879161
- ],
- [
- -3.02656969,
- 56.47566815
- ],
- [
- -2.94710317,
- 56.47629984
- ],
- [
- -2.94643424,
- 56.44942266
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dundee_1.html",
- "terms_text": "National Library of Scotland - Dundee 1857-1858"
- },
- {
- "name": "OS Town Plans, Dundee 1870-1872 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dundee 1870-1872, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dundee1870/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.03399945,
- 56.448497
- ],
- [
- -3.03497463,
- 56.48435238
- ],
- [
- -2.92352705,
- 56.48523137
- ],
- [
- -2.92265681,
- 56.4493748
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dundee_2.html",
- "terms_text": "National Library of Scotland - Dundee 1870-1872"
- },
- {
- "name": "OS Town Plans, Dunfermline 1854 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dunfermline 1854, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dunfermline1854/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.49045481,
- 56.0605979
- ],
- [
- -3.49116489,
- 56.07898822
- ],
- [
- -3.44374075,
- 56.07955208
- ],
- [
- -3.44305323,
- 56.06116138
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dunfermline_1.html",
- "terms_text": "National Library of Scotland - Dunfermline 1854"
- },
- {
- "name": "OS Town Plans, Dunfermline 1894 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Dunfermline 1894, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/dunfermline1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.48284159,
- 56.05198219
- ],
- [
- -3.48399434,
- 56.08198924
- ],
- [
- -3.44209721,
- 56.08248587
- ],
- [
- -3.44097697,
- 56.05247826
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/dunfermline_2.html",
- "terms_text": "National Library of Scotland - Dunfermline 1894"
- },
- {
- "name": "OS Town Plans, Edinburgh 1849-1851 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Edinburgh 1849-1851, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/edinburgh1849/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.2361048,
- 55.921366
- ],
- [
- -3.23836397,
- 55.99217223
- ],
- [
- -3.14197035,
- 55.99310288
- ],
- [
- -3.13988689,
- 55.92229419
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/edinburgh1056_1.html",
- "terms_text": "National Library of Scotland - Edinburgh 1849-1851"
- },
- {
- "name": "OS Town Plans, Edinburgh 1876-1877 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Edinburgh 1876-1877, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/edinburgh1876/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.24740498,
- 55.92116518
- ],
- [
- -3.24989581,
- 55.99850896
- ],
- [
- -3.13061127,
- 55.99966059
- ],
- [
- -3.12835798,
- 55.92231348
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/edinburgh1056_2.html",
- "terms_text": "National Library of Scotland - Edinburgh 1876-1877"
- },
- {
- "name": "OS Town Plans, Edinburgh 1893-1894 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Edinburgh 1893-1894, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/edinburgh1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.26111081,
- 55.89555387
- ],
- [
- -3.26450423,
- 55.9997912
- ],
- [
- -3.11970824,
- 56.00119128
- ],
- [
- -3.1167031,
- 55.89694851
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/edinburgh500.html",
- "terms_text": "National Library of Scotland - Edinburgh 1893-1894"
- },
- {
- "name": "OS Town Plans, Elgin 1868 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Elgin 1868, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/elgin/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.33665196,
- 57.62879017
- ],
- [
- -3.33776583,
- 57.65907381
- ],
- [
- -3.29380859,
- 57.65953111
- ],
- [
- -3.29273129,
- 57.62924695
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/elgin.html",
- "terms_text": "National Library of Scotland - Elgin 1868"
- },
- {
- "name": "OS Town Plans, Falkirk 1858-1859 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Falkirk 1858-1859, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/falkirk/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.79587441,
- 55.99343101
- ],
- [
- -3.79697783,
- 56.01720281
- ],
- [
- -3.76648151,
- 56.01764348
- ],
- [
- -3.76539679,
- 55.99387129
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/falkirk.html",
- "terms_text": "National Library of Scotland - Falkirk 1858-1859"
- },
- {
- "name": "OS Town Plans, Forfar 1860-1861 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Forfar 1860-1861, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/forfar/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.90326183,
- 56.6289471
- ],
- [
- -2.90378797,
- 56.65095013
- ],
- [
- -2.87228457,
- 56.65117489
- ],
- [
- -2.87177676,
- 56.62917168
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/forfar.html",
- "terms_text": "National Library of Scotland - Forfar 1860-1861"
- },
- {
- "name": "OS Town Plans, Forres 1868 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Forres 1868, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/forres/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.63516795,
- 57.58887872
- ],
- [
- -3.63647637,
- 57.618002
- ],
- [
- -3.57751453,
- 57.61875171
- ],
- [
- -3.5762532,
- 57.58962759
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/forres.html",
- "terms_text": "National Library of Scotland - Forres 1868"
- },
- {
- "name": "OS Town Plans, Galashiels 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Galashiels 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/galashiels/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.82918609,
- 55.59586303
- ],
- [
- -2.82981273,
- 55.62554026
- ],
- [
- -2.78895254,
- 55.62580992
- ],
- [
- -2.78835674,
- 55.59613239
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/galashiels.html",
- "terms_text": "National Library of Scotland - Galashiels 1858"
- },
- {
- "name": "OS Town Plans, Girvan 1857 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Girvan 1857, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/girvan/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.87424251,
- 55.22679729
- ],
- [
- -4.87587895,
- 55.24945946
- ],
- [
- -4.84447382,
- 55.25019598
- ],
- [
- -4.84285519,
- 55.22753318
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/girvan.html",
- "terms_text": "National Library of Scotland - Girvan 1857"
- },
- {
- "name": "OS Town Plans, Glasgow 1857-1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Glasgow 1857-1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/glasgow1857/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.31575491,
- 55.82072009
- ],
- [
- -4.319683,
- 55.88667625
- ],
- [
- -4.1771319,
- 55.88928081
- ],
- [
- -4.1734447,
- 55.82331825
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/glasgow_1.html",
- "terms_text": "National Library of Scotland - Glasgow 1857-1858"
- },
- {
- "name": "OS Town Plans, Glasgow 1892-1894 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Glasgow 1892-1894, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/glasgow1894/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.3465357,
- 55.81456228
- ],
- [
- -4.35157646,
- 55.89806268
- ],
- [
- -4.17788765,
- 55.9012587
- ],
- [
- -4.17321842,
- 55.81774834
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/glasgow_2.html",
- "terms_text": "National Library of Scotland - Glasgow 1892-1894"
- },
- {
- "name": "OS Town Plans, Greenock 1857 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Greenock 1857, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/greenock/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.78108857,
- 55.92617865
- ],
- [
- -4.78382957,
- 55.96437481
- ],
- [
- -4.7302257,
- 55.96557475
- ],
- [
- -4.72753731,
- 55.92737687
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/greenock.html",
- "terms_text": "National Library of Scotland - Greenock 1857"
- },
- {
- "name": "OS Town Plans, Haddington 1853 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Haddington 1853, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/haddington1853/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.78855542,
- 55.9451862
- ],
- [
- -2.78888196,
- 55.96124194
- ],
- [
- -2.76674325,
- 55.9613817
- ],
- [
- -2.76642588,
- 55.94532587
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/haddington_1.html",
- "terms_text": "National Library of Scotland - Haddington 1853"
- },
- {
- "name": "OS Town Plans, Haddington 1893 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Haddington 1893, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/haddington1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.80152293,
- 55.93428734
- ],
- [
- -2.80214693,
- 55.96447189
- ],
- [
- -2.76038069,
- 55.9647367
- ],
- [
- -2.75978916,
- 55.93455185
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/haddington_2.html",
- "terms_text": "National Library of Scotland - Haddington 1893"
- },
- {
- "name": "OS Town Plans, Hamilton 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Hamilton 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/hamilton/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.06721642,
- 55.74877265
- ],
- [
- -4.06924047,
- 55.78698508
- ],
- [
- -4.01679233,
- 55.78785698
- ],
- [
- -4.01481949,
- 55.74964331
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/hamilton.html",
- "terms_text": "National Library of Scotland - Hamilton 1858"
- },
- {
- "name": "OS Town Plans, Hawick 1857-1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Hawick 1857-1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/hawick/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.80130149,
- 55.4102516
- ],
- [
- -2.80176329,
- 55.43304638
- ],
- [
- -2.7708832,
- 55.43324489
- ],
- [
- -2.77043917,
- 55.41044995
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/hawick.html",
- "terms_text": "National Library of Scotland - Hawick 1857-1858"
- },
- {
- "name": "OS Town Plans, Inverness 1867-1868 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Inverness 1867-1868, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/inverness/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.25481758,
- 57.45916363
- ],
- [
- -4.25752308,
- 57.50302387
- ],
- [
- -4.19713638,
- 57.50409032
- ],
- [
- -4.1945031,
- 57.46022829
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/inverness.html",
- "terms_text": "National Library of Scotland - Inverness 1867-1868"
- },
- {
- "name": "OS Town Plans, Irvine 1859 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Irvine 1859, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/irvine/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.67540402,
- 55.60649957
- ],
- [
- -4.67643252,
- 55.62159024
- ],
- [
- -4.65537888,
- 55.62204812
- ],
- [
- -4.65435844,
- 55.60695719
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/irvine.html",
- "terms_text": "National Library of Scotland - Irvine 1859"
- },
- {
- "name": "OS Town Plans, Jedburgh 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Jedburgh 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/jedburgh/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.56332521,
- 55.47105448
- ],
- [
- -2.56355503,
- 55.48715562
- ],
- [
- -2.54168193,
- 55.48725438
- ],
- [
- -2.54146103,
- 55.47115318
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/jedburgh.html",
- "terms_text": "National Library of Scotland - Jedburgh 1858"
- },
- {
- "name": "OS Town Plans, Kelso 1857 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Kelso 1857, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/kelso/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.44924544,
- 55.58390848
- ],
- [
- -2.44949757,
- 55.6059582
- ],
- [
- -2.41902085,
- 55.60606617
- ],
- [
- -2.41878581,
- 55.58401636
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/kelso.html",
- "terms_text": "National Library of Scotland - Kelso 1857"
- },
- {
- "name": "OS Town Plans, Kilmarnock 1857-1859 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Kilmarnock 1857-1859, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/kilmarnock/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.51746876,
- 55.58950933
- ],
- [
- -4.5194347,
- 55.62017114
- ],
- [
- -4.47675652,
- 55.62104083
- ],
- [
- -4.4748238,
- 55.59037802
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/kilmarnock.html",
- "terms_text": "National Library of Scotland - Kilmarnock 1857-1859"
- },
- {
- "name": "OS Town Plans, Kirkcaldy 1855 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Kirkcaldy 1855, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/kirkcaldy1855/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.17455285,
- 56.09518942
- ],
- [
- -3.17554995,
- 56.12790251
- ],
- [
- -3.12991402,
- 56.12832843
- ],
- [
- -3.12895559,
- 56.09561481
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/kirkcaldy_1.html",
- "terms_text": "National Library of Scotland - Kirkcaldy 1855"
- },
- {
- "name": "OS Town Plans, Kirkcaldy 1894 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Kirkcaldy 1894, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/kirkcaldy1894/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.17460426,
- 56.09513375
- ],
- [
- -3.17560428,
- 56.12794116
- ],
- [
- -3.12989512,
- 56.12836777
- ],
- [
- -3.12893395,
- 56.09555983
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/kirkcaldy_2.html",
- "terms_text": "National Library of Scotland - Kirkcaldy 1894"
- },
- {
- "name": "OS Town Plans, Kirkcudbright 1850 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Kirkcudbright 1850, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/kirkcudbright1850/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.06154334,
- 54.82586314
- ],
- [
- -4.0623081,
- 54.84086061
- ],
- [
- -4.0420219,
- 54.84120364
- ],
- [
- -4.04126464,
- 54.82620598
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/kirkcudbright_1.html",
- "terms_text": "National Library of Scotland - Kirkcudbright 1850"
- },
- {
- "name": "OS Town Plans, Kirkcudbright 1893 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Kirkcudbright 1893, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/kirkcudbright1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.06001868,
- 54.82720122
- ],
- [
- -4.06079036,
- 54.84234455
- ],
- [
- -4.04025067,
- 54.84269158
- ],
- [
- -4.03948667,
- 54.82754805
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/kirkcudbright_2.html",
- "terms_text": "National Library of Scotland - Kirkcudbright 1893"
- },
- {
- "name": "OS Town Plans, Kirkintilloch 1859 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Kirkintilloch 1859, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/kirkintilloch/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.16664222,
- 55.93124287
- ],
- [
- -4.16748402,
- 55.94631265
- ],
- [
- -4.14637318,
- 55.94668235
- ],
- [
- -4.14553956,
- 55.93161237
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/kirkintilloch.html",
- "terms_text": "National Library of Scotland - Kirkintilloch 1859"
- },
- {
- "name": "OS Town Plans, Kirriemuir 1861 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Kirriemuir 1861, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/kirriemuir/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.01255744,
- 56.65896044
- ],
- [
- -3.01302683,
- 56.67645382
- ],
- [
- -2.98815879,
- 56.67665366
- ],
- [
- -2.98770092,
- 56.65916014
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/kirriemuir.html",
- "terms_text": "National Library of Scotland - Kirriemuir 1861"
- },
- {
- "name": "OS Town Plans, Lanark 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Lanark 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/lanark/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.78642584,
- 55.66308804
- ],
- [
- -3.78710605,
- 55.67800854
- ],
- [
- -3.76632876,
- 55.67830935
- ],
- [
- -3.76565645,
- 55.66338868
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/lanark.html",
- "terms_text": "National Library of Scotland - Lanark 1858"
- },
- {
- "name": "OS Town Plans, Linlithgow 1856 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Linlithgow 1856, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/linlithgow/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.61908334,
- 55.95549561
- ],
- [
- -3.62033259,
- 55.98538615
- ],
- [
- -3.57838447,
- 55.98593047
- ],
- [
- -3.57716753,
- 55.95603932
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/linlithgow.html",
- "terms_text": "National Library of Scotland - Linlithgow 1856"
- },
- {
- "name": "OS Town Plans, Mayole 1856-1857 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Mayole 1856-1857, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/maybole/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.69086378,
- 55.34340178
- ],
- [
- -4.6918884,
- 55.35849731
- ],
- [
- -4.67089656,
- 55.35895813
- ],
- [
- -4.6698799,
- 55.34386234
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/maybole.html",
- "terms_text": "National Library of Scotland - Mayole 1856-1857"
- },
- {
- "name": "OS Town Plans, Montrose 1861-1862 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Montrose 1861-1862, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/montrose/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.4859324,
- 56.69645192
- ],
- [
- -2.4862257,
- 56.71918799
- ],
- [
- -2.45405417,
- 56.71930941
- ],
- [
- -2.45378027,
- 56.69657324
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/montrose.html",
- "terms_text": "National Library of Scotland - Montrose 1861-1862"
- },
- {
- "name": "OS Town Plans, Musselburgh 1853 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Musselburgh 1853, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/musselburgh1853/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.07888558,
- 55.93371953
- ],
- [
- -3.07954151,
- 55.95729781
- ],
- [
- -3.03240684,
- 55.95770177
- ],
- [
- -3.03177952,
- 55.93412313
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/musselburgh_1.html",
- "terms_text": "National Library of Scotland - Musselburgh 1853"
- },
- {
- "name": "OS Town Plans, Musselburgh 1893 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Musselburgh 1893, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/musselburgh1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.07017621,
- 55.92694102
- ],
- [
- -3.07078961,
- 55.94917624
- ],
- [
- -3.03988228,
- 55.94944099
- ],
- [
- -3.03928658,
- 55.92720556
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/musselburgh_2.html",
- "terms_text": "National Library of Scotland - Musselburgh 1893"
- },
- {
- "name": "OS Town Plans, Nairn 1867-1868 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Nairn 1867-1868, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/nairn/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.88433907,
- 57.57899149
- ],
- [
- -3.88509905,
- 57.5936822
- ],
- [
- -3.85931017,
- 57.59406441
- ],
- [
- -3.85856057,
- 57.57937348
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/nairn.html",
- "terms_text": "National Library of Scotland - Nairn 1867-1868"
- },
- {
- "name": "OS Town Plans, Oban 1867-1868 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Oban 1867-1868, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/oban/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -5.49548449,
- 56.39080407
- ],
- [
- -5.49836627,
- 56.42219039
- ],
- [
- -5.45383984,
- 56.42343933
- ],
- [
- -5.45099456,
- 56.39205153
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/oban.html",
- "terms_text": "National Library of Scotland - Oban 1867-1868"
- },
- {
- "name": "OS Town Plans, Peebles 1856 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Peebles 1856, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/peebles/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.20921287,
- 55.63635834
- ],
- [
- -3.20990288,
- 55.65873817
- ],
- [
- -3.17896372,
- 55.65903935
- ],
- [
- -3.17829135,
- 55.63665927
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/peebles.html",
- "terms_text": "National Library of Scotland - Peebles 1856"
- },
- {
- "name": "OS Town Plans, Perth 1860 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Perth 1860, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/perth/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.45302495,
- 56.37794226
- ],
- [
- -3.45416664,
- 56.40789908
- ],
- [
- -3.41187528,
- 56.40838777
- ],
- [
- -3.41076676,
- 56.3784304
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/perth.html",
- "terms_text": "National Library of Scotland - Perth 1860"
- },
- {
- "name": "OS Town Plans, Peterhead 1868 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Peterhead 1868, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/peterhead/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -1.80513747,
- 57.48046916
- ],
- [
- -1.80494005,
- 57.51755411
- ],
- [
- -1.75135366,
- 57.51746003
- ],
- [
- -1.75160539,
- 57.48037522
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/peterhead",
- "terms_text": "National Library of Scotland - Peterhead 1868"
- },
- {
- "name": "OS Town Plans, Port Glasgow 1856-1857 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Port Glasgow 1856-1857, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/portglasgow/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.70063209,
- 55.91995983
- ],
- [
- -4.70222026,
- 55.9427679
- ],
- [
- -4.67084958,
- 55.94345237
- ],
- [
- -4.6692798,
- 55.92064372
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/port-glasgow.html",
- "terms_text": "National Library of Scotland - Port Glasgow 1856-1857"
- },
- {
- "name": "OS Town Plans, Portobello 1893-1894 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Portobello 1893-1894, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/portobello/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.12437919,
- 55.93846889
- ],
- [
- -3.1250234,
- 55.96068605
- ],
- [
- -3.09394827,
- 55.96096586
- ],
- [
- -3.09332184,
- 55.93874847
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/portobello.html",
- "terms_text": "National Library of Scotland - Portobello 1893-1894"
- },
- {
- "name": "OS Town Plans, Rothesay 1862-1863 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Rothesay 1862-1863, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/rothesay/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -5.06449893,
- 55.82864114
- ],
- [
- -5.06569719,
- 55.84385927
- ],
- [
- -5.04413114,
- 55.84439519
- ],
- [
- -5.04294127,
- 55.82917676
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/rothesay.html",
- "terms_text": "National Library of Scotland - Rothesay 1862-1863"
- },
- {
- "name": "OS Town Plans, Selkirk 1865 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Selkirk 1865, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/selkirk/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.85998582,
- 55.53499576
- ],
- [
- -2.86063259,
- 55.56459732
- ],
- [
- -2.82003242,
- 55.56487574
- ],
- [
- -2.81941615,
- 55.53527387
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/selkirk.html",
- "terms_text": "National Library of Scotland - Selkirk 1865"
- },
- {
- "name": "OS Town Plans, St Andrews 1854 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of St Andrews 1854, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/standrews1854/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.81342686,
- 56.32097352
- ],
- [
- -2.81405804,
- 56.3506222
- ],
- [
- -2.77243712,
- 56.35088865
- ],
- [
- -2.77183819,
- 56.32123967
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/st-andrews_1.html",
- "terms_text": "National Library of Scotland - St Andrews 1854"
- },
- {
- "name": "OS Town Plans, St Andrews 1893 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of St Andrews 1893, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/standrews1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.81545583,
- 56.31861733
- ],
- [
- -2.81609919,
- 56.3487653
- ],
- [
- -2.77387785,
- 56.34903619
- ],
- [
- -2.77326775,
- 56.31888792
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/st-andrews_2.html",
- "terms_text": "National Library of Scotland - St Andrews 1893"
- },
- {
- "name": "OS Town Plans, Stirling 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Stirling 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/stirling/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.95768489,
- 56.10754239
- ],
- [
- -3.95882978,
- 56.13007142
- ],
- [
- -3.92711024,
- 56.13057046
- ],
- [
- -3.92598386,
- 56.10804101
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/stirling.html",
- "terms_text": "National Library of Scotland - Stirling 1858"
- },
- {
- "name": "OS Town Plans, Stonehaven 1864 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Stonehaven 1864, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/stonehaven/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -2.220167,
- 56.9565098
- ],
- [
- -2.2202543,
- 56.97129283
- ],
- [
- -2.19924399,
- 56.9713281
- ],
- [
- -2.19916501,
- 56.95654504
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/stonehaven.html",
- "terms_text": "National Library of Scotland - Stonehaven 1864"
- },
- {
- "name": "OS Town Plans, Stranraer 1847 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Stranraer 1847, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/stranraer1847/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -5.04859743,
- 54.8822997
- ],
- [
- -5.0508954,
- 54.91268061
- ],
- [
- -5.0095373,
- 54.91371278
- ],
- [
- -5.00727037,
- 54.88333071
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/stranraer_1.html",
- "terms_text": "National Library of Scotland - Stranraer 1847"
- },
- {
- "name": "OS Town Plans, Stranraer 1863-1877 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Stranraer 1863-1877, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/stranraer1867/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -5.04877289,
- 54.88228699
- ],
- [
- -5.05107324,
- 54.9126976
- ],
- [
- -5.00947337,
- 54.91373582
- ],
- [
- -5.00720427,
- 54.88332405
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/stranraer_1a.html",
- "terms_text": "National Library of Scotland - Stranraer 1863-1877"
- },
- {
- "name": "OS Town Plans, Stranraer 1893 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Stranraer 1893, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/stranraer1893/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -5.04418424,
- 54.89773858
- ],
- [
- -5.04511026,
- 54.90999885
- ],
- [
- -5.0140499,
- 54.91077389
- ],
- [
- -5.0131333,
- 54.89851327
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/stranraer_2.html",
- "terms_text": "National Library of Scotland - Stranraer 1893"
- },
- {
- "name": "OS Town Plans, Strathaven 1858 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Strathaven 1858, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/strathaven/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.06914872,
- 55.67242091
- ],
- [
- -4.06954357,
- 55.67989707
- ],
- [
- -4.05917487,
- 55.6800715
- ],
- [
- -4.05878199,
- 55.67259529
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/strathaven.html",
- "terms_text": "National Library of Scotland - Strathaven 1858"
- },
- {
- "name": "OS Town Plans, Wick 1872 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Wick 1872, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/wick/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -3.11470001,
- 58.41344839
- ],
- [
- -3.11588837,
- 58.45101446
- ],
- [
- -3.05949843,
- 58.45149284
- ],
- [
- -3.05837008,
- 58.41392606
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/wick.html",
- "terms_text": "National Library of Scotland - Wick 1872"
- },
- {
- "name": "OS Town Plans, Wigtown 1848 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Wigtown 1848, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/wigtown1848/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.45235587,
- 54.8572296
- ],
- [
- -4.45327284,
- 54.87232603
- ],
- [
- -4.43254469,
- 54.87274317
- ],
- [
- -4.43163545,
- 54.85764651
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/wigtown_1.html",
- "terms_text": "National Library of Scotland - Wigtown 1848"
- },
- {
- "name": "OS Town Plans, Wigtown 1894 (NLS)",
- "type": "tms",
- "description": "Detailed town plan of Wigtown 1894, courtesy of National Library of Scotland.",
- "template": "http://geo.nls.uk/maps/towns/wigtown1894/{zoom}/{x}/{-y}.png",
- "scaleExtent": [
- 13,
- 20
- ],
- "polygon": [
- [
- [
- -4.45233361,
- 54.85721131
- ],
- [
- -4.45325423,
- 54.87236807
- ],
- [
- -4.43257837,
- 54.87278416
- ],
- [
- -4.43166549,
- 54.85762716
- ]
- ]
- ],
- "terms_url": "http://maps.nls.uk/townplans/wigtown_2.html",
- "terms_text": "National Library of Scotland - Wigtown 1894"
- },
- {
- "name": "OpenPT Map (overlay)",
- "type": "tms",
- "template": "http://openptmap.de/tiles/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 5,
- 16
- ],
- "polygon": [
- [
- [
- 6.4901072,
- 53.665658
- ],
- [
- 8.5665347,
- 53.9848257
- ],
- [
- 8.1339457,
- 54.709715
- ],
- [
- 8.317796,
- 55.0952362
- ],
- [
- 10.1887438,
- 54.7783834
- ],
- [
- 10.6321475,
- 54.4778841
- ],
- [
- 11.2702164,
- 54.6221504
- ],
- [
- 11.681176,
- 54.3709243
- ],
- [
- 12.0272473,
- 54.3898199
- ],
- [
- 13.3250145,
- 54.8531617
- ],
- [
- 13.9198245,
- 54.6972173
- ],
- [
- 14.2118221,
- 54.1308273
- ],
- [
- 14.493005,
- 53.2665063
- ],
- [
- 14.1577485,
- 52.8766495
- ],
- [
- 14.7525584,
- 52.5819369
- ],
- [
- 15.0986297,
- 51.0171541
- ],
- [
- 14.9364088,
- 50.8399279
- ],
- [
- 14.730929,
- 50.7920977
- ],
- [
- 14.4389313,
- 50.8808862
- ],
- [
- 12.9573138,
- 50.3939044
- ],
- [
- 12.51391,
- 50.3939044
- ],
- [
- 12.3084302,
- 50.1173237
- ],
- [
- 12.6112425,
- 49.9088337
- ],
- [
- 12.394948,
- 49.7344006
- ],
- [
- 12.7734634,
- 49.4047626
- ],
- [
- 14.1469337,
- 48.6031036
- ],
- [
- 14.6768553,
- 48.6531391
- ],
- [
- 15.0661855,
- 49.0445497
- ],
- [
- 16.2666202,
- 48.7459305
- ],
- [
- 16.4937294,
- 48.8741286
- ],
- [
- 16.904689,
- 48.7173975
- ],
- [
- 16.9371332,
- 48.5315383
- ],
- [
- 16.8384693,
- 48.3823161
- ],
- [
- 17.2017097,
- 48.010204
- ],
- [
- 17.1214145,
- 47.6997605
- ],
- [
- 16.777292,
- 47.6585709
- ],
- [
- 16.6090543,
- 47.7460598
- ],
- [
- 16.410228,
- 47.6637214
- ],
- [
- 16.7352326,
- 47.6147714
- ],
- [
- 16.5555242,
- 47.3589738
- ],
- [
- 16.4790525,
- 46.9768539
- ],
- [
- 16.0355168,
- 46.8096295
- ],
- [
- 16.0508112,
- 46.6366332
- ],
- [
- 14.9572663,
- 46.6313822
- ],
- [
- 14.574908,
- 46.3892866
- ],
- [
- 12.3954655,
- 46.6891149
- ],
- [
- 12.1507562,
- 47.0550608
- ],
- [
- 11.1183887,
- 46.9142058
- ],
- [
- 11.0342699,
- 46.7729797
- ],
- [
- 10.4836739,
- 46.8462544
- ],
- [
- 10.4607324,
- 46.5472973
- ],
- [
- 10.1013156,
- 46.5735879
- ],
- [
- 10.2007287,
- 46.1831867
- ],
- [
- 9.8948421,
- 46.3629068
- ],
- [
- 9.5966026,
- 46.2889758
- ],
- [
- 9.2983631,
- 46.505206
- ],
- [
- 9.2830687,
- 46.2572605
- ],
- [
- 9.0536537,
- 45.7953255
- ],
- [
- 8.4265861,
- 46.2466846
- ],
- [
- 8.4418804,
- 46.4736161
- ],
- [
- 7.8759901,
- 45.9284607
- ],
- [
- 7.0959791,
- 45.8645956
- ],
- [
- 6.7747981,
- 46.1620044
- ],
- [
- 6.8206811,
- 46.4051083
- ],
- [
- 6.5453831,
- 46.4578142
- ],
- [
- 6.3312624,
- 46.3840116
- ],
- [
- 6.3847926,
- 46.2466846
- ],
- [
- 5.8953739,
- 46.0878021
- ],
- [
- 6.1171418,
- 46.3681838
- ],
- [
- 6.0942003,
- 46.5998657
- ],
- [
- 6.4383228,
- 46.7782169
- ],
- [
- 6.4306756,
- 46.9298747
- ],
- [
- 7.0806847,
- 47.3460216
- ],
- [
- 6.8436226,
- 47.3719227
- ],
- [
- 6.9965659,
- 47.5012373
- ],
- [
- 7.1800979,
- 47.5064033
- ],
- [
- 7.2336281,
- 47.439206
- ],
- [
- 7.4553959,
- 47.4805683
- ],
- [
- 7.7842241,
- 48.645735
- ],
- [
- 8.1971711,
- 49.0282701
- ],
- [
- 7.6006921,
- 49.0382974
- ],
- [
- 7.4477487,
- 49.1634679
- ],
- [
- 7.2030394,
- 49.1034255
- ],
- [
- 6.6677378,
- 49.1634679
- ],
- [
- 6.6371491,
- 49.3331933
- ],
- [
- 6.3542039,
- 49.4576194
- ],
- [
- 6.5453831,
- 49.8043366
- ],
- [
- 6.2471436,
- 49.873384
- ],
- [
- 6.0789059,
- 50.1534883
- ],
- [
- 6.3618511,
- 50.3685934
- ],
- [
- 6.0865531,
- 50.7039632
- ],
- [
- 5.8800796,
- 51.0513752
- ],
- [
- 6.1247889,
- 51.1618085
- ],
- [
- 6.1936134,
- 51.491527
- ],
- [
- 5.9641984,
- 51.7526501
- ],
- [
- 6.0253758,
- 51.8897286
- ],
- [
- 6.4536171,
- 51.8661241
- ],
- [
- 6.8436226,
- 51.9557552
- ],
- [
- 6.6906793,
- 52.0499105
- ],
- [
- 7.0042131,
- 52.2282603
- ],
- [
- 7.0195074,
- 52.4525245
- ],
- [
- 6.6983264,
- 52.4665032
- ],
- [
- 6.6906793,
- 52.6524628
- ],
- [
- 7.0348017,
- 52.6385432
- ],
- [
- 7.0730376,
- 52.8330151
- ],
- [
- 7.2183337,
- 52.9852064
- ],
- [
- 7.1953922,
- 53.3428087
- ],
- [
- 7.0042131,
- 53.3291098
- ]
- ]
- ],
- "terms_url": "http://openstreetmap.org/",
- "terms_text": "© OpenStreetMap contributors, CC-BY-SA"
- },
- {
- "name": "OpenStreetMap (Mapnik)",
- "type": "tms",
- "description": "The default OpenStreetMap layer.",
- "template": "http://tile.openstreetmap.org/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 19
- ],
- "terms_url": "http://openstreetmap.org/",
- "terms_text": "© OpenStreetMap contributors, CC-BY-SA",
- "id": "MAPNIK",
- "default": true
- },
- {
- "name": "OpenStreetMap GPS traces",
- "type": "tms",
- "description": "Public GPS traces uploaded to OpenStreetMap.",
- "template": "http://{switch:a,b,c}.gps-tile.openstreetmap.org/lines/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 20
- ],
- "terms_url": "http://www.openstreetmap.org/copyright",
- "terms_text": "© OpenStreetMap contributors",
- "terms_html": "© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap contributors</a>. North: <span style='display: inline-block; width: 10px; height: 10px; background-color: #7fed11;'></span> South: <span style='display: inline-block; width: 10px; height: 10px; background-color: #7f11ed;'></span> East: <span style='display: inline-block; width: 10px; height: 10px; background-color: #ff3f3f;'></span> West: <span style='display: inline-block; width: 10px; height: 10px; background-color: #00bfbf;'></span>",
- "overlay": true
- },
- {
- "name": "Pangasinán/Bulacan (Phillipines HiRes)",
- "type": "tms",
- "template": "http://gravitystorm.dev.openstreetmap.org/imagery/philippines/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 12,
- 19
- ],
- "polygon": [
- [
- [
- 120.336593,
- 15.985768
- ],
- [
- 120.445995,
- 15.984
- ],
- [
- 120.446134,
- 15.974459
- ],
- [
- 120.476464,
- 15.974592
- ],
- [
- 120.594247,
- 15.946832
- ],
- [
- 120.598064,
- 16.090795
- ],
- [
- 120.596537,
- 16.197999
- ],
- [
- 120.368537,
- 16.218527
- ],
- [
- 120.347576,
- 16.042308
- ],
- [
- 120.336593,
- 15.985768
- ]
- ],
- [
- [
- 120.8268,
- 15.3658
- ],
- [
- 121.2684,
- 15.2602
- ],
- [
- 121.2699,
- 14.7025
- ],
- [
- 120.695,
- 14.8423
- ]
- ]
- ]
- },
- {
- "name": "Slovakia EEA CORINE 2006",
- "type": "tms",
- "template": "http://www.freemap.sk/tms/clc/{zoom}/{x}/{y}.png",
- "polygon": [
- [
- [
- 19.83682,
- 49.25529
- ],
- [
- 19.80075,
- 49.42385
- ],
- [
- 19.60437,
- 49.48058
- ],
- [
- 19.49179,
- 49.63961
- ],
- [
- 19.21831,
- 49.52604
- ],
- [
- 19.16778,
- 49.42521
- ],
- [
- 19.00308,
- 49.42236
- ],
- [
- 18.97611,
- 49.5308
- ],
- [
- 18.54685,
- 49.51425
- ],
- [
- 18.31432,
- 49.33818
- ],
- [
- 18.15913,
- 49.2961
- ],
- [
- 18.05564,
- 49.11134
- ],
- [
- 17.56396,
- 48.84938
- ],
- [
- 17.17929,
- 48.88816
- ],
- [
- 17.058,
- 48.81105
- ],
- [
- 16.90426,
- 48.61947
- ],
- [
- 16.79685,
- 48.38561
- ],
- [
- 17.06762,
- 48.01116
- ],
- [
- 17.32787,
- 47.97749
- ],
- [
- 17.51699,
- 47.82535
- ],
- [
- 17.74776,
- 47.73093
- ],
- [
- 18.29515,
- 47.72075
- ],
- [
- 18.67959,
- 47.75541
- ],
- [
- 18.89755,
- 47.81203
- ],
- [
- 18.79463,
- 47.88245
- ],
- [
- 18.84318,
- 48.04046
- ],
- [
- 19.46212,
- 48.05333
- ],
- [
- 19.62064,
- 48.22938
- ],
- [
- 19.89585,
- 48.09387
- ],
- [
- 20.33766,
- 48.2643
- ],
- [
- 20.55395,
- 48.52358
- ],
- [
- 20.82335,
- 48.55714
- ],
- [
- 21.10271,
- 48.47096
- ],
- [
- 21.45863,
- 48.55513
- ],
- [
- 21.74536,
- 48.31435
- ],
- [
- 22.15293,
- 48.37179
- ],
- [
- 22.61255,
- 49.08914
- ],
- [
- 22.09997,
- 49.23814
- ],
- [
- 21.9686,
- 49.36363
- ],
- [
- 21.6244,
- 49.46989
- ],
- [
- 21.06873,
- 49.46402
- ],
- [
- 20.94336,
- 49.31088
- ],
- [
- 20.73052,
- 49.44006
- ],
- [
- 20.22804,
- 49.41714
- ],
- [
- 20.05234,
- 49.23052
- ],
- [
- 19.83682,
- 49.25529
- ]
- ]
- ],
- "terms_url": "http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1",
- "terms_text": "EEA Corine 2006"
- },
- {
- "name": "Slovakia EEA GMES Urban Atlas",
- "type": "tms",
- "template": "http://www.freemap.sk/tms/urbanatlas/{zoom}/{x}/{y}.png",
- "polygon": [
- [
- [
- 19.83682,
- 49.25529
- ],
- [
- 19.80075,
- 49.42385
- ],
- [
- 19.60437,
- 49.48058
- ],
- [
- 19.49179,
- 49.63961
- ],
- [
- 19.21831,
- 49.52604
- ],
- [
- 19.16778,
- 49.42521
- ],
- [
- 19.00308,
- 49.42236
- ],
- [
- 18.97611,
- 49.5308
- ],
- [
- 18.54685,
- 49.51425
- ],
- [
- 18.31432,
- 49.33818
- ],
- [
- 18.15913,
- 49.2961
- ],
- [
- 18.05564,
- 49.11134
- ],
- [
- 17.56396,
- 48.84938
- ],
- [
- 17.17929,
- 48.88816
- ],
- [
- 17.058,
- 48.81105
- ],
- [
- 16.90426,
- 48.61947
- ],
- [
- 16.79685,
- 48.38561
- ],
- [
- 17.06762,
- 48.01116
- ],
- [
- 17.32787,
- 47.97749
- ],
- [
- 17.51699,
- 47.82535
- ],
- [
- 17.74776,
- 47.73093
- ],
- [
- 18.29515,
- 47.72075
- ],
- [
- 18.67959,
- 47.75541
- ],
- [
- 18.89755,
- 47.81203
- ],
- [
- 18.79463,
- 47.88245
- ],
- [
- 18.84318,
- 48.04046
- ],
- [
- 19.46212,
- 48.05333
- ],
- [
- 19.62064,
- 48.22938
- ],
- [
- 19.89585,
- 48.09387
- ],
- [
- 20.33766,
- 48.2643
- ],
- [
- 20.55395,
- 48.52358
- ],
- [
- 20.82335,
- 48.55714
- ],
- [
- 21.10271,
- 48.47096
- ],
- [
- 21.45863,
- 48.55513
- ],
- [
- 21.74536,
- 48.31435
- ],
- [
- 22.15293,
- 48.37179
- ],
- [
- 22.61255,
- 49.08914
- ],
- [
- 22.09997,
- 49.23814
- ],
- [
- 21.9686,
- 49.36363
- ],
- [
- 21.6244,
- 49.46989
- ],
- [
- 21.06873,
- 49.46402
- ],
- [
- 20.94336,
- 49.31088
- ],
- [
- 20.73052,
- 49.44006
- ],
- [
- 20.22804,
- 49.41714
- ],
- [
- 20.05234,
- 49.23052
- ],
- [
- 19.83682,
- 49.25529
- ]
- ]
- ],
- "terms_url": "http://www.eea.europa.eu/data-and-maps/data/urban-atlas",
- "terms_text": "EEA GMES Urban Atlas"
- },
- {
- "name": "Slovakia Historic Maps",
- "type": "tms",
- "template": "http://tms.freemap.sk/historicke/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 12
- ],
- "polygon": [
- [
- [
- 16.8196949,
- 47.4927236
- ],
- [
- 16.8196949,
- 49.5030322
- ],
- [
- 22.8388318,
- 49.5030322
- ],
- [
- 22.8388318,
- 47.4927236
- ],
- [
- 16.8196949,
- 47.4927236
- ]
- ]
- ]
- },
- {
- "name": "South Africa CD:NGI Aerial",
- "type": "tms",
- "template": "http://{switch:a,b,c}.aerial.openstreetmap.org.za/ngi-aerial/{zoom}/{x}/{y}.jpg",
- "scaleExtent": [
- 1,
- 22
- ],
- "polygon": [
- [
- [
- 17.8396817,
- -32.7983384
- ],
- [
- 17.8893509,
- -32.6972835
- ],
- [
- 18.00364,
- -32.6982187
- ],
- [
- 18.0991679,
- -32.7485251
- ],
- [
- 18.2898747,
- -32.5526645
- ],
- [
- 18.2930182,
- -32.0487089
- ],
- [
- 18.105455,
- -31.6454966
- ],
- [
- 17.8529257,
- -31.3443951
- ],
- [
- 17.5480046,
- -30.902171
- ],
- [
- 17.4044506,
- -30.6374731
- ],
- [
- 17.2493704,
- -30.3991663
- ],
- [
- 16.9936977,
- -29.6543552
- ],
- [
- 16.7987996,
- -29.19437
- ],
- [
- 16.5494139,
- -28.8415949
- ],
- [
- 16.4498691,
- -28.691876
- ],
- [
- 16.4491046,
- -28.5515766
- ],
- [
- 16.6002551,
- -28.4825663
- ],
- [
- 16.7514057,
- -28.4486958
- ],
- [
- 16.7462192,
- -28.2458973
- ],
- [
- 16.8855148,
- -28.04729
- ],
- [
- 16.9929502,
- -28.0244005
- ],
- [
- 17.0529659,
- -28.0257086
- ],
- [
- 17.1007562,
- -28.0338839
- ],
- [
- 17.2011527,
- -28.0930546
- ],
- [
- 17.2026346,
- -28.2328424
- ],
- [
- 17.2474611,
- -28.2338215
- ],
- [
- 17.2507953,
- -28.198892
- ],
- [
- 17.3511919,
- -28.1975861
- ],
- [
- 17.3515624,
- -28.2442655
- ],
- [
- 17.4015754,
- -28.2452446
- ],
- [
- 17.4149122,
- -28.3489751
- ],
- [
- 17.4008345,
- -28.547997
- ],
- [
- 17.4526999,
- -28.5489733
- ],
- [
- 17.4512071,
- -28.6495106
- ],
- [
- 17.4983599,
- -28.6872054
- ],
- [
- 17.6028204,
- -28.6830048
- ],
- [
- 17.6499732,
- -28.6967928
- ],
- [
- 17.6525928,
- -28.7381457
- ],
- [
- 17.801386,
- -28.7381457
- ],
- [
- 17.9994276,
- -28.7560602
- ],
- [
- 18.0002748,
- -28.7956172
- ],
- [
- 18.1574507,
- -28.8718055
- ],
- [
- 18.5063811,
- -28.8718055
- ],
- [
- 18.6153564,
- -28.8295875
- ],
- [
- 18.9087513,
- -28.8277516
- ],
- [
- 19.1046973,
- -28.9488548
- ],
- [
- 19.1969071,
- -28.9378513
- ],
- [
- 19.243012,
- -28.8516164
- ],
- [
- 19.2314858,
- -28.802963
- ],
- [
- 19.2587296,
- -28.7009928
- ],
- [
- 19.4431493,
- -28.6973163
- ],
- [
- 19.5500289,
- -28.4958332
- ],
- [
- 19.6967264,
- -28.4939914
- ],
- [
- 19.698822,
- -28.4479358
- ],
- [
- 19.8507587,
- -28.4433291
- ],
- [
- 19.8497109,
- -28.4027818
- ],
- [
- 19.9953605,
- -28.399095
- ],
- [
- 19.9893671,
- -24.7497859
- ],
- [
- 20.2916682,
- -24.9192346
- ],
- [
- 20.4724562,
- -25.1501701
- ],
- [
- 20.6532441,
- -25.4529449
- ],
- [
- 20.733265,
- -25.6801957
- ],
- [
- 20.8281046,
- -25.8963498
- ],
- [
- 20.8429232,
- -26.215851
- ],
- [
- 20.6502804,
- -26.4840868
- ],
- [
- 20.6532441,
- -26.8204869
- ],
- [
- 21.0889134,
- -26.846933
- ],
- [
- 21.6727695,
- -26.8389998
- ],
- [
- 21.7765003,
- -26.6696268
- ],
- [
- 21.9721069,
- -26.6431395
- ],
- [
- 22.2803355,
- -26.3274702
- ],
- [
- 22.5707817,
- -26.1333967
- ],
- [
- 22.7752795,
- -25.6775246
- ],
- [
- 23.0005235,
- -25.2761948
- ],
- [
- 23.4658301,
- -25.2735148
- ],
- [
- 23.883717,
- -25.597366
- ],
- [
- 24.2364017,
- -25.613402
- ],
- [
- 24.603905,
- -25.7896563
- ],
- [
- 25.110704,
- -25.7389432
- ],
- [
- 25.5078447,
- -25.6855376
- ],
- [
- 25.6441766,
- -25.4823781
- ],
- [
- 25.8419267,
- -24.7805437
- ],
- [
- 25.846641,
- -24.7538456
- ],
- [
- 26.3928487,
- -24.6332894
- ],
- [
- 26.4739066,
- -24.5653312
- ],
- [
- 26.5089966,
- -24.4842437
- ],
- [
- 26.5861946,
- -24.4075775
- ],
- [
- 26.7300635,
- -24.3014458
- ],
- [
- 26.8567384,
- -24.2499463
- ],
- [
- 26.8574402,
- -24.1026901
- ],
- [
- 26.9215471,
- -23.8990957
- ],
- [
- 26.931831,
- -23.8461891
- ],
- [
- 26.9714827,
- -23.6994344
- ],
- [
- 27.0006074,
- -23.6367644
- ],
- [
- 27.0578041,
- -23.6052574
- ],
- [
- 27.1360547,
- -23.5203437
- ],
- [
- 27.3339623,
- -23.3973792
- ],
- [
- 27.5144057,
- -23.3593929
- ],
- [
- 27.5958145,
- -23.2085465
- ],
- [
- 27.8098634,
- -23.0994957
- ],
- [
- 27.8828506,
- -23.0620496
- ],
- [
- 27.9382928,
- -22.9496487
- ],
- [
- 28.0407556,
- -22.8255118
- ],
- [
- 28.2056786,
- -22.6552861
- ],
- [
- 28.3397223,
- -22.5639374
- ],
- [
- 28.4906093,
- -22.560697
- ],
- [
- 28.6108769,
- -22.5400248
- ],
- [
- 28.828175,
- -22.4550173
- ],
- [
- 28.9285324,
- -22.4232328
- ],
- [
- 28.9594116,
- -22.3090081
- ],
- [
- 29.0162574,
- -22.208335
- ],
- [
- 29.2324117,
- -22.1693453
- ],
- [
- 29.3531213,
- -22.1842926
- ],
- [
- 29.6548952,
- -22.1186426
- ],
- [
- 29.7777102,
- -22.1361956
- ],
- [
- 29.9292989,
- -22.1849425
- ],
- [
- 30.1166795,
- -22.2830348
- ],
- [
- 30.2563377,
- -22.2914767
- ],
- [
- 30.3033582,
- -22.3395204
- ],
- [
- 30.5061784,
- -22.3057617
- ],
- [
- 30.8374279,
- -22.284983
- ],
- [
- 31.0058599,
- -22.3077095
- ],
- [
- 31.1834152,
- -22.3232913
- ],
- [
- 31.2930586,
- -22.3674647
- ],
- [
- 31.5680579,
- -23.1903385
- ],
- [
- 31.5568311,
- -23.4430809
- ],
- [
- 31.6931122,
- -23.6175209
- ],
- [
- 31.7119696,
- -23.741136
- ],
- [
- 31.7774743,
- -23.8800628
- ],
- [
- 31.8886337,
- -23.9481098
- ],
- [
- 31.9144386,
- -24.1746736
- ],
- [
- 31.9948307,
- -24.3040878
- ],
- [
- 32.0166656,
- -24.4405988
- ],
- [
- 32.0077331,
- -24.6536578
- ],
- [
- 32.019643,
- -24.9140701
- ],
- [
- 32.035523,
- -25.0849767
- ],
- [
- 32.019643,
- -25.3821442
- ],
- [
- 31.9928457,
- -25.4493771
- ],
- [
- 31.9997931,
- -25.5165725
- ],
- [
- 32.0057481,
- -25.6078978
- ],
- [
- 32.0057481,
- -25.6624806
- ],
- [
- 31.9362735,
- -25.8403721
- ],
- [
- 31.9809357,
- -25.9546537
- ],
- [
- 31.8687838,
- -26.0037251
- ],
- [
- 31.4162062,
- -25.7277683
- ],
- [
- 31.3229117,
- -25.7438611
- ],
- [
- 31.2504595,
- -25.8296526
- ],
- [
- 31.1393001,
- -25.9162746
- ],
- [
- 31.1164727,
- -25.9912361
- ],
- [
- 30.9656135,
- -26.2665756
- ],
- [
- 30.8921689,
- -26.3279703
- ],
- [
- 30.8534616,
- -26.4035568
- ],
- [
- 30.8226943,
- -26.4488849
- ],
- [
- 30.8022583,
- -26.5240694
- ],
- [
- 30.8038369,
- -26.8082089
- ],
- [
- 30.9020939,
- -26.7807451
- ],
- [
- 30.9100338,
- -26.8489495
- ],
- [
- 30.9824859,
- -26.9082627
- ],
- [
- 30.976531,
- -27.0029222
- ],
- [
- 31.0034434,
- -27.0441587
- ],
- [
- 31.1543322,
- -27.1980416
- ],
- [
- 31.5015607,
- -27.311117
- ],
- [
- 31.9700183,
- -27.311117
- ],
- [
- 31.9700183,
- -27.120472
- ],
- [
- 31.9769658,
- -27.050664
- ],
- [
- 32.0002464,
- -26.7983892
- ],
- [
- 32.1069826,
- -26.7984645
- ],
- [
- 32.3114546,
- -26.8479493
- ],
- [
- 32.899986,
- -26.8516059
- ],
- [
- 32.886091,
- -26.9816971
- ],
- [
- 32.709427,
- -27.4785436
- ],
- [
- 32.6240724,
- -27.7775144
- ],
- [
- 32.5813951,
- -28.07479
- ],
- [
- 32.5387178,
- -28.2288046
- ],
- [
- 32.4275584,
- -28.5021568
- ],
- [
- 32.3640388,
- -28.5945699
- ],
- [
- 32.0702603,
- -28.8469827
- ],
- [
- 31.9878832,
- -28.9069497
- ],
- [
- 31.7764818,
- -28.969487
- ],
- [
- 31.4638459,
- -29.2859343
- ],
- [
- 31.359634,
- -29.3854348
- ],
- [
- 31.1680825,
- -29.6307408
- ],
- [
- 31.064863,
- -29.7893535
- ],
- [
- 31.0534493,
- -29.8470469
- ],
- [
- 31.0669933,
- -29.8640319
- ],
- [
- 31.0455459,
- -29.9502017
- ],
- [
- 30.9518556,
- -30.0033946
- ],
- [
- 30.8651833,
- -30.1024093
- ],
- [
- 30.7244725,
- -30.392502
- ],
- [
- 30.3556256,
- -30.9308873
- ],
- [
- 30.0972364,
- -31.2458274
- ],
- [
- 29.8673136,
- -31.4304296
- ],
- [
- 29.7409393,
- -31.5014699
- ],
- [
- 29.481312,
- -31.6978686
- ],
- [
- 28.8943171,
- -32.2898903
- ],
- [
- 28.5497137,
- -32.5894641
- ],
- [
- 28.1436499,
- -32.8320732
- ],
- [
- 28.0748735,
- -32.941689
- ],
- [
- 27.8450942,
- -33.082869
- ],
- [
- 27.3757956,
- -33.3860685
- ],
- [
- 26.8805407,
- -33.6458951
- ],
- [
- 26.5916871,
- -33.7480756
- ],
- [
- 26.4527308,
- -33.7935795
- ],
- [
- 26.206754,
- -33.7548943
- ],
- [
- 26.0077897,
- -33.7223961
- ],
- [
- 25.8055494,
- -33.7524272
- ],
- [
- 25.7511073,
- -33.8006512
- ],
- [
- 25.6529079,
- -33.8543597
- ],
- [
- 25.6529079,
- -33.9469768
- ],
- [
- 25.7195789,
- -34.0040115
- ],
- [
- 25.7202807,
- -34.0511235
- ],
- [
- 25.5508915,
- -34.063151
- ],
- [
- 25.3504571,
- -34.0502627
- ],
- [
- 25.2810609,
- -34.0020322
- ],
- [
- 25.0476316,
- -33.9994588
- ],
- [
- 24.954724,
- -34.0043594
- ],
- [
- 24.9496586,
- -34.1010363
- ],
- [
- 24.8770358,
- -34.1506456
- ],
- [
- 24.8762914,
- -34.2005281
- ],
- [
- 24.8532574,
- -34.2189562
- ],
- [
- 24.7645287,
- -34.2017946
- ],
- [
- 24.5001356,
- -34.2003254
- ],
- [
- 24.3486733,
- -34.1163824
- ],
- [
- 24.1988819,
- -34.1019039
- ],
- [
- 23.9963377,
- -34.0514443
- ],
- [
- 23.8017509,
- -34.0524332
- ],
- [
- 23.7493589,
- -34.0111855
- ],
- [
- 23.4973536,
- -34.009014
- ],
- [
- 23.4155191,
- -34.0434586
- ],
- [
- 23.4154284,
- -34.1140433
- ],
- [
- 22.9000853,
- -34.0993009
- ],
- [
- 22.8412418,
- -34.0547911
- ],
- [
- 22.6470321,
- -34.0502627
- ],
- [
- 22.6459843,
- -34.0072768
- ],
- [
- 22.570016,
- -34.0064081
- ],
- [
- 22.5050499,
- -34.0645866
- ],
- [
- 22.2519968,
- -34.0645866
- ],
- [
- 22.2221334,
- -34.1014701
- ],
- [
- 22.1621197,
- -34.1057019
- ],
- [
- 22.1712431,
- -34.1521766
- ],
- [
- 22.1576913,
- -34.2180897
- ],
- [
- 22.0015632,
- -34.2172232
- ],
- [
- 21.9496952,
- -34.3220009
- ],
- [
- 21.8611528,
- -34.4007145
- ],
- [
- 21.5614708,
- -34.4020114
- ],
- [
- 21.5468011,
- -34.3661242
- ],
- [
- 21.501744,
- -34.3669892
- ],
- [
- 21.5006961,
- -34.4020114
- ],
- [
- 21.4194886,
- -34.4465247
- ],
- [
- 21.1978706,
- -34.4478208
- ],
- [
- 21.0988193,
- -34.3991325
- ],
- [
- 21.0033746,
- -34.3753872
- ],
- [
- 20.893192,
- -34.3997115
- ],
- [
- 20.8976647,
- -34.4854003
- ],
- [
- 20.7446802,
- -34.4828092
- ],
- [
- 20.5042011,
- -34.486264
- ],
- [
- 20.2527197,
- -34.701477
- ],
- [
- 20.0803502,
- -34.8361855
- ],
- [
- 19.9923317,
- -34.8379056
- ],
- [
- 19.899074,
- -34.8275845
- ],
- [
- 19.8938348,
- -34.7936018
- ],
- [
- 19.5972963,
- -34.7961833
- ],
- [
- 19.3929677,
- -34.642015
- ],
- [
- 19.2877095,
- -34.6404784
- ],
- [
- 19.2861377,
- -34.5986563
- ],
- [
- 19.3474363,
- -34.5244458
- ],
- [
- 19.3285256,
- -34.4534372
- ],
- [
- 19.098001,
- -34.449981
- ],
- [
- 19.0725583,
- -34.3802371
- ],
- [
- 19.0023531,
- -34.3525593
- ],
- [
- 18.9520568,
- -34.3949373
- ],
- [
- 18.7975006,
- -34.3936403
- ],
- [
- 18.7984174,
- -34.1016376
- ],
- [
- 18.501748,
- -34.1015292
- ],
- [
- 18.4999545,
- -34.3616945
- ],
- [
- 18.4477325,
- -34.3620007
- ],
- [
- 18.4479944,
- -34.3522691
- ],
- [
- 18.3974362,
- -34.3514041
- ],
- [
- 18.3971742,
- -34.3022959
- ],
- [
- 18.3565705,
- -34.3005647
- ],
- [
- 18.3479258,
- -34.2020436
- ],
- [
- 18.2972095,
- -34.1950274
- ],
- [
- 18.2951139,
- -33.9937138
- ],
- [
- 18.3374474,
- -33.9914079
- ],
- [
- 18.3476638,
- -33.8492427
- ],
- [
- 18.3479258,
- -33.781555
- ],
- [
- 18.4124718,
- -33.7448849
- ],
- [
- 18.3615477,
- -33.6501624
- ],
- [
- 18.2992013,
- -33.585591
- ],
- [
- 18.2166839,
- -33.448872
- ],
- [
- 18.1389858,
- -33.3974083
- ],
- [
- 17.9473472,
- -33.1602647
- ],
- [
- 17.8855247,
- -33.0575732
- ],
- [
- 17.8485884,
- -32.9668505
- ],
- [
- 17.8396817,
- -32.8507302
- ]
- ]
- ]
- },
- {
- "name": "South Tyrol Orthofoto 2011",
- "type": "tms",
- "template": "http://sdi.provincia.bz.it/geoserver/gwc/service/tms/1.0.0/WMTS_OF2011_APB-PAB@GoogleMapsCompatible@png8/{z}/{x}/{-y}.png",
- "polygon": [
- [
- [
- 10.373383,
- 46.213553
- ],
- [
- 10.373383,
- 47.098175
- ],
- [
- 12.482758,
- 47.098175
- ],
- [
- 12.482758,
- 46.213553
- ],
- [
- 10.373383,
- 46.213553
- ]
- ]
- ],
- "id": "sdi.provinz.bz.it-WMTS_OF2011_APB-PAB"
- },
- {
- "name": "South Tyrol Topomap",
- "type": "tms",
- "template": "http://sdi.provincia.bz.it/geoserver/gwc/service/tms/1.0.0/WMTS_TOPOMAP_APB-PAB@GoogleMapsCompatible@png8/{z}/{x}/{-y}.png",
- "polygon": [
- [
- [
- 10.373383,
- 46.213553
- ],
- [
- 10.373383,
- 47.098175
- ],
- [
- 12.482758,
- 47.098175
- ],
- [
- 12.482758,
- 46.213553
- ],
- [
- 10.373383,
- 46.213553
- ]
- ]
- ],
- "id": "sdi.provinz.bz.it-WMTS_TOPOMAP_APB-PAB"
- },
- {
- "name": "Stadt Uster Orthophoto 2008 10cm",
- "type": "tms",
- "template": "http://mapproxy.sosm.ch:8080/tiles/uster/EPSG900913/{zoom}/{x}/{y}.png?origin=nw",
- "polygon": [
- [
- [
- 8.6,
- 47.31
- ],
- [
- 8.6,
- 47.39
- ],
- [
- 8.77,
- 47.39
- ],
- [
- 8.77,
- 47.31
- ],
- [
- 8.6,
- 47.31
- ]
- ]
- ],
- "terms_text": "Stadt Uster Vermessung Orthophoto 2008"
- },
- {
- "name": "Stevns (Denmark)",
- "type": "tms",
- "template": "http://{switch:a,b,c}.tile.openstreetmap.dk/stevns/2009/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 20
- ],
- "polygon": [
- [
- [
- 12.0913942,
- 55.3491574
- ],
- [
- 12.0943104,
- 55.3842256
- ],
- [
- 12.1573875,
- 55.3833103
- ],
- [
- 12.1587287,
- 55.4013326
- ],
- [
- 12.1903468,
- 55.400558
- ],
- [
- 12.1931411,
- 55.4364665
- ],
- [
- 12.2564251,
- 55.4347995
- ],
- [
- 12.2547073,
- 55.4168882
- ],
- [
- 12.3822489,
- 55.4134349
- ],
- [
- 12.3795942,
- 55.3954143
- ],
- [
- 12.4109213,
- 55.3946958
- ],
- [
- 12.409403,
- 55.3766417
- ],
- [
- 12.4407807,
- 55.375779
- ],
- [
- 12.4394142,
- 55.3578314
- ],
- [
- 12.4707413,
- 55.3569971
- ],
- [
- 12.4629475,
- 55.2672214
- ],
- [
- 12.4315633,
- 55.2681491
- ],
- [
- 12.430045,
- 55.2502103
- ],
- [
- 12.3672011,
- 55.2519673
- ],
- [
- 12.3656858,
- 55.2340267
- ],
- [
- 12.2714604,
- 55.2366031
- ],
- [
- 12.2744467,
- 55.272476
- ],
- [
- 12.2115654,
- 55.2741475
- ],
- [
- 12.2130078,
- 55.2920322
- ],
- [
- 12.1815665,
- 55.2928638
- ],
- [
- 12.183141,
- 55.3107091
- ],
- [
- 12.2144897,
- 55.3100981
- ],
- [
- 12.2159927,
- 55.3279764
- ],
- [
- 12.1214458,
- 55.3303379
- ],
- [
- 12.1229489,
- 55.3483291
- ]
- ]
- ],
- "terms_text": "Stevns Kommune"
- },
- {
- "name": "Surrey Air Survey",
- "type": "tms",
- "template": "http://gravitystorm.dev.openstreetmap.org/surrey/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 8,
- 19
- ],
- "polygon": [
- [
- [
- -0.752478,
- 51.0821941
- ],
- [
- -0.7595183,
- 51.0856254
- ],
- [
- -0.8014342,
- 51.1457917
- ],
- [
- -0.8398864,
- 51.1440686
- ],
- [
- -0.8357665,
- 51.1802397
- ],
- [
- -0.8529549,
- 51.2011266
- ],
- [
- -0.8522683,
- 51.2096231
- ],
- [
- -0.8495217,
- 51.217903
- ],
- [
- -0.8266907,
- 51.2403696
- ],
- [
- -0.8120995,
- 51.2469248
- ],
- [
- -0.7736474,
- 51.2459577
- ],
- [
- -0.7544213,
- 51.2381127
- ],
- [
- -0.754078,
- 51.233921
- ],
- [
- -0.7446366,
- 51.2333836
- ],
- [
- -0.7430693,
- 51.2847178
- ],
- [
- -0.751503,
- 51.3069524
- ],
- [
- -0.7664376,
- 51.3121032
- ],
- [
- -0.7820588,
- 51.3270157
- ],
- [
- -0.7815438,
- 51.3388135
- ],
- [
- -0.7374268,
- 51.3720456
- ],
- [
- -0.7192307,
- 51.3769748
- ],
- [
- -0.6795769,
- 51.3847961
- ],
- [
- -0.6807786,
- 51.3901523
- ],
- [
- -0.6531411,
- 51.3917591
- ],
- [
- -0.6301385,
- 51.3905808
- ],
- [
- -0.6291085,
- 51.3970074
- ],
- [
- -0.6234437,
- 51.3977572
- ],
- [
- -0.613144,
- 51.4295552
- ],
- [
- -0.6002471,
- 51.4459121
- ],
- [
- -0.5867081,
- 51.4445365
- ],
- [
- -0.5762368,
- 51.453202
- ],
- [
- -0.5626755,
- 51.4523462
- ],
- [
- -0.547741,
- 51.4469972
- ],
- [
- -0.5372697,
- 51.4448575
- ],
- [
- -0.537098,
- 51.4526671
- ],
- [
- -0.5439644,
- 51.4545926
- ],
- [
- -0.5405312,
- 51.4698865
- ],
- [
- -0.5309182,
- 51.4760881
- ],
- [
- -0.5091172,
- 51.4744843
- ],
- [
- -0.5086022,
- 51.4695657
- ],
- [
- -0.4900628,
- 51.4682825
- ],
- [
- -0.4526406,
- 51.4606894
- ],
- [
- -0.4486924,
- 51.4429316
- ],
- [
- -0.4414826,
- 51.4418616
- ],
- [
- -0.4418259,
- 51.4369394
- ],
- [
- -0.4112702,
- 51.4380095
- ],
- [
- -0.4014855,
- 51.4279498
- ],
- [
- -0.3807145,
- 51.4262372
- ],
- [
- -0.3805428,
- 51.4161749
- ],
- [
- -0.3491288,
- 51.4138195
- ],
- [
- -0.3274994,
- 51.4037544
- ],
- [
- -0.3039818,
- 51.3990424
- ],
- [
- -0.3019219,
- 51.3754747
- ],
- [
- -0.309475,
- 51.369688
- ],
- [
- -0.3111916,
- 51.3529669
- ],
- [
- -0.2955704,
- 51.3541462
- ],
- [
- -0.2923089,
- 51.3673303
- ],
- [
- -0.2850991,
- 51.3680805
- ],
- [
- -0.2787476,
- 51.3771891
- ],
- [
- -0.2655297,
- 51.3837247
- ],
- [
- -0.2411538,
- 51.3847961
- ],
- [
- -0.2123147,
- 51.3628288
- ],
- [
- -0.2107697,
- 51.3498578
- ],
- [
- -0.190857,
- 51.3502867
- ],
- [
- -0.1542931,
- 51.3338802
- ],
- [
- -0.1496583,
- 51.3057719
- ],
- [
- -0.1074296,
- 51.2966491
- ],
- [
- -0.0887185,
- 51.3099571
- ],
- [
- -0.0878602,
- 51.3220811
- ],
- [
- -0.0652009,
- 51.3215448
- ],
- [
- -0.0641709,
- 51.3264793
- ],
- [
- -0.0519829,
- 51.3263721
- ],
- [
- -0.0528412,
- 51.334631
- ],
- [
- -0.0330779,
- 51.3430876
- ],
- [
- 0.0019187,
- 51.3376339
- ],
- [
- 0.0118751,
- 51.3281956
- ],
- [
- 0.013935,
- 51.2994398
- ],
- [
- 0.0202865,
- 51.2994398
- ],
- [
- 0.0240631,
- 51.3072743
- ],
- [
- 0.0331611,
- 51.3086694
- ],
- [
- 0.0455207,
- 51.30545
- ],
- [
- 0.0523872,
- 51.2877392
- ],
- [
- 0.0616569,
- 51.2577764
- ],
- [
- 0.0640602,
- 51.2415518
- ],
- [
- 0.0462074,
- 51.2126342
- ],
- [
- 0.0407142,
- 51.2109136
- ],
- [
- 0.0448341,
- 51.1989753
- ],
- [
- 0.0494689,
- 51.1997283
- ],
- [
- 0.0558204,
- 51.1944573
- ],
- [
- 0.0611419,
- 51.1790713
- ],
- [
- 0.0623435,
- 51.1542061
- ],
- [
- 0.0577087,
- 51.1417146
- ],
- [
- 0.0204582,
- 51.1365447
- ],
- [
- -0.0446015,
- 51.1336364
- ],
- [
- -0.1566964,
- 51.1352522
- ],
- [
- -0.1572114,
- 51.1290043
- ],
- [
- -0.2287942,
- 51.1183379
- ],
- [
- -0.2473336,
- 51.1183379
- ],
- [
- -0.2500802,
- 51.1211394
- ],
- [
- -0.299347,
- 51.1137042
- ],
- [
- -0.3221779,
- 51.1119799
- ],
- [
- -0.3223496,
- 51.1058367
- ],
- [
- -0.3596001,
- 51.1019563
- ],
- [
- -0.3589135,
- 51.1113333
- ],
- [
- -0.3863793,
- 51.1117644
- ],
- [
- -0.3869014,
- 51.1062516
- ],
- [
- -0.4281001,
- 51.0947174
- ],
- [
- -0.4856784,
- 51.0951554
- ],
- [
- -0.487135,
- 51.0872266
- ],
- [
- -0.5297404,
- 51.0865404
- ],
- [
- -0.5302259,
- 51.0789914
- ],
- [
- -0.61046,
- 51.076551
- ],
- [
- -0.6099745,
- 51.080669
- ],
- [
- -0.6577994,
- 51.0792202
- ],
- [
- -0.6582849,
- 51.0743394
- ],
- [
- -0.6836539,
- 51.0707547
- ],
- [
- -0.6997979,
- 51.070831
- ],
- [
- -0.7296581,
- 51.0744919
- ]
- ]
- ]
- },
- {
- "name": "Toulouse - Orthophotoplan 2007",
- "type": "tms",
- "template": "http://wms.openstreetmap.fr/tms/1.0.0/toulouse_ortho2007/{zoom}/{x}/{y}",
- "scaleExtent": [
- 0,
- 22
- ],
- "polygon": [
- [
- [
- 1.1919978,
- 43.6328791
- ],
- [
- 1.2015377,
- 43.6329729
- ],
- [
- 1.2011107,
- 43.6554932
- ],
- [
- 1.2227985,
- 43.6557029
- ],
- [
- 1.2226231,
- 43.6653353
- ],
- [
- 1.2275341,
- 43.6653849
- ],
- [
- 1.2275417,
- 43.6656387
- ],
- [
- 1.2337568,
- 43.6656883
- ],
- [
- 1.2337644,
- 43.6650153
- ],
- [
- 1.2351218,
- 43.6650319
- ],
- [
- 1.2350913,
- 43.6670729
- ],
- [
- 1.2443566,
- 43.6671556
- ],
- [
- 1.2441584,
- 43.6743925
- ],
- [
- 1.2493973,
- 43.6744256
- ],
- [
- 1.2493973,
- 43.6746628
- ],
- [
- 1.2555666,
- 43.6747234
- ],
- [
- 1.2555742,
- 43.6744532
- ],
- [
- 1.2569545,
- 43.6744697
- ],
- [
- 1.2568782,
- 43.678529
- ],
- [
- 1.2874873,
- 43.6788257
- ],
- [
- 1.2870803,
- 43.7013229
- ],
- [
- 1.3088219,
- 43.7014632
- ],
- [
- 1.3086493,
- 43.7127673
- ],
- [
- 1.3303262,
- 43.7129544
- ],
- [
- 1.3300242,
- 43.7305221
- ],
- [
- 1.3367106,
- 43.7305845
- ],
- [
- 1.3367322,
- 43.7312235
- ],
- [
- 1.3734338,
- 43.7310456
- ],
- [
- 1.3735848,
- 43.7245772
- ],
- [
- 1.4604504,
- 43.7252947
- ],
- [
- 1.4607783,
- 43.7028034
- ],
- [
- 1.4824875,
- 43.7029516
- ],
- [
- 1.4829828,
- 43.6692071
- ],
- [
- 1.5046832,
- 43.6693616
- ],
- [
- 1.5048383,
- 43.6581174
- ],
- [
- 1.5265475,
- 43.6582656
- ],
- [
- 1.5266945,
- 43.6470298
- ],
- [
- 1.548368,
- 43.6471633
- ],
- [
- 1.5485357,
- 43.6359385
- ],
- [
- 1.5702172,
- 43.636082
- ],
- [
- 1.5705123,
- 43.6135777
- ],
- [
- 1.5488166,
- 43.6134276
- ],
- [
- 1.549097,
- 43.5909479
- ],
- [
- 1.5707695,
- 43.5910694
- ],
- [
- 1.5709373,
- 43.5798341
- ],
- [
- 1.5793714,
- 43.5798894
- ],
- [
- 1.5794782,
- 43.5737682
- ],
- [
- 1.5809119,
- 43.5737792
- ],
- [
- 1.5810859,
- 43.5573794
- ],
- [
- 1.5712334,
- 43.5573131
- ],
- [
- 1.5716504,
- 43.5235497
- ],
- [
- 1.3984804,
- 43.5222618
- ],
- [
- 1.3986509,
- 43.5110113
- ],
- [
- 1.3120959,
- 43.5102543
- ],
- [
- 1.3118968,
- 43.5215192
- ],
- [
- 1.2902569,
- 43.5213126
- ],
- [
- 1.2898637,
- 43.5438168
- ],
- [
- 1.311517,
- 43.5440133
- ],
- [
- 1.3113271,
- 43.5552596
- ],
- [
- 1.3036924,
- 43.5551924
- ],
- [
- 1.3036117,
- 43.5595099
- ],
- [
- 1.2955449,
- 43.5594317
- ],
- [
- 1.2955449,
- 43.5595489
- ],
- [
- 1.2895595,
- 43.5594473
- ],
- [
- 1.2892899,
- 43.5775366
- ],
- [
- 1.2675698,
- 43.5773647
- ],
- [
- 1.2673973,
- 43.5886141
- ],
- [
- 1.25355,
- 43.5885047
- ],
- [
- 1.2533774,
- 43.5956282
- ],
- [
- 1.2518029,
- 43.5956282
- ],
- [
- 1.2518029,
- 43.5949409
- ],
- [
- 1.2350437,
- 43.5947847
- ],
- [
- 1.2350437,
- 43.5945972
- ],
- [
- 1.2239572,
- 43.5945972
- ],
- [
- 1.2239357,
- 43.5994708
- ],
- [
- 1.2139708,
- 43.599299
- ],
- [
- 1.2138845,
- 43.6046408
- ],
- [
- 1.2020647,
- 43.6044846
- ],
- [
- 1.2019464,
- 43.61048
- ],
- [
- 1.1924294,
- 43.6103695
- ]
- ]
- ],
- "terms_url": "https://wiki.openstreetmap.org/wiki/Toulouse/ToulouseMetropoleData",
- "terms_text": "ToulouseMetropole"
- },
- {
- "name": "Toulouse - Orthophotoplan 2011",
- "type": "tms",
- "template": "http://wms.openstreetmap.fr/tms/1.0.0/toulouse_ortho2011/{zoom}/{x}/{y}",
- "scaleExtent": [
- 0,
- 22
- ],
- "polygon": [
- [
- [
- 1.1135067,
- 43.6867566
- ],
- [
- 1.1351836,
- 43.6870842
- ],
- [
- 1.1348907,
- 43.6983471
- ],
- [
- 1.1782867,
- 43.6990338
- ],
- [
- 1.1779903,
- 43.7102786
- ],
- [
- 1.1996591,
- 43.7106144
- ],
- [
- 1.1993387,
- 43.7218722
- ],
- [
- 1.2427356,
- 43.7225269
- ],
- [
- 1.2424336,
- 43.7337491
- ],
- [
- 1.2641536,
- 43.734092
- ],
- [
- 1.2638301,
- 43.7453588
- ],
- [
- 1.2855285,
- 43.7456548
- ],
- [
- 1.2852481,
- 43.756935
- ],
- [
- 1.306925,
- 43.757231
- ],
- [
- 1.3066446,
- 43.7684779
- ],
- [
- 1.3283431,
- 43.7687894
- ],
- [
- 1.3280842,
- 43.780034
- ],
- [
- 1.4367275,
- 43.7815757
- ],
- [
- 1.4373098,
- 43.7591004
- ],
- [
- 1.4590083,
- 43.7593653
- ],
- [
- 1.4593318,
- 43.7481479
- ],
- [
- 1.4810303,
- 43.7483972
- ],
- [
- 1.4813322,
- 43.7371777
- ],
- [
- 1.5030307,
- 43.7374115
- ],
- [
- 1.5035915,
- 43.7149664
- ],
- [
- 1.5253115,
- 43.7151846
- ],
- [
- 1.5256135,
- 43.7040057
- ],
- [
- 1.5472688,
- 43.7042552
- ],
- [
- 1.5475708,
- 43.6930431
- ],
- [
- 1.5692045,
- 43.6932926
- ],
- [
- 1.5695712,
- 43.6820316
- ],
- [
- 1.5912049,
- 43.6822656
- ],
- [
- 1.5917441,
- 43.6597998
- ],
- [
- 1.613421,
- 43.6600339
- ],
- [
- 1.613723,
- 43.6488291
- ],
- [
- 1.6353783,
- 43.6490788
- ],
- [
- 1.6384146,
- 43.5140731
- ],
- [
- 1.2921649,
- 43.5094658
- ],
- [
- 1.2918629,
- 43.5206966
- ],
- [
- 1.2702076,
- 43.5203994
- ],
- [
- 1.2698841,
- 43.5316437
- ],
- [
- 1.2482288,
- 43.531331
- ],
- [
- 1.2476048,
- 43.5537788
- ],
- [
- 1.2259628,
- 43.5534914
- ],
- [
- 1.2256819,
- 43.564716
- ],
- [
- 1.2039835,
- 43.564419
- ],
- [
- 1.2033148,
- 43.5869049
- ],
- [
- 1.1816164,
- 43.5865611
- ],
- [
- 1.1810237,
- 43.6090368
- ],
- [
- 1.1592821,
- 43.6086932
- ],
- [
- 1.1589585,
- 43.6199523
- ],
- [
- 1.1372601,
- 43.6196244
- ],
- [
- 1.1365933,
- 43.642094
- ],
- [
- 1.1149055,
- 43.6417629
- ]
- ]
- ],
- "terms_url": "https://wiki.openstreetmap.org/wiki/Toulouse/ToulouseMetropoleData",
- "terms_text": "ToulouseMetropole"
- },
- {
- "name": "Tours - Orthophotos 2008",
- "type": "tms",
- "template": "http://tms.mapspot.ge/tms/2/nonstandard/{zoom}/{x}/{y}.jpeg",
- "polygon": [
- [
- [
- 0.5457462,
- 47.465264
- ],
- [
- 0.54585,
- 47.4608163
- ],
- [
- 0.5392188,
- 47.4606983
- ],
- [
- 0.5393484,
- 47.456243
- ],
- [
- 0.5327959,
- 47.4561003
- ],
- [
- 0.5329011,
- 47.451565
- ],
- [
- 0.52619,
- 47.4514013
- ],
- [
- 0.5265854,
- 47.4424884
- ],
- [
- 0.5000941,
- 47.4420739
- ],
- [
- 0.5002357,
- 47.4375835
- ],
- [
- 0.4936014,
- 47.4374324
- ],
- [
- 0.4937,
- 47.4329285
- ],
- [
- 0.4606141,
- 47.4324593
- ],
- [
- 0.4607248,
- 47.4279827
- ],
- [
- 0.4541016,
- 47.4278125
- ],
- [
- 0.454932,
- 47.4053921
- ],
- [
- 0.4615431,
- 47.4054476
- ],
- [
- 0.4619097,
- 47.3964924
- ],
- [
- 0.4684346,
- 47.3966005
- ],
- [
- 0.4691319,
- 47.3786415
- ],
- [
- 0.4757125,
- 47.3787609
- ],
- [
- 0.4762116,
- 47.3652018
- ],
- [
- 0.4828297,
- 47.3653499
- ],
- [
- 0.4832223,
- 47.3518574
- ],
- [
- 0.5097927,
- 47.3522592
- ],
- [
- 0.5095688,
- 47.3567713
- ],
- [
- 0.5227698,
- 47.3569785
- ],
- [
- 0.5226429,
- 47.3614867
- ],
- [
- 0.5490721,
- 47.3618878
- ],
- [
- 0.5489087,
- 47.3663307
- ],
- [
- 0.5555159,
- 47.3664985
- ],
- [
- 0.5559105,
- 47.3575522
- ],
- [
- 0.6152789,
- 47.358407
- ],
- [
- 0.6152963,
- 47.362893
- ],
- [
- 0.6285093,
- 47.3630936
- ],
- [
- 0.6288256,
- 47.353987
- ],
- [
- 0.6155012,
- 47.3538823
- ],
- [
- 0.6157682,
- 47.3493424
- ],
- [
- 0.6090956,
- 47.3492991
- ],
- [
- 0.6094735,
- 47.3402962
- ],
- [
- 0.6160477,
- 47.3404448
- ],
- [
- 0.616083,
- 47.3369074
- ],
- [
- 0.77497,
- 47.3388218
- ],
- [
- 0.7745786,
- 47.351628
- ],
- [
- 0.7680363,
- 47.3515901
- ],
- [
- 0.767589,
- 47.3605298
- ],
- [
- 0.7742443,
- 47.3606238
- ],
- [
- 0.7733465,
- 47.3921266
- ],
- [
- 0.7667434,
- 47.3920195
- ],
- [
- 0.7664411,
- 47.4010837
- ],
- [
- 0.7730647,
- 47.4011115
- ],
- [
- 0.7728868,
- 47.4101297
- ],
- [
- 0.7661849,
- 47.4100226
- ],
- [
- 0.7660267,
- 47.4145044
- ],
- [
- 0.7527613,
- 47.4143038
- ],
- [
- 0.7529788,
- 47.4098086
- ],
- [
- 0.7462373,
- 47.4097016
- ],
- [
- 0.7459424,
- 47.4232208
- ],
- [
- 0.7392324,
- 47.4231451
- ],
- [
- 0.738869,
- 47.4366116
- ],
- [
- 0.7323267,
- 47.4365171
- ],
- [
- 0.7321869,
- 47.4410556
- ],
- [
- 0.7255048,
- 47.44098
- ],
- [
- 0.7254209,
- 47.4453479
- ],
- [
- 0.7318793,
- 47.4454803
- ],
- [
- 0.7318514,
- 47.4501126
- ],
- [
- 0.7384496,
- 47.450226
- ],
- [
- 0.7383098,
- 47.454631
- ],
- [
- 0.7449359,
- 47.4547444
- ],
- [
- 0.7443209,
- 47.4771985
- ],
- [
- 0.7310685,
- 47.4769717
- ],
- [
- 0.7309008,
- 47.4815445
- ],
- [
- 0.7176205,
- 47.4812611
- ],
- [
- 0.7177883,
- 47.4768394
- ],
- [
- 0.69777,
- 47.4764993
- ],
- [
- 0.6980496,
- 47.4719827
- ],
- [
- 0.6914514,
- 47.4718882
- ],
- [
- 0.6917309,
- 47.4630241
- ],
- [
- 0.6851048,
- 47.4629295
- ],
- [
- 0.684937,
- 47.4673524
- ],
- [
- 0.678255,
- 47.4673335
- ],
- [
- 0.6779754,
- 47.4762158
- ],
- [
- 0.6714051,
- 47.4761592
- ],
- [
- 0.6710417,
- 47.4881952
- ],
- [
- 0.6577334,
- 47.4879685
- ],
- [
- 0.6578173,
- 47.48504
- ],
- [
- 0.6511911,
- 47.4848322
- ],
- [
- 0.6514707,
- 47.4758568
- ],
- [
- 0.6448166,
- 47.4757245
- ],
- [
- 0.6449284,
- 47.4712646
- ],
- [
- 0.6117976,
- 47.4707543
- ],
- [
- 0.6118815,
- 47.4663129
- ],
- [
- 0.6052833,
- 47.4661239
- ],
- [
- 0.6054231,
- 47.4616631
- ],
- [
- 0.5988808,
- 47.4615497
- ],
- [
- 0.5990206,
- 47.4570886
- ],
- [
- 0.572488,
- 47.4566916
- ],
- [
- 0.5721805,
- 47.4656513
- ]
- ]
- ],
- "terms_url": "http://wiki.openstreetmap.org/wiki/Tours/Orthophoto",
- "terms_text": "Orthophoto Tour(s) Plus 2008"
- },
- {
- "name": "Tours - Orthophotos 2008-2010",
- "type": "tms",
- "template": "http://wms.openstreetmap.fr/tms/1.0.0/tours/{zoom}/{x}/{y}",
- "scaleExtent": [
- 0,
- 20
- ],
- "polygon": [
- [
- [
- 0.5457462,
- 47.465264
- ],
- [
- 0.54585,
- 47.4608163
- ],
- [
- 0.5392188,
- 47.4606983
- ],
- [
- 0.5393484,
- 47.456243
- ],
- [
- 0.5327959,
- 47.4561003
- ],
- [
- 0.5329011,
- 47.451565
- ],
- [
- 0.52619,
- 47.4514013
- ],
- [
- 0.5265854,
- 47.4424884
- ],
- [
- 0.5000941,
- 47.4420739
- ],
- [
- 0.5002357,
- 47.4375835
- ],
- [
- 0.4936014,
- 47.4374324
- ],
- [
- 0.4937,
- 47.4329285
- ],
- [
- 0.4606141,
- 47.4324593
- ],
- [
- 0.4607248,
- 47.4279827
- ],
- [
- 0.4541016,
- 47.4278125
- ],
- [
- 0.454932,
- 47.4053921
- ],
- [
- 0.4615431,
- 47.4054476
- ],
- [
- 0.4619097,
- 47.3964924
- ],
- [
- 0.4684346,
- 47.3966005
- ],
- [
- 0.4691319,
- 47.3786415
- ],
- [
- 0.4757125,
- 47.3787609
- ],
- [
- 0.4762116,
- 47.3652018
- ],
- [
- 0.4828297,
- 47.3653499
- ],
- [
- 0.4829611,
- 47.3608321
- ],
- [
- 0.4763543,
- 47.360743
- ],
- [
- 0.476654,
- 47.3517263
- ],
- [
- 0.4700497,
- 47.3516186
- ],
- [
- 0.4701971,
- 47.3471313
- ],
- [
- 0.4637503,
- 47.3470104
- ],
- [
- 0.4571425,
- 47.3424146
- ],
- [
- 0.4572922,
- 47.3379061
- ],
- [
- 0.4506741,
- 47.3378081
- ],
- [
- 0.4508379,
- 47.3333051
- ],
- [
- 0.4442212,
- 47.3332032
- ],
- [
- 0.4443809,
- 47.328711
- ],
- [
- 0.4311392,
- 47.3284977
- ],
- [
- 0.4316262,
- 47.3150004
- ],
- [
- 0.4382432,
- 47.3151136
- ],
- [
- 0.4383815,
- 47.3106174
- ],
- [
- 0.4714487,
- 47.3111374
- ],
- [
- 0.4713096,
- 47.3156565
- ],
- [
- 0.477888,
- 47.3157542
- ],
- [
- 0.4780733,
- 47.3112802
- ],
- [
- 0.4846826,
- 47.3113639
- ],
- [
- 0.4848576,
- 47.3068686
- ],
- [
- 0.4914359,
- 47.3069803
- ],
- [
- 0.491745,
- 47.2979733
- ],
- [
- 0.4851578,
- 47.2978722
- ],
- [
- 0.4854269,
- 47.2888744
- ],
- [
- 0.4788485,
- 47.2887697
- ],
- [
- 0.4791574,
- 47.2797818
- ],
- [
- 0.4857769,
- 47.2799005
- ],
- [
- 0.4859107,
- 47.2753885
- ],
- [
- 0.492539,
- 47.2755029
- ],
- [
- 0.4926669,
- 47.2710127
- ],
- [
- 0.4992986,
- 47.2711066
- ],
- [
- 0.4994296,
- 47.2666116
- ],
- [
- 0.5192658,
- 47.2669245
- ],
- [
- 0.5194225,
- 47.2624231
- ],
- [
- 0.5260186,
- 47.2625205
- ],
- [
- 0.5258735,
- 47.2670183
- ],
- [
- 0.5456972,
- 47.2673383
- ],
- [
- 0.5455537,
- 47.2718283
- ],
- [
- 0.5587737,
- 47.2720366
- ],
- [
- 0.5586259,
- 47.2765185
- ],
- [
- 0.5652252,
- 47.2766278
- ],
- [
- 0.5650848,
- 47.2811206
- ],
- [
- 0.5716753,
- 47.2812285
- ],
- [
- 0.5715223,
- 47.2857217
- ],
- [
- 0.5781436,
- 47.2858299
- ],
- [
- 0.5779914,
- 47.2903294
- ],
- [
- 0.5846023,
- 47.2904263
- ],
- [
- 0.5843076,
- 47.2994231
- ],
- [
- 0.597499,
- 47.2996094
- ],
- [
- 0.5976637,
- 47.2951375
- ],
- [
- 0.6571596,
- 47.2960036
- ],
- [
- 0.6572988,
- 47.2915091
- ],
- [
- 0.6705019,
- 47.2917186
- ],
- [
- 0.6703475,
- 47.2962082
- ],
- [
- 0.6836175,
- 47.2963688
- ],
- [
- 0.6834322,
- 47.3008929
- ],
- [
- 0.690062,
- 47.3009558
- ],
- [
- 0.6899241,
- 47.3054703
- ],
- [
- 0.7362019,
- 47.3061157
- ],
- [
- 0.7360848,
- 47.3106063
- ],
- [
- 0.7559022,
- 47.3108935
- ],
- [
- 0.7557718,
- 47.315392
- ],
- [
- 0.7623755,
- 47.3154716
- ],
- [
- 0.7622314,
- 47.3199941
- ],
- [
- 0.7754911,
- 47.3201546
- ],
- [
- 0.77497,
- 47.3388218
- ],
- [
- 0.7745786,
- 47.351628
- ],
- [
- 0.7680363,
- 47.3515901
- ],
- [
- 0.767589,
- 47.3605298
- ],
- [
- 0.7742443,
- 47.3606238
- ],
- [
- 0.7733465,
- 47.3921266
- ],
- [
- 0.7667434,
- 47.3920195
- ],
- [
- 0.7664411,
- 47.4010837
- ],
- [
- 0.7730647,
- 47.4011115
- ],
- [
- 0.7728868,
- 47.4101297
- ],
- [
- 0.7661849,
- 47.4100226
- ],
- [
- 0.7660267,
- 47.4145044
- ],
- [
- 0.7527613,
- 47.4143038
- ],
- [
- 0.7529788,
- 47.4098086
- ],
- [
- 0.7462373,
- 47.4097016
- ],
- [
- 0.7459424,
- 47.4232208
- ],
- [
- 0.7392324,
- 47.4231451
- ],
- [
- 0.738869,
- 47.4366116
- ],
- [
- 0.7323267,
- 47.4365171
- ],
- [
- 0.7321869,
- 47.4410556
- ],
- [
- 0.7255048,
- 47.44098
- ],
- [
- 0.7254209,
- 47.4453479
- ],
- [
- 0.7318793,
- 47.4454803
- ],
- [
- 0.7318514,
- 47.4501126
- ],
- [
- 0.7384496,
- 47.450226
- ],
- [
- 0.7383098,
- 47.454631
- ],
- [
- 0.7449359,
- 47.4547444
- ],
- [
- 0.7443209,
- 47.4771985
- ],
- [
- 0.7310685,
- 47.4769717
- ],
- [
- 0.7309008,
- 47.4815445
- ],
- [
- 0.7176205,
- 47.4812611
- ],
- [
- 0.7177883,
- 47.4768394
- ],
- [
- 0.69777,
- 47.4764993
- ],
- [
- 0.6980496,
- 47.4719827
- ],
- [
- 0.6914514,
- 47.4718882
- ],
- [
- 0.6917309,
- 47.4630241
- ],
- [
- 0.6851048,
- 47.4629295
- ],
- [
- 0.684937,
- 47.4673524
- ],
- [
- 0.678255,
- 47.4673335
- ],
- [
- 0.6779754,
- 47.4762158
- ],
- [
- 0.6714051,
- 47.4761592
- ],
- [
- 0.6710417,
- 47.4881952
- ],
- [
- 0.6577334,
- 47.4879685
- ],
- [
- 0.6578173,
- 47.48504
- ],
- [
- 0.6511911,
- 47.4848322
- ],
- [
- 0.6514707,
- 47.4758568
- ],
- [
- 0.6448166,
- 47.4757245
- ],
- [
- 0.6449284,
- 47.4712646
- ],
- [
- 0.6117976,
- 47.4707543
- ],
- [
- 0.6118815,
- 47.4663129
- ],
- [
- 0.6052833,
- 47.4661239
- ],
- [
- 0.6054231,
- 47.4616631
- ],
- [
- 0.5988808,
- 47.4615497
- ],
- [
- 0.5990206,
- 47.4570886
- ],
- [
- 0.572488,
- 47.4566916
- ],
- [
- 0.5721805,
- 47.4656513
- ]
- ]
- ],
- "terms_url": "http://wiki.openstreetmap.org/wiki/Tours/Orthophoto",
- "terms_text": "Orthophoto Tour(s) Plus 2008"
- },
- {
- "name": "USGS Large Scale Imagery",
- "type": "tms",
- "template": "http://{switch:a,b,c}.tile.openstreetmap.us/usgs_large_scale/{zoom}/{x}/{y}.jpg",
- "scaleExtent": [
- 12,
- 20
- ],
- "polygon": [
- [
- [
- -123.2549305,
- 48.7529029
- ],
- [
- -123.2549305,
- 48.5592263
- ],
- [
- -123.192224,
- 48.5592263
- ],
- [
- -123.192224,
- 48.4348366
- ],
- [
- -122.9419646,
- 48.4348366
- ],
- [
- -122.9419646,
- 48.3720812
- ],
- [
- -122.8806229,
- 48.3720812
- ],
- [
- -122.8806229,
- 48.3094763
- ],
- [
- -122.8167566,
- 48.3094763
- ],
- [
- -122.8167566,
- 48.1904587
- ],
- [
- -123.0041133,
- 48.1904587
- ],
- [
- -123.0041133,
- 48.1275918
- ],
- [
- -123.058416,
- 48.1275918
- ],
- [
- -123.058416,
- 48.190514
- ],
- [
- -123.254113,
- 48.190514
- ],
- [
- -123.254113,
- 48.1274982
- ],
- [
- -123.3706593,
- 48.1274982
- ],
- [
- -123.3706593,
- 48.1908403
- ],
- [
- -124.0582632,
- 48.1908403
- ],
- [
- -124.0582632,
- 48.253442
- ],
- [
- -124.1815163,
- 48.253442
- ],
- [
- -124.1815163,
- 48.3164666
- ],
- [
- -124.4319117,
- 48.3164666
- ],
- [
- -124.4319117,
- 48.3782613
- ],
- [
- -124.5564618,
- 48.3782613
- ],
- [
- -124.5564618,
- 48.4408305
- ],
- [
- -124.7555107,
- 48.4408305
- ],
- [
- -124.7555107,
- 48.1914986
- ],
- [
- -124.8185282,
- 48.1914986
- ],
- [
- -124.8185282,
- 48.1228381
- ],
- [
- -124.7552951,
- 48.1228381
- ],
- [
- -124.7552951,
- 47.5535253
- ],
- [
- -124.3812108,
- 47.5535253
- ],
- [
- -124.3812108,
- 47.1218696
- ],
- [
- -124.1928897,
- 47.1218696
- ],
- [
- -124.1928897,
- 43.7569431
- ],
- [
- -124.4443382,
- 43.7569431
- ],
- [
- -124.4443382,
- 43.1425556
- ],
- [
- -124.6398855,
- 43.1425556
- ],
- [
- -124.6398855,
- 42.6194503
- ],
- [
- -124.4438525,
- 42.6194503
- ],
- [
- -124.4438525,
- 39.8080662
- ],
- [
- -123.8815685,
- 39.8080662
- ],
- [
- -123.8815685,
- 39.1102825
- ],
- [
- -123.75805,
- 39.1102825
- ],
- [
- -123.75805,
- 38.4968799
- ],
- [
- -123.2702803,
- 38.4968799
- ],
- [
- -123.2702803,
- 37.9331905
- ],
- [
- -122.8148084,
- 37.9331905
- ],
- [
- -122.8148084,
- 37.8019606
- ],
- [
- -122.5664316,
- 37.8019606
- ],
- [
- -122.5664316,
- 36.9319611
- ],
- [
- -121.8784026,
- 36.9319611
- ],
- [
- -121.8784026,
- 36.6897596
- ],
- [
- -122.0034748,
- 36.6897596
- ],
- [
- -122.0034748,
- 36.4341056
- ],
- [
- -121.9414159,
- 36.4341056
- ],
- [
- -121.9414159,
- 35.9297636
- ],
- [
- -121.5040977,
- 35.9297636
- ],
- [
- -121.5040977,
- 35.8100273
- ],
- [
- -121.3790276,
- 35.8100273
- ],
- [
- -121.3790276,
- 35.4239164
- ],
- [
- -120.9426515,
- 35.4239164
- ],
- [
- -120.9426515,
- 35.1849683
- ],
- [
- -120.8171978,
- 35.1849683
- ],
- [
- -120.8171978,
- 35.1219894
- ],
- [
- -120.6918447,
- 35.1219894
- ],
- [
- -120.6918447,
- 34.4966794
- ],
- [
- -120.5045898,
- 34.4966794
- ],
- [
- -120.5045898,
- 34.4339651
- ],
- [
- -120.0078775,
- 34.4339651
- ],
- [
- -120.0078775,
- 34.3682626
- ],
- [
- -119.5283517,
- 34.3682626
- ],
- [
- -119.5283517,
- 34.0576434
- ],
- [
- -119.0060985,
- 34.0576434
- ],
- [
- -119.0060985,
- 33.9975267
- ],
- [
- -118.5046259,
- 33.9975267
- ],
- [
- -118.5046259,
- 33.8694631
- ],
- [
- -118.4413209,
- 33.8694631
- ],
- [
- -118.4413209,
- 33.6865253
- ],
- [
- -118.066912,
- 33.6865253
- ],
- [
- -118.066912,
- 33.3063832
- ],
- [
- -117.5030045,
- 33.3063832
- ],
- [
- -117.5030045,
- 33.0500337
- ],
- [
- -117.3188195,
- 33.0500337
- ],
- [
- -117.3188195,
- 32.6205888
- ],
- [
- -117.1917023,
- 32.6205888
- ],
- [
- -117.1917023,
- 32.4974566
- ],
- [
- -116.746496,
- 32.4974566
- ],
- [
- -116.746496,
- 32.5609161
- ],
- [
- -115.9970138,
- 32.5609161
- ],
- [
- -115.9970138,
- 32.6264942
- ],
- [
- -114.8808125,
- 32.6264942
- ],
- [
- -114.8808125,
- 32.4340796
- ],
- [
- -114.6294474,
- 32.4340796
- ],
- [
- -114.6294474,
- 32.3731636
- ],
- [
- -114.4447437,
- 32.3731636
- ],
- [
- -114.4447437,
- 32.3075418
- ],
- [
- -114.2557628,
- 32.3075418
- ],
- [
- -114.2557628,
- 32.2444561
- ],
- [
- -114.0680274,
- 32.2444561
- ],
- [
- -114.0680274,
- 32.1829113
- ],
- [
- -113.8166499,
- 32.1829113
- ],
- [
- -113.8166499,
- 32.1207622
- ],
- [
- -113.6307421,
- 32.1207622
- ],
- [
- -113.6307421,
- 32.0565099
- ],
- [
- -113.4417495,
- 32.0565099
- ],
- [
- -113.4417495,
- 31.9984372
- ],
- [
- -113.2546027,
- 31.9984372
- ],
- [
- -113.2546027,
- 31.9325434
- ],
- [
- -113.068072,
- 31.9325434
- ],
- [
- -113.068072,
- 31.8718062
- ],
- [
- -112.8161105,
- 31.8718062
- ],
- [
- -112.8161105,
- 31.8104171
- ],
- [
- -112.6308756,
- 31.8104171
- ],
- [
- -112.6308756,
- 31.7464723
- ],
- [
- -112.4418918,
- 31.7464723
- ],
- [
- -112.4418918,
- 31.6856001
- ],
- [
- -112.257192,
- 31.6856001
- ],
- [
- -112.257192,
- 31.6210352
- ],
- [
- -112.0033787,
- 31.6210352
- ],
- [
- -112.0033787,
- 31.559584
- ],
- [
- -111.815619,
- 31.559584
- ],
- [
- -111.815619,
- 31.4970238
- ],
- [
- -111.6278586,
- 31.4970238
- ],
- [
- -111.6278586,
- 31.4339867
- ],
- [
- -111.4418978,
- 31.4339867
- ],
- [
- -111.4418978,
- 31.3733859
- ],
- [
- -111.2559708,
- 31.3733859
- ],
- [
- -111.2559708,
- 31.3113225
- ],
- [
- -108.1845822,
- 31.3113225
- ],
- [
- -108.1845822,
- 31.7459502
- ],
- [
- -106.5065055,
- 31.7459502
- ],
- [
- -106.5065055,
- 31.6842308
- ],
- [
- -106.3797265,
- 31.6842308
- ],
- [
- -106.3797265,
- 31.621752
- ],
- [
- -106.317434,
- 31.621752
- ],
- [
- -106.317434,
- 31.4968167
- ],
- [
- -106.2551769,
- 31.4968167
- ],
- [
- -106.2551769,
- 31.4344889
- ],
- [
- -106.1924698,
- 31.4344889
- ],
- [
- -106.1924698,
- 31.3721296
- ],
- [
- -106.0039212,
- 31.3721296
- ],
- [
- -106.0039212,
- 31.309328
- ],
- [
- -105.9416582,
- 31.309328
- ],
- [
- -105.9416582,
- 31.2457547
- ],
- [
- -105.8798174,
- 31.2457547
- ],
- [
- -105.8798174,
- 31.1836194
- ],
- [
- -105.8162349,
- 31.1836194
- ],
- [
- -105.8162349,
- 31.1207155
- ],
- [
- -105.6921198,
- 31.1207155
- ],
- [
- -105.6921198,
- 31.0584835
- ],
- [
- -105.6302881,
- 31.0584835
- ],
- [
- -105.6302881,
- 30.9328271
- ],
- [
- -105.5044418,
- 30.9328271
- ],
- [
- -105.5044418,
- 30.8715864
- ],
- [
- -105.4412973,
- 30.8715864
- ],
- [
- -105.4412973,
- 30.808463
- ],
- [
- -105.3781497,
- 30.808463
- ],
- [
- -105.3781497,
- 30.7471828
- ],
- [
- -105.1904658,
- 30.7471828
- ],
- [
- -105.1904658,
- 30.6843231
- ],
- [
- -105.1286244,
- 30.6843231
- ],
- [
- -105.1286244,
- 30.6199737
- ],
- [
- -105.0036504,
- 30.6199737
- ],
- [
- -105.0036504,
- 30.5589058
- ],
- [
- -104.9417962,
- 30.5589058
- ],
- [
- -104.9417962,
- 30.4963236
- ],
- [
- -104.8782018,
- 30.4963236
- ],
- [
- -104.8782018,
- 30.3098261
- ],
- [
- -104.8155257,
- 30.3098261
- ],
- [
- -104.8155257,
- 30.2478305
- ],
- [
- -104.7536079,
- 30.2478305
- ],
- [
- -104.7536079,
- 29.9353916
- ],
- [
- -104.690949,
- 29.9353916
- ],
- [
- -104.690949,
- 29.8090156
- ],
- [
- -104.6291301,
- 29.8090156
- ],
- [
- -104.6291301,
- 29.6843577
- ],
- [
- -104.5659869,
- 29.6843577
- ],
- [
- -104.5659869,
- 29.6223459
- ],
- [
- -104.5037188,
- 29.6223459
- ],
- [
- -104.5037188,
- 29.5595436
- ],
- [
- -104.4410072,
- 29.5595436
- ],
- [
- -104.4410072,
- 29.4974832
- ],
- [
- -104.2537551,
- 29.4974832
- ],
- [
- -104.2537551,
- 29.3716718
- ],
- [
- -104.1291984,
- 29.3716718
- ],
- [
- -104.1291984,
- 29.3091621
- ],
- [
- -104.0688737,
- 29.3091621
- ],
- [
- -104.0688737,
- 29.2467276
- ],
- [
- -103.8187309,
- 29.2467276
- ],
- [
- -103.8187309,
- 29.1843076
- ],
- [
- -103.755736,
- 29.1843076
- ],
- [
- -103.755736,
- 29.1223174
- ],
- [
- -103.5667542,
- 29.1223174
- ],
- [
- -103.5667542,
- 29.0598119
- ],
- [
- -103.5049819,
- 29.0598119
- ],
- [
- -103.5049819,
- 28.9967506
- ],
- [
- -103.3165753,
- 28.9967506
- ],
- [
- -103.3165753,
- 28.9346923
- ],
- [
- -103.0597572,
- 28.9346923
- ],
- [
- -103.0597572,
- 29.0592965
- ],
- [
- -102.9979694,
- 29.0592965
- ],
- [
- -102.9979694,
- 29.1212855
- ],
- [
- -102.9331397,
- 29.1212855
- ],
- [
- -102.9331397,
- 29.1848575
- ],
- [
- -102.8095989,
- 29.1848575
- ],
- [
- -102.8095989,
- 29.2526154
- ],
- [
- -102.8701345,
- 29.2526154
- ],
- [
- -102.8701345,
- 29.308096
- ],
- [
- -102.8096681,
- 29.308096
- ],
- [
- -102.8096681,
- 29.3715484
- ],
- [
- -102.7475655,
- 29.3715484
- ],
- [
- -102.7475655,
- 29.5581899
- ],
- [
- -102.684554,
- 29.5581899
- ],
- [
- -102.684554,
- 29.6847655
- ],
- [
- -102.4967764,
- 29.6847655
- ],
- [
- -102.4967764,
- 29.7457694
- ],
- [
- -102.3086647,
- 29.7457694
- ],
- [
- -102.3086647,
- 29.8086627
- ],
- [
- -102.1909323,
- 29.8086627
- ],
- [
- -102.1909323,
- 29.7460097
- ],
- [
- -101.5049914,
- 29.7460097
- ],
- [
- -101.5049914,
- 29.6846777
- ],
- [
- -101.3805796,
- 29.6846777
- ],
- [
- -101.3805796,
- 29.5594459
- ],
- [
- -101.3175057,
- 29.5594459
- ],
- [
- -101.3175057,
- 29.4958934
- ],
- [
- -101.1910075,
- 29.4958934
- ],
- [
- -101.1910075,
- 29.4326115
- ],
- [
- -101.067501,
- 29.4326115
- ],
- [
- -101.067501,
- 29.308808
- ],
- [
- -100.9418897,
- 29.308808
- ],
- [
- -100.9418897,
- 29.2456231
- ],
- [
- -100.8167271,
- 29.2456231
- ],
- [
- -100.8167271,
- 29.1190449
- ],
- [
- -100.7522672,
- 29.1190449
- ],
- [
- -100.7522672,
- 29.0578214
- ],
- [
- -100.6925358,
- 29.0578214
- ],
- [
- -100.6925358,
- 28.8720431
- ],
- [
- -100.6290158,
- 28.8720431
- ],
- [
- -100.6290158,
- 28.8095363
- ],
- [
- -100.5679901,
- 28.8095363
- ],
- [
- -100.5679901,
- 28.622554
- ],
- [
- -100.5040411,
- 28.622554
- ],
- [
- -100.5040411,
- 28.5583804
- ],
- [
- -100.4421832,
- 28.5583804
- ],
- [
- -100.4421832,
- 28.4968266
- ],
- [
- -100.379434,
- 28.4968266
- ],
- [
- -100.379434,
- 28.3092865
- ],
- [
- -100.3171942,
- 28.3092865
- ],
- [
- -100.3171942,
- 28.1835681
- ],
- [
- -100.254483,
- 28.1835681
- ],
- [
- -100.254483,
- 28.1213885
- ],
- [
- -100.1282282,
- 28.1213885
- ],
- [
- -100.1282282,
- 28.059215
- ],
- [
- -100.0659537,
- 28.059215
- ],
- [
- -100.0659537,
- 27.9966087
- ],
- [
- -100.0023855,
- 27.9966087
- ],
- [
- -100.0023855,
- 27.9332152
- ],
- [
- -99.9426497,
- 27.9332152
- ],
- [
- -99.9426497,
- 27.7454658
- ],
- [
- -99.816851,
- 27.7454658
- ],
- [
- -99.816851,
- 27.6834301
- ],
- [
- -99.7541346,
- 27.6834301
- ],
- [
- -99.7541346,
- 27.6221543
- ],
- [
- -99.6291629,
- 27.6221543
- ],
- [
- -99.6291629,
- 27.5588977
- ],
- [
- -99.5672838,
- 27.5588977
- ],
- [
- -99.5672838,
- 27.4353752
- ],
- [
- -99.5041798,
- 27.4353752
- ],
- [
- -99.5041798,
- 27.3774021
- ],
- [
- -99.5671796,
- 27.3774021
- ],
- [
- -99.5671796,
- 27.2463726
- ],
- [
- -99.504975,
- 27.2463726
- ],
- [
- -99.504975,
- 26.9965649
- ],
- [
- -99.4427427,
- 26.9965649
- ],
- [
- -99.4427427,
- 26.872803
- ],
- [
- -99.3800633,
- 26.872803
- ],
- [
- -99.3800633,
- 26.8068179
- ],
- [
- -99.3190684,
- 26.8068179
- ],
- [
- -99.3190684,
- 26.7473614
- ],
- [
- -99.2537541,
- 26.7473614
- ],
- [
- -99.2537541,
- 26.6210068
- ],
- [
- -99.1910617,
- 26.6210068
- ],
- [
- -99.1910617,
- 26.4956737
- ],
- [
- -99.1300639,
- 26.4956737
- ],
- [
- -99.1300639,
- 26.3713808
- ],
- [
- -99.0029473,
- 26.3713808
- ],
- [
- -99.0029473,
- 26.3093836
- ],
- [
- -98.816572,
- 26.3093836
- ],
- [
- -98.816572,
- 26.2457762
- ],
- [
- -98.6920082,
- 26.2457762
- ],
- [
- -98.6920082,
- 26.1837096
- ],
- [
- -98.4440896,
- 26.1837096
- ],
- [
- -98.4440896,
- 26.1217217
- ],
- [
- -98.3823181,
- 26.1217217
- ],
- [
- -98.3823181,
- 26.0596488
- ],
- [
- -98.2532707,
- 26.0596488
- ],
- [
- -98.2532707,
- 25.9986871
- ],
- [
- -98.0109084,
- 25.9986871
- ],
- [
- -98.0109084,
- 25.9932255
- ],
- [
- -97.6932319,
- 25.9932255
- ],
- [
- -97.6932319,
- 25.9334103
- ],
- [
- -97.6313904,
- 25.9334103
- ],
- [
- -97.6313904,
- 25.8695893
- ],
- [
- -97.5046779,
- 25.8695893
- ],
- [
- -97.5046779,
- 25.8073488
- ],
- [
- -97.3083401,
- 25.8073488
- ],
- [
- -97.3083401,
- 25.8731159
- ],
- [
- -97.2456326,
- 25.8731159
- ],
- [
- -97.2456326,
- 25.9353731
- ],
- [
- -97.1138939,
- 25.9353731
- ],
- [
- -97.1138939,
- 27.6809179
- ],
- [
- -97.0571035,
- 27.6809179
- ],
- [
- -97.0571035,
- 27.8108242
- ],
- [
- -95.5810766,
- 27.8108242
- ],
- [
- -95.5810766,
- 28.7468827
- ],
- [
- -94.271041,
- 28.7468827
- ],
- [
- -94.271041,
- 29.5594076
- ],
- [
- -92.5029947,
- 29.5594076
- ],
- [
- -92.5029947,
- 29.4974754
- ],
- [
- -91.8776216,
- 29.4974754
- ],
- [
- -91.8776216,
- 29.3727013
- ],
- [
- -91.378418,
- 29.3727013
- ],
- [
- -91.378418,
- 29.2468326
- ],
- [
- -91.3153953,
- 29.2468326
- ],
- [
- -91.3153953,
- 29.1844301
- ],
- [
- -91.1294702,
- 29.1844301
- ],
- [
- -91.1294702,
- 29.1232559
- ],
- [
- -91.0052632,
- 29.1232559
- ],
- [
- -91.0052632,
- 28.9968437
- ],
- [
- -89.4500159,
- 28.9968437
- ],
- [
- -89.4500159,
- 28.8677422
- ],
- [
- -88.8104309,
- 28.8677422
- ],
- [
- -88.8104309,
- 30.1841864
- ],
- [
- -85.8791527,
- 30.1841864
- ],
- [
- -85.8791527,
- 29.5455038
- ],
- [
- -84.8368083,
- 29.5455038
- ],
- [
- -84.8368083,
- 29.6225158
- ],
- [
- -84.7482786,
- 29.6225158
- ],
- [
- -84.7482786,
- 29.683624
- ],
- [
- -84.685894,
- 29.683624
- ],
- [
- -84.685894,
- 29.7468386
- ],
- [
- -83.6296975,
- 29.7468386
- ],
- [
- -83.6296975,
- 29.4324361
- ],
- [
- -83.3174937,
- 29.4324361
- ],
- [
- -83.3174937,
- 29.0579442
- ],
- [
- -82.879659,
- 29.0579442
- ],
- [
- -82.879659,
- 27.7453529
- ],
- [
- -82.8182822,
- 27.7453529
- ],
- [
- -82.8182822,
- 26.9290868
- ],
- [
- -82.3796782,
- 26.9290868
- ],
- [
- -82.3796782,
- 26.3694183
- ],
- [
- -81.8777106,
- 26.3694183
- ],
- [
- -81.8777106,
- 25.805971
- ],
- [
- -81.5036862,
- 25.805971
- ],
- [
- -81.5036862,
- 25.7474753
- ],
- [
- -81.4405462,
- 25.7474753
- ],
- [
- -81.4405462,
- 25.6851489
- ],
- [
- -81.3155883,
- 25.6851489
- ],
- [
- -81.3155883,
- 25.5600985
- ],
- [
- -81.2538534,
- 25.5600985
- ],
- [
- -81.2538534,
- 25.4342361
- ],
- [
- -81.1902012,
- 25.4342361
- ],
- [
- -81.1902012,
- 25.1234341
- ],
- [
- -81.1288133,
- 25.1234341
- ],
- [
- -81.1288133,
- 25.0619389
- ],
- [
- -81.0649231,
- 25.0619389
- ],
- [
- -81.0649231,
- 24.8157807
- ],
- [
- -81.6289469,
- 24.8157807
- ],
- [
- -81.6289469,
- 24.7538367
- ],
- [
- -81.6907173,
- 24.7538367
- ],
- [
- -81.6907173,
- 24.6899374
- ],
- [
- -81.8173189,
- 24.6899374
- ],
- [
- -81.8173189,
- 24.6279161
- ],
- [
- -82.1910041,
- 24.6279161
- ],
- [
- -82.1910041,
- 24.496294
- ],
- [
- -81.6216596,
- 24.496294
- ],
- [
- -81.6216596,
- 24.559484
- ],
- [
- -81.372006,
- 24.559484
- ],
- [
- -81.372006,
- 24.6220687
- ],
- [
- -81.0593278,
- 24.6220687
- ],
- [
- -81.0593278,
- 24.684826
- ],
- [
- -80.9347147,
- 24.684826
- ],
- [
- -80.9347147,
- 24.7474828
- ],
- [
- -80.7471081,
- 24.7474828
- ],
- [
- -80.7471081,
- 24.8100618
- ],
- [
- -80.3629898,
- 24.8100618
- ],
- [
- -80.3629898,
- 25.1175858
- ],
- [
- -80.122344,
- 25.1175858
- ],
- [
- -80.122344,
- 25.7472357
- ],
- [
- -80.0588458,
- 25.7472357
- ],
- [
- -80.0588458,
- 26.3708251
- ],
- [
- -79.995837,
- 26.3708251
- ],
- [
- -79.995837,
- 26.9398003
- ],
- [
- -80.0587265,
- 26.9398003
- ],
- [
- -80.0587265,
- 27.1277466
- ],
- [
- -80.1226251,
- 27.1277466
- ],
- [
- -80.1226251,
- 27.2534279
- ],
- [
- -80.1846956,
- 27.2534279
- ],
- [
- -80.1846956,
- 27.3781229
- ],
- [
- -80.246175,
- 27.3781229
- ],
- [
- -80.246175,
- 27.5658729
- ],
- [
- -80.3094768,
- 27.5658729
- ],
- [
- -80.3094768,
- 27.7530311
- ],
- [
- -80.3721485,
- 27.7530311
- ],
- [
- -80.3721485,
- 27.8774451
- ],
- [
- -80.4351457,
- 27.8774451
- ],
- [
- -80.4351457,
- 28.0033366
- ],
- [
- -80.4966078,
- 28.0033366
- ],
- [
- -80.4966078,
- 28.1277326
- ],
- [
- -80.5587159,
- 28.1277326
- ],
- [
- -80.5587159,
- 28.3723509
- ],
- [
- -80.4966335,
- 28.3723509
- ],
- [
- -80.4966335,
- 29.5160326
- ],
- [
- -81.1213644,
- 29.5160326
- ],
- [
- -81.1213644,
- 31.6846966
- ],
- [
- -80.6018723,
- 31.6846966
- ],
- [
- -80.6018723,
- 32.2475309
- ],
- [
- -79.4921024,
- 32.2475309
- ],
- [
- -79.4921024,
- 32.9970261
- ],
- [
- -79.1116488,
- 32.9970261
- ],
- [
- -79.1116488,
- 33.3729457
- ],
- [
- -78.6153621,
- 33.3729457
- ],
- [
- -78.6153621,
- 33.8097638
- ],
- [
- -77.9316963,
- 33.8097638
- ],
- [
- -77.9316963,
- 33.8718243
- ],
- [
- -77.8692252,
- 33.8718243
- ],
- [
- -77.8692252,
- 34.0552454
- ],
- [
- -77.6826392,
- 34.0552454
- ],
- [
- -77.6826392,
- 34.2974598
- ],
- [
- -77.2453509,
- 34.2974598
- ],
- [
- -77.2453509,
- 34.5598585
- ],
- [
- -76.4973277,
- 34.5598585
- ],
- [
- -76.4973277,
- 34.622796
- ],
- [
- -76.4337602,
- 34.622796
- ],
- [
- -76.4337602,
- 34.6849285
- ],
- [
- -76.373212,
- 34.6849285
- ],
- [
- -76.373212,
- 34.7467674
- ],
- [
- -76.3059364,
- 34.7467674
- ],
- [
- -76.3059364,
- 34.808551
- ],
- [
- -76.2468017,
- 34.808551
- ],
- [
- -76.2468017,
- 34.8728418
- ],
- [
- -76.1825922,
- 34.8728418
- ],
- [
- -76.1825922,
- 34.9335332
- ],
- [
- -76.120814,
- 34.9335332
- ],
- [
- -76.120814,
- 34.9952359
- ],
- [
- -75.9979015,
- 34.9952359
- ],
- [
- -75.9979015,
- 35.0578182
- ],
- [
- -75.870338,
- 35.0578182
- ],
- [
- -75.870338,
- 35.1219097
- ],
- [
- -75.7462194,
- 35.1219097
- ],
- [
- -75.7462194,
- 35.1818911
- ],
- [
- -75.4929694,
- 35.1818911
- ],
- [
- -75.4929694,
- 35.3082988
- ],
- [
- -75.4325662,
- 35.3082988
- ],
- [
- -75.4325662,
- 35.7542495
- ],
- [
- -75.4969907,
- 35.7542495
- ],
- [
- -75.4969907,
- 37.8105602
- ],
- [
- -75.3082972,
- 37.8105602
- ],
- [
- -75.3082972,
- 37.8720088
- ],
- [
- -75.245601,
- 37.8720088
- ],
- [
- -75.245601,
- 37.9954849
- ],
- [
- -75.1828751,
- 37.9954849
- ],
- [
- -75.1828751,
- 38.0585079
- ],
- [
- -75.1184793,
- 38.0585079
- ],
- [
- -75.1184793,
- 38.2469091
- ],
- [
- -75.0592098,
- 38.2469091
- ],
- [
- -75.0592098,
- 38.3704316
- ],
- [
- -74.9948111,
- 38.3704316
- ],
- [
- -74.9948111,
- 38.8718417
- ],
- [
- -74.4878252,
- 38.8718417
- ],
- [
- -74.4878252,
- 39.3089428
- ],
- [
- -74.1766317,
- 39.3089428
- ],
- [
- -74.1766317,
- 39.6224653
- ],
- [
- -74.0567045,
- 39.6224653
- ],
- [
- -74.0567045,
- 39.933178
- ],
- [
- -73.9959035,
- 39.933178
- ],
- [
- -73.9959035,
- 40.1854852
- ],
- [
- -73.9341593,
- 40.1854852
- ],
- [
- -73.9341593,
- 40.4959486
- ],
- [
- -73.8723024,
- 40.4959486
- ],
- [
- -73.8723024,
- 40.5527135
- ],
- [
- -71.8074506,
- 40.5527135
- ],
- [
- -71.8074506,
- 41.3088005
- ],
- [
- -70.882512,
- 41.3088005
- ],
- [
- -70.882512,
- 41.184978
- ],
- [
- -70.7461947,
- 41.184978
- ],
- [
- -70.7461947,
- 41.3091865
- ],
- [
- -70.4337553,
- 41.3091865
- ],
- [
- -70.4337553,
- 41.4963885
- ],
- [
- -69.9334281,
- 41.4963885
- ],
- [
- -69.9334281,
- 41.6230802
- ],
- [
- -69.869857,
- 41.6230802
- ],
- [
- -69.869857,
- 41.8776895
- ],
- [
- -69.935791,
- 41.8776895
- ],
- [
- -69.935791,
- 42.0032342
- ],
- [
- -69.9975823,
- 42.0032342
- ],
- [
- -69.9975823,
- 42.0650191
- ],
- [
- -70.0606103,
- 42.0650191
- ],
- [
- -70.0606103,
- 42.1294348
- ],
- [
- -70.5572884,
- 42.1294348
- ],
- [
- -70.5572884,
- 43.2487079
- ],
- [
- -70.4974097,
- 43.2487079
- ],
- [
- -70.4974097,
- 43.3092194
- ],
- [
- -70.3704249,
- 43.3092194
- ],
- [
- -70.3704249,
- 43.371963
- ],
- [
- -70.3085701,
- 43.371963
- ],
- [
- -70.3085701,
- 43.4969879
- ],
- [
- -70.183921,
- 43.4969879
- ],
- [
- -70.183921,
- 43.6223531
- ],
- [
- -70.057583,
- 43.6223531
- ],
- [
- -70.057583,
- 43.6850173
- ],
- [
- -69.7455247,
- 43.6850173
- ],
- [
- -69.7455247,
- 43.7476571
- ],
- [
- -69.2472845,
- 43.7476571
- ],
- [
- -69.2472845,
- 43.8107035
- ],
- [
- -69.0560701,
- 43.8107035
- ],
- [
- -69.0560701,
- 43.8717247
- ],
- [
- -68.9950522,
- 43.8717247
- ],
- [
- -68.9950522,
- 43.9982022
- ],
- [
- -68.4963672,
- 43.9982022
- ],
- [
- -68.4963672,
- 44.0597368
- ],
- [
- -68.3081038,
- 44.0597368
- ],
- [
- -68.3081038,
- 44.122137
- ],
- [
- -68.1851802,
- 44.122137
- ],
- [
- -68.1851802,
- 44.3081382
- ],
- [
- -67.9956019,
- 44.3081382
- ],
- [
- -67.9956019,
- 44.3727489
- ],
- [
- -67.8103041,
- 44.3727489
- ],
- [
- -67.8103041,
- 44.435178
- ],
- [
- -67.4965289,
- 44.435178
- ],
- [
- -67.4965289,
- 44.4968776
- ],
- [
- -67.37102,
- 44.4968776
- ],
- [
- -67.37102,
- 44.5600642
- ],
- [
- -67.1848753,
- 44.5600642
- ],
- [
- -67.1848753,
- 44.6213345
- ],
- [
- -67.1221208,
- 44.6213345
- ],
- [
- -67.1221208,
- 44.6867918
- ],
- [
- -67.059365,
- 44.6867918
- ],
- [
- -67.059365,
- 44.7473657
- ],
- [
- -66.9311098,
- 44.7473657
- ],
- [
- -66.9311098,
- 44.9406566
- ],
- [
- -66.994683,
- 44.9406566
- ],
- [
- -66.994683,
- 45.0024514
- ],
- [
- -67.0595847,
- 45.0024514
- ],
- [
- -67.0595847,
- 45.1273377
- ],
- [
- -67.1201974,
- 45.1273377
- ],
- [
- -67.1201974,
- 45.1910115
- ],
- [
- -67.2469811,
- 45.1910115
- ],
- [
- -67.2469811,
- 45.253442
- ],
- [
- -67.3177546,
- 45.253442
- ],
- [
- -67.3177546,
- 45.1898369
- ],
- [
- -67.370749,
- 45.1898369
- ],
- [
- -67.370749,
- 45.2534001
- ],
- [
- -67.4326888,
- 45.2534001
- ],
- [
- -67.4326888,
- 45.3083409
- ],
- [
- -67.3708571,
- 45.3083409
- ],
- [
- -67.3708571,
- 45.4396986
- ],
- [
- -67.4305573,
- 45.4396986
- ],
- [
- -67.4305573,
- 45.4950095
- ],
- [
- -67.37099,
- 45.4950095
- ],
- [
- -67.37099,
- 45.6264543
- ],
- [
- -67.6214982,
- 45.6264543
- ],
- [
- -67.6214982,
- 45.6896133
- ],
- [
- -67.683828,
- 45.6896133
- ],
- [
- -67.683828,
- 45.753259
- ],
- [
- -67.7462097,
- 45.753259
- ],
- [
- -67.7462097,
- 47.1268165
- ],
- [
- -67.8700141,
- 47.1268165
- ],
- [
- -67.8700141,
- 47.1900278
- ],
- [
- -67.9323803,
- 47.1900278
- ],
- [
- -67.9323803,
- 47.2539678
- ],
- [
- -67.9959387,
- 47.2539678
- ],
- [
- -67.9959387,
- 47.3149737
- ],
- [
- -68.1206676,
- 47.3149737
- ],
- [
- -68.1206676,
- 47.3780823
- ],
- [
- -68.4423175,
- 47.3780823
- ],
- [
- -68.4423175,
- 47.3166082
- ],
- [
- -68.6314305,
- 47.3166082
- ],
- [
- -68.6314305,
- 47.2544676
- ],
- [
- -68.9978037,
- 47.2544676
- ],
- [
- -68.9978037,
- 47.439895
- ],
- [
- -69.0607223,
- 47.439895
- ],
- [
- -69.0607223,
- 47.5047558
- ],
- [
- -69.2538122,
- 47.5047558
- ],
- [
- -69.2538122,
- 47.4398084
- ],
- [
- -69.3179284,
- 47.4398084
- ],
- [
- -69.3179284,
- 47.378601
- ],
- [
- -69.4438546,
- 47.378601
- ],
- [
- -69.4438546,
- 47.3156274
- ],
- [
- -69.5038204,
- 47.3156274
- ],
- [
- -69.5038204,
- 47.2525839
- ],
- [
- -69.5667838,
- 47.2525839
- ],
- [
- -69.5667838,
- 47.1910884
- ],
- [
- -69.6303478,
- 47.1910884
- ],
- [
- -69.6303478,
- 47.128701
- ],
- [
- -69.6933103,
- 47.128701
- ],
- [
- -69.6933103,
- 47.0654307
- ],
- [
- -69.7557063,
- 47.0654307
- ],
- [
- -69.7557063,
- 47.0042751
- ],
- [
- -69.8180391,
- 47.0042751
- ],
- [
- -69.8180391,
- 46.9415344
- ],
- [
- -69.8804023,
- 46.9415344
- ],
- [
- -69.8804023,
- 46.8792519
- ],
- [
- -69.9421674,
- 46.8792519
- ],
- [
- -69.9421674,
- 46.8177399
- ],
- [
- -70.0063088,
- 46.8177399
- ],
- [
- -70.0063088,
- 46.6920295
- ],
- [
- -70.0704265,
- 46.6920295
- ],
- [
- -70.0704265,
- 46.4425926
- ],
- [
- -70.1945902,
- 46.4425926
- ],
- [
- -70.1945902,
- 46.3785887
- ],
- [
- -70.2562047,
- 46.3785887
- ],
- [
- -70.2562047,
- 46.3152628
- ],
- [
- -70.3203651,
- 46.3152628
- ],
- [
- -70.3203651,
- 46.0651209
- ],
- [
- -70.3814988,
- 46.0651209
- ],
- [
- -70.3814988,
- 45.93552
- ],
- [
- -70.3201618,
- 45.93552
- ],
- [
- -70.3201618,
- 45.879479
- ],
- [
- -70.4493131,
- 45.879479
- ],
- [
- -70.4493131,
- 45.7538713
- ],
- [
- -70.5070021,
- 45.7538713
- ],
- [
- -70.5070021,
- 45.6916912
- ],
- [
- -70.6316642,
- 45.6916912
- ],
- [
- -70.6316642,
- 45.6291619
- ],
- [
- -70.7575538,
- 45.6291619
- ],
- [
- -70.7575538,
- 45.4414685
- ],
- [
- -70.8809878,
- 45.4414685
- ],
- [
- -70.8809878,
- 45.3780612
- ],
- [
- -71.13328,
- 45.3780612
- ],
- [
- -71.13328,
- 45.3151452
- ],
- [
- -71.3830282,
- 45.3151452
- ],
- [
- -71.3830282,
- 45.253416
- ],
- [
- -71.5076448,
- 45.253416
- ],
- [
- -71.5076448,
- 45.0655726
- ],
- [
- -73.9418929,
- 45.0655726
- ],
- [
- -73.9418929,
- 45.0031242
- ],
- [
- -74.7469725,
- 45.0031242
- ],
- [
- -74.7469725,
- 45.0649003
- ],
- [
- -74.8800964,
- 45.0649003
- ],
- [
- -74.8800964,
- 45.0029023
- ],
- [
- -75.0662455,
- 45.0029023
- ],
- [
- -75.0662455,
- 44.9415167
- ],
- [
- -75.2539363,
- 44.9415167
- ],
- [
- -75.2539363,
- 44.8776043
- ],
- [
- -75.3789648,
- 44.8776043
- ],
- [
- -75.3789648,
- 44.8153462
- ],
- [
- -75.4431283,
- 44.8153462
- ],
- [
- -75.4431283,
- 44.7536053
- ],
- [
- -75.5666566,
- 44.7536053
- ],
- [
- -75.5666566,
- 44.6909879
- ],
- [
- -75.6290205,
- 44.6909879
- ],
- [
- -75.6290205,
- 44.6284958
- ],
- [
- -75.7540484,
- 44.6284958
- ],
- [
- -75.7540484,
- 44.566385
- ],
- [
- -75.817312,
- 44.566385
- ],
- [
- -75.817312,
- 44.5028932
- ],
- [
- -75.8799549,
- 44.5028932
- ],
- [
- -75.8799549,
- 44.3784946
- ],
- [
- -76.1300319,
- 44.3784946
- ],
- [
- -76.1300319,
- 44.3159227
- ],
- [
- -76.1926961,
- 44.3159227
- ],
- [
- -76.1926961,
- 44.2534378
- ],
- [
- -76.3182619,
- 44.2534378
- ],
- [
- -76.3182619,
- 44.1916726
- ],
- [
- -76.3792975,
- 44.1916726
- ],
- [
- -76.3792975,
- 44.0653733
- ],
- [
- -76.4427584,
- 44.0653733
- ],
- [
- -76.4427584,
- 43.9963825
- ],
- [
- -76.317027,
- 43.9963825
- ],
- [
- -76.317027,
- 43.9414581
- ],
- [
- -76.5076611,
- 43.9414581
- ],
- [
- -76.5076611,
- 43.8723335
- ],
- [
- -76.3829974,
- 43.8723335
- ],
- [
- -76.3829974,
- 43.8091872
- ],
- [
- -76.2534102,
- 43.8091872
- ],
- [
- -76.2534102,
- 43.5665222
- ],
- [
- -76.5064833,
- 43.5665222
- ],
- [
- -76.5064833,
- 43.5033881
- ],
- [
- -76.6331208,
- 43.5033881
- ],
- [
- -76.6331208,
- 43.4432252
- ],
- [
- -76.6951085,
- 43.4432252
- ],
- [
- -76.6951085,
- 43.3786858
- ],
- [
- -76.8177798,
- 43.3786858
- ],
- [
- -76.8177798,
- 43.318066
- ],
- [
- -77.682,
- 43.318066
- ],
- [
- -77.682,
- 43.3789376
- ],
- [
- -78.0565883,
- 43.3789376
- ],
- [
- -78.0565883,
- 43.4396918
- ],
- [
- -78.4389748,
- 43.4396918
- ],
- [
- -78.4389748,
- 43.3794382
- ],
- [
- -78.8803396,
- 43.3794382
- ],
- [
- -78.8803396,
- 43.3149724
- ],
- [
- -79.1298858,
- 43.3149724
- ],
- [
- -79.1298858,
- 43.2429286
- ],
- [
- -79.0669615,
- 43.2429286
- ],
- [
- -79.0669615,
- 43.1299931
- ],
- [
- -79.1298858,
- 43.1299931
- ],
- [
- -79.1298858,
- 43.0577305
- ],
- [
- -79.071264,
- 43.0577305
- ],
- [
- -79.071264,
- 42.9294906
- ],
- [
- -78.943264,
- 42.9294906
- ],
- [
- -78.943264,
- 42.7542165
- ],
- [
- -79.069439,
- 42.7542165
- ],
- [
- -79.069439,
- 42.6941622
- ],
- [
- -79.133439,
- 42.6941622
- ],
- [
- -79.133439,
- 42.6296973
- ],
- [
- -79.1947499,
- 42.6296973
- ],
- [
- -79.1947499,
- 42.5663538
- ],
- [
- -79.3786827,
- 42.5663538
- ],
- [
- -79.3786827,
- 42.5033425
- ],
- [
- -79.4442961,
- 42.5033425
- ],
- [
- -79.4442961,
- 42.4410614
- ],
- [
- -79.5679936,
- 42.4410614
- ],
- [
- -79.5679936,
- 42.3775264
- ],
- [
- -79.6906154,
- 42.3775264
- ],
- [
- -79.6906154,
- 42.3171086
- ],
- [
- -79.8164642,
- 42.3171086
- ],
- [
- -79.8164642,
- 42.2534481
- ],
- [
- -80.0052373,
- 42.2534481
- ],
- [
- -80.0052373,
- 42.1909188
- ],
- [
- -80.1916829,
- 42.1909188
- ],
- [
- -80.1916829,
- 42.1272555
- ],
- [
- -80.3167992,
- 42.1272555
- ],
- [
- -80.3167992,
- 42.0669857
- ],
- [
- -80.5063234,
- 42.0669857
- ],
- [
- -80.5063234,
- 42.0034331
- ],
- [
- -80.6930471,
- 42.0034331
- ],
- [
- -80.6930471,
- 41.9415141
- ],
- [
- -80.9440403,
- 41.9415141
- ],
- [
- -80.9440403,
- 41.8781193
- ],
- [
- -81.1942729,
- 41.8781193
- ],
- [
- -81.1942729,
- 41.8166455
- ],
- [
- -81.3190089,
- 41.8166455
- ],
- [
- -81.3190089,
- 41.7545453
- ],
- [
- -81.4418435,
- 41.7545453
- ],
- [
- -81.4418435,
- 41.690965
- ],
- [
- -81.5053523,
- 41.690965
- ],
- [
- -81.5053523,
- 41.6301643
- ],
- [
- -82.7470081,
- 41.6301643
- ],
- [
- -82.7470081,
- 41.7536942
- ],
- [
- -82.8839135,
- 41.7536942
- ],
- [
- -82.8839135,
- 41.5656075
- ],
- [
- -82.9957195,
- 41.5656075
- ],
- [
- -82.9957195,
- 41.6270375
- ],
- [
- -83.1257796,
- 41.6270375
- ],
- [
- -83.1257796,
- 41.6878411
- ],
- [
- -83.2474733,
- 41.6878411
- ],
- [
- -83.2474733,
- 41.7536942
- ],
- [
- -83.3737305,
- 41.7536942
- ],
- [
- -83.3737305,
- 41.809276
- ],
- [
- -83.3106019,
- 41.809276
- ],
- [
- -83.3106019,
- 41.8716064
- ],
- [
- -83.2474733,
- 41.8716064
- ],
- [
- -83.2474733,
- 41.9361393
- ],
- [
- -83.1843447,
- 41.9361393
- ],
- [
- -83.1843447,
- 41.9960851
- ],
- [
- -83.1207681,
- 41.9960851
- ],
- [
- -83.1207681,
- 42.2464812
- ],
- [
- -83.0589194,
- 42.2464812
- ],
- [
- -83.0589194,
- 42.3089555
- ],
- [
- -82.8685328,
- 42.3089555
- ],
- [
- -82.8685328,
- 42.3717652
- ],
- [
- -82.8072219,
- 42.3717652
- ],
- [
- -82.8072219,
- 42.558553
- ],
- [
- -82.7553745,
- 42.558553
- ],
- [
- -82.7553745,
- 42.4954945
- ],
- [
- -82.5599041,
- 42.4954945
- ],
- [
- -82.5599041,
- 42.558553
- ],
- [
- -82.4967755,
- 42.558553
- ],
- [
- -82.4967755,
- 42.6833607
- ],
- [
- -82.4328863,
- 42.6833607
- ],
- [
- -82.4328863,
- 42.9342196
- ],
- [
- -82.3700552,
- 42.9342196
- ],
- [
- -82.3700552,
- 43.0648071
- ],
- [
- -82.4328863,
- 43.0648071
- ],
- [
- -82.4328863,
- 43.1917566
- ],
- [
- -82.4947464,
- 43.1917566
- ],
- [
- -82.4947464,
- 43.5034627
- ],
- [
- -82.557133,
- 43.5034627
- ],
- [
- -82.557133,
- 43.8160901
- ],
- [
- -82.6197884,
- 43.8160901
- ],
- [
- -82.6197884,
- 43.9422098
- ],
- [
- -82.6839499,
- 43.9422098
- ],
- [
- -82.6839499,
- 44.0022641
- ],
- [
- -82.7465346,
- 44.0022641
- ],
- [
- -82.7465346,
- 44.0670545
- ],
- [
- -82.8708696,
- 44.0670545
- ],
- [
- -82.8708696,
- 44.1291935
- ],
- [
- -83.008517,
- 44.1291935
- ],
- [
- -83.008517,
- 44.0664786
- ],
- [
- -83.1336086,
- 44.0664786
- ],
- [
- -83.1336086,
- 44.0053949
- ],
- [
- -83.2414522,
- 44.0053949
- ],
- [
- -83.2414522,
- 44.9962034
- ],
- [
- -83.1806112,
- 44.9962034
- ],
- [
- -83.1806112,
- 45.067302
- ],
- [
- -83.2455172,
- 45.067302
- ],
- [
- -83.2455172,
- 45.1287382
- ],
- [
- -83.3065878,
- 45.1287382
- ],
- [
- -83.3065878,
- 45.2551509
- ],
- [
- -83.3706087,
- 45.2551509
- ],
- [
- -83.3706087,
- 45.3165923
- ],
- [
- -83.4325644,
- 45.3165923
- ],
- [
- -83.4325644,
- 45.3792105
- ],
- [
- -83.6178415,
- 45.3792105
- ],
- [
- -83.6178415,
- 45.4419665
- ],
- [
- -83.8084291,
- 45.4419665
- ],
- [
- -83.8084291,
- 45.5036189
- ],
- [
- -84.0550718,
- 45.5036189
- ],
- [
- -84.0550718,
- 45.5647907
- ],
- [
- -84.1235181,
- 45.5647907
- ],
- [
- -84.1235181,
- 45.6287845
- ],
- [
- -84.1807534,
- 45.6287845
- ],
- [
- -84.1807534,
- 45.6914688
- ],
- [
- -84.3111554,
- 45.6914688
- ],
- [
- -84.3111554,
- 45.9337076
- ],
- [
- -83.8209974,
- 45.9337076
- ],
- [
- -83.8209974,
- 45.8725113
- ],
- [
- -83.4968086,
- 45.8725113
- ],
- [
- -83.4968086,
- 45.9337076
- ],
- [
- -83.4338066,
- 45.9337076
- ],
- [
- -83.4338066,
- 46.0016863
- ],
- [
- -83.4962697,
- 46.0016863
- ],
- [
- -83.4962697,
- 46.0668178
- ],
- [
- -83.5599956,
- 46.0668178
- ],
- [
- -83.5599956,
- 46.1261576
- ],
- [
- -83.9954558,
- 46.1261576
- ],
- [
- -83.9954558,
- 46.1931747
- ],
- [
- -84.0591816,
- 46.1931747
- ],
- [
- -84.0591816,
- 46.3814972
- ],
- [
- -84.1152614,
- 46.3814972
- ],
- [
- -84.1152614,
- 46.4953584
- ],
- [
- -84.0591816,
- 46.4953584
- ],
- [
- -84.0591816,
- 46.5682653
- ],
- [
- -84.2579545,
- 46.5682653
- ],
- [
- -84.2579545,
- 46.5051232
- ],
- [
- -84.3071879,
- 46.5051232
- ],
- [
- -84.3071879,
- 46.5682653
- ],
- [
- -84.4415364,
- 46.5682653
- ],
- [
- -84.4415364,
- 46.504525
- ],
- [
- -84.9965729,
- 46.504525
- ],
- [
- -84.9965729,
- 46.6842882
- ],
- [
- -84.9298158,
- 46.6842882
- ],
- [
- -84.9298158,
- 46.818077
- ],
- [
- -85.3165894,
- 46.818077
- ],
- [
- -85.3165894,
- 46.7535825
- ],
- [
- -87.5562645,
- 46.7535825
- ],
- [
- -87.5562645,
- 47.4407371
- ],
- [
- -87.6825361,
- 47.4407371
- ],
- [
- -87.6825361,
- 47.5035554
- ],
- [
- -88.2560738,
- 47.5035554
- ],
- [
- -88.2560738,
- 47.4433716
- ],
- [
- -88.4417419,
- 47.4433716
- ],
- [
- -88.4417419,
- 47.3789949
- ],
- [
- -88.50683,
- 47.3789949
- ],
- [
- -88.50683,
- 47.3153881
- ],
- [
- -88.6312821,
- 47.3153881
- ],
- [
- -88.6312821,
- 47.2539782
- ],
- [
- -88.7569636,
- 47.2539782
- ],
- [
- -88.7569636,
- 47.1934682
- ],
- [
- -88.8838253,
- 47.1934682
- ],
- [
- -88.8838253,
- 47.1284735
- ],
- [
- -88.9434208,
- 47.1284735
- ],
- [
- -88.9434208,
- 47.0662127
- ],
- [
- -89.0708726,
- 47.0662127
- ],
- [
- -89.0708726,
- 47.0026826
- ],
- [
- -89.2565553,
- 47.0026826
- ],
- [
- -89.2565553,
- 46.9410806
- ],
- [
- -90.3677669,
- 46.9410806
- ],
- [
- -90.3677669,
- 47.6844827
- ],
- [
- -90.3069978,
- 47.6844827
- ],
- [
- -90.3069978,
- 47.7460174
- ],
- [
- -89.994859,
- 47.7460174
- ],
- [
- -89.994859,
- 47.8082719
- ],
- [
- -89.8048615,
- 47.8082719
- ],
- [
- -89.8048615,
- 47.8700562
- ],
- [
- -89.6797699,
- 47.8700562
- ],
- [
- -89.6797699,
- 47.9339637
- ],
- [
- -89.4933757,
- 47.9339637
- ],
- [
- -89.4933757,
- 47.9957956
- ],
- [
- -89.4284697,
- 47.9957956
- ],
- [
- -89.4284697,
- 48.0656377
- ],
- [
- -89.9932739,
- 48.0656377
- ],
- [
- -89.9932739,
- 48.1282966
- ],
- [
- -90.7455933,
- 48.1282966
- ],
- [
- -90.7455933,
- 48.1893056
- ],
- [
- -90.8087291,
- 48.1893056
- ],
- [
- -90.8087291,
- 48.2522065
- ],
- [
- -91.067763,
- 48.2522065
- ],
- [
- -91.067763,
- 48.1916658
- ],
- [
- -91.1946247,
- 48.1916658
- ],
- [
- -91.1946247,
- 48.1279027
- ],
- [
- -91.6814196,
- 48.1279027
- ],
- [
- -91.6814196,
- 48.2525994
- ],
- [
- -91.9321927,
- 48.2525994
- ],
- [
- -91.9321927,
- 48.3142454
- ],
- [
- -91.9929683,
- 48.3142454
- ],
- [
- -91.9929683,
- 48.3780845
- ],
- [
- -92.3189383,
- 48.3780845
- ],
- [
- -92.3189383,
- 48.2529081
- ],
- [
- -92.3732233,
- 48.2529081
- ],
- [
- -92.3732233,
- 48.3153385
- ],
- [
- -92.4322288,
- 48.3153385
- ],
- [
- -92.4322288,
- 48.4411448
- ],
- [
- -92.4977248,
- 48.4411448
- ],
- [
- -92.4977248,
- 48.501781
- ],
- [
- -92.5679413,
- 48.501781
- ],
- [
- -92.5679413,
- 48.439579
- ],
- [
- -92.6210462,
- 48.439579
- ],
- [
- -92.6210462,
- 48.5650783
- ],
- [
- -92.8086835,
- 48.5650783
- ],
- [
- -92.8086835,
- 48.6286865
- ],
- [
- -92.8086835,
- 48.6267365
- ],
- [
- -92.933185,
- 48.6267365
- ],
- [
- -92.933185,
- 48.6922145
- ],
- [
- -93.0051716,
- 48.6922145
- ],
- [
- -93.0051716,
- 48.6282965
- ],
- [
- -93.1225924,
- 48.6282965
- ],
- [
- -93.1225924,
- 48.6922145
- ],
- [
- -93.3190806,
- 48.6922145
- ],
- [
- -93.3190806,
- 48.6267365
- ],
- [
- -93.5049477,
- 48.6267365
- ],
- [
- -93.5049477,
- 48.5635164
- ],
- [
- -93.7474601,
- 48.5635164
- ],
- [
- -93.7474601,
- 48.6267365
- ],
- [
- -93.8135461,
- 48.6267365
- ],
- [
- -93.8135461,
- 48.6898775
- ],
- [
- -94.2453121,
- 48.6898775
- ],
- [
- -94.2453121,
- 48.7554327
- ],
- [
- -94.6183171,
- 48.7554327
- ],
- [
- -94.6183171,
- 48.941036
- ],
- [
- -94.6809018,
- 48.941036
- ],
- [
- -94.6809018,
- 49.0029737
- ],
- [
- -94.7441532,
- 49.0029737
- ],
- [
- -94.7441532,
- 49.2536079
- ],
- [
- -94.8084069,
- 49.2536079
- ],
- [
- -94.8084069,
- 49.3784134
- ],
- [
- -95.1192391,
- 49.3784134
- ],
- [
- -95.1192391,
- 49.4425264
- ],
- [
- -95.1934341,
- 49.4425264
- ],
- [
- -95.1934341,
- 49.0035292
- ],
- [
- -96.87069,
- 49.0035292
- ],
- [
- -96.87069,
- 49.0656063
- ],
- [
- -99.0049312,
- 49.0656063
- ],
- [
- -99.0049312,
- 49.0050714
- ],
- [
- -109.3699257,
- 49.0050714
- ],
- [
- -109.3699257,
- 49.0668231
- ],
- [
- -109.5058746,
- 49.0668231
- ],
- [
- -109.5058746,
- 49.0050714
- ],
- [
- -114.1830014,
- 49.0050714
- ],
- [
- -114.1830014,
- 49.0687317
- ],
- [
- -114.7578709,
- 49.0687317
- ],
- [
- -114.7578709,
- 49.0050714
- ],
- [
- -115.433731,
- 49.0050714
- ],
- [
- -115.433731,
- 49.0671412
- ],
- [
- -116.5062706,
- 49.0671412
- ],
- [
- -116.5062706,
- 49.0050714
- ],
- [
- -117.3089504,
- 49.0050714
- ],
- [
- -117.3089504,
- 49.0659803
- ],
- [
- -119.882945,
- 49.0659803
- ],
- [
- -119.882945,
- 49.0050714
- ],
- [
- -120.1208555,
- 49.0050714
- ],
- [
- -120.1208555,
- 49.0678367
- ],
- [
- -121.4451636,
- 49.0678367
- ],
- [
- -121.4451636,
- 49.0050714
- ],
- [
- -121.9311808,
- 49.0050714
- ],
- [
- -121.9311808,
- 49.0656099
- ],
- [
- -122.817484,
- 49.0656099
- ],
- [
- -122.817484,
- 49.0029143
- ],
- [
- -122.8795155,
- 49.0029143
- ],
- [
- -122.8795155,
- 48.9347018
- ],
- [
- -122.8174629,
- 48.9347018
- ],
- [
- -122.8174629,
- 48.8101998
- ],
- [
- -122.7538859,
- 48.8101998
- ],
- [
- -122.7538859,
- 48.7533758
- ],
- [
- -122.8712937,
- 48.7533758
- ],
- [
- -122.8712937,
- 48.8153948
- ],
- [
- -123.0055391,
- 48.8153948
- ],
- [
- -123.0055391,
- 48.7529529
- ],
- [
- -123.1296926,
- 48.7529529
- ],
- [
- -123.1296926,
- 48.6902201
- ],
- [
- -123.1838197,
- 48.6902201
- ],
- [
- -123.1838197,
- 48.7529029
- ]
- ],
- [
- [
- -122.9341743,
- 37.7521547
- ],
- [
- -122.9347457,
- 37.6842013
- ],
- [
- -123.0679013,
- 37.6849023
- ],
- [
- -123.0673747,
- 37.7475251
- ],
- [
- -123.1292603,
- 37.7478506
- ],
- [
- -123.1286894,
- 37.815685
- ],
- [
- -123.0590687,
- 37.8153192
- ],
- [
- -123.0595947,
- 37.7528143
- ]
- ],
- [
- [
- -71.6299464,
- 41.2540893
- ],
- [
- -71.4966465,
- 41.2541393
- ],
- [
- -71.4965596,
- 41.122965
- ],
- [
- -71.6298594,
- 41.1229149
- ]
- ],
- [
- [
- -70.3184265,
- 41.3775196
- ],
- [
- -70.3183384,
- 41.2448243
- ],
- [
- -70.1906612,
- 41.2448722
- ],
- [
- -70.1906239,
- 41.1886019
- ],
- [
- -69.9336025,
- 41.1886984
- ],
- [
- -69.933729,
- 41.3791941
- ],
- [
- -69.9950664,
- 41.3791712
- ],
- [
- -69.995109,
- 41.443159
- ],
- [
- -70.0707828,
- 41.4431307
- ],
- [
- -70.0706972,
- 41.3144915
- ],
- [
- -70.2461667,
- 41.3144258
- ],
- [
- -70.2462087,
- 41.3775467
- ]
- ],
- [
- [
- -68.9403374,
- 43.9404062
- ],
- [
- -68.6856948,
- 43.9404977
- ],
- [
- -68.6856475,
- 43.8721797
- ],
- [
- -68.7465405,
- 43.8721577
- ],
- [
- -68.7464976,
- 43.8102529
- ],
- [
- -68.8090782,
- 43.8102304
- ],
- [
- -68.8090343,
- 43.746728
- ],
- [
- -68.8773094,
- 43.7467034
- ],
- [
- -68.8773544,
- 43.8117826
- ],
- [
- -68.9402483,
- 43.8117599
- ]
- ],
- [
- [
- -123.1291466,
- 49.0645144
- ],
- [
- -122.9954224,
- 49.0645144
- ],
- [
- -122.9954224,
- 48.9343243
- ],
- [
- -123.1291466,
- 48.9343243
- ]
- ],
- [
- [
- -82.9407144,
- 24.7535913
- ],
- [
- -82.8719398,
- 24.7535913
- ],
- [
- -82.8719398,
- 24.6905653
- ],
- [
- -82.7446233,
- 24.6905653
- ],
- [
- -82.7446233,
- 24.6214593
- ],
- [
- -82.8088038,
- 24.6214593
- ],
- [
- -82.8088038,
- 24.5594908
- ],
- [
- -82.9407144,
- 24.5594908
- ]
- ]
- ]
- },
- {
- "name": "USGS Topographic Maps",
- "type": "tms",
- "template": "http://{switch:a,b,c}.tile.openstreetmap.us/usgs_scanned_topos/{zoom}/{x}/{y}.png",
- "polygon": [
- [
- [
- -125.990173,
- 48.9962416
- ],
- [
- -125.989419,
- 47.9948396
- ],
- [
- -123.9929739,
- 47.9955062
- ],
- [
- -123.9922429,
- 47.0059202
- ],
- [
- -125.988688,
- 47.0052409
- ],
- [
- -125.9879604,
- 46.0015618
- ],
- [
- -123.9939396,
- 46.0022529
- ],
- [
- -123.9925238,
- 43.9961708
- ],
- [
- -124.9931832,
- 43.9958116
- ],
- [
- -124.9918175,
- 41.9942149
- ],
- [
- -125.9851789,
- 41.9938465
- ],
- [
- -125.9838655,
- 40.0076111
- ],
- [
- -123.9833285,
- 40.0083757
- ],
- [
- -123.9814115,
- 37.002615
- ],
- [
- -122.21903,
- 37.0033173
- ],
- [
- -122.2184144,
- 36.011671
- ],
- [
- -122.020087,
- 36.011751
- ],
- [
- -122.0188591,
- 33.9961766
- ],
- [
- -119.9787757,
- 33.9970206
- ],
- [
- -119.9775867,
- 31.9987658
- ],
- [
- -114.0122833,
- 32.00129
- ],
- [
- -114.0116894,
- 30.9862401
- ],
- [
- -105.998294,
- 30.9896679
- ],
- [
- -105.9971419,
- 28.9901065
- ],
- [
- -102.0210506,
- 28.9918418
- ],
- [
- -102.0204916,
- 28.00733
- ],
- [
- -100.0062436,
- 28.0082173
- ],
- [
- -100.0051143,
- 25.991909
- ],
- [
- -98.0109067,
- 25.9928035
- ],
- [
- -98.0103613,
- 25.0063461
- ],
- [
- -97.0161086,
- 25.0067957
- ],
- [
- -97.016654,
- 25.9932494
- ],
- [
- -95.9824825,
- 25.9937132
- ],
- [
- -95.9835999,
- 27.9891175
- ],
- [
- -94.0200898,
- 27.9899826
- ],
- [
- -94.0206586,
- 28.9918129
- ],
- [
- -88.0156706,
- 28.9944338
- ],
- [
- -88.0162494,
- 30.0038862
- ],
- [
- -86.0277506,
- 30.0047454
- ],
- [
- -86.0271719,
- 28.9953016
- ],
- [
- -84.0187909,
- 28.9961781
- ],
- [
- -84.017095,
- 25.9817708
- ],
- [
- -81.9971976,
- 25.9826768
- ],
- [
- -81.9966618,
- 25.0134917
- ],
- [
- -84.0165592,
- 25.0125783
- ],
- [
- -84.0160068,
- 24.0052745
- ],
- [
- -80.0199985,
- 24.007096
- ],
- [
- -80.0245309,
- 32.0161282
- ],
- [
- -78.0066484,
- 32.0169819
- ],
- [
- -78.0072238,
- 32.9894278
- ],
- [
- -77.8807233,
- 32.9894807
- ],
- [
- -77.8813253,
- 33.9955918
- ],
- [
- -76.0115411,
- 33.9963653
- ],
- [
- -76.0121459,
- 34.9952552
- ],
- [
- -74.0068449,
- 34.9960749
- ],
- [
- -74.0099997,
- 40.0084254
- ],
- [
- -72.0013745,
- 40.0091931
- ],
- [
- -72.002019,
- 40.9912464
- ],
- [
- -69.8797398,
- 40.9920457
- ],
- [
- -69.8804173,
- 42.00893
- ],
- [
- -69.9927682,
- 42.0088883
- ],
- [
- -69.9934462,
- 43.0105166
- ],
- [
- -67.9845366,
- 43.0112496
- ],
- [
- -67.985224,
- 44.0103812
- ],
- [
- -65.9892568,
- 44.0110975
- ],
- [
- -65.9921237,
- 47.9993584
- ],
- [
- -70.006442,
- 47.9980181
- ],
- [
- -70.005708,
- 47.0042007
- ],
- [
- -72.023686,
- 47.003514
- ],
- [
- -72.0222508,
- 45.0059846
- ],
- [
- -78.0146667,
- 45.0038705
- ],
- [
- -78.0139662,
- 44.0026998
- ],
- [
- -80.029686,
- 44.0019763
- ],
- [
- -80.0290052,
- 43.0122994
- ],
- [
- -81.995479,
- 43.011582
- ],
- [
- -81.9982986,
- 47.0042713
- ],
- [
- -87.505706,
- 47.0023972
- ],
- [
- -87.5064535,
- 48.0142702
- ],
- [
- -88.0260889,
- 48.0140968
- ],
- [
- -88.026838,
- 49.0086686
- ],
- [
- -93.9981078,
- 49.0067142
- ],
- [
- -93.9988778,
- 50.0086456
- ],
- [
- -96.0138899,
- 50.0079995
- ],
- [
- -96.0131199,
- 49.0060547
- ]
- ],
- [
- [
- -160.5787616,
- 22.5062947
- ],
- [
- -160.5782192,
- 21.4984647
- ],
- [
- -159.0030121,
- 21.499196
- ],
- [
- -159.0027422,
- 20.9951068
- ],
- [
- -157.5083185,
- 20.995803
- ],
- [
- -157.5080519,
- 20.4960241
- ],
- [
- -155.966889,
- 20.4967444
- ],
- [
- -155.9674267,
- 21.5028287
- ],
- [
- -157.5044717,
- 21.5021151
- ],
- [
- -157.5047384,
- 21.9984962
- ],
- [
- -159.0090946,
- 21.9978002
- ],
- [
- -159.0093692,
- 22.5070181
- ]
- ],
- [
- [
- -168.006102,
- 68.9941463
- ],
- [
- -168.0047628,
- 68.0107853
- ],
- [
- -165.4842481,
- 68.0112562
- ],
- [
- -165.4829337,
- 67.0037303
- ],
- [
- -168.0034485,
- 67.0032389
- ],
- [
- -168.002195,
- 66.0017503
- ],
- [
- -169.0087448,
- 66.001546
- ],
- [
- -169.0075381,
- 64.9987675
- ],
- [
- -168.0009882,
- 64.9989798
- ],
- [
- -167.9998282,
- 63.9982374
- ],
- [
- -164.9871288,
- 63.9988964
- ],
- [
- -164.9860062,
- 62.9950845
- ],
- [
- -167.9987057,
- 62.9944019
- ],
- [
- -167.9946035,
- 59.0153692
- ],
- [
- -162.5027857,
- 59.0167799
- ],
- [
- -162.5018149,
- 58.0005815
- ],
- [
- -160.0159024,
- 58.0012389
- ],
- [
- -160.0149725,
- 57.000035
- ],
- [
- -160.5054788,
- 56.9999017
- ],
- [
- -160.5045719,
- 55.9968161
- ],
- [
- -164.012195,
- 55.9958373
- ],
- [
- -164.0113186,
- 55.00107
- ],
- [
- -165.994782,
- 55.0005023
- ],
- [
- -165.9941266,
- 54.2400584
- ],
- [
- -168.0002944,
- 54.2394734
- ],
- [
- -168.0000986,
- 54.0094921
- ],
- [
- -170.0156134,
- 54.0089011
- ],
- [
- -170.0147683,
- 53.0016446
- ],
- [
- -171.9993636,
- 53.0010487
- ],
- [
- -171.9989488,
- 52.4977745
- ],
- [
- -176.0083239,
- 52.4965566
- ],
- [
- -176.0081186,
- 52.2452555
- ],
- [
- -178.000097,
- 52.2446469
- ],
- [
- -177.9992996,
- 51.2554252
- ],
- [
- -176.0073212,
- 51.2560472
- ],
- [
- -176.0075146,
- 51.4980163
- ],
- [
- -171.9981395,
- 51.4992617
- ],
- [
- -171.9985419,
- 51.9985373
- ],
- [
- -167.9984317,
- 51.9997661
- ],
- [
- -167.9994645,
- 53.2560877
- ],
- [
- -165.9932968,
- 53.2566866
- ],
- [
- -165.9939308,
- 54.0100804
- ],
- [
- -159.0067205,
- 54.0121291
- ],
- [
- -159.0075717,
- 55.002502
- ],
- [
- -158.0190709,
- 55.0027849
- ],
- [
- -158.0199473,
- 55.9975094
- ],
- [
- -151.9963213,
- 55.9991902
- ],
- [
- -151.9981536,
- 57.9986536
- ],
- [
- -151.500341,
- 57.9987853
- ],
- [
- -151.5012894,
- 58.9919816
- ],
- [
- -138.5159989,
- 58.9953194
- ],
- [
- -138.5150471,
- 57.9986434
- ],
- [
- -136.6872422,
- 57.9991267
- ],
- [
- -136.6863158,
- 57.0016688
- ],
- [
- -135.9973698,
- 57.001856
- ],
- [
- -135.9964667,
- 56.0030544
- ],
- [
- -134.6717732,
- 56.003424
- ],
- [
- -134.6708865,
- 54.9969623
- ],
- [
- -133.9956734,
- 54.9971556
- ],
- [
- -133.9948193,
- 54.0031685
- ],
- [
- -130.0044418,
- 54.0043387
- ],
- [
- -130.0070826,
- 57.0000507
- ],
- [
- -131.975877,
- 56.9995156
- ],
- [
- -131.9787378,
- 59.9933094
- ],
- [
- -138.0071813,
- 59.991805
- ],
- [
- -138.0082158,
- 61.0125755
- ],
- [
- -140.9874011,
- 61.0118551
- ],
- [
- -140.99984,
- 71.0039309
- ],
- [
- -154.5023956,
- 71.0017377
- ],
- [
- -154.5039632,
- 71.9983391
- ],
- [
- -157.499048,
- 71.9978773
- ],
- [
- -157.4974758,
- 70.9982877
- ],
- [
- -163.0233611,
- 70.9973899
- ],
- [
- -163.0218273,
- 69.9707435
- ],
- [
- -164.9730896,
- 69.97041
- ],
- [
- -164.9717003,
- 68.994689
- ]
- ],
- [
- [
- -168.5133204,
- 62.8689586
- ],
- [
- -168.5144423,
- 63.8765677
- ],
- [
- -172.0202755,
- 63.8757975
- ],
- [
- -172.0191536,
- 62.8681608
- ]
- ],
- [
- [
- -170.9947111,
- 59.9954089
- ],
- [
- -170.995726,
- 60.9969787
- ],
- [
- -174.0045311,
- 60.9962508
- ],
- [
- -174.0035162,
- 59.9946581
- ]
- ],
- [
- [
- -156.0717261,
- 20.2854602
- ],
- [
- -154.7940471,
- 20.2860582
- ],
- [
- -154.7933145,
- 18.9029464
- ],
- [
- -156.0709936,
- 18.9023432
- ]
- ]
- ]
- },
- {
- "name": "Vejmidte (Denmark)",
- "type": "tms",
- "template": "http://{switch:a,b,c}.tile.openstreetmap.dk/danmark/vejmidte/{zoom}/{x}/{y}.png",
- "scaleExtent": [
- 0,
- 20
- ],
- "polygon": [
- [
- [
- 8.3743941,
- 54.9551655
- ],
- [
- 8.3683809,
- 55.4042149
- ],
- [
- 8.2103997,
- 55.4039795
- ],
- [
- 8.2087314,
- 55.4937345
- ],
- [
- 8.0502655,
- 55.4924731
- ],
- [
- 8.0185123,
- 56.7501399
- ],
- [
- 8.1819161,
- 56.7509948
- ],
- [
- 8.1763274,
- 57.0208898
- ],
- [
- 8.3413329,
- 57.0219872
- ],
- [
- 8.3392467,
- 57.1119574
- ],
- [
- 8.5054433,
- 57.1123212
- ],
- [
- 8.5033923,
- 57.2020499
- ],
- [
- 9.3316304,
- 57.2027636
- ],
- [
- 9.3319079,
- 57.2924835
- ],
- [
- 9.4978864,
- 57.2919578
- ],
- [
- 9.4988593,
- 57.3820608
- ],
- [
- 9.6649749,
- 57.3811615
- ],
- [
- 9.6687295,
- 57.5605591
- ],
- [
- 9.8351961,
- 57.5596265
- ],
- [
- 9.8374896,
- 57.6493322
- ],
- [
- 10.1725726,
- 57.6462818
- ],
- [
- 10.1754245,
- 57.7367768
- ],
- [
- 10.5118282,
- 57.7330269
- ],
- [
- 10.5152095,
- 57.8228945
- ],
- [
- 10.6834853,
- 57.8207722
- ],
- [
- 10.6751613,
- 57.6412021
- ],
- [
- 10.5077045,
- 57.6433097
- ],
- [
- 10.5039992,
- 57.5535088
- ],
- [
- 10.671038,
- 57.5514113
- ],
- [
- 10.6507805,
- 57.1024538
- ],
- [
- 10.4857673,
- 57.1045138
- ],
- [
- 10.4786236,
- 56.9249051
- ],
- [
- 10.3143981,
- 56.9267573
- ],
- [
- 10.3112341,
- 56.8369269
- ],
- [
- 10.4750295,
- 56.83509
- ],
- [
- 10.4649016,
- 56.5656681
- ],
- [
- 10.9524239,
- 56.5589761
- ],
- [
- 10.9479249,
- 56.4692243
- ],
- [
- 11.1099335,
- 56.4664675
- ],
- [
- 11.1052639,
- 56.376833
- ],
- [
- 10.9429901,
- 56.3795284
- ],
- [
- 10.9341235,
- 56.1994768
- ],
- [
- 10.7719685,
- 56.2020244
- ],
- [
- 10.7694751,
- 56.1120103
- ],
- [
- 10.6079695,
- 56.1150259
- ],
- [
- 10.4466742,
- 56.116717
- ],
- [
- 10.2865948,
- 56.118675
- ],
- [
- 10.2831527,
- 56.0281851
- ],
- [
- 10.4439274,
- 56.0270388
- ],
- [
- 10.4417713,
- 55.7579243
- ],
- [
- 10.4334961,
- 55.6693533
- ],
- [
- 10.743814,
- 55.6646861
- ],
- [
- 10.743814,
- 55.5712253
- ],
- [
- 10.8969041,
- 55.5712253
- ],
- [
- 10.9051793,
- 55.3953852
- ],
- [
- 11.0613726,
- 55.3812841
- ],
- [
- 11.0593038,
- 55.1124061
- ],
- [
- 11.0458567,
- 55.0318621
- ],
- [
- 11.2030844,
- 55.0247474
- ],
- [
- 11.2030844,
- 55.117139
- ],
- [
- 11.0593038,
- 55.1124061
- ],
- [
- 11.0613726,
- 55.3812841
- ],
- [
- 11.0789572,
- 55.5712253
- ],
- [
- 10.8969041,
- 55.5712253
- ],
- [
- 10.9258671,
- 55.6670198
- ],
- [
- 10.743814,
- 55.6646861
- ],
- [
- 10.7562267,
- 55.7579243
- ],
- [
- 10.4417713,
- 55.7579243
- ],
- [
- 10.4439274,
- 56.0270388
- ],
- [
- 10.4466742,
- 56.116717
- ],
- [
- 10.6079695,
- 56.1150259
- ],
- [
- 10.6052053,
- 56.0247462
- ],
- [
- 10.9258671,
- 56.0201215
- ],
- [
- 10.9197132,
- 55.9309388
- ],
- [
- 11.0802782,
- 55.92792
- ],
- [
- 11.0858066,
- 56.0178284
- ],
- [
- 11.7265047,
- 56.005058
- ],
- [
- 11.7319981,
- 56.0952142
- ],
- [
- 12.0540333,
- 56.0871256
- ],
- [
- 12.0608477,
- 56.1762576
- ],
- [
- 12.7023469,
- 56.1594405
- ],
- [
- 12.6611131,
- 55.7114318
- ],
- [
- 12.9792318,
- 55.7014026
- ],
- [
- 12.9612912,
- 55.5217294
- ],
- [
- 12.3268659,
- 55.5412096
- ],
- [
- 12.3206071,
- 55.4513655
- ],
- [
- 12.4778226,
- 55.447067
- ],
- [
- 12.4702432,
- 55.3570479
- ],
- [
- 12.6269738,
- 55.3523837
- ],
- [
- 12.6200898,
- 55.2632576
- ],
- [
- 12.4627339,
- 55.26722
- ],
- [
- 12.4552949,
- 55.1778223
- ],
- [
- 12.2987046,
- 55.1822303
- ],
- [
- 12.2897344,
- 55.0923641
- ],
- [
- 12.6048608,
- 55.0832904
- ],
- [
- 12.5872011,
- 54.9036285
- ],
- [
- 12.2766618,
- 54.9119031
- ],
- [
- 12.2610181,
- 54.7331602
- ],
- [
- 12.1070691,
- 54.7378161
- ],
- [
- 12.0858621,
- 54.4681655
- ],
- [
- 11.7794953,
- 54.4753579
- ],
- [
- 11.7837381,
- 54.5654783
- ],
- [
- 11.1658525,
- 54.5782155
- ],
- [
- 11.1706443,
- 54.6686508
- ],
- [
- 10.8617173,
- 54.6733956
- ],
- [
- 10.8651245,
- 54.7634667
- ],
- [
- 10.7713646,
- 54.7643888
- ],
- [
- 10.7707276,
- 54.7372807
- ],
- [
- 10.7551428,
- 54.7375776
- ],
- [
- 10.7544039,
- 54.7195666
- ],
- [
- 10.7389074,
- 54.7197588
- ],
- [
- 10.7384368,
- 54.7108482
- ],
- [
- 10.7074486,
- 54.7113045
- ],
- [
- 10.7041094,
- 54.6756741
- ],
- [
- 10.5510973,
- 54.6781698
- ],
- [
- 10.5547184,
- 54.7670245
- ],
- [
- 10.2423994,
- 54.7705935
- ],
- [
- 10.2459845,
- 54.8604673
- ],
- [
- 10.0902268,
- 54.8622134
- ],
- [
- 10.0873731,
- 54.7723851
- ],
- [
- 9.1555798,
- 54.7769557
- ],
- [
- 9.1562752,
- 54.8675369
- ],
- [
- 8.5321973,
- 54.8663765
- ],
- [
- 8.531432,
- 54.95516
- ]
- ],
- [
- [
- 11.4577738,
- 56.819554
- ],
- [
- 11.7849181,
- 56.8127385
- ],
- [
- 11.7716715,
- 56.6332796
- ],
- [
- 11.4459621,
- 56.6401087
- ]
- ],
- [
- [
- 11.3274736,
- 57.3612962
- ],
- [
- 11.3161808,
- 57.1818004
- ],
- [
- 11.1508692,
- 57.1847276
- ],
- [
- 11.1456628,
- 57.094962
- ],
- [
- 10.8157703,
- 57.1001693
- ],
- [
- 10.8290599,
- 57.3695272
- ]
- ],
- [
- [
- 11.5843266,
- 56.2777928
- ],
- [
- 11.5782882,
- 56.1880397
- ],
- [
- 11.7392309,
- 56.1845765
- ],
- [
- 11.7456428,
- 56.2743186
- ]
- ],
- [
- [
- 14.6825922,
- 55.3639405
- ],
- [
- 14.8395247,
- 55.3565231
- ],
- [
- 14.8263755,
- 55.2671261
- ],
- [
- 15.1393406,
- 55.2517359
- ],
- [
- 15.1532015,
- 55.3410836
- ],
- [
- 15.309925,
- 55.3330556
- ],
- [
- 15.295719,
- 55.2437356
- ],
- [
- 15.1393406,
- 55.2517359
- ],
- [
- 15.1255631,
- 55.1623802
- ],
- [
- 15.2815819,
- 55.1544167
- ],
- [
- 15.2535578,
- 54.9757646
- ],
- [
- 14.6317464,
- 55.0062496
- ]
- ]
- ],
- "terms_url": "http://wiki.openstreetmap.org/wiki/Vejmidte",
- "terms_text": "Danish municipalities"
- },
- {
- "name": "Vienna: Beschriftungen (annotations)",
- "type": "tms",
- "template": "http://www.wien.gv.at/wmts/beschriftung/normal/google3857/{zoom}/{y}/{x}.png",
- "scaleExtent": [
- 0,
- 19
- ],
- "polygon": [
- [
- [
- 16.17,
- 48.1
- ],
- [
- 16.17,
- 48.33
- ],
- [
- 16.58,
- 48.33
- ],
- [
- 16.58,
- 48.1
- ],
- [
- 16.17,
- 48.1
- ]
- ]
- ],
- "terms_url": "http://data.wien.gv.at/",
- "terms_text": "Stadt Wien"
- },
- {
- "name": "Vienna: Mehrzweckkarte (general purpose)",
- "type": "tms",
- "template": "http://www.wien.gv.at/wmts/fmzk/pastell/google3857/{zoom}/{y}/{x}.jpeg",
- "scaleExtent": [
- 0,
- 19
- ],
- "polygon": [
- [
- [
- 16.17,
- 48.1
- ],
- [
- 16.17,
- 48.33
- ],
- [
- 16.58,
- 48.33
- ],
- [
- 16.58,
- 48.1
- ],
- [
- 16.17,
- 48.1
- ]
- ]
- ],
- "terms_url": "http://data.wien.gv.at/",
- "terms_text": "Stadt Wien"
- },
- {
- "name": "Vienna: Orthofoto (aerial image)",
- "type": "tms",
- "template": "http://www.wien.gv.at/wmts/lb/farbe/google3857/{zoom}/{y}/{x}.jpeg",
- "scaleExtent": [
- 0,
- 19
- ],
- "polygon": [
- [
- [
- 16.17,
- 48.1
- ],
- [
- 16.17,
- 48.33
- ],
- [
- 16.58,
- 48.33
- ],
- [
- 16.58,
- 48.1
- ],
- [
- 16.17,
- 48.1
- ]
- ]
- ],
- "terms_url": "http://data.wien.gv.at/",
- "terms_text": "Stadt Wien"
- },
- {
- "name": "basemap.at",
- "type": "tms",
- "description": "Basemap of Austria, based on goverment data.",
- "template": "http://maps.wien.gv.at/basemap/geolandbasemap/normal/google3857/{zoom}/{y}/{x}.jpeg",
- "polygon": [
- [
- [
- 16.5073284,
- 46.9929304
- ],
- [
- 16.283417,
- 46.9929304
- ],
- [
- 16.135839,
- 46.8713046
- ],
- [
- 15.9831722,
- 46.8190947
- ],
- [
- 16.0493278,
- 46.655175
- ],
- [
- 15.8610387,
- 46.7180116
- ],
- [
- 15.7592608,
- 46.6900933
- ],
- [
- 15.5607938,
- 46.6796202
- ],
- [
- 15.5760605,
- 46.6342132
- ],
- [
- 15.4793715,
- 46.6027553
- ],
- [
- 15.4335715,
- 46.6516819
- ],
- [
- 15.2249267,
- 46.6342132
- ],
- [
- 15.0468154,
- 46.6481886
- ],
- [
- 14.9908376,
- 46.5887681
- ],
- [
- 14.9603042,
- 46.6237293
- ],
- [
- 14.8534374,
- 46.6027553
- ],
- [
- 14.8330818,
- 46.5012666
- ],
- [
- 14.7516595,
- 46.4977636
- ],
- [
- 14.6804149,
- 46.4381781
- ],
- [
- 14.6142593,
- 46.4381781
- ],
- [
- 14.578637,
- 46.3785275
- ],
- [
- 14.4412369,
- 46.4311638
- ],
- [
- 14.1613476,
- 46.4276563
- ],
- [
- 14.1257253,
- 46.4767409
- ],
- [
- 14.0188585,
- 46.4767409
- ],
- [
- 13.9119917,
- 46.5257813
- ],
- [
- 13.8254805,
- 46.5047694
- ],
- [
- 13.4438134,
- 46.560783
- ],
- [
- 13.3064132,
- 46.5502848
- ],
- [
- 13.1283019,
- 46.5887681
- ],
- [
- 12.8433237,
- 46.6132433
- ],
- [
- 12.7262791,
- 46.6412014
- ],
- [
- 12.5125455,
- 46.6656529
- ],
- [
- 12.3598787,
- 46.7040543
- ],
- [
- 12.3649676,
- 46.7703197
- ],
- [
- 12.2886341,
- 46.7772902
- ],
- [
- 12.2733674,
- 46.8852187
- ],
- [
- 12.2072118,
- 46.8747835
- ],
- [
- 12.1308784,
- 46.9026062
- ],
- [
- 12.1156117,
- 46.9998721
- ],
- [
- 12.2530119,
- 47.0657733
- ],
- [
- 12.2123007,
- 47.0934969
- ],
- [
- 11.9833004,
- 47.0449712
- ],
- [
- 11.7339445,
- 46.9616816
- ],
- [
- 11.6321666,
- 47.010283
- ],
- [
- 11.5405665,
- 46.9755722
- ],
- [
- 11.4998553,
- 47.0068129
- ],
- [
- 11.418433,
- 46.9651546
- ],
- [
- 11.2555884,
- 46.9755722
- ],
- [
- 11.1130993,
- 46.913036
- ],
- [
- 11.0418548,
- 46.7633482
- ],
- [
- 10.8891879,
- 46.7598621
- ],
- [
- 10.7416099,
- 46.7842599
- ],
- [
- 10.7059877,
- 46.8643462
- ],
- [
- 10.5787653,
- 46.8399847
- ],
- [
- 10.4566318,
- 46.8504267
- ],
- [
- 10.4769874,
- 46.9269392
- ],
- [
- 10.3853873,
- 46.9894592
- ],
- [
- 10.2327204,
- 46.8643462
- ],
- [
- 10.1207647,
- 46.8330223
- ],
- [
- 9.8663199,
- 46.9408389
- ],
- [
- 9.9019422,
- 47.0033426
- ],
- [
- 9.6831197,
- 47.0588402
- ],
- [
- 9.6118752,
- 47.0380354
- ],
- [
- 9.6322307,
- 47.128131
- ],
- [
- 9.5813418,
- 47.1662025
- ],
- [
- 9.5406306,
- 47.2664422
- ],
- [
- 9.6067863,
- 47.3492559
- ],
- [
- 9.6729419,
- 47.369939
- ],
- [
- 9.6424085,
- 47.4457079
- ],
- [
- 9.5660751,
- 47.4801122
- ],
- [
- 9.7136531,
- 47.5282405
- ],
- [
- 9.7848976,
- 47.5969187
- ],
- [
- 9.8357866,
- 47.5454185
- ],
- [
- 9.9477423,
- 47.538548
- ],
- [
- 10.0902313,
- 47.4491493
- ],
- [
- 10.1105869,
- 47.3664924
- ],
- [
- 10.2428982,
- 47.3871688
- ],
- [
- 10.1869203,
- 47.2698953
- ],
- [
- 10.3243205,
- 47.2975125
- ],
- [
- 10.4820763,
- 47.4491493
- ],
- [
- 10.4311873,
- 47.4869904
- ],
- [
- 10.4413651,
- 47.5900549
- ],
- [
- 10.4871652,
- 47.5522881
- ],
- [
- 10.5482319,
- 47.5351124
- ],
- [
- 10.5991209,
- 47.5660246
- ],
- [
- 10.7568766,
- 47.5316766
- ],
- [
- 10.8891879,
- 47.5454185
- ],
- [
- 10.9400769,
- 47.4869904
- ],
- [
- 10.9960547,
- 47.3906141
- ],
- [
- 11.2352328,
- 47.4422662
- ],
- [
- 11.2810328,
- 47.3975039
- ],
- [
- 11.4235219,
- 47.5144941
- ],
- [
- 11.5761888,
- 47.5076195
- ],
- [
- 11.6067221,
- 47.5900549
- ],
- [
- 11.8357224,
- 47.5866227
- ],
- [
- 12.003656,
- 47.6243647
- ],
- [
- 12.2072118,
- 47.6037815
- ],
- [
- 12.1614117,
- 47.6963421
- ],
- [
- 12.2581008,
- 47.7442718
- ],
- [
- 12.2530119,
- 47.6792136
- ],
- [
- 12.4311232,
- 47.7100408
- ],
- [
- 12.4921899,
- 47.631224
- ],
- [
- 12.5685234,
- 47.6277944
- ],
- [
- 12.6295901,
- 47.6894913
- ],
- [
- 12.7720792,
- 47.6689338
- ],
- [
- 12.8331459,
- 47.5419833
- ],
- [
- 12.975635,
- 47.4732332
- ],
- [
- 13.0417906,
- 47.4938677
- ],
- [
- 13.0367017,
- 47.5557226
- ],
- [
- 13.0977685,
- 47.6415112
- ],
- [
- 13.0316128,
- 47.7100408
- ],
- [
- 12.9043905,
- 47.7203125
- ],
- [
- 13.0061684,
- 47.84683
- ],
- [
- 12.9451016,
- 47.9355501
- ],
- [
- 12.8636793,
- 47.9594103
- ],
- [
- 12.8636793,
- 48.0036929
- ],
- [
- 12.7517236,
- 48.0989418
- ],
- [
- 12.8738571,
- 48.2109733
- ],
- [
- 12.9603683,
- 48.2109733
- ],
- [
- 13.0417906,
- 48.2652035
- ],
- [
- 13.1842797,
- 48.2990682
- ],
- [
- 13.2606131,
- 48.2922971
- ],
- [
- 13.3980133,
- 48.3565867
- ],
- [
- 13.4438134,
- 48.417418
- ],
- [
- 13.4387245,
- 48.5523383
- ],
- [
- 13.509969,
- 48.5860123
- ],
- [
- 13.6117469,
- 48.5725454
- ],
- [
- 13.7287915,
- 48.5118999
- ],
- [
- 13.7847694,
- 48.5725454
- ],
- [
- 13.8203916,
- 48.6263915
- ],
- [
- 13.7949471,
- 48.7171267
- ],
- [
- 13.850925,
- 48.7741724
- ],
- [
- 14.0595697,
- 48.6633774
- ],
- [
- 14.0137696,
- 48.6331182
- ],
- [
- 14.0748364,
- 48.5927444
- ],
- [
- 14.2173255,
- 48.5961101
- ],
- [
- 14.3649034,
- 48.5489696
- ],
- [
- 14.4666813,
- 48.6499311
- ],
- [
- 14.5582815,
- 48.5961101
- ],
- [
- 14.5989926,
- 48.6263915
- ],
- [
- 14.7211261,
- 48.5759124
- ],
- [
- 14.7211261,
- 48.6868997
- ],
- [
- 14.822904,
- 48.7271983
- ],
- [
- 14.8178151,
- 48.777526
- ],
- [
- 14.9647227,
- 48.7851754
- ],
- [
- 14.9893637,
- 49.0126611
- ],
- [
- 15.1485933,
- 48.9950306
- ],
- [
- 15.1943934,
- 48.9315502
- ],
- [
- 15.3063491,
- 48.9850128
- ],
- [
- 15.3928603,
- 48.9850128
- ],
- [
- 15.4844604,
- 48.9282069
- ],
- [
- 15.749083,
- 48.8545973
- ],
- [
- 15.8406831,
- 48.8880697
- ],
- [
- 16.0086166,
- 48.7808794
- ],
- [
- 16.2070835,
- 48.7339115
- ],
- [
- 16.3953727,
- 48.7372678
- ],
- [
- 16.4920617,
- 48.8110498
- ],
- [
- 16.6905286,
- 48.7741724
- ],
- [
- 16.7057953,
- 48.7339115
- ],
- [
- 16.8991733,
- 48.713769
- ],
- [
- 16.9755067,
- 48.515271
- ],
- [
- 16.8482844,
- 48.4511817
- ],
- [
- 16.8533733,
- 48.3464411
- ],
- [
- 16.9551512,
- 48.2516513
- ],
- [
- 16.9907734,
- 48.1498955
- ],
- [
- 17.0925513,
- 48.1397088
- ],
- [
- 17.0823736,
- 48.0241182
- ],
- [
- 17.1739737,
- 48.0207146
- ],
- [
- 17.0823736,
- 47.8741447
- ],
- [
- 16.9856845,
- 47.8673174
- ],
- [
- 17.0823736,
- 47.8092489
- ],
- [
- 17.0925513,
- 47.7031919
- ],
- [
- 16.7414176,
- 47.6792136
- ],
- [
- 16.7057953,
- 47.7511153
- ],
- [
- 16.5378617,
- 47.7545368
- ],
- [
- 16.5480395,
- 47.7066164
- ],
- [
- 16.4208172,
- 47.6689338
- ],
- [
- 16.573484,
- 47.6175045
- ],
- [
- 16.670173,
- 47.631224
- ],
- [
- 16.7108842,
- 47.538548
- ],
- [
- 16.6599952,
- 47.4491493
- ],
- [
- 16.5429506,
- 47.3940591
- ],
- [
- 16.4615283,
- 47.3940591
- ],
- [
- 16.4920617,
- 47.276801
- ],
- [
- 16.425906,
- 47.1973317
- ],
- [
- 16.4717061,
- 47.1489007
- ],
- [
- 16.5480395,
- 47.1489007
- ],
- [
- 16.476795,
- 47.0796369
- ],
- [
- 16.527684,
- 47.0588402
- ]
- ]
- ],
- "terms_text": "basemap.at",
- "id": "basemap.at"
- }
- ],
- "wikipedia": [
- [
- "English",
- "English",
- "en"
- ],
- [
- "German",
- "Deutsch",
- "de"
- ],
- [
- "Dutch",
- "Nederlands",
- "nl"
- ],
- [
- "French",
- "Français",
- "fr"
- ],
- [
- "Italian",
- "Italiano",
- "it"
- ],
- [
- "Russian",
- "Русский",
- "ru"
- ],
- [
- "Spanish",
- "Español",
- "es"
- ],
- [
- "Polish",
- "Polski",
- "pl"
- ],
- [
- "Swedish",
- "Svenska",
- "sv"
- ],
- [
- "Japanese",
- "日本語",
- "ja"
- ],
- [
- "Portuguese",
- "Português",
- "pt"
- ],
- [
- "Chinese",
- "中文",
- "zh"
- ],
- [
- "Vietnamese",
- "Tiếng Việt",
- "vi"
- ],
- [
- "Ukrainian",
- "Українська",
- "uk"
- ],
- [
- "Catalan",
- "Català",
- "ca"
- ],
- [
- "Norwegian (Bokmål)",
- "Norsk (Bokmål)",
- "no"
- ],
- [
- "Waray-Waray",
- "Winaray",
- "war"
- ],
- [
- "Cebuano",
- "Sinugboanong Binisaya",
- "ceb"
- ],
- [
- "Finnish",
- "Suomi",
- "fi"
- ],
- [
- "Persian",
- "فارسی",
- "fa"
- ],
- [
- "Czech",
- "Čeština",
- "cs"
- ],
- [
- "Hungarian",
- "Magyar",
- "hu"
- ],
- [
- "Korean",
- "한국어",
- "ko"
- ],
- [
- "Romanian",
- "Română",
- "ro"
- ],
- [
- "Arabic",
- "العربية",
- "ar"
- ],
- [
- "Turkish",
- "Türkçe",
- "tr"
- ],
- [
- "Indonesian",
- "Bahasa Indonesia",
- "id"
- ],
- [
- "Kazakh",
- "Қазақша",
- "kk"
- ],
- [
- "Malay",
- "Bahasa Melayu",
- "ms"
- ],
- [
- "Serbian",
- "Српски / Srpski",
- "sr"
- ],
- [
- "Slovak",
- "Slovenčina",
- "sk"
- ],
- [
- "Esperanto",
- "Esperanto",
- "eo"
- ],
- [
- "Danish",
- "Dansk",
- "da"
- ],
- [
- "Lithuanian",
- "Lietuvių",
- "lt"
- ],
- [
- "Basque",
- "Euskara",
- "eu"
- ],
- [
- "Bulgarian",
- "Български",
- "bg"
- ],
- [
- "Hebrew",
- "עברית",
- "he"
- ],
- [
- "Slovenian",
- "Slovenščina",
- "sl"
- ],
- [
- "Croatian",
- "Hrvatski",
- "hr"
- ],
- [
- "Volapük",
- "Volapük",
- "vo"
- ],
- [
- "Estonian",
- "Eesti",
- "et"
- ],
- [
- "Hindi",
- "हिन्दी",
- "hi"
- ],
- [
- "Uzbek",
- "O‘zbek",
- "uz"
- ],
- [
- "Galician",
- "Galego",
- "gl"
- ],
- [
- "Norwegian (Nynorsk)",
- "Nynorsk",
- "nn"
- ],
- [
- "Simple English",
- "Simple English",
- "simple"
- ],
- [
- "Azerbaijani",
- "Azərbaycanca",
- "az"
- ],
- [
- "Latin",
- "Latina",
- "la"
- ],
- [
- "Greek",
- "Ελληνικά",
- "el"
- ],
- [
- "Thai",
- "ไทย",
- "th"
- ],
- [
- "Serbo-Croatian",
- "Srpskohrvatski / Српскохрватски",
- "sh"
- ],
- [
- "Georgian",
- "ქართული",
- "ka"
- ],
- [
- "Occitan",
- "Occitan",
- "oc"
- ],
- [
- "Macedonian",
- "Македонски",
- "mk"
- ],
- [
- "Newar / Nepal Bhasa",
- "नेपाल भाषा",
- "new"
- ],
- [
- "Tagalog",
- "Tagalog",
- "tl"
- ],
- [
- "Piedmontese",
- "Piemontèis",
- "pms"
- ],
- [
- "Belarusian",
- "Беларуская",
- "be"
- ],
- [
- "Haitian",
- "Krèyol ayisyen",
- "ht"
- ],
- [
- "Tamil",
- "தமிழ்",
- "ta"
- ],
- [
- "Telugu",
- "తెలుగు",
- "te"
- ],
- [
- "Belarusian (Taraškievica)",
- "Беларуская (тарашкевіца)",
- "be-x-old"
- ],
- [
- "Latvian",
- "Latviešu",
- "lv"
- ],
- [
- "Breton",
- "Brezhoneg",
- "br"
- ],
- [
- "Malagasy",
- "Malagasy",
- "mg"
- ],
- [
- "Albanian",
- "Shqip",
- "sq"
- ],
- [
- "Armenian",
- "Հայերեն",
- "hy"
- ],
- [
- "Tatar",
- "Tatarça / Татарча",
- "tt"
- ],
- [
- "Javanese",
- "Basa Jawa",
- "jv"
- ],
- [
- "Welsh",
- "Cymraeg",
- "cy"
- ],
- [
- "Marathi",
- "मराठी",
- "mr"
- ],
- [
- "Luxembourgish",
- "Lëtzebuergesch",
- "lb"
- ],
- [
- "Icelandic",
- "Íslenska",
- "is"
- ],
- [
- "Bosnian",
- "Bosanski",
- "bs"
- ],
- [
- "Burmese",
- "မြန်မာဘာသာ",
- "my"
- ],
- [
- "Yoruba",
- "Yorùbá",
- "yo"
- ],
- [
- "Bashkir",
- "Башҡорт",
- "ba"
- ],
- [
- "Malayalam",
- "മലയാളം",
- "ml"
- ],
- [
- "Aragonese",
- "Aragonés",
- "an"
- ],
- [
- "Lombard",
- "Lumbaart",
- "lmo"
- ],
- [
- "Afrikaans",
- "Afrikaans",
- "af"
- ],
- [
- "West Frisian",
- "Frysk",
- "fy"
- ],
- [
- "Western Panjabi",
- "شاہ مکھی پنجابی (Shāhmukhī Pañjābī)",
- "pnb"
- ],
- [
- "Bengali",
- "বাংলা",
- "bn"
- ],
- [
- "Swahili",
- "Kiswahili",
- "sw"
- ],
- [
- "Bishnupriya Manipuri",
- "ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী",
- "bpy"
- ],
- [
- "Ido",
- "Ido",
- "io"
- ],
- [
- "Kirghiz",
- "Кыргызча",
- "ky"
- ],
- [
- "Urdu",
- "اردو",
- "ur"
- ],
- [
- "Nepali",
- "नेपाली",
- "ne"
- ],
- [
- "Sicilian",
- "Sicilianu",
- "scn"
- ],
- [
- "Gujarati",
- "ગુજરાતી",
- "gu"
- ],
- [
- "Cantonese",
- "粵語",
- "zh-yue"
- ],
- [
- "Low Saxon",
- "Plattdüütsch",
- "nds"
- ],
- [
- "Kurdish",
- "Kurdî / كوردی",
- "ku"
- ],
- [
- "Irish",
- "Gaeilge",
- "ga"
- ],
- [
- "Asturian",
- "Asturianu",
- "ast"
- ],
- [
- "Quechua",
- "Runa Simi",
- "qu"
- ],
- [
- "Sundanese",
- "Basa Sunda",
- "su"
- ],
- [
- "Chuvash",
- "Чăваш",
- "cv"
- ],
- [
- "Scots",
- "Scots",
- "sco"
- ],
- [
- "Interlingua",
- "Interlingua",
- "ia"
- ],
- [
- "Alemannic",
- "Alemannisch",
- "als"
- ],
- [
- "Buginese",
- "Basa Ugi",
- "bug"
- ],
- [
- "Neapolitan",
- "Nnapulitano",
- "nap"
- ],
- [
- "Samogitian",
- "Žemaitėška",
- "bat-smg"
- ],
- [
- "Kannada",
- "ಕನ್ನಡ",
- "kn"
- ],
- [
- "Banyumasan",
- "Basa Banyumasan",
- "map-bms"
- ],
- [
- "Walloon",
- "Walon",
- "wa"
- ],
- [
- "Amharic",
- "አማርኛ",
- "am"
- ],
- [
- "Sorani",
- "Soranî / کوردی",
- "ckb"
- ],
- [
- "Scottish Gaelic",
- "Gàidhlig",
- "gd"
- ],
- [
- "Fiji Hindi",
- "Fiji Hindi",
- "hif"
- ],
- [
- "Min Nan",
- "Bân-lâm-gú",
- "zh-min-nan"
- ],
- [
- "Tajik",
- "Тоҷикӣ",
- "tg"
- ],
- [
- "Mazandarani",
- "مَزِروني",
- "mzn"
- ],
- [
- "Egyptian Arabic",
- "مصرى (Maṣrī)",
- "arz"
- ],
- [
- "Yiddish",
- "ייִדיש",
- "yi"
- ],
- [
- "Venetian",
- "Vèneto",
- "vec"
- ],
- [
- "Mongolian",
- "Монгол",
- "mn"
- ],
- [
- "Tarantino",
- "Tarandíne",
- "roa-tara"
- ],
- [
- "Sanskrit",
- "संस्कृतम्",
- "sa"
- ],
- [
- "Nahuatl",
- "Nāhuatl",
- "nah"
- ],
- [
- "Ossetian",
- "Иронау",
- "os"
- ],
- [
- "Sakha",
- "Саха тыла (Saxa Tyla)",
- "sah"
- ],
- [
- "Kapampangan",
- "Kapampangan",
- "pam"
- ],
- [
- "Upper Sorbian",
- "Hornjoserbsce",
- "hsb"
- ],
- [
- "Sinhalese",
- "සිංහල",
- "si"
- ],
- [
- "Northern Sami",
- "Sámegiella",
- "se"
- ],
- [
- "Limburgish",
- "Limburgs",
- "li"
- ],
- [
- "Maori",
- "Māori",
- "mi"
- ],
- [
- "Bavarian",
- "Boarisch",
- "bar"
- ],
- [
- "Corsican",
- "Corsu",
- "co"
- ],
- [
- "Ilokano",
- "Ilokano",
- "ilo"
- ],
- [
- "Gan",
- "贛語",
- "gan"
- ],
- [
- "Tibetan",
- "བོད་སྐད",
- "bo"
- ],
- [
- "Gilaki",
- "گیلکی",
- "glk"
- ],
- [
- "Faroese",
- "Føroyskt",
- "fo"
- ],
- [
- "Rusyn",
- "русиньскый язык",
- "rue"
- ],
- [
- "Punjabi",
- "ਪੰਜਾਬੀ",
- "pa"
- ],
- [
- "Central_Bicolano",
- "Bikol",
- "bcl"
- ],
- [
- "Hill Mari",
- "Кырык Мары (Kyryk Mary) ",
- "mrj"
- ],
- [
- "Võro",
- "Võro",
- "fiu-vro"
- ],
- [
- "Dutch Low Saxon",
- "Nedersaksisch",
- "nds-nl"
- ],
- [
- "Turkmen",
- "تركمن / Туркмен",
- "tk"
- ],
- [
- "Pashto",
- "پښتو",
- "ps"
- ],
- [
- "West Flemish",
- "West-Vlams",
- "vls"
- ],
- [
- "Mingrelian",
- "მარგალური (Margaluri)",
- "xmf"
- ],
- [
- "Manx",
- "Gaelg",
- "gv"
- ],
- [
- "Zazaki",
- "Zazaki",
- "diq"
- ],
- [
- "Pangasinan",
- "Pangasinan",
- "pag"
- ],
- [
- "Komi",
- "Коми",
- "kv"
- ],
- [
- "Zeelandic",
- "Zeêuws",
- "zea"
- ],
- [
- "Divehi",
- "ދިވެހިބަސް",
- "dv"
- ],
- [
- "Oriya",
- "ଓଡ଼ିଆ",
- "or"
- ],
- [
- "Khmer",
- "ភាសាខ្មែរ",
- "km"
- ],
- [
- "Norman",
- "Nouormand/Normaund",
- "nrm"
- ],
- [
- "Romansh",
- "Rumantsch",
- "rm"
- ],
- [
- "Komi-Permyak",
- "Перем Коми (Perem Komi)",
- "koi"
- ],
- [
- "Udmurt",
- "Удмурт кыл",
- "udm"
- ],
- [
- "Meadow Mari",
- "Олык Марий (Olyk Marij)",
- "mhr"
- ],
- [
- "Ladino",
- "Dzhudezmo",
- "lad"
- ],
- [
- "North Frisian",
- "Nordfriisk",
- "frr"
- ],
- [
- "Kashubian",
- "Kaszëbsczi",
- "csb"
- ],
- [
- "Ligurian",
- "Líguru",
- "lij"
- ],
- [
- "Wu",
- "吴语",
- "wuu"
- ],
- [
- "Friulian",
- "Furlan",
- "fur"
- ],
- [
- "Vepsian",
- "Vepsän",
- "vep"
- ],
- [
- "Classical Chinese",
- "古文 / 文言文",
- "zh-classical"
- ],
- [
- "Uyghur",
- "ئۇيغۇر تىلى",
- "ug"
- ],
- [
- "Saterland Frisian",
- "Seeltersk",
- "stq"
- ],
- [
- "Sardinian",
- "Sardu",
- "sc"
- ],
- [
- "Aromanian",
- "Armãneashce",
- "roa-rup"
- ],
- [
- "Pali",
- "पाऴि",
- "pi"
- ],
- [
- "Somali",
- "Soomaaliga",
- "so"
- ],
- [
- "Bihari",
- "भोजपुरी",
- "bh"
- ],
- [
- "Maltese",
- "Malti",
- "mt"
- ],
- [
- "Aymara",
- "Aymar",
- "ay"
- ],
- [
- "Ripuarian",
- "Ripoarisch",
- "ksh"
- ],
- [
- "Novial",
- "Novial",
- "nov"
- ],
- [
- "Anglo-Saxon",
- "Englisc",
- "ang"
- ],
- [
- "Cornish",
- "Kernewek/Karnuack",
- "kw"
- ],
- [
- "Navajo",
- "Diné bizaad",
- "nv"
- ],
- [
- "Picard",
- "Picard",
- "pcd"
- ],
- [
- "Hakka",
- "Hak-kâ-fa / 客家話",
- "hak"
- ],
- [
- "Guarani",
- "Avañe'ẽ",
- "gn"
- ],
- [
- "Extremaduran",
- "Estremeñu",
- "ext"
- ],
- [
- "Franco-Provençal/Arpitan",
- "Arpitan",
- "frp"
- ],
- [
- "Assamese",
- "অসমীয়া",
- "as"
- ],
- [
- "Silesian",
- "Ślůnski",
- "szl"
- ],
- [
- "Gagauz",
- "Gagauz",
- "gag"
- ],
- [
- "Interlingue",
- "Interlingue",
- "ie"
- ],
- [
- "Lingala",
- "Lingala",
- "ln"
- ],
- [
- "Emilian-Romagnol",
- "Emiliàn e rumagnòl",
- "eml"
- ],
- [
- "Chechen",
- "Нохчийн",
- "ce"
- ],
- [
- "Kalmyk",
- "Хальмг",
- "xal"
- ],
- [
- "Palatinate German",
- "Pfälzisch",
- "pfl"
- ],
- [
- "Hawaiian",
- "Hawai`i",
- "haw"
- ],
- [
- "Karachay-Balkar",
- "Къарачай-Малкъар (Qarachay-Malqar)",
- "krc"
- ],
- [
- "Pennsylvania German",
- "Deitsch",
- "pdc"
- ],
- [
- "Kinyarwanda",
- "Ikinyarwanda",
- "rw"
- ],
- [
- "Crimean Tatar",
- "Qırımtatarca",
- "crh"
- ],
- [
- "Acehnese",
- "Bahsa Acèh",
- "ace"
- ],
- [
- "Tongan",
- "faka Tonga",
- "to"
- ],
- [
- "Greenlandic",
- "Kalaallisut",
- "kl"
- ],
- [
- "Lower Sorbian",
- "Dolnoserbski",
- "dsb"
- ],
- [
- "Aramaic",
- "ܐܪܡܝܐ",
- "arc"
- ],
- [
- "Erzya",
- "Эрзянь (Erzjanj Kelj)",
- "myv"
- ],
- [
- "Lezgian",
- "Лезги чІал (Lezgi č’al)",
- "lez"
- ],
- [
- "Banjar",
- "Bahasa Banjar",
- "bjn"
- ],
- [
- "Shona",
- "chiShona",
- "sn"
- ],
- [
- "Papiamentu",
- "Papiamentu",
- "pap"
- ],
- [
- "Kabyle",
- "Taqbaylit",
- "kab"
- ],
- [
- "Tok Pisin",
- "Tok Pisin",
- "tpi"
- ],
- [
- "Lak",
- "Лакку",
- "lbe"
- ],
- [
- "Buryat (Russia)",
- "Буряад",
- "bxr"
- ],
- [
- "Lojban",
- "Lojban",
- "jbo"
- ],
- [
- "Wolof",
- "Wolof",
- "wo"
- ],
- [
- "Moksha",
- "Мокшень (Mokshanj Kälj)",
- "mdf"
- ],
- [
- "Zamboanga Chavacano",
- "Chavacano de Zamboanga",
- "cbk-zam"
- ],
- [
- "Avar",
- "Авар",
- "av"
- ],
- [
- "Sranan",
- "Sranantongo",
- "srn"
- ],
- [
- "Mirandese",
- "Mirandés",
- "mwl"
- ],
- [
- "Kabardian Circassian",
- "Адыгэбзэ (Adighabze)",
- "kbd"
- ],
- [
- "Tahitian",
- "Reo Mā`ohi",
- "ty"
- ],
- [
- "Lao",
- "ລາວ",
- "lo"
- ],
- [
- "Abkhazian",
- "Аҧсуа",
- "ab"
- ],
- [
- "Tetum",
- "Tetun",
- "tet"
- ],
- [
- "Latgalian",
- "Latgaļu",
- "ltg"
- ],
- [
- "Nauruan",
- "dorerin Naoero",
- "na"
- ],
- [
- "Kongo",
- "KiKongo",
- "kg"
- ],
- [
- "Igbo",
- "Igbo",
- "ig"
- ],
- [
- "Northern Sotho",
- "Sesotho sa Leboa",
- "nso"
- ],
- [
- "Zhuang",
- "Cuengh",
- "za"
- ],
- [
- "Karakalpak",
- "Qaraqalpaqsha",
- "kaa"
- ],
- [
- "Zulu",
- "isiZulu",
- "zu"
- ],
- [
- "Cheyenne",
- "Tsetsêhestâhese",
- "chy"
- ],
- [
- "Romani",
- "romani - रोमानी",
- "rmy"
- ],
- [
- "Old Church Slavonic",
- "Словѣньскъ",
- "cu"
- ],
- [
- "Tswana",
- "Setswana",
- "tn"
- ],
- [
- "Cherokee",
- "ᏣᎳᎩ",
- "chr"
- ],
- [
- "Bislama",
- "Bislama",
- "bi"
- ],
- [
- "Min Dong",
- "Mìng-dĕ̤ng-ngṳ̄",
- "cdo"
- ],
- [
- "Gothic",
- "𐌲𐌿𐍄𐌹𐍃𐌺",
- "got"
- ],
- [
- "Samoan",
- "Gagana Samoa",
- "sm"
- ],
- [
- "Moldovan",
- "Молдовеняскэ",
- "mo"
- ],
- [
- "Bambara",
- "Bamanankan",
- "bm"
- ],
- [
- "Inuktitut",
- "ᐃᓄᒃᑎᑐᑦ",
- "iu"
- ],
- [
- "Norfolk",
- "Norfuk",
- "pih"
- ],
- [
- "Pontic",
- "Ποντιακά",
- "pnt"
- ],
- [
- "Sindhi",
- "سنڌي، سندھی ، सिन्ध",
- "sd"
- ],
- [
- "Swati",
- "SiSwati",
- "ss"
- ],
- [
- "Kikuyu",
- "Gĩkũyũ",
- "ki"
- ],
- [
- "Ewe",
- "Eʋegbe",
- "ee"
- ],
- [
- "Hausa",
- "هَوُسَ",
- "ha"
- ],
- [
- "Oromo",
- "Oromoo",
- "om"
- ],
- [
- "Fijian",
- "Na Vosa Vakaviti",
- "fj"
- ],
- [
- "Tigrinya",
- "ትግርኛ",
- "ti"
- ],
- [
- "Tsonga",
- "Xitsonga",
- "ts"
- ],
- [
- "Kashmiri",
- "कश्मीरी / كشميري",
- "ks"
- ],
- [
- "Venda",
- "Tshivenda",
- "ve"
- ],
- [
- "Sango",
- "Sängö",
- "sg"
- ],
- [
- "Kirundi",
- "Kirundi",
- "rn"
- ],
- [
- "Sesotho",
- "Sesotho",
- "st"
- ],
- [
- "Dzongkha",
- "ཇོང་ཁ",
- "dz"
- ],
- [
- "Cree",
- "Nehiyaw",
- "cr"
- ],
- [
- "Akan",
- "Akana",
- "ak"
- ],
- [
- "Tumbuka",
- "chiTumbuka",
- "tum"
- ],
- [
- "Luganda",
- "Luganda",
- "lg"
- ],
- [
- "Chichewa",
- "Chi-Chewa",
- "ny"
- ],
- [
- "Fula",
- "Fulfulde",
- "ff"
- ],
- [
- "Inupiak",
- "Iñupiak",
- "ik"
- ],
- [
- "Chamorro",
- "Chamoru",
- "ch"
- ],
- [
- "Twi",
- "Twi",
- "tw"
- ],
- [
- "Xhosa",
- "isiXhosa",
- "xh"
- ],
- [
- "Ndonga",
- "Oshiwambo",
- "ng"
- ],
- [
- "Sichuan Yi",
- "ꆇꉙ",
- "ii"
- ],
- [
- "Choctaw",
- "Choctaw",
- "cho"
- ],
- [
- "Marshallese",
- "Ebon",
- "mh"
- ],
- [
- "Afar",
- "Afar",
- "aa"
- ],
- [
- "Kuanyama",
- "Kuanyama",
- "kj"
- ],
- [
- "Hiri Motu",
- "Hiri Motu",
- "ho"
- ],
- [
- "Muscogee",
- "Muskogee",
- "mus"
- ],
- [
- "Kanuri",
- "Kanuri",
- "kr"
- ],
- [
- "Herero",
- "Otsiherero",
- "hz"
- ]
- ],
- "presets": {
- "presets": {
- "address": {
- "fields": [
- "address"
- ],
- "geometry": [
- "point"
- ],
- "tags": {
- "addr:housenumber": "*"
- },
- "addTags": {},
- "removeTags": {},
- "matchScore": 0.2,
- "name": "Address"
- },
- "aerialway": {
- "fields": [
- "aerialway"
- ],
- "geometry": [
- "point",
- "vertex",
- "line"
- ],
- "tags": {
- "aerialway": "*"
- },
- "terms": [
- "ski lift",
- "funifor",
- "funitel"
- ],
- "name": "Aerialway"
- },
- "aerialway/cable_car": {
- "geometry": [
- "line"
- ],
- "terms": [
- "tramway",
- "ropeway"
- ],
- "fields": [
- "aerialway/occupancy",
- "aerialway/capacity",
- "aerialway/duration",
- "aerialway/heating"
- ],
- "tags": {
- "aerialway": "cable_car"
- },
- "name": "Cable Car"
- },
- "aerialway/chair_lift": {
- "geometry": [
- "line"
- ],
- "fields": [
- "aerialway/occupancy",
- "aerialway/capacity",
- "aerialway/duration",
- "aerialway/bubble",
- "aerialway/heating"
- ],
- "tags": {
- "aerialway": "chair_lift"
- },
- "name": "Chair Lift"
- },
- "aerialway/gondola": {
- "geometry": [
- "line"
- ],
- "fields": [
- "aerialway/occupancy",
- "aerialway/capacity",
- "aerialway/duration",
- "aerialway/bubble",
- "aerialway/heating"
- ],
- "tags": {
- "aerialway": "gondola"
- },
- "name": "Gondola"
- },
- "aerialway/magic_carpet": {
- "geometry": [
- "line"
- ],
- "fields": [
- "aerialway/capacity",
- "aerialway/duration",
- "aerialway/heating"
- ],
- "tags": {
- "aerialway": "magic_carpet"
- },
- "name": "Magic Carpet Lift"
- },
- "aerialway/platter": {
- "geometry": [
- "line"
- ],
- "terms": [
- "button lift",
- "poma lift"
- ],
- "fields": [
- "aerialway/capacity",
- "aerialway/duration"
- ],
- "tags": {
- "aerialway": "platter"
- },
- "name": "Platter Lift"
- },
- "aerialway/pylon": {
- "geometry": [
- "point",
- "vertex"
- ],
- "fields": [
- "ref"
- ],
- "tags": {
- "aerialway": "pylon"
- },
- "name": "Aerialway Pylon"
- },
- "aerialway/rope_tow": {
- "geometry": [
- "line"
- ],
- "terms": [
- "handle tow",
- "bugel lift"
- ],
- "fields": [
- "aerialway/capacity",
- "aerialway/duration"
- ],
- "tags": {
- "aerialway": "rope_tow"
- },
- "name": "Rope Tow Lift"
- },
- "aerialway/station": {
- "geometry": [
- "point",
- "vertex"
- ],
- "fields": [
- "aerialway/access",
- "aerialway/summer/access",
- "elevation"
- ],
- "tags": {
- "aerialway": "station"
- },
- "name": "Aerialway Station"
- },
- "aerialway/t-bar": {
- "geometry": [
- "line"
- ],
- "fields": [
- "aerialway/capacity",
- "aerialway/duration"
- ],
- "tags": {
- "aerialway": "t-bar"
- },
- "name": "T-bar Lift"
- },
- "aeroway": {
- "icon": "airport",
- "fields": [
- "aeroway"
- ],
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "aeroway": "*"
- },
- "name": "Aeroway"
- },
- "aeroway/aerodrome": {
- "icon": "airport",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "airplane",
- "airport",
- "aerodrome"
- ],
- "fields": [
- "ref",
- "iata",
- "icao",
- "operator"
- ],
- "tags": {
- "aeroway": "aerodrome"
- },
- "name": "Airport"
- },
- "aeroway/apron": {
- "icon": "airport",
- "geometry": [
- "area"
- ],
- "terms": [
- "ramp"
- ],
- "fields": [
- "ref",
- "surface"
- ],
- "tags": {
- "aeroway": "apron"
- },
- "name": "Apron"
- },
- "aeroway/gate": {
- "icon": "airport",
- "geometry": [
- "point"
- ],
- "fields": [
- "ref"
- ],
- "tags": {
- "aeroway": "gate"
- },
- "name": "Airport gate"
- },
- "aeroway/hangar": {
- "geometry": [
- "area"
- ],
- "fields": [
- "building_area"
- ],
- "tags": {
- "aeroway": "hangar"
- },
- "name": "Hangar"
- },
- "aeroway/helipad": {
- "icon": "heliport",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "helicopter",
- "helipad",
- "heliport"
- ],
- "tags": {
- "aeroway": "helipad"
- },
- "name": "Helipad"
- },
- "aeroway/runway": {
- "geometry": [
- "line",
- "area"
- ],
- "terms": [
- "landing strip"
- ],
- "fields": [
- "ref",
- "surface",
- "length",
- "width"
- ],
- "tags": {
- "aeroway": "runway"
- },
- "name": "Runway"
- },
- "aeroway/taxiway": {
- "geometry": [
- "line"
- ],
- "fields": [
- "ref",
- "surface"
- ],
- "tags": {
- "aeroway": "taxiway"
- },
- "name": "Taxiway"
- },
- "aeroway/terminal": {
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "airport",
- "aerodrome"
- ],
- "fields": [
- "operator",
- "building_area"
- ],
- "tags": {
- "aeroway": "terminal"
- },
- "name": "Airport terminal"
- },
- "amenity": {
- "fields": [
- "amenity"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "*"
- },
- "name": "Amenity"
- },
- "amenity/arts_centre": {
- "name": "Arts Center",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "arts",
- "arts centre"
- ],
- "tags": {
- "amenity": "arts_centre"
- },
- "icon": "theatre",
- "fields": [
- "building_area",
- "address"
- ]
- },
- "amenity/atm": {
- "icon": "bank",
- "fields": [
- "operator"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "amenity": "atm"
- },
- "name": "ATM"
- },
- "amenity/bank": {
- "icon": "bank",
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "coffer",
- "countinghouse",
- "credit union",
- "depository",
- "exchequer",
- "fund",
- "hoard",
- "investment firm",
- "repository",
- "reserve",
- "reservoir",
- "safe",
- "savings",
- "stock",
- "stockpile",
- "store",
- "storehouse",
- "thrift",
- "treasury",
- "trust company",
- "vault"
- ],
- "tags": {
- "amenity": "bank"
- },
- "name": "Bank"
- },
- "amenity/bar": {
- "icon": "bar",
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "bar"
- },
- "terms": [],
- "name": "Bar"
- },
- "amenity/bbq": {
- "geometry": [
- "point"
- ],
- "tags": {
- "amenity": "bbq"
- },
- "fields": [
- "covered",
- "fuel"
- ],
- "terms": [
- "barbecue",
- "bbq",
- "grill"
- ],
- "name": "Barbecue/Grill"
- },
- "amenity/bench": {
- "geometry": [
- "point",
- "vertex",
- "line"
- ],
- "tags": {
- "amenity": "bench"
- },
- "fields": [
- "backrest"
- ],
- "name": "Bench"
- },
- "amenity/bicycle_parking": {
- "icon": "bicycle",
- "fields": [
- "bicycle_parking",
- "capacity",
- "operator",
- "covered",
- "access_simple"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "bicycle_parking"
- },
- "name": "Bicycle Parking"
- },
- "amenity/bicycle_rental": {
- "icon": "bicycle",
- "fields": [
- "capacity",
- "network",
- "operator"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "bicycle_rental"
- },
- "name": "Bicycle Rental"
- },
- "amenity/boat_rental": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "boat_rental"
- },
- "fields": [
- "operator"
- ],
- "name": "Boat Rental"
- },
- "amenity/bus_station": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "bus_station"
- },
- "fields": [
- "operator"
- ],
- "name": "Bus Station"
- },
- "amenity/cafe": {
- "icon": "cafe",
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "coffee",
- "tea",
- "coffee shop"
- ],
- "tags": {
- "amenity": "cafe"
- },
- "name": "Cafe"
- },
- "amenity/car_rental": {
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "car_rental"
- },
- "fields": [
- "operator"
- ],
- "name": "Car Rental"
- },
- "amenity/car_sharing": {
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "car_sharing"
- },
- "fields": [
- "operator",
- "capacity"
- ],
- "name": "Car Sharing"
- },
- "amenity/car_wash": {
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "car_wash"
- },
- "fields": [
- "building_area"
- ],
- "name": "Car Wash"
- },
- "amenity/charging_station": {
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "charging_station"
- },
- "fields": [
- "operator"
- ],
- "terms": [
- "EV",
- "Electric Vehicle",
- "Supercharger"
- ],
- "name": "Charging Station"
- },
- "amenity/childcare": {
- "icon": "school",
- "fields": [
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "nursery",
- "orphanage",
- "playgroup"
- ],
- "tags": {
- "amenity": "childcare"
- },
- "name": "Childcare"
- },
- "amenity/cinema": {
- "icon": "cinema",
- "fields": [
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "big screen",
- "bijou",
- "cine",
- "drive-in",
- "film",
- "flicks",
- "motion pictures",
- "movie house",
- "movie theater",
- "moving pictures",
- "nabes",
- "photoplay",
- "picture show",
- "pictures",
- "playhouse",
- "show",
- "silver screen"
- ],
- "tags": {
- "amenity": "cinema"
- },
- "name": "Cinema"
- },
- "amenity/clinic": {
- "name": "Clinic",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "clinic",
- "medical clinic"
- ],
- "tags": {
- "amenity": "clinic"
- },
- "icon": "hospital",
- "fields": [
- "building_area",
- "address",
- "opening_hours"
- ]
- },
- "amenity/clock": {
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "amenity": "clock"
- },
- "name": "Clock"
- },
- "amenity/college": {
- "icon": "college",
- "fields": [
- "operator",
- "address"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "college"
- },
- "terms": [],
- "name": "College"
- },
- "amenity/compressed_air": {
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "compressed_air"
- },
- "name": "Compressed Air"
- },
- "amenity/courthouse": {
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "courthouse"
- },
- "name": "Courthouse"
- },
- "amenity/dentist": {
- "name": "Dentist",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "dentist",
- "dentist's office"
- ],
- "tags": {
- "amenity": "dentist"
- },
- "icon": "hospital",
- "fields": [
- "building_area",
- "address",
- "opening_hours"
- ]
- },
- "amenity/doctor": {
- "name": "Doctor",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "doctor",
- "doctor's office"
- ],
- "tags": {
- "amenity": "doctors"
- },
- "icon": "hospital",
- "fields": [
- "building_area",
- "address",
- "opening_hours"
- ]
- },
- "amenity/dojo": {
- "icon": "pitch",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "martial arts",
- "dojo",
- "dojang"
- ],
- "tags": {
- "amenity": "dojo"
- },
- "fields": [
- "address",
- "sport"
- ],
- "name": "Dojo / Martial Arts Academy"
- },
- "amenity/drinking_water": {
- "icon": "water",
- "geometry": [
- "point"
- ],
- "tags": {
- "amenity": "drinking_water"
- },
- "terms": [
- "water fountain",
- "potable water"
- ],
- "name": "Drinking Water"
- },
- "amenity/embassy": {
- "geometry": [
- "area",
- "point"
- ],
- "tags": {
- "amenity": "embassy"
- },
- "fields": [
- "country",
- "building_area"
- ],
- "icon": "embassy",
- "name": "Embassy"
- },
- "amenity/fast_food": {
- "icon": "fast-food",
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "fast_food"
- },
- "terms": [],
- "name": "Fast Food"
- },
- "amenity/fire_station": {
- "icon": "fire-station",
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "fire_station"
- },
- "terms": [],
- "name": "Fire Station"
- },
- "amenity/fountain": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "amenity": "fountain"
- },
- "name": "Fountain"
- },
- "amenity/fuel": {
- "icon": "fuel",
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "petrol",
- "fuel",
- "propane",
- "diesel",
- "lng",
- "cng",
- "biodiesel"
- ],
- "tags": {
- "amenity": "fuel"
- },
- "name": "Gas Station"
- },
- "amenity/grave_yard": {
- "icon": "cemetery",
- "fields": [
- "religion",
- "denomination"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "grave_yard"
- },
- "name": "Graveyard"
- },
- "amenity/hospital": {
- "icon": "hospital",
- "fields": [
- "emergency",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "clinic",
- "emergency room",
- "health service",
- "hospice",
- "infirmary",
- "institution",
- "nursing home",
- "rest home",
- "sanatorium",
- "sanitarium",
- "sick bay",
- "surgery",
- "ward"
- ],
- "tags": {
- "amenity": "hospital"
- },
- "name": "Hospital Grounds"
- },
- "amenity/kindergarten": {
- "icon": "school",
- "fields": [
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "nursery",
- "preschool"
- ],
- "tags": {
- "amenity": "kindergarten"
- },
- "name": "Kindergarten Grounds"
- },
- "amenity/library": {
- "icon": "library",
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "library"
- },
- "terms": [],
- "name": "Library"
- },
- "amenity/marketplace": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "marketplace"
- },
- "fields": [
- "building_area"
- ],
- "name": "Marketplace"
- },
- "amenity/nightclub": {
- "icon": "bar",
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "nightclub"
- },
- "terms": [
- "disco*",
- "night club",
- "dancing",
- "dance club"
- ],
- "name": "Nightclub"
- },
- "amenity/parking": {
- "icon": "parking",
- "fields": [
- "parking",
- "capacity",
- "fee",
- "access_simple",
- "supervised",
- "park_ride",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "parking"
- },
- "terms": [],
- "name": "Car Parking"
- },
- "amenity/parking_entrance": {
- "icon": "entrance",
- "geometry": [
- "vertex"
- ],
- "tags": {
- "amenity": "parking_entrance"
- },
- "fields": [
- "access_simple",
- "ref"
- ],
- "name": "Parking Garage Entrance/Exit"
- },
- "amenity/pharmacy": {
- "icon": "pharmacy",
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "pharmacy"
- },
- "terms": [],
- "name": "Pharmacy"
- },
- "amenity/place_of_worship": {
- "icon": "place-of-worship",
- "fields": [
- "religion",
- "denomination",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "abbey",
- "basilica",
- "bethel",
- "cathedral",
- "chancel",
- "chantry",
- "chapel",
- "church",
- "fold",
- "house of God",
- "house of prayer",
- "house of worship",
- "minster",
- "mission",
- "mosque",
- "oratory",
- "parish",
- "sacellum",
- "sanctuary",
- "shrine",
- "synagogue",
- "tabernacle",
- "temple"
- ],
- "tags": {
- "amenity": "place_of_worship"
- },
- "name": "Place of Worship"
- },
- "amenity/place_of_worship/buddhist": {
- "icon": "place-of-worship",
- "fields": [
- "denomination",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "stupa",
- "vihara",
- "monastery",
- "temple",
- "pagoda",
- "zendo",
- "dojo"
- ],
- "tags": {
- "amenity": "place_of_worship",
- "religion": "buddhist"
- },
- "name": "Buddhist Temple"
- },
- "amenity/place_of_worship/christian": {
- "icon": "religious-christian",
- "fields": [
- "denomination",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "christian",
- "abbey",
- "basilica",
- "bethel",
- "cathedral",
- "chancel",
- "chantry",
- "chapel",
- "church",
- "fold",
- "house of God",
- "house of prayer",
- "house of worship",
- "minster",
- "mission",
- "oratory",
- "parish",
- "sacellum",
- "sanctuary",
- "shrine",
- "tabernacle",
- "temple"
- ],
- "tags": {
- "amenity": "place_of_worship",
- "religion": "christian"
- },
- "name": "Church"
- },
- "amenity/place_of_worship/jewish": {
- "icon": "religious-jewish",
- "fields": [
- "denomination",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "jewish",
- "synagogue"
- ],
- "tags": {
- "amenity": "place_of_worship",
- "religion": "jewish"
- },
- "name": "Synagogue"
- },
- "amenity/place_of_worship/muslim": {
- "icon": "religious-muslim",
- "fields": [
- "denomination",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "muslim",
- "mosque"
- ],
- "tags": {
- "amenity": "place_of_worship",
- "religion": "muslim"
- },
- "name": "Mosque"
- },
- "amenity/police": {
- "icon": "police",
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "badge",
- "bear",
- "blue",
- "bluecoat",
- "bobby",
- "boy scout",
- "bull",
- "constable",
- "constabulary",
- "cop",
- "copper",
- "corps",
- "county mounty",
- "detective",
- "fed",
- "flatfoot",
- "force",
- "fuzz",
- "gendarme",
- "gumshoe",
- "heat",
- "law",
- "law enforcement",
- "man",
- "narc",
- "officers",
- "patrolman",
- "police"
- ],
- "tags": {
- "amenity": "police"
- },
- "name": "Police"
- },
- "amenity/post_box": {
- "icon": "post",
- "fields": [
- "operator",
- "collection_times"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "amenity": "post_box"
- },
- "terms": [
- "letter drop",
- "letterbox",
- "mail drop",
- "mailbox",
- "pillar box",
- "postbox"
- ],
- "name": "Mailbox"
- },
- "amenity/post_office": {
- "icon": "post",
- "fields": [
- "operator",
- "collection_times",
- "building_area"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "post_office"
- },
- "name": "Post Office"
- },
- "amenity/pub": {
- "icon": "beer",
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "pub"
- },
- "terms": [],
- "name": "Pub"
- },
- "amenity/ranger_station": {
- "fields": [
- "building_area",
- "opening_hours",
- "operator",
- "phone"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "visitor center",
- "visitor centre",
- "permit center",
- "permit centre",
- "backcountry office",
- "warden office",
- "warden center"
- ],
- "tags": {
- "amenity": "ranger_station"
- },
- "name": "Ranger Station"
- },
- "amenity/recycling": {
- "icon": "recycling",
- "fields": [
- "recycling/cans",
- "recycling/glass",
- "recycling/paper",
- "recycling/clothes"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [],
- "tags": {
- "amenity": "recycling"
- },
- "name": "Recycling"
- },
- "amenity/restaurant": {
- "icon": "restaurant",
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "bar",
- "cafeteria",
- "café",
- "canteen",
- "chophouse",
- "coffee shop",
- "diner",
- "dining room",
- "dive*",
- "doughtnut shop",
- "drive-in",
- "eatery",
- "eating house",
- "eating place",
- "fast-food place",
- "fish and chips",
- "greasy spoon",
- "grill",
- "hamburger stand",
- "hashery",
- "hideaway",
- "hotdog stand",
- "inn",
- "joint*",
- "luncheonette",
- "lunchroom",
- "night club",
- "outlet*",
- "pizzeria",
- "saloon",
- "soda fountain",
- "watering hole"
- ],
- "tags": {
- "amenity": "restaurant"
- },
- "name": "Restaurant"
- },
- "amenity/school": {
- "icon": "school",
- "fields": [
- "operator",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "academy",
- "alma mater",
- "blackboard",
- "college",
- "department",
- "discipline",
- "establishment",
- "faculty",
- "hall",
- "halls of ivy",
- "institute",
- "institution",
- "jail*",
- "schoolhouse",
- "seminary",
- "university"
- ],
- "tags": {
- "amenity": "school"
- },
- "name": "School Grounds"
- },
- "amenity/shelter": {
- "fields": [
- "shelter_type"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "shelter"
- },
- "terms": [
- "lean-to"
- ],
- "name": "Shelter"
- },
- "amenity/social_facility": {
- "name": "Social Facility",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [],
- "tags": {
- "amenity": "social_facility"
- },
- "fields": [
- "social_facility_for",
- "address",
- "phone",
- "opening_hours",
- "wheelchair",
- "operator"
- ]
- },
- "amenity/social_facility/food_bank": {
- "name": "Food Bank",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [],
- "tags": {
- "amenity": "social_facility",
- "social_facility": "food_bank"
- },
- "fields": [
- "social_facility_for",
- "address",
- "phone",
- "opening_hours",
- "wheelchair",
- "operator"
- ]
- },
- "amenity/social_facility/group_home": {
- "name": "Group Home",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "elderly",
- "old",
- "senior living"
- ],
- "tags": {
- "amenity": "social_facility",
- "social_facility": "group_home",
- "social_facility_for": "senior"
- },
- "fields": [
- "social_facility_for",
- "address",
- "phone",
- "opening_hours",
- "wheelchair",
- "operator"
- ]
- },
- "amenity/social_facility/homeless_shelter": {
- "name": "Homeless Shelter",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "houseless",
- "unhoused",
- "displaced"
- ],
- "tags": {
- "amenity": "social_facility",
- "social_facility": "shelter",
- "social_facility:for": "homeless"
- },
- "fields": [
- "social_facility_for",
- "address",
- "phone",
- "opening_hours",
- "wheelchair",
- "operator"
- ]
- },
- "amenity/studio": {
- "name": "Studio",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "recording studio",
- "studio",
- "radio",
- "radio studio",
- "television",
- "television studio"
- ],
- "tags": {
- "amenity": "studio"
- },
- "icon": "music",
- "fields": [
- "building_area",
- "studio_type",
- "address"
- ]
- },
- "amenity/swimming_pool": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "swimming_pool"
- },
- "icon": "swimming",
- "searchable": false,
- "name": "Swimming Pool"
- },
- "amenity/taxi": {
- "fields": [
- "operator",
- "capacity"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "cab"
- ],
- "tags": {
- "amenity": "taxi"
- },
- "name": "Taxi Stand"
- },
- "amenity/telephone": {
- "icon": "telephone",
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "amenity": "telephone"
- },
- "terms": [
- "phone"
- ],
- "name": "Telephone"
- },
- "amenity/theatre": {
- "icon": "theatre",
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "theatre",
- "performance",
- "play",
- "musical"
- ],
- "tags": {
- "amenity": "theatre"
- },
- "name": "Theater"
- },
- "amenity/toilets": {
- "fields": [
- "toilets/disposal",
- "operator",
- "building_area",
- "access_toilets"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "bathroom",
- "restroom",
- "outhouse",
- "privy",
- "head",
- "lavatory",
- "latrine",
- "water closet",
- "WC",
- "W.C."
- ],
- "tags": {
- "amenity": "toilets"
- },
- "icon": "toilets",
- "name": "Toilets"
- },
- "amenity/townhall": {
- "icon": "town-hall",
- "fields": [
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "village hall",
- "city government",
- "courthouse",
- "municipal building",
- "municipal center",
- "municipal centre"
- ],
- "tags": {
- "amenity": "townhall"
- },
- "name": "Town Hall"
- },
- "amenity/university": {
- "icon": "college",
- "fields": [
- "operator",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "amenity": "university"
- },
- "terms": [
- "college"
- ],
- "name": "University"
- },
- "amenity/vending_machine": {
- "fields": [
- "vending",
- "operator"
- ],
- "geometry": [
- "point"
- ],
- "tags": {
- "amenity": "vending_machine"
- },
- "name": "Vending Machine"
- },
- "amenity/veterinary": {
- "fields": [],
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "pet clinic",
- "veterinarian",
- "animal hospital",
- "pet doctor"
- ],
- "tags": {
- "amenity": "veterinary"
- },
- "name": "Veterinary"
- },
- "amenity/waste_basket": {
- "icon": "waste-basket",
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "amenity": "waste_basket"
- },
- "terms": [
- "rubbish bin",
- "litter bin",
- "trash can",
- "garbage can"
- ],
- "name": "Waste Basket"
- },
- "area": {
- "name": "Area",
- "tags": {
- "area": "yes"
- },
- "geometry": [
- "area"
- ],
- "matchScore": 0.1
- },
- "barrier": {
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "barrier": "*"
- },
- "fields": [
- "barrier"
- ],
- "name": "Barrier"
- },
- "barrier/block": {
- "fields": [
- "access"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "barrier": "block"
- },
- "name": "Block"
- },
- "barrier/bollard": {
- "fields": [
- "access"
- ],
- "geometry": [
- "point",
- "vertex",
- "line"
- ],
- "tags": {
- "barrier": "bollard"
- },
- "name": "Bollard"
- },
- "barrier/cattle_grid": {
- "geometry": [
- "vertex"
- ],
- "tags": {
- "barrier": "cattle_grid"
- },
- "name": "Cattle Grid"
- },
- "barrier/city_wall": {
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "barrier": "city_wall"
- },
- "name": "City Wall"
- },
- "barrier/cycle_barrier": {
- "fields": [
- "access"
- ],
- "geometry": [
- "vertex"
- ],
- "tags": {
- "barrier": "cycle_barrier"
- },
- "name": "Cycle Barrier"
- },
- "barrier/ditch": {
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "barrier": "ditch"
- },
- "name": "Ditch"
- },
- "barrier/entrance": {
- "icon": "entrance",
- "geometry": [
- "vertex"
- ],
- "tags": {
- "barrier": "entrance"
- },
- "name": "Entrance",
- "searchable": false
- },
- "barrier/fence": {
- "geometry": [
- "line"
- ],
- "tags": {
- "barrier": "fence"
- },
- "name": "Fence"
- },
- "barrier/gate": {
- "fields": [
- "access"
- ],
- "geometry": [
- "point",
- "vertex",
- "line"
- ],
- "tags": {
- "barrier": "gate"
- },
- "name": "Gate"
- },
- "barrier/hedge": {
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "barrier": "hedge"
- },
- "name": "Hedge"
- },
- "barrier/kissing_gate": {
- "fields": [
- "access"
- ],
- "geometry": [
- "vertex"
- ],
- "tags": {
- "barrier": "kissing_gate"
- },
- "name": "Kissing Gate"
- },
- "barrier/lift_gate": {
- "fields": [
- "access"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "barrier": "lift_gate"
- },
- "name": "Lift Gate"
- },
- "barrier/retaining_wall": {
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "barrier": "retaining_wall"
- },
- "name": "Retaining Wall"
- },
- "barrier/stile": {
- "fields": [
- "access"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "barrier": "stile"
- },
- "name": "Stile"
- },
- "barrier/toll_booth": {
- "fields": [
- "access"
- ],
- "geometry": [
- "vertex"
- ],
- "tags": {
- "barrier": "toll_booth"
- },
- "name": "Toll Booth"
- },
- "barrier/wall": {
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "barrier": "wall"
- },
- "name": "Wall"
- },
- "boundary/administrative": {
- "name": "Administrative Boundary",
- "geometry": [
- "line"
- ],
- "tags": {
- "boundary": "administrative"
- },
- "fields": [
- "admin_level"
- ]
- },
- "building": {
- "icon": "building",
- "fields": [
- "building",
- "levels",
- "address"
- ],
- "geometry": [
- "area"
- ],
- "tags": {
- "building": "*"
- },
- "terms": [],
- "name": "Building"
- },
- "building/apartments": {
- "icon": "commercial",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "apartments"
- },
- "name": "Apartments"
- },
- "building/barn": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "barn"
- },
- "name": "Barn"
- },
- "building/bunker": {
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "bunker"
- },
- "name": "Bunker",
- "searchable": false
- },
- "building/cabin": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "cabin"
- },
- "name": "Cabin"
- },
- "building/cathedral": {
- "icon": "place-of-worship",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "cathedral"
- },
- "name": "Cathedral"
- },
- "building/chapel": {
- "icon": "place-of-worship",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "chapel"
- },
- "name": "Chapel"
- },
- "building/church": {
- "icon": "place-of-worship",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "church"
- },
- "name": "Church"
- },
- "building/commercial": {
- "icon": "commercial",
- "fields": [
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "commercial"
- },
- "name": "Commercial Building"
- },
- "building/construction": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "construction"
- },
- "name": "Building Under Construction"
- },
- "building/detached": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "detached"
- },
- "name": "Detached Home"
- },
- "building/dormitory": {
- "icon": "building",
- "fields": [
- "address",
- "levels",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "dormitory"
- },
- "name": "Dormitory"
- },
- "building/entrance": {
- "icon": "entrance",
- "geometry": [
- "vertex"
- ],
- "tags": {
- "building": "entrance"
- },
- "name": "Entrance/Exit",
- "searchable": false
- },
- "building/garage": {
- "fields": [
- "capacity"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "garage"
- },
- "name": "Garage",
- "icon": "warehouse"
- },
- "building/garages": {
- "icon": "warehouse",
- "fields": [
- "capacity"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "garages"
- },
- "name": "Garages"
- },
- "building/greenhouse": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "greenhouse"
- },
- "name": "Greenhouse"
- },
- "building/hospital": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "hospital"
- },
- "name": "Hospital Building"
- },
- "building/hotel": {
- "icon": "building",
- "fields": [
- "address",
- "levels",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "hotel"
- },
- "name": "Hotel Building"
- },
- "building/house": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "building": "house"
- },
- "name": "House"
- },
- "building/hut": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "hut"
- },
- "name": "Hut"
- },
- "building/industrial": {
- "icon": "industrial",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "industrial"
- },
- "name": "Industrial Building"
- },
- "building/public": {
- "icon": "building",
- "fields": [
- "address",
- "levels",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "public"
- },
- "name": "Public Building"
- },
- "building/residential": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "residential"
- },
- "name": "Residential Building"
- },
- "building/retail": {
- "icon": "building",
- "fields": [
- "address",
- "levels",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "retail"
- },
- "name": "Retail Building"
- },
- "building/roof": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "roof"
- },
- "name": "Roof"
- },
- "building/school": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "school"
- },
- "name": "School Building"
- },
- "building/shed": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "shed"
- },
- "name": "Shed"
- },
- "building/stable": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "stable"
- },
- "name": "Stable"
- },
- "building/static_caravan": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "static_caravan"
- },
- "name": "Static Mobile Home"
- },
- "building/terrace": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "terrace"
- },
- "name": "Row Houses"
- },
- "building/train_station": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "train_station"
- },
- "name": "Train Station",
- "searchable": false
- },
- "building/university": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "university"
- },
- "name": "University Building"
- },
- "building/warehouse": {
- "icon": "building",
- "fields": [
- "address",
- "levels"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "building": "warehouse"
- },
- "name": "Warehouse"
- },
- "craft/basket_maker": {
- "name": "Basket Maker",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "basket",
- "basketry",
- "basket maker",
- "basket weaver"
- ],
- "tags": {
- "craft": "basket_maker"
- },
- "icon": "art-gallery",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/beekeeper": {
- "name": "Beekeeper",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "bees",
- "beekeeper",
- "bee box"
- ],
- "tags": {
- "craft": "beekeeper"
- },
- "icon": "farm",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/blacksmith": {
- "name": "Blacksmith",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "blacksmith"
- ],
- "tags": {
- "craft": "blacksmith"
- },
- "icon": "farm",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/boatbuilder": {
- "name": "Boat Builder",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "boat builder"
- ],
- "tags": {
- "craft": "boatbuilder"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/bookbinder": {
- "name": "Bookbinder",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "bookbinder",
- "book repair"
- ],
- "tags": {
- "craft": "bookbinder"
- },
- "icon": "library",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/brewery": {
- "name": "Brewery",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "brewery"
- ],
- "tags": {
- "craft": "brewery"
- },
- "icon": "beer",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/carpenter": {
- "name": "Carpenter",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "carpenter",
- "woodworker"
- ],
- "tags": {
- "craft": "carpenter"
- },
- "icon": "logging",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/carpet_layer": {
- "name": "Carpet Layer",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "carpet layer"
- ],
- "tags": {
- "craft": "carpet_layer"
- },
- "icon": "square",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/caterer": {
- "name": "Caterer",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "Caterer",
- "Catering"
- ],
- "tags": {
- "craft": "caterer"
- },
- "icon": "bakery",
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/clockmaker": {
- "name": "Clockmaker",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "clock",
- "clockmaker",
- "clock repair"
- ],
- "tags": {
- "craft": "clockmaker"
- },
- "icon": "circle-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/confectionary": {
- "name": "Confectionary",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "confectionary",
- "sweets",
- "candy"
- ],
- "tags": {
- "craft": "confectionary"
- },
- "icon": "bakery",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/dressmaker": {
- "name": "Dressmaker",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "dress",
- "dressmaker"
- ],
- "tags": {
- "craft": "dressmaker"
- },
- "icon": "clothing-store",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/electrician": {
- "name": "Electrician",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "electrician"
- ],
- "tags": {
- "craft": "electrician"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/gardener": {
- "name": "Gardener",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "gardener",
- "landscaper",
- "grounds keeper"
- ],
- "tags": {
- "craft": "gardener"
- },
- "icon": "garden",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/glaziery": {
- "name": "Glaziery",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "glass",
- "glass foundry",
- "stained-glass",
- "window"
- ],
- "tags": {
- "craft": "glaziery"
- },
- "icon": "fire-station",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/handicraft": {
- "name": "Handicraft",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "handicraft"
- ],
- "tags": {
- "craft": "handicraft"
- },
- "icon": "art-gallery",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/hvac": {
- "name": "HVAC",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "heating",
- "ventilating",
- "air-conditioning",
- "air conditioning"
- ],
- "tags": {
- "craft": "hvac"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/insulator": {
- "name": "Insulator",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "insulation",
- "insulator"
- ],
- "tags": {
- "craft": "insulation"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/jeweler": {
- "name": "Jeweler",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "jeweler",
- "gem",
- "diamond"
- ],
- "tags": {
- "craft": "jeweler"
- },
- "icon": "marker-stroked",
- "searchable": false,
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/key_cutter": {
- "name": "Key Cutter",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "key",
- "key cutter"
- ],
- "tags": {
- "craft": "key_cutter"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/locksmith": {
- "name": "Locksmith",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "locksmith",
- "lock"
- ],
- "tags": {
- "craft": "locksmith"
- },
- "icon": "marker-stroked",
- "searchable": false,
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/metal_construction": {
- "name": "Metal Construction",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "metal construction"
- ],
- "tags": {
- "craft": "metal_construction"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/optician": {
- "name": "Optician",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "glasses",
- "optician"
- ],
- "tags": {
- "craft": "optician"
- },
- "icon": "marker-stroked",
- "searchable": false,
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/painter": {
- "name": "Painter",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "painter"
- ],
- "tags": {
- "craft": "painter"
- },
- "icon": "art-gallery",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/photographer": {
- "name": "Photographer",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "photographer"
- ],
- "tags": {
- "craft": "photographer"
- },
- "icon": "camera",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/photographic_laboratory": {
- "name": "Photographic Laboratory",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "photographic laboratory",
- "film developer"
- ],
- "tags": {
- "craft": "photographic_laboratory"
- },
- "icon": "camera",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/plasterer": {
- "name": "Plasterer",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "plasterer"
- ],
- "tags": {
- "craft": "plasterer"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/plumber": {
- "name": "Plumber",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "pumber"
- ],
- "tags": {
- "craft": "plumber"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/pottery": {
- "name": "Pottery",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "pottery",
- "potter"
- ],
- "tags": {
- "craft": "pottery"
- },
- "icon": "art-gallery",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/rigger": {
- "name": "Rigger",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "rigger"
- ],
- "tags": {
- "craft": "rigger"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/roofer": {
- "name": "Roofer",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "roofer"
- ],
- "tags": {
- "craft": "roofer"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/saddler": {
- "name": "Saddler",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "saddler"
- ],
- "tags": {
- "craft": "saddler"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/sailmaker": {
- "name": "Sailmaker",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "sailmaker"
- ],
- "tags": {
- "craft": "sailmaker"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/sawmill": {
- "name": "Sawmill",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "sawmill",
- "lumber"
- ],
- "tags": {
- "craft": "sawmill"
- },
- "icon": "park",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/scaffolder": {
- "name": "Scaffolder",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "scaffolder"
- ],
- "tags": {
- "craft": "scaffolder"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/sculpter": {
- "name": "Sculpter",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "sculpter"
- ],
- "tags": {
- "craft": "sculpter"
- },
- "icon": "art-gallery",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/shoemaker": {
- "name": "Shoemaker",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "shoe repair",
- "shoemaker"
- ],
- "tags": {
- "craft": "shoemaker"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/stonemason": {
- "name": "Stonemason",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "stonemason",
- "masonry"
- ],
- "tags": {
- "craft": "stonemason"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/sweep": {
- "name": "Chimney Sweep",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "sweep",
- "chimney sweep"
- ],
- "tags": {
- "craft": "sweep"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/tailor": {
- "name": "Tailor",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "tailor",
- "clothes"
- ],
- "tags": {
- "craft": "tailor"
- },
- "icon": "clothing-store",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ],
- "searchable": false
- },
- "craft/tiler": {
- "name": "Tiler",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "tiler"
- ],
- "tags": {
- "craft": "tiler"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/tinsmith": {
- "name": "Tinsmith",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "tinsmith"
- ],
- "tags": {
- "craft": "tinsmith"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/upholsterer": {
- "name": "Upholsterer",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "upholsterer"
- ],
- "tags": {
- "craft": "upholsterer"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/watchmaker": {
- "name": "Watchmaker",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "watch",
- "watchmaker",
- "watch repair"
- ],
- "tags": {
- "craft": "watchmaker"
- },
- "icon": "circle-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "craft/window_construction": {
- "name": "Window Construction",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "window",
- "window maker",
- "window construction"
- ],
- "tags": {
- "craft": "window_construction"
- },
- "icon": "marker-stroked",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "embankment": {
- "geometry": [
- "line"
- ],
- "tags": {
- "embankment": "yes"
- },
- "name": "Embankment",
- "matchScore": 0.2
- },
- "emergency/ambulance_station": {
- "fields": [
- "operator"
- ],
- "geometry": [
- "area",
- "point",
- "vertex"
- ],
- "tags": {
- "emergency": "ambulance_station"
- },
- "name": "Ambulance Station"
- },
- "emergency/fire_hydrant": {
- "fields": [
- "fire_hydrant/type"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "emergency": "fire_hydrant"
- },
- "name": "Fire Hydrant"
- },
- "emergency/phone": {
- "icon": "emergency-telephone",
- "fields": [
- "operator"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "emergency": "phone"
- },
- "name": "Emergency Phone"
- },
- "entrance": {
- "icon": "entrance",
- "geometry": [
- "vertex"
- ],
- "tags": {
- "entrance": "*"
- },
- "fields": [
- "entrance",
- "access_simple",
- "address"
- ],
- "name": "Entrance/Exit"
- },
- "footway/crossing": {
- "fields": [
- "crossing",
- "access",
- "surface",
- "sloped_curb",
- "tactile_paving"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "footway",
- "footway": "crossing"
- },
- "terms": [],
- "name": "Crossing"
- },
- "footway/crosswalk": {
- "fields": [
- "crossing",
- "access",
- "surface",
- "sloped_curb",
- "tactile_paving"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "footway",
- "footway": "crossing",
- "crossing": "zebra"
- },
- "terms": [
- "crosswalk",
- "zebra crossing"
- ],
- "name": "Crosswalk"
- },
- "footway/sidewalk": {
- "fields": [
- "surface",
- "lit",
- "width",
- "structure",
- "access"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "footway",
- "footway": "sidewalk"
- },
- "terms": [],
- "name": "Sidewalk"
- },
- "ford": {
- "geometry": [
- "vertex"
- ],
- "tags": {
- "ford": "yes"
- },
- "name": "Ford"
- },
- "golf/bunker": {
- "icon": "golf",
- "geometry": [
- "area"
- ],
- "tags": {
- "golf": "bunker",
- "natural": "sand"
- },
- "terms": [
- "hazard",
- "bunker"
- ],
- "name": "Sand Trap"
- },
- "golf/fairway": {
- "icon": "golf",
- "geometry": [
- "area"
- ],
- "tags": {
- "golf": "fairway",
- "landuse": "grass"
- },
- "name": "Fairway"
- },
- "golf/green": {
- "icon": "golf",
- "geometry": [
- "area"
- ],
- "tags": {
- "golf": "green",
- "landuse": "grass",
- "leisure": "pitch",
- "sport": "golf"
- },
- "terms": [
- "putting green"
- ],
- "name": "Putting Green"
- },
- "golf/hole": {
- "icon": "golf",
- "fields": [
- "golf_hole",
- "par",
- "handicap"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "golf": "hole"
- },
- "name": "Golf Hole"
- },
- "golf/lateral_water_hazard": {
- "icon": "golf",
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "golf": "lateral_water_hazard",
- "natural": "water"
- },
- "name": "Lateral Water Hazard"
- },
- "golf/rough": {
- "icon": "golf",
- "geometry": [
- "area"
- ],
- "tags": {
- "golf": "rough",
- "landuse": "grass"
- },
- "name": "Rough"
- },
- "golf/tee": {
- "icon": "golf",
- "geometry": [
- "area"
- ],
- "tags": {
- "golf": "tee",
- "landuse": "grass"
- },
- "terms": [
- "teeing ground"
- ],
- "name": "Tee Box"
- },
- "golf/water_hazard": {
- "icon": "golf",
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "golf": "water_hazard",
- "natural": "water"
- },
- "name": "Water Hazard"
- },
- "highway": {
- "fields": [
- "highway"
- ],
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "highway": "*"
- },
- "name": "Highway"
- },
- "highway/bridleway": {
- "fields": [
- "surface",
- "width",
- "structure",
- "access"
- ],
- "icon": "highway-bridleway",
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "bridleway"
- },
- "terms": [
- "bridleway",
- "equestrian trail",
- "horse riding path",
- "bridle road",
- "horse trail"
- ],
- "name": "Bridle Path"
- },
- "highway/bus_stop": {
- "icon": "bus",
- "fields": [
- "operator",
- "shelter"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "highway": "bus_stop"
- },
- "terms": [],
- "name": "Bus Stop"
- },
- "highway/crossing": {
- "fields": [
- "crossing",
- "sloped_curb",
- "tactile_paving"
- ],
- "geometry": [
- "vertex"
- ],
- "tags": {
- "highway": "crossing"
- },
- "terms": [],
- "name": "Crossing"
- },
- "highway/crosswalk": {
- "fields": [
- "crossing",
- "sloped_curb",
- "tactile_paving"
- ],
- "geometry": [
- "vertex"
- ],
- "tags": {
- "highway": "crossing",
- "crossing": "zebra"
- },
- "terms": [
- "crosswalk",
- "zebra crossing"
- ],
- "name": "Crosswalk"
- },
- "highway/cycleway": {
- "icon": "highway-cycleway",
- "fields": [
- "surface",
- "lit",
- "width",
- "oneway",
- "structure",
- "access"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "cycleway"
- },
- "terms": [],
- "name": "Cycle Path"
- },
- "highway/footway": {
- "icon": "highway-footway",
- "fields": [
- "surface",
- "lit",
- "width",
- "structure",
- "access"
- ],
- "geometry": [
- "line",
- "area"
- ],
- "terms": [
- "beaten path",
- "boulevard",
- "clearing",
- "course",
- "cut*",
- "drag*",
- "footpath",
- "highway",
- "lane",
- "line",
- "orbit",
- "passage",
- "pathway",
- "rail",
- "rails",
- "road",
- "roadway",
- "route",
- "street",
- "thoroughfare",
- "trackway",
- "trail",
- "trajectory",
- "walk"
- ],
- "tags": {
- "highway": "footway"
- },
- "name": "Foot Path"
- },
- "highway/living_street": {
- "icon": "highway-living-street",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "living_street"
- },
- "name": "Living Street"
- },
- "highway/mini_roundabout": {
- "geometry": [
- "vertex"
- ],
- "tags": {
- "highway": "mini_roundabout"
- },
- "fields": [
- "clock_direction"
- ],
- "name": "Mini-Roundabout"
- },
- "highway/motorway": {
- "icon": "highway-motorway",
- "fields": [
- "oneway_yes",
- "maxspeed",
- "structure",
- "access",
- "lanes",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "motorway"
- },
- "terms": [],
- "name": "Motorway"
- },
- "highway/motorway_junction": {
- "geometry": [
- "vertex"
- ],
- "tags": {
- "highway": "motorway_junction"
- },
- "fields": [
- "ref"
- ],
- "name": "Motorway Junction / Exit"
- },
- "highway/motorway_link": {
- "icon": "highway-motorway-link",
- "fields": [
- "oneway_yes",
- "maxspeed",
- "structure",
- "access",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "motorway_link"
- },
- "terms": [
- "ramp",
- "on ramp",
- "off ramp"
- ],
- "name": "Motorway Link"
- },
- "highway/path": {
- "icon": "highway-path",
- "fields": [
- "surface",
- "width",
- "structure",
- "access",
- "incline",
- "sac_scale",
- "trail_visibility",
- "mtb/scale",
- "mtb/scale/uphill",
- "mtb/scale/imba",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "path"
- },
- "terms": [],
- "name": "Path"
- },
- "highway/pedestrian": {
- "fields": [
- "surface",
- "lit",
- "width",
- "oneway",
- "structure",
- "access"
- ],
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "highway": "pedestrian"
- },
- "terms": [],
- "name": "Pedestrian"
- },
- "highway/primary": {
- "icon": "highway-primary",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "lanes",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "primary"
- },
- "terms": [],
- "name": "Primary Road"
- },
- "highway/primary_link": {
- "icon": "highway-primary-link",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "primary_link"
- },
- "terms": [
- "ramp",
- "on ramp",
- "off ramp"
- ],
- "name": "Primary Link"
- },
- "highway/residential": {
- "icon": "highway-residential",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "residential"
- },
- "terms": [],
- "name": "Residential Road"
- },
- "highway/rest_area": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "highway": "rest_area"
- },
- "terms": [
- "rest stop",
- "turnout",
- "lay-by"
- ],
- "name": "Rest Area"
- },
- "highway/road": {
- "icon": "highway-road",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "road"
- },
- "terms": [],
- "name": "Unknown Road"
- },
- "highway/secondary": {
- "icon": "highway-secondary",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "lanes",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "secondary"
- },
- "terms": [],
- "name": "Secondary Road"
- },
- "highway/secondary_link": {
- "icon": "highway-secondary-link",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "secondary_link"
- },
- "terms": [
- "ramp",
- "on ramp",
- "off ramp"
- ],
- "name": "Secondary Link"
- },
- "highway/service": {
- "icon": "highway-service",
- "fields": [
- "service",
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "service"
- },
- "terms": [],
- "name": "Service Road"
- },
- "highway/service/alley": {
- "icon": "highway-service",
- "fields": [
- "oneway",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "service",
- "service": "alley"
- },
- "name": "Alley"
- },
- "highway/service/drive-through": {
- "icon": "highway-service",
- "fields": [
- "oneway",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "service",
- "service": "drive-through"
- },
- "name": "Drive-Through"
- },
- "highway/service/driveway": {
- "icon": "highway-service",
- "fields": [
- "oneway",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "service",
- "service": "driveway"
- },
- "name": "Driveway"
- },
- "highway/service/emergency_access": {
- "icon": "highway-service",
- "fields": [
- "oneway",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "service",
- "service": "emergency_access"
- },
- "name": "Emergency Access"
- },
- "highway/service/parking_aisle": {
- "icon": "highway-service",
- "fields": [
- "oneway",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "service",
- "service": "parking_aisle"
- },
- "name": "Parking Aisle"
- },
- "highway/services": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "highway": "services"
- },
- "terms": [
- "services",
- "travel plaza",
- "service station"
- ],
- "name": "Service Area"
- },
- "highway/steps": {
- "fields": [
- "surface",
- "lit",
- "width",
- "access"
- ],
- "icon": "highway-steps",
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "steps"
- },
- "terms": [
- "stairs",
- "staircase"
- ],
- "name": "Steps"
- },
- "highway/stop": {
- "geometry": [
- "vertex"
- ],
- "tags": {
- "highway": "stop"
- },
- "terms": [
- "stop sign"
- ],
- "name": "Stop Sign"
- },
- "highway/street_lamp": {
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "highway": "street_lamp"
- },
- "fields": [
- "lamp_type",
- "ref"
- ],
- "terms": [
- "streetlight",
- "street light",
- "lamp",
- "light",
- "gaslight"
- ],
- "name": "Street Lamp"
- },
- "highway/tertiary": {
- "icon": "highway-tertiary",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "lanes",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "tertiary"
- },
- "terms": [],
- "name": "Tertiary Road"
- },
- "highway/tertiary_link": {
- "icon": "highway-tertiary-link",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "tertiary_link"
- },
- "terms": [
- "ramp",
- "on ramp",
- "off ramp"
- ],
- "name": "Tertiary Link"
- },
- "highway/track": {
- "icon": "highway-track",
- "fields": [
- "surface",
- "width",
- "structure",
- "access",
- "incline",
- "tracktype",
- "smoothness",
- "mtb/scale",
- "mtb/scale/uphill",
- "mtb/scale/imba"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "track"
- },
- "terms": [],
- "name": "Track"
- },
- "highway/traffic_signals": {
- "geometry": [
- "vertex"
- ],
- "tags": {
- "highway": "traffic_signals"
- },
- "terms": [
- "light",
- "stoplight",
- "traffic light"
- ],
- "name": "Traffic Signals"
- },
- "highway/trunk": {
- "icon": "highway-trunk",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "lanes",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "trunk"
- },
- "terms": [],
- "name": "Trunk Road"
- },
- "highway/trunk_link": {
- "icon": "highway-trunk-link",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface",
- "ref"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "trunk_link"
- },
- "terms": [
- "ramp",
- "on ramp",
- "off ramp"
- ],
- "name": "Trunk Link"
- },
- "highway/turning_circle": {
- "icon": "circle",
- "geometry": [
- "vertex"
- ],
- "tags": {
- "highway": "turning_circle"
- },
- "terms": [],
- "name": "Turning Circle"
- },
- "highway/unclassified": {
- "icon": "highway-unclassified",
- "fields": [
- "oneway",
- "maxspeed",
- "structure",
- "access",
- "surface"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "highway": "unclassified"
- },
- "terms": [],
- "name": "Unclassified Road"
- },
- "historic": {
- "fields": [
- "historic"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "historic": "*"
- },
- "name": "Historic Site"
- },
- "historic/archaeological_site": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "historic": "archaeological_site"
- },
- "name": "Archaeological Site"
- },
- "historic/boundary_stone": {
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "historic": "boundary_stone"
- },
- "name": "Boundary Stone"
- },
- "historic/castle": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "historic": "castle"
- },
- "name": "Castle"
- },
- "historic/memorial": {
- "icon": "monument",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "historic": "memorial"
- },
- "name": "Memorial"
- },
- "historic/monument": {
- "icon": "monument",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "historic": "monument"
- },
- "name": "Monument"
- },
- "historic/ruins": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "historic": "ruins"
- },
- "name": "Ruins"
- },
- "historic/wayside_cross": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "historic": "wayside_cross"
- },
- "name": "Wayside Cross"
- },
- "historic/wayside_shrine": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "historic": "wayside_shrine"
- },
- "name": "Wayside Shrine"
- },
- "landuse": {
- "fields": [
- "landuse"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "landuse": "*"
- },
- "name": "Landuse"
- },
- "landuse/allotments": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "allotments"
- },
- "terms": [],
- "name": "Allotments"
- },
- "landuse/basin": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "basin"
- },
- "terms": [],
- "name": "Basin"
- },
- "landuse/cemetery": {
- "icon": "cemetery",
- "fields": [
- "religion",
- "denomination"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "landuse": "cemetery"
- },
- "terms": [],
- "name": "Cemetery"
- },
- "landuse/churchyard": {
- "fields": [
- "religion",
- "denomination"
- ],
- "geometry": [
- "area"
- ],
- "tags": {
- "landuse": "churchyard"
- },
- "terms": [],
- "name": "Churchyard"
- },
- "landuse/commercial": {
- "icon": "commercial",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "commercial"
- },
- "terms": [],
- "name": "Commercial"
- },
- "landuse/construction": {
- "fields": [
- "construction",
- "operator"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "construction"
- },
- "terms": [],
- "name": "Construction"
- },
- "landuse/farm": {
- "fields": [
- "crop"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "farm"
- },
- "terms": [],
- "name": "Farm",
- "icon": "farm"
- },
- "landuse/farmland": {
- "fields": [
- "crop"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "farmland"
- },
- "terms": [],
- "name": "Farmland",
- "icon": "farm",
- "searchable": false
- },
- "landuse/farmyard": {
- "fields": [
- "crop"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "farmyard"
- },
- "terms": [],
- "name": "Farmyard",
- "icon": "farm"
- },
- "landuse/forest": {
- "fields": [
- "wood"
- ],
- "icon": "park2",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "forest"
- },
- "terms": [],
- "name": "Forest"
- },
- "landuse/grass": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "grass"
- },
- "terms": [],
- "name": "Grass"
- },
- "landuse/industrial": {
- "icon": "industrial",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "industrial"
- },
- "terms": [],
- "name": "Industrial"
- },
- "landuse/landfill": {
- "geometry": [
- "area"
- ],
- "tags": {
- "landuse": "landfill"
- },
- "terms": [
- "dump"
- ],
- "name": "Landfill"
- },
- "landuse/meadow": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "meadow"
- },
- "terms": [],
- "name": "Meadow"
- },
- "landuse/military": {
- "geometry": [
- "area"
- ],
- "tags": {
- "landuse": "military"
- },
- "terms": [],
- "name": "Military"
- },
- "landuse/orchard": {
- "fields": [
- "trees"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "orchard"
- },
- "terms": [],
- "name": "Orchard",
- "icon": "park2"
- },
- "landuse/quarry": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "quarry"
- },
- "terms": [],
- "name": "Quarry"
- },
- "landuse/residential": {
- "icon": "building",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "residential"
- },
- "terms": [],
- "name": "Residential"
- },
- "landuse/retail": {
- "icon": "shop",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "retail"
- },
- "name": "Retail"
- },
- "landuse/vineyard": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "landuse": "vineyard"
- },
- "terms": [],
- "name": "Vineyard"
- },
- "leisure": {
- "fields": [
- "leisure"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "leisure": "*"
- },
- "name": "Leisure"
- },
- "leisure/common": {
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "open space"
- ],
- "tags": {
- "leisure": "common"
- },
- "name": "Common"
- },
- "leisure/dog_park": {
- "geometry": [
- "point",
- "area"
- ],
- "terms": [],
- "tags": {
- "leisure": "dog_park"
- },
- "name": "Dog Park",
- "icon": "dog-park"
- },
- "leisure/firepit": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "firepit"
- },
- "terms": [
- "fireplace",
- "campfire"
- ],
- "name": "Firepit"
- },
- "leisure/garden": {
- "icon": "garden",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "leisure": "garden"
- },
- "name": "Garden"
- },
- "leisure/golf_course": {
- "icon": "golf",
- "fields": [
- "operator",
- "address"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "golf_course"
- },
- "terms": [
- "links"
- ],
- "name": "Golf Course"
- },
- "leisure/ice_rink": {
- "icon": "pitch",
- "fields": [
- "building_area",
- "seasonal",
- "sport_ice"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "hockey",
- "skating",
- "curling"
- ],
- "tags": {
- "leisure": "ice_rink"
- },
- "name": "Ice Rink"
- },
- "leisure/marina": {
- "icon": "harbor",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "leisure": "marina"
- },
- "name": "Marina"
- },
- "leisure/park": {
- "icon": "park",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "esplanade",
- "estate",
- "forest",
- "garden",
- "grass",
- "green",
- "grounds",
- "lawn",
- "lot",
- "meadow",
- "parkland",
- "place",
- "playground",
- "plaza",
- "pleasure garden",
- "recreation area",
- "square",
- "tract",
- "village green",
- "woodland"
- ],
- "tags": {
- "leisure": "park"
- },
- "name": "Park"
- },
- "leisure/picnic_table": {
- "geometry": [
- "point"
- ],
- "tags": {
- "leisure": "picnic_table"
- },
- "terms": [
- "bench",
- "table"
- ],
- "name": "Picnic Table"
- },
- "leisure/pitch": {
- "icon": "pitch",
- "fields": [
- "sport",
- "surface",
- "lit"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "pitch"
- },
- "terms": [],
- "name": "Sport Pitch"
- },
- "leisure/pitch/american_football": {
- "icon": "america-football",
- "fields": [
- "surface",
- "lit"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "pitch",
- "sport": "american_football"
- },
- "terms": [],
- "name": "American Football Field"
- },
- "leisure/pitch/baseball": {
- "icon": "baseball",
- "fields": [
- "lit"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "pitch",
- "sport": "baseball"
- },
- "terms": [],
- "name": "Baseball Diamond"
- },
- "leisure/pitch/basketball": {
- "icon": "basketball",
- "fields": [
- "surface",
- "hoops",
- "lit"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "pitch",
- "sport": "basketball"
- },
- "terms": [],
- "name": "Basketball Court"
- },
- "leisure/pitch/skateboard": {
- "icon": "pitch",
- "fields": [
- "surface",
- "lit"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "pitch",
- "sport": "skateboard"
- },
- "terms": [],
- "name": "Skate Park"
- },
- "leisure/pitch/soccer": {
- "icon": "soccer",
- "fields": [
- "surface",
- "lit"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "pitch",
- "sport": "soccer"
- },
- "terms": [],
- "name": "Soccer Field"
- },
- "leisure/pitch/tennis": {
- "icon": "tennis",
- "fields": [
- "surface",
- "lit"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "pitch",
- "sport": "tennis"
- },
- "terms": [],
- "name": "Tennis Court"
- },
- "leisure/pitch/volleyball": {
- "icon": "pitch",
- "fields": [
- "surface",
- "lit"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "pitch",
- "sport": "volleyball"
- },
- "terms": [],
- "name": "Volleyball Court"
- },
- "leisure/playground": {
- "icon": "playground",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "playground"
- },
- "name": "Playground",
- "terms": [
- "jungle gym",
- "play area"
- ]
- },
- "leisure/slipway": {
- "geometry": [
- "point",
- "line"
- ],
- "tags": {
- "leisure": "slipway"
- },
- "name": "Slipway"
- },
- "leisure/sports_center": {
- "icon": "pitch",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "sports_centre"
- },
- "terms": [
- "gym"
- ],
- "fields": [
- "sport"
- ],
- "name": "Sports Center / Gym"
- },
- "leisure/stadium": {
- "icon": "pitch",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "leisure": "stadium"
- },
- "fields": [
- "sport"
- ],
- "name": "Stadium"
- },
- "leisure/swimming_pool": {
- "fields": [
- "access_simple"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "leisure": "swimming_pool"
- },
- "icon": "swimming",
- "name": "Swimming Pool"
- },
- "leisure/track": {
- "icon": "pitch",
- "fields": [
- "surface",
- "lit",
- "width"
- ],
- "geometry": [
- "point",
- "line",
- "area"
- ],
- "tags": {
- "leisure": "track"
- },
- "name": "Race Track"
- },
- "line": {
- "name": "Line",
- "tags": {},
- "geometry": [
- "line"
- ],
- "matchScore": 0.1
- },
- "man_made": {
- "fields": [
- "man_made"
- ],
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "man_made": "*"
- },
- "name": "Man Made"
- },
- "man_made/breakwater": {
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "man_made": "breakwater"
- },
- "name": "Breakwater"
- },
- "man_made/cutline": {
- "geometry": [
- "line"
- ],
- "tags": {
- "man_made": "cutline"
- },
- "name": "Cut line"
- },
- "man_made/embankment": {
- "geometry": [
- "line"
- ],
- "tags": {
- "man_made": "embankment"
- },
- "name": "Embankment",
- "searchable": false
- },
- "man_made/flagpole": {
- "geometry": [
- "point"
- ],
- "tags": {
- "man_made": "flagpole"
- },
- "name": "Flagpole",
- "icon": "embassy"
- },
- "man_made/lighthouse": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "man_made": "lighthouse"
- },
- "name": "Lighthouse",
- "icon": "lighthouse"
- },
- "man_made/observation": {
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "lookout tower",
- "fire tower"
- ],
- "tags": {
- "man_made": "tower",
- "tower:type": "observation"
- },
- "name": "Observation Tower"
- },
- "man_made/pier": {
- "geometry": [
- "line",
- "area"
- ],
- "tags": {
- "man_made": "pier"
- },
- "name": "Pier"
- },
- "man_made/pipeline": {
- "geometry": [
- "line"
- ],
- "tags": {
- "man_made": "pipeline"
- },
- "fields": [
- "location",
- "operator"
- ],
- "name": "Pipeline",
- "icon": "pipeline"
- },
- "man_made/survey_point": {
- "icon": "monument",
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "man_made": "survey_point"
- },
- "fields": [
- "ref"
- ],
- "name": "Survey Point"
- },
- "man_made/tower": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "man_made": "tower"
- },
- "fields": [
- "towertype"
- ],
- "name": "Tower"
- },
- "man_made/wastewater_plant": {
- "icon": "water",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "man_made": "wastewater_plant"
- },
- "name": "Wastewater Plant",
- "terms": [
- "sewage works",
- "sewage treatment plant",
- "water treatment plant",
- "reclamation plant"
- ]
- },
- "man_made/water_tower": {
- "icon": "water",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "man_made": "water_tower"
- },
- "name": "Water Tower"
- },
- "man_made/water_well": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "man_made": "water_well"
- },
- "name": "Water well"
- },
- "man_made/water_works": {
- "icon": "water",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "man_made": "water_works"
- },
- "name": "Water Works"
- },
- "military/airfield": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "military": "airfield"
- },
- "terms": [],
- "name": "Airfield",
- "icon": "airfield"
- },
- "military/barracks": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "military": "barracks"
- },
- "terms": [],
- "name": "Barracks"
- },
- "military/bunker": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "military": "bunker"
- },
- "terms": [],
- "name": "Bunker"
- },
- "military/range": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "military": "range"
- },
- "terms": [],
- "name": "Military Range"
- },
- "natural": {
- "fields": [
- "natural"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "natural": "*"
- },
- "name": "Natural"
- },
- "natural/bay": {
- "geometry": [
- "point",
- "area"
- ],
- "terms": [],
- "tags": {
- "natural": "bay"
- },
- "name": "Bay"
- },
- "natural/beach": {
- "fields": [
- "surface"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "terms": [],
- "tags": {
- "natural": "beach"
- },
- "name": "Beach"
- },
- "natural/cliff": {
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "terms": [],
- "tags": {
- "natural": "cliff"
- },
- "name": "Cliff"
- },
- "natural/coastline": {
- "geometry": [
- "line"
- ],
- "terms": [
- "shore"
- ],
- "tags": {
- "natural": "coastline"
- },
- "name": "Coastline"
- },
- "natural/fell": {
- "geometry": [
- "area"
- ],
- "terms": [],
- "tags": {
- "natural": "fell"
- },
- "name": "Fell"
- },
- "natural/glacier": {
- "geometry": [
- "area"
- ],
- "terms": [],
- "tags": {
- "natural": "glacier"
- },
- "name": "Glacier"
- },
- "natural/grassland": {
- "geometry": [
- "point",
- "area"
- ],
- "terms": [],
- "tags": {
- "natural": "grassland"
- },
- "name": "Grassland"
- },
- "natural/heath": {
- "geometry": [
- "area"
- ],
- "terms": [],
- "tags": {
- "natural": "heath"
- },
- "name": "Heath"
- },
- "natural/peak": {
- "icon": "triangle",
- "fields": [
- "elevation"
- ],
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "natural": "peak"
- },
- "terms": [
- "acme",
- "aiguille",
- "alp",
- "climax",
- "crest",
- "crown",
- "hill",
- "mount",
- "mountain",
- "pinnacle",
- "summit",
- "tip",
- "top"
- ],
- "name": "Peak"
- },
- "natural/scree": {
- "geometry": [
- "area"
- ],
- "tags": {
- "natural": "scree"
- },
- "terms": [
- "loose rocks"
- ],
- "name": "Scree"
- },
- "natural/scrub": {
- "geometry": [
- "area"
- ],
- "tags": {
- "natural": "scrub"
- },
- "terms": [],
- "name": "Scrub"
- },
- "natural/spring": {
- "geometry": [
- "point",
- "vertex"
- ],
- "terms": [],
- "tags": {
- "natural": "spring"
- },
- "name": "Spring"
- },
- "natural/tree": {
- "fields": [
- "tree_type",
- "denotation"
- ],
- "icon": "park",
- "geometry": [
- "point",
- "vertex"
- ],
- "terms": [],
- "tags": {
- "natural": "tree"
- },
- "name": "Tree"
- },
- "natural/water": {
- "fields": [
- "water"
- ],
- "geometry": [
- "area"
- ],
- "tags": {
- "natural": "water"
- },
- "icon": "water",
- "name": "Water"
- },
- "natural/water/lake": {
- "geometry": [
- "area"
- ],
- "tags": {
- "natural": "water",
- "water": "lake"
- },
- "terms": [
- "lakelet",
- "loch",
- "mere"
- ],
- "icon": "water",
- "name": "Lake"
- },
- "natural/water/pond": {
- "geometry": [
- "area"
- ],
- "tags": {
- "natural": "water",
- "water": "pond"
- },
- "terms": [
- "lakelet",
- "millpond",
- "tarn",
- "pool",
- "mere"
- ],
- "icon": "water",
- "name": "Pond"
- },
- "natural/water/reservoir": {
- "geometry": [
- "area"
- ],
- "tags": {
- "natural": "water",
- "water": "reservoir"
- },
- "icon": "water",
- "name": "Reservoir"
- },
- "natural/wetland": {
- "icon": "wetland",
- "fields": [
- "wetland"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "natural": "wetland"
- },
- "terms": [],
- "name": "Wetland"
- },
- "natural/wood": {
- "fields": [
- "wood"
- ],
- "icon": "park2",
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "natural": "wood"
- },
- "terms": [],
- "name": "Wood"
- },
- "office": {
- "icon": "commercial",
- "fields": [
- "office",
- "address",
- "opening_hours",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "*"
- },
- "terms": [],
- "name": "Office"
- },
- "office/accountant": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "accountant"
- },
- "terms": [],
- "name": "Accountant"
- },
- "office/administrative": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "administrative"
- },
- "terms": [],
- "name": "Administrative Office"
- },
- "office/architect": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "architect"
- },
- "terms": [],
- "name": "Architect"
- },
- "office/company": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "company"
- },
- "terms": [],
- "name": "Company Office"
- },
- "office/educational_institution": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "educational_institution"
- },
- "terms": [],
- "name": "Educational Institution"
- },
- "office/employment_agency": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "employment_agency"
- },
- "terms": [],
- "name": "Employment Agency"
- },
- "office/estate_agent": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "estate_agent"
- },
- "terms": [],
- "name": "Real Estate Office"
- },
- "office/financial": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "financial"
- },
- "terms": [],
- "name": "Financial Office"
- },
- "office/government": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "government"
- },
- "terms": [],
- "name": "Government Office"
- },
- "office/insurance": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "insurance"
- },
- "terms": [],
- "name": "Insurance Office"
- },
- "office/it": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "it"
- },
- "terms": [],
- "name": "IT Office"
- },
- "office/lawyer": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "lawyer"
- },
- "terms": [],
- "name": "Law Office"
- },
- "office/newspaper": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "newspaper"
- },
- "terms": [],
- "name": "Newspaper"
- },
- "office/ngo": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "ngo"
- },
- "terms": [],
- "name": "NGO Office"
- },
- "office/physician": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "physician"
- },
- "terms": [],
- "name": "Physician"
- },
- "office/political_party": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "political_party"
- },
- "terms": [],
- "name": "Political Party"
- },
- "office/research": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "research"
- },
- "terms": [],
- "name": "Research Office"
- },
- "office/telecommunication": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "telecommunication"
- },
- "terms": [],
- "name": "Telecom Office"
- },
- "office/therapist": {
- "icon": "commercial",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "therapist"
- },
- "terms": [],
- "name": "Therapist"
- },
- "office/travel_agent": {
- "icon": "suitcase",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "office": "travel_agent"
- },
- "terms": [],
- "name": "Travel Agency",
- "searchable": false
- },
- "piste": {
- "icon": "skiing",
- "fields": [
- "piste/type",
- "piste/difficulty",
- "piste/grooming",
- "oneway",
- "lit"
- ],
- "geometry": [
- "point",
- "line",
- "area"
- ],
- "terms": [
- "ski",
- "sled",
- "sleigh",
- "snowboard",
- "nordic",
- "downhill",
- "snowmobile"
- ],
- "tags": {
- "piste:type": "*"
- },
- "name": "Piste/Ski Trail"
- },
- "place": {
- "fields": [
- "place"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "place": "*"
- },
- "name": "Place"
- },
- "place/city": {
- "icon": "city",
- "fields": [
- "population"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "place": "city"
- },
- "name": "City"
- },
- "place/hamlet": {
- "icon": "triangle-stroked",
- "fields": [
- "population"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "place": "hamlet"
- },
- "name": "Hamlet"
- },
- "place/island": {
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "archipelago",
- "atoll",
- "bar",
- "cay",
- "isle",
- "islet",
- "key",
- "reef"
- ],
- "tags": {
- "place": "island"
- },
- "name": "Island"
- },
- "place/isolated_dwelling": {
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "place": "isolated_dwelling"
- },
- "name": "Isolated Dwelling"
- },
- "place/locality": {
- "icon": "marker",
- "fields": [
- "population"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "place": "locality"
- },
- "name": "Locality"
- },
- "place/neighbourhood": {
- "icon": "triangle-stroked",
- "fields": [
- "population"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "place": "neighbourhood"
- },
- "terms": [
- "neighbourhood"
- ],
- "name": "Neighborhood"
- },
- "place/suburb": {
- "icon": "triangle-stroked",
- "fields": [
- "population"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "place": "suburb"
- },
- "terms": [
- "Boro",
- "Quarter"
- ],
- "name": "Borough"
- },
- "place/town": {
- "icon": "town",
- "fields": [
- "population"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "place": "town"
- },
- "name": "Town"
- },
- "place/village": {
- "icon": "village",
- "fields": [
- "population"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "place": "village"
- },
- "name": "Village"
- },
- "point": {
- "name": "Point",
- "tags": {},
- "geometry": [
- "point"
- ],
- "matchScore": 0.1
- },
- "power": {
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "power": "*"
- },
- "fields": [
- "power"
- ],
- "name": "Power"
- },
- "power/generator": {
- "name": "Power Generator",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "power": "generator"
- },
- "fields": [
- "generator/source",
- "generator/method",
- "generator/type"
- ]
- },
- "power/line": {
- "geometry": [
- "line"
- ],
- "tags": {
- "power": "line"
- },
- "name": "Power Line",
- "icon": "power-line"
- },
- "power/minor_line": {
- "geometry": [
- "line"
- ],
- "tags": {
- "power": "minor_line"
- },
- "name": "Minor Power Line",
- "icon": "power-line"
- },
- "power/pole": {
- "geometry": [
- "vertex"
- ],
- "tags": {
- "power": "pole"
- },
- "name": "Power Pole"
- },
- "power/sub_station": {
- "fields": [
- "operator",
- "building"
- ],
- "geometry": [
- "point",
- "area"
- ],
- "tags": {
- "power": "sub_station"
- },
- "name": "Substation"
- },
- "power/tower": {
- "geometry": [
- "vertex"
- ],
- "tags": {
- "power": "tower"
- },
- "name": "High-Voltage Tower"
- },
- "power/transformer": {
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "power": "transformer"
- },
- "name": "Transformer"
- },
- "public_transport/platform": {
- "fields": [
- "ref",
- "operator",
- "network",
- "shelter"
- ],
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "public_transport": "platform"
- },
- "name": "Platform"
- },
- "public_transport/stop_position": {
- "icon": "bus",
- "fields": [
- "ref",
- "operator",
- "network"
- ],
- "geometry": [
- "vertex"
- ],
- "tags": {
- "public_transport": "stop_position"
- },
- "name": "Stop Position"
- },
- "railway": {
- "fields": [
- "railway"
- ],
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "railway": "*"
- },
- "name": "Railway"
- },
- "railway/abandoned": {
- "icon": "railway-abandoned",
- "geometry": [
- "line"
- ],
- "tags": {
- "railway": "abandoned"
- },
- "fields": [
- "structure"
- ],
- "terms": [],
- "name": "Abandoned Railway"
- },
- "railway/disused": {
- "icon": "railway-disused",
- "geometry": [
- "line"
- ],
- "tags": {
- "railway": "disused"
- },
- "fields": [
- "structure"
- ],
- "terms": [],
- "name": "Disused Railway"
- },
- "railway/funicular": {
- "geometry": [
- "line"
- ],
- "terms": [
- "venicular",
- "cliff railway",
- "cable car",
- "cable railway",
- "funicular railway"
- ],
- "fields": [
- "structure",
- "gauge"
- ],
- "tags": {
- "railway": "funicular"
- },
- "icon": "railway-rail",
- "name": "Funicular"
- },
- "railway/halt": {
- "icon": "rail",
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "railway": "halt"
- },
- "name": "Railway Halt",
- "terms": [
- "break",
- "interrupt",
- "rest",
- "wait",
- "interruption"
- ]
- },
- "railway/level_crossing": {
- "icon": "cross",
- "geometry": [
- "vertex"
- ],
- "tags": {
- "railway": "level_crossing"
- },
- "terms": [
- "crossing",
- "railroad crossing",
- "railway crossing",
- "grade crossing",
- "road through railroad",
- "train crossing"
- ],
- "name": "Level Crossing"
- },
- "railway/monorail": {
- "icon": "railway-monorail",
- "geometry": [
- "line"
- ],
- "tags": {
- "railway": "monorail"
- },
- "fields": [
- "structure",
- "electrified"
- ],
- "terms": [],
- "name": "Monorail"
- },
- "railway/narrow_gauge": {
- "icon": "railway-rail",
- "geometry": [
- "line"
- ],
- "tags": {
- "railway": "narrow_gauge"
- },
- "fields": [
- "structure",
- "gauge",
- "electrified"
- ],
- "terms": [
- "narrow gauge railway",
- "narrow gauge railroad"
- ],
- "name": "Narrow Gauge Rail"
- },
- "railway/platform": {
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "railway": "platform"
- },
- "name": "Railway Platform"
- },
- "railway/rail": {
- "icon": "railway-rail",
- "geometry": [
- "line"
- ],
- "tags": {
- "railway": "rail"
- },
- "fields": [
- "structure",
- "gauge",
- "electrified"
- ],
- "terms": [],
- "name": "Rail"
- },
- "railway/station": {
- "icon": "rail",
- "fields": [
- "building_area"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "railway": "station"
- },
- "terms": [
- "train station",
- "station"
- ],
- "name": "Railway Station"
- },
- "railway/subway": {
- "icon": "railway-subway",
- "fields": [
- "structure",
- "gauge",
- "electrified"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "railway": "subway"
- },
- "terms": [],
- "name": "Subway"
- },
- "railway/subway_entrance": {
- "icon": "rail-metro",
- "geometry": [
- "point"
- ],
- "tags": {
- "railway": "subway_entrance"
- },
- "terms": [],
- "name": "Subway Entrance"
- },
- "railway/tram": {
- "icon": "railway-light-rail",
- "geometry": [
- "line"
- ],
- "tags": {
- "railway": "tram"
- },
- "fields": [
- "structure",
- "gauge",
- "electrified"
- ],
- "terms": [
- "streetcar"
- ],
- "name": "Tram"
- },
- "relation": {
- "name": "Relation",
- "icon": "relation",
- "tags": {},
- "geometry": [
- "relation"
- ],
- "fields": [
- "relation"
- ]
- },
- "route/ferry": {
- "icon": "ferry",
- "geometry": [
- "line"
- ],
- "tags": {
- "route": "ferry"
- },
- "name": "Ferry Route"
- },
- "shop": {
- "icon": "shop",
- "fields": [
- "shop",
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "*"
- },
- "terms": [],
- "name": "Shop"
- },
- "shop/alcohol": {
- "icon": "alcohol-shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "alcohol"
- },
- "terms": [
- "alcohol"
- ],
- "name": "Liquor Store"
- },
- "shop/art": {
- "icon": "art-gallery",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "art store",
- "art gallery"
- ],
- "tags": {
- "shop": "art"
- },
- "name": "Art Shop"
- },
- "shop/bakery": {
- "icon": "bakery",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "bakery"
- },
- "name": "Bakery"
- },
- "shop/beauty": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "nail spa",
- "spa",
- "salon",
- "tanning"
- ],
- "tags": {
- "shop": "beauty"
- },
- "name": "Beauty Shop"
- },
- "shop/beverages": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "beverages"
- },
- "name": "Beverage Store"
- },
- "shop/bicycle": {
- "icon": "bicycle",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "bicycle"
- },
- "name": "Bicycle Shop"
- },
- "shop/bookmaker": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "bookmaker"
- },
- "name": "Bookmaker"
- },
- "shop/books": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "books"
- },
- "name": "Bookstore"
- },
- "shop/boutique": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "boutique"
- },
- "name": "Boutique"
- },
- "shop/butcher": {
- "icon": "slaughterhouse",
- "fields": [
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [],
- "tags": {
- "shop": "butcher"
- },
- "name": "Butcher"
- },
- "shop/car": {
- "icon": "car",
- "fields": [
- "address",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "car"
- },
- "name": "Car Dealership"
- },
- "shop/car_parts": {
- "icon": "car",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "car_parts"
- },
- "name": "Car Parts Store"
- },
- "shop/car_repair": {
- "icon": "car",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "car_repair"
- },
- "name": "Car Repair Shop"
- },
- "shop/chemist": {
- "icon": "chemist",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "chemist"
- },
- "name": "Chemist"
- },
- "shop/clothes": {
- "icon": "clothing-store",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "clothes"
- },
- "name": "Clothing Store"
- },
- "shop/computer": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "computer"
- },
- "name": "Computer Store"
- },
- "shop/confectionery": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "confectionery"
- },
- "name": "Confectionery"
- },
- "shop/convenience": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "convenience"
- },
- "name": "Convenience Store"
- },
- "shop/deli": {
- "icon": "restaurant",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "deli"
- },
- "name": "Deli"
- },
- "shop/department_store": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "department_store"
- },
- "name": "Department Store"
- },
- "shop/doityourself": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "doityourself"
- },
- "name": "DIY Store"
- },
- "shop/dry_cleaning": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "dry_cleaning"
- },
- "name": "Dry Cleaners"
- },
- "shop/electronics": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "electronics"
- },
- "name": "Electronics Store"
- },
- "shop/farm": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "farm"
- },
- "terms": [
- "farm shop",
- "farm stand"
- ],
- "name": "Produce Stand"
- },
- "shop/fishmonger": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "fishmonger"
- },
- "name": "Fishmonger",
- "searchable": false
- },
- "shop/florist": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "florist"
- },
- "name": "Florist"
- },
- "shop/funeral_directors": {
- "icon": "cemetery",
- "fields": [
- "address",
- "building_area",
- "religion",
- "denomination"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "funeral_directors"
- },
- "terms": [
- "undertaker",
- "funeral parlour",
- "funeral parlor",
- "memorial home"
- ],
- "name": "Funeral Home"
- },
- "shop/furniture": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "furniture"
- },
- "name": "Furniture Store"
- },
- "shop/garden_centre": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "garden centre"
- ],
- "tags": {
- "shop": "garden_centre"
- },
- "name": "Garden Center"
- },
- "shop/gift": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "gift"
- },
- "name": "Gift Shop"
- },
- "shop/greengrocer": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "greengrocer"
- },
- "name": "Greengrocer"
- },
- "shop/hairdresser": {
- "icon": "hairdresser",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "hairdresser"
- },
- "name": "Hairdresser"
- },
- "shop/hardware": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "hardware"
- },
- "name": "Hardware Store"
- },
- "shop/hifi": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "hifi"
- },
- "name": "Hifi Store"
- },
- "shop/jewelry": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "jewelry"
- },
- "name": "Jeweler"
- },
- "shop/kiosk": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "kiosk"
- },
- "name": "Kiosk"
- },
- "shop/laundry": {
- "icon": "laundry",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "laundry"
- },
- "name": "Laundry"
- },
- "shop/locksmith": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "keys"
- ],
- "tags": {
- "shop": "locksmith"
- },
- "name": "Locksmith"
- },
- "shop/lottery": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "lottery"
- },
- "name": "Lottery Shop"
- },
- "shop/mall": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "mall"
- },
- "name": "Mall"
- },
- "shop/mobile_phone": {
- "icon": "mobilephone",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "mobile_phone"
- },
- "name": "Mobile Phone Store"
- },
- "shop/motorcycle": {
- "icon": "scooter",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "motorcycle"
- },
- "name": "Motorcycle Dealership"
- },
- "shop/music": {
- "icon": "music",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "music"
- },
- "name": "Music Store"
- },
- "shop/newsagent": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "newsagent"
- },
- "name": "Newsagent"
- },
- "shop/optician": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "optician"
- },
- "name": "Optician"
- },
- "shop/outdoor": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "outdoor"
- },
- "name": "Outdoor Store"
- },
- "shop/pet": {
- "icon": "dog-park",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "pet"
- },
- "name": "Pet Store"
- },
- "shop/photo": {
- "icon": "camera",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "photo"
- },
- "name": "Photography Store"
- },
- "shop/seafood": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "seafood"
- },
- "terms": [
- "fishmonger"
- ],
- "name": "Seafood Shop"
- },
- "shop/shoes": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "shoes"
- },
- "name": "Shoe Store"
- },
- "shop/sports": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "sports"
- },
- "name": "Sporting Goods Store"
- },
- "shop/stationery": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "stationery"
- },
- "name": "Stationery Store"
- },
- "shop/supermarket": {
- "icon": "grocery",
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "bazaar",
- "boutique",
- "chain",
- "co-op",
- "cut-rate store",
- "discount store",
- "five-and-dime",
- "flea market",
- "galleria",
- "grocery store",
- "mall",
- "mart",
- "outlet",
- "outlet store",
- "shop",
- "shopping center",
- "shopping centre",
- "shopping plaza",
- "stand",
- "store",
- "supermarket",
- "thrift shop"
- ],
- "tags": {
- "shop": "supermarket"
- },
- "name": "Supermarket"
- },
- "shop/tailor": {
- "name": "Tailor",
- "geometry": [
- "point",
- "area"
- ],
- "terms": [
- "tailor",
- "clothes"
- ],
- "tags": {
- "shop": "tailor"
- },
- "icon": "clothing-store",
- "fields": [
- "building_area",
- "address",
- "operator",
- "opening_hours"
- ]
- },
- "shop/toys": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "toys"
- },
- "name": "Toy Store"
- },
- "shop/travel_agency": {
- "icon": "suitcase",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "travel_agency"
- },
- "name": "Travel Agency"
- },
- "shop/tyres": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "tyres"
- },
- "name": "Tire Store"
- },
- "shop/vacant": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "vacant"
- },
- "name": "Vacant Shop"
- },
- "shop/variety_store": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "variety_store"
- },
- "name": "Variety Store"
- },
- "shop/video": {
- "icon": "shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "video"
- },
- "name": "Video Store"
- },
- "shop/wine": {
- "icon": "alcohol-shop",
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "shop": "wine"
- },
- "terms": [
- "winery"
- ],
- "name": "Wine Shop"
- },
- "tourism": {
- "fields": [
- "tourism"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "*"
- },
- "name": "Tourism"
- },
- "tourism/alpine_hut": {
- "icon": "lodging",
- "fields": [
- "operator",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "alpine_hut"
- },
- "name": "Alpine Hut"
- },
- "tourism/artwork": {
- "fields": [
- "artwork_type",
- "artist"
- ],
- "icon": "art-gallery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "artwork"
- },
- "terms": [
- "mural",
- "sculpture",
- "statue"
- ],
- "name": "Artwork"
- },
- "tourism/attraction": {
- "icon": "monument",
- "fields": [
- "operator",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "attraction"
- },
- "name": "Tourist Attraction"
- },
- "tourism/camp_site": {
- "icon": "campsite",
- "fields": [
- "operator",
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "camping"
- ],
- "tags": {
- "tourism": "camp_site"
- },
- "name": "Camp Site"
- },
- "tourism/caravan_site": {
- "fields": [
- "operator",
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "caravan_site"
- },
- "name": "RV Park"
- },
- "tourism/chalet": {
- "icon": "lodging",
- "fields": [
- "operator",
- "building_area",
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "chalet"
- },
- "name": "Chalet"
- },
- "tourism/guest_house": {
- "icon": "lodging",
- "fields": [
- "operator",
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "guest_house"
- },
- "terms": [
- "B&B",
- "Bed & Breakfast",
- "Bed and Breakfast"
- ],
- "name": "Guest House"
- },
- "tourism/hostel": {
- "icon": "lodging",
- "fields": [
- "operator",
- "building_area",
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "hostel"
- },
- "name": "Hostel"
- },
- "tourism/hotel": {
- "icon": "lodging",
- "fields": [
- "operator",
- "building_area",
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [],
- "tags": {
- "tourism": "hotel"
- },
- "name": "Hotel"
- },
- "tourism/information": {
- "fields": [
- "information",
- "building_area",
- "address",
- "operator"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "information"
- },
- "name": "Information"
- },
- "tourism/motel": {
- "icon": "lodging",
- "fields": [
- "operator",
- "building_area",
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "motel"
- },
- "name": "Motel"
- },
- "tourism/museum": {
- "icon": "museum",
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [
- "exhibition",
- "exhibits archive",
- "foundation",
- "gallery",
- "hall",
- "institution",
- "library",
- "menagerie",
- "repository",
- "salon",
- "storehouse",
- "treasury",
- "vault"
- ],
- "tags": {
- "tourism": "museum"
- },
- "name": "Museum"
- },
- "tourism/picnic_site": {
- "icon": "park",
- "fields": [
- "operator",
- "address",
- "smoking"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "terms": [],
- "tags": {
- "tourism": "picnic_site"
- },
- "name": "Picnic Site"
- },
- "tourism/theme_park": {
- "fields": [
- "operator",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "theme_park"
- },
- "name": "Theme Park"
- },
- "tourism/viewpoint": {
- "geometry": [
- "point",
- "vertex"
- ],
- "tags": {
- "tourism": "viewpoint"
- },
- "name": "Viewpoint"
- },
- "tourism/zoo": {
- "icon": "zoo",
- "fields": [
- "operator",
- "address"
- ],
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "tags": {
- "tourism": "zoo"
- },
- "name": "Zoo"
- },
- "type/boundary": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "boundary"
- },
- "name": "Boundary",
- "icon": "boundary",
- "fields": [
- "boundary"
- ]
- },
- "type/boundary/administrative": {
- "name": "Administrative Boundary",
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "boundary",
- "boundary": "administrative"
- },
- "fields": [
- "admin_level"
- ],
- "icon": "boundary"
- },
- "type/multipolygon": {
- "geometry": [
- "area",
- "relation"
- ],
- "tags": {
- "type": "multipolygon"
- },
- "removeTags": {},
- "name": "Multipolygon",
- "icon": "multipolygon",
- "searchable": false,
- "matchScore": 0.1
- },
- "type/restriction": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "restriction"
- },
- "name": "Restriction",
- "icon": "restriction",
- "fields": [
- "restriction",
- "except"
- ]
- },
- "type/restriction/no_left_turn": {
- "name": "No Left Turn",
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "restriction",
- "restriction": "no_left_turn"
- },
- "fields": [
- "except"
- ],
- "icon": "restriction-no-left-turn"
- },
- "type/restriction/no_right_turn": {
- "name": "No Right Turn",
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "restriction",
- "restriction": "no_right_turn"
- },
- "fields": [
- "except"
- ],
- "icon": "restriction-no-right-turn"
- },
- "type/restriction/no_straight_on": {
- "name": "No Straight On",
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "restriction",
- "restriction": "no_straight_on"
- },
- "fields": [
- "except"
- ],
- "icon": "restriction-no-straight-on"
- },
- "type/restriction/no_u_turn": {
- "name": "No U-turn",
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "restriction",
- "restriction": "no_u_turn"
- },
- "fields": [
- "except"
- ],
- "icon": "restriction-no-u-turn"
- },
- "type/restriction/only_left_turn": {
- "name": "Left Turn Only",
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "restriction",
- "restriction": "only_left_turn"
- },
- "fields": [
- "except"
- ],
- "icon": "restriction-only-left-turn"
- },
- "type/restriction/only_right_turn": {
- "name": "Right Turn Only",
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "restriction",
- "restriction": "only_right_turn"
- },
- "fields": [
- "except"
- ],
- "icon": "restriction-only-right-turn"
- },
- "type/restriction/only_straight_on": {
- "name": "No Turns",
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "restriction",
- "restriction": "only_straight_on"
- },
- "fields": [
- "except"
- ],
- "icon": "restriction-only-straight-on"
- },
- "type/route": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route"
- },
- "name": "Route",
- "icon": "route",
- "fields": [
- "route",
- "ref"
- ]
- },
- "type/route/bicycle": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "bicycle"
- },
- "name": "Cycle Route",
- "icon": "route-bicycle",
- "fields": [
- "ref",
- "network"
- ]
- },
- "type/route/bus": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "bus"
- },
- "name": "Bus Route",
- "icon": "route-bus",
- "fields": [
- "ref",
- "operator",
- "network"
- ]
- },
- "type/route/detour": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "detour"
- },
- "name": "Detour Route",
- "icon": "route-detour",
- "fields": [
- "ref"
- ]
- },
- "type/route/ferry": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "ferry"
- },
- "name": "Ferry Route",
- "icon": "route-ferry",
- "fields": [
- "ref",
- "operator",
- "network"
- ]
- },
- "type/route/foot": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "foot"
- },
- "name": "Foot Route",
- "icon": "route-foot",
- "fields": [
- "ref",
- "operator",
- "network"
- ]
- },
- "type/route/hiking": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "hiking"
- },
- "name": "Hiking Route",
- "icon": "route-foot",
- "fields": [
- "ref",
- "operator",
- "network"
- ]
- },
- "type/route/pipeline": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "pipeline"
- },
- "name": "Pipeline Route",
- "icon": "route-pipeline",
- "fields": [
- "ref",
- "operator"
- ]
- },
- "type/route/power": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "power"
- },
- "name": "Power Route",
- "icon": "route-power",
- "fields": [
- "ref",
- "operator"
- ]
- },
- "type/route/road": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "road"
- },
- "name": "Road Route",
- "icon": "route-road",
- "fields": [
- "ref"
- ]
- },
- "type/route/train": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "train"
- },
- "name": "Train Route",
- "icon": "route-train",
- "fields": [
- "ref",
- "operator"
- ]
- },
- "type/route/tram": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route",
- "route": "tram"
- },
- "name": "Tram Route",
- "icon": "route-tram",
- "fields": [
- "ref",
- "operator"
- ]
- },
- "type/route_master": {
- "geometry": [
- "relation"
- ],
- "tags": {
- "type": "route_master"
- },
- "name": "Route Master",
- "icon": "route-master",
- "fields": [
- "route_master",
- "ref",
- "operator",
- "network"
- ]
- },
- "vertex": {
- "name": "Other",
- "tags": {},
- "geometry": [
- "vertex"
- ],
- "matchScore": 0.1
- },
- "waterway": {
- "fields": [
- "waterway"
- ],
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "waterway": "*"
- },
- "name": "Waterway"
- },
- "waterway/canal": {
- "icon": "waterway-canal",
- "fields": [
- "width"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "waterway": "canal"
- },
- "name": "Canal"
- },
- "waterway/dam": {
- "icon": "dam",
- "geometry": [
- "point",
- "vertex",
- "line",
- "area"
- ],
- "tags": {
- "waterway": "dam"
- },
- "name": "Dam"
- },
- "waterway/ditch": {
- "icon": "waterway-ditch",
- "fields": [
- "tunnel"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "waterway": "ditch"
- },
- "name": "Ditch"
- },
- "waterway/drain": {
- "icon": "waterway-stream",
- "fields": [
- "tunnel"
- ],
- "geometry": [
- "line"
- ],
- "tags": {
- "waterway": "drain"
- },
- "name": "Drain"
- },
- "waterway/river": {
- "icon": "waterway-river",
- "fields": [
- "tunnel",
- "width"
- ],
- "geometry": [
- "line"
- ],
- "terms": [
- "beck",
- "branch",
- "brook",
- "course",
- "creek",
- "estuary",
- "rill",
- "rivulet",
- "run",
- "runnel",
- "stream",
- "tributary",
- "watercourse"
- ],
- "tags": {
- "waterway": "river"
- },
- "name": "River"
- },
- "waterway/riverbank": {
- "icon": "water",
- "geometry": [
- "area"
- ],
- "tags": {
- "waterway": "riverbank"
- },
- "name": "Riverbank"
- },
- "waterway/stream": {
- "icon": "waterway-stream",
- "fields": [
- "tunnel",
- "width"
- ],
- "geometry": [
- "line"
- ],
- "terms": [
- "beck",
- "branch",
- "brook",
- "burn",
- "course",
- "creek",
- "current",
- "drift",
- "flood",
- "flow",
- "freshet",
- "race",
- "rill",
- "rindle",
- "rivulet",
- "run",
- "runnel",
- "rush",
- "spate",
- "spritz",
- "surge",
- "tide",
- "torrent",
- "tributary",
- "watercourse"
- ],
- "tags": {
- "waterway": "stream"
- },
- "name": "Stream"
- },
- "waterway/weir": {
- "icon": "dam",
- "geometry": [
- "vertex",
- "line"
- ],
- "tags": {
- "waterway": "weir"
- },
- "name": "Weir"
- },
- "amenity/fuel/76": {
- "tags": {
- "name": "76",
- "amenity": "fuel"
- },
- "name": "76",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Neste": {
- "tags": {
- "name": "Neste",
- "amenity": "fuel"
- },
- "name": "Neste",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/BP": {
- "tags": {
- "name": "BP",
- "amenity": "fuel"
- },
- "name": "BP",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Shell": {
- "tags": {
- "name": "Shell",
- "amenity": "fuel"
- },
- "name": "Shell",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Agip": {
- "tags": {
- "name": "Agip",
- "amenity": "fuel"
- },
- "name": "Agip",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Migrol": {
- "tags": {
- "name": "Migrol",
- "amenity": "fuel"
- },
- "name": "Migrol",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Avia": {
- "tags": {
- "name": "Avia",
- "amenity": "fuel"
- },
- "name": "Avia",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Texaco": {
- "tags": {
- "name": "Texaco",
- "amenity": "fuel"
- },
- "name": "Texaco",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Total": {
- "tags": {
- "name": "Total",
- "amenity": "fuel"
- },
- "name": "Total",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Statoil": {
- "tags": {
- "name": "Statoil",
- "amenity": "fuel"
- },
- "name": "Statoil",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Esso": {
- "tags": {
- "name": "Esso",
- "amenity": "fuel"
- },
- "name": "Esso",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Jet": {
- "tags": {
- "name": "Jet",
- "amenity": "fuel"
- },
- "name": "Jet",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Avanti": {
- "tags": {
- "name": "Avanti",
- "amenity": "fuel"
- },
- "name": "Avanti",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/OMV": {
- "tags": {
- "name": "OMV",
- "amenity": "fuel"
- },
- "name": "OMV",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Aral": {
- "tags": {
- "name": "Aral",
- "amenity": "fuel"
- },
- "name": "Aral",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/JET": {
- "tags": {
- "name": "JET",
- "amenity": "fuel"
- },
- "name": "JET",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/United": {
- "tags": {
- "name": "United",
- "amenity": "fuel"
- },
- "name": "United",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Mobil": {
- "tags": {
- "name": "Mobil",
- "amenity": "fuel"
- },
- "name": "Mobil",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Caltex": {
- "tags": {
- "name": "Caltex",
- "amenity": "fuel"
- },
- "name": "Caltex",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Sunoco": {
- "tags": {
- "name": "Sunoco",
- "amenity": "fuel"
- },
- "name": "Sunoco",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Q8": {
- "tags": {
- "name": "Q8",
- "amenity": "fuel"
- },
- "name": "Q8",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ARAL": {
- "tags": {
- "name": "ARAL",
- "amenity": "fuel"
- },
- "name": "ARAL",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/CEPSA": {
- "tags": {
- "name": "CEPSA",
- "amenity": "fuel"
- },
- "name": "CEPSA",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/BFT": {
- "tags": {
- "name": "BFT",
- "amenity": "fuel"
- },
- "name": "BFT",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Petron": {
- "tags": {
- "name": "Petron",
- "amenity": "fuel"
- },
- "name": "Petron",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Total Access": {
- "tags": {
- "name": "Total Access",
- "amenity": "fuel"
- },
- "name": "Total Access",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Elf": {
- "tags": {
- "name": "Elf",
- "amenity": "fuel"
- },
- "name": "Elf",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Station Service E. Leclerc": {
- "tags": {
- "name": "Station Service E. Leclerc",
- "amenity": "fuel"
- },
- "name": "Station Service E. Leclerc",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Shell Express": {
- "tags": {
- "name": "Shell Express",
- "amenity": "fuel"
- },
- "name": "Shell Express",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Hess": {
- "tags": {
- "name": "Hess",
- "amenity": "fuel"
- },
- "name": "Hess",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Flying V": {
- "tags": {
- "name": "Flying V",
- "amenity": "fuel"
- },
- "name": "Flying V",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/bft": {
- "tags": {
- "name": "bft",
- "amenity": "fuel"
- },
- "name": "bft",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Gulf": {
- "tags": {
- "name": "Gulf",
- "amenity": "fuel"
- },
- "name": "Gulf",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/PTT": {
- "tags": {
- "name": "PTT",
- "amenity": "fuel"
- },
- "name": "PTT",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/St1": {
- "tags": {
- "name": "St1",
- "amenity": "fuel"
- },
- "name": "St1",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Teboil": {
- "tags": {
- "name": "Teboil",
- "amenity": "fuel"
- },
- "name": "Teboil",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/HEM": {
- "tags": {
- "name": "HEM",
- "amenity": "fuel"
- },
- "name": "HEM",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/GALP": {
- "tags": {
- "name": "GALP",
- "amenity": "fuel"
- },
- "name": "GALP",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/OK": {
- "tags": {
- "name": "OK",
- "amenity": "fuel"
- },
- "name": "OK",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ÖMV": {
- "tags": {
- "name": "ÖMV",
- "amenity": "fuel"
- },
- "name": "ÖMV",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Tinq": {
- "tags": {
- "name": "Tinq",
- "amenity": "fuel"
- },
- "name": "Tinq",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/OKQ8": {
- "tags": {
- "name": "OKQ8",
- "amenity": "fuel"
- },
- "name": "OKQ8",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Repsol": {
- "tags": {
- "name": "Repsol",
- "amenity": "fuel"
- },
- "name": "Repsol",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Westfalen": {
- "tags": {
- "name": "Westfalen",
- "amenity": "fuel"
- },
- "name": "Westfalen",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Esso Express": {
- "tags": {
- "name": "Esso Express",
- "amenity": "fuel"
- },
- "name": "Esso Express",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Tamoil": {
- "tags": {
- "name": "Tamoil",
- "amenity": "fuel"
- },
- "name": "Tamoil",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Engen": {
- "tags": {
- "name": "Engen",
- "amenity": "fuel"
- },
- "name": "Engen",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Sasol": {
- "tags": {
- "name": "Sasol",
- "amenity": "fuel"
- },
- "name": "Sasol",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Topaz": {
- "tags": {
- "name": "Topaz",
- "amenity": "fuel"
- },
- "name": "Topaz",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/LPG": {
- "tags": {
- "name": "LPG",
- "amenity": "fuel"
- },
- "name": "LPG",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Orlen": {
- "tags": {
- "name": "Orlen",
- "amenity": "fuel"
- },
- "name": "Orlen",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Oilibya": {
- "tags": {
- "name": "Oilibya",
- "amenity": "fuel"
- },
- "name": "Oilibya",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Tango": {
- "tags": {
- "name": "Tango",
- "amenity": "fuel"
- },
- "name": "Tango",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Star": {
- "tags": {
- "name": "Star",
- "amenity": "fuel"
- },
- "name": "Star",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Петрол": {
- "tags": {
- "name": "Петрол",
- "amenity": "fuel"
- },
- "name": "Петрол",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Cepsa": {
- "tags": {
- "name": "Cepsa",
- "amenity": "fuel"
- },
- "name": "Cepsa",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/OIL!": {
- "tags": {
- "name": "OIL!",
- "amenity": "fuel"
- },
- "name": "OIL!",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Ultramar": {
- "tags": {
- "name": "Ultramar",
- "amenity": "fuel"
- },
- "name": "Ultramar",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Irving": {
- "tags": {
- "name": "Irving",
- "amenity": "fuel"
- },
- "name": "Irving",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Lukoil": {
- "tags": {
- "name": "Lukoil",
- "amenity": "fuel"
- },
- "name": "Lukoil",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Petro-Canada": {
- "tags": {
- "name": "Petro-Canada",
- "amenity": "fuel"
- },
- "name": "Petro-Canada",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Agrola": {
- "tags": {
- "name": "Agrola",
- "amenity": "fuel"
- },
- "name": "Agrola",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Husky": {
- "tags": {
- "name": "Husky",
- "amenity": "fuel"
- },
- "name": "Husky",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Slovnaft": {
- "tags": {
- "name": "Slovnaft",
- "amenity": "fuel"
- },
- "name": "Slovnaft",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Sheetz": {
- "tags": {
- "name": "Sheetz",
- "amenity": "fuel"
- },
- "name": "Sheetz",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Mol": {
- "tags": {
- "name": "Mol",
- "amenity": "fuel"
- },
- "name": "Mol",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Petronas": {
- "tags": {
- "name": "Petronas",
- "amenity": "fuel"
- },
- "name": "Petronas",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Газпромнефть": {
- "tags": {
- "name": "Газпромнефть",
- "amenity": "fuel"
- },
- "name": "Газпромнефть",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Лукойл": {
- "tags": {
- "name": "Лукойл",
- "amenity": "fuel"
- },
- "name": "Лукойл",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Elan": {
- "tags": {
- "name": "Elan",
- "amenity": "fuel"
- },
- "name": "Elan",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Роснефть": {
- "tags": {
- "name": "Роснефть",
- "amenity": "fuel"
- },
- "name": "Роснефть",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Turmöl": {
- "tags": {
- "name": "Turmöl",
- "amenity": "fuel"
- },
- "name": "Turmöl",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Neste A24": {
- "tags": {
- "name": "Neste A24",
- "amenity": "fuel"
- },
- "name": "Neste A24",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Marathon": {
- "tags": {
- "name": "Marathon",
- "amenity": "fuel"
- },
- "name": "Marathon",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Valero": {
- "tags": {
- "name": "Valero",
- "amenity": "fuel"
- },
- "name": "Valero",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Eni": {
- "tags": {
- "name": "Eni",
- "amenity": "fuel"
- },
- "name": "Eni",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Chevron": {
- "tags": {
- "name": "Chevron",
- "amenity": "fuel"
- },
- "name": "Chevron",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ТНК": {
- "tags": {
- "name": "ТНК",
- "amenity": "fuel"
- },
- "name": "ТНК",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/REPSOL": {
- "tags": {
- "name": "REPSOL",
- "amenity": "fuel"
- },
- "name": "REPSOL",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/MOL": {
- "tags": {
- "name": "MOL",
- "amenity": "fuel"
- },
- "name": "MOL",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Bliska": {
- "tags": {
- "name": "Bliska",
- "amenity": "fuel"
- },
- "name": "Bliska",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Api": {
- "tags": {
- "name": "Api",
- "amenity": "fuel"
- },
- "name": "Api",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Arco": {
- "tags": {
- "name": "Arco",
- "amenity": "fuel"
- },
- "name": "Arco",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Pemex": {
- "tags": {
- "name": "Pemex",
- "amenity": "fuel"
- },
- "name": "Pemex",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Exxon": {
- "tags": {
- "name": "Exxon",
- "amenity": "fuel"
- },
- "name": "Exxon",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Coles Express": {
- "tags": {
- "name": "Coles Express",
- "amenity": "fuel"
- },
- "name": "Coles Express",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Petrom": {
- "tags": {
- "name": "Petrom",
- "amenity": "fuel"
- },
- "name": "Petrom",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/PETRONOR": {
- "tags": {
- "name": "PETRONOR",
- "amenity": "fuel"
- },
- "name": "PETRONOR",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Rompetrol": {
- "tags": {
- "name": "Rompetrol",
- "amenity": "fuel"
- },
- "name": "Rompetrol",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Lotos": {
- "tags": {
- "name": "Lotos",
- "amenity": "fuel"
- },
- "name": "Lotos",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ОМВ": {
- "tags": {
- "name": "ОМВ",
- "amenity": "fuel"
- },
- "name": "ОМВ",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/BR": {
- "tags": {
- "name": "BR",
- "amenity": "fuel"
- },
- "name": "BR",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Copec": {
- "tags": {
- "name": "Copec",
- "amenity": "fuel"
- },
- "name": "Copec",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Petrobras": {
- "tags": {
- "name": "Petrobras",
- "amenity": "fuel"
- },
- "name": "Petrobras",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Liberty": {
- "tags": {
- "name": "Liberty",
- "amenity": "fuel"
- },
- "name": "Liberty",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/IP": {
- "tags": {
- "name": "IP",
- "amenity": "fuel"
- },
- "name": "IP",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Erg": {
- "tags": {
- "name": "Erg",
- "amenity": "fuel"
- },
- "name": "Erg",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Eneos": {
- "tags": {
- "name": "Eneos",
- "amenity": "fuel"
- },
- "name": "Eneos",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Citgo": {
- "tags": {
- "name": "Citgo",
- "amenity": "fuel"
- },
- "name": "Citgo",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Metano": {
- "tags": {
- "name": "Metano",
- "amenity": "fuel"
- },
- "name": "Metano",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Сургутнефтегаз": {
- "tags": {
- "name": "Сургутнефтегаз",
- "amenity": "fuel"
- },
- "name": "Сургутнефтегаз",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/EKO": {
- "tags": {
- "name": "EKO",
- "amenity": "fuel"
- },
- "name": "EKO",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Eko": {
- "tags": {
- "name": "Eko",
- "amenity": "fuel"
- },
- "name": "Eko",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Indipend.": {
- "tags": {
- "name": "Indipend.",
- "amenity": "fuel"
- },
- "name": "Indipend.",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/IES": {
- "tags": {
- "name": "IES",
- "amenity": "fuel"
- },
- "name": "IES",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/TotalErg": {
- "tags": {
- "name": "TotalErg",
- "amenity": "fuel"
- },
- "name": "TotalErg",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Cenex": {
- "tags": {
- "name": "Cenex",
- "amenity": "fuel"
- },
- "name": "Cenex",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ПТК": {
- "tags": {
- "name": "ПТК",
- "amenity": "fuel"
- },
- "name": "ПТК",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/HP": {
- "tags": {
- "name": "HP",
- "amenity": "fuel"
- },
- "name": "HP",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Phillips 66": {
- "tags": {
- "name": "Phillips 66",
- "amenity": "fuel"
- },
- "name": "Phillips 66",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/CARREFOUR": {
- "tags": {
- "name": "CARREFOUR",
- "amenity": "fuel"
- },
- "name": "CARREFOUR",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ERG": {
- "tags": {
- "name": "ERG",
- "amenity": "fuel"
- },
- "name": "ERG",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Speedway": {
- "tags": {
- "name": "Speedway",
- "amenity": "fuel"
- },
- "name": "Speedway",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Benzina": {
- "tags": {
- "name": "Benzina",
- "amenity": "fuel"
- },
- "name": "Benzina",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Татнефть": {
- "tags": {
- "name": "Татнефть",
- "amenity": "fuel"
- },
- "name": "Татнефть",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Terpel": {
- "tags": {
- "name": "Terpel",
- "amenity": "fuel"
- },
- "name": "Terpel",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/WOG": {
- "tags": {
- "name": "WOG",
- "amenity": "fuel"
- },
- "name": "WOG",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Seaoil": {
- "tags": {
- "name": "Seaoil",
- "amenity": "fuel"
- },
- "name": "Seaoil",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/АЗС": {
- "tags": {
- "name": "АЗС",
- "amenity": "fuel"
- },
- "name": "АЗС",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Kwik Trip": {
- "tags": {
- "name": "Kwik Trip",
- "amenity": "fuel"
- },
- "name": "Kwik Trip",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Pertamina": {
- "tags": {
- "name": "Pertamina",
- "amenity": "fuel"
- },
- "name": "Pertamina",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/COSMO": {
- "tags": {
- "name": "COSMO",
- "amenity": "fuel"
- },
- "name": "COSMO",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Z": {
- "tags": {
- "name": "Z",
- "amenity": "fuel"
- },
- "name": "Z",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Indian Oil": {
- "tags": {
- "name": "Indian Oil",
- "amenity": "fuel"
- },
- "name": "Indian Oil",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/АГЗС": {
- "tags": {
- "name": "АГЗС",
- "amenity": "fuel"
- },
- "name": "АГЗС",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/INA": {
- "tags": {
- "name": "INA",
- "amenity": "fuel"
- },
- "name": "INA",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/JOMO": {
- "tags": {
- "name": "JOMO",
- "amenity": "fuel"
- },
- "name": "JOMO",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Holiday": {
- "tags": {
- "name": "Holiday",
- "amenity": "fuel"
- },
- "name": "Holiday",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/YPF": {
- "tags": {
- "name": "YPF",
- "amenity": "fuel"
- },
- "name": "YPF",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/IDEMITSU": {
- "tags": {
- "name": "IDEMITSU",
- "amenity": "fuel"
- },
- "name": "IDEMITSU",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ENEOS": {
- "tags": {
- "name": "ENEOS",
- "amenity": "fuel"
- },
- "name": "ENEOS",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Stacja paliw": {
- "tags": {
- "name": "Stacja paliw",
- "amenity": "fuel"
- },
- "name": "Stacja paliw",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Bharat Petroleum": {
- "tags": {
- "name": "Bharat Petroleum",
- "amenity": "fuel"
- },
- "name": "Bharat Petroleum",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/CAMPSA": {
- "tags": {
- "name": "CAMPSA",
- "amenity": "fuel"
- },
- "name": "CAMPSA",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Casey's General Store": {
- "tags": {
- "name": "Casey's General Store",
- "amenity": "fuel"
- },
- "name": "Casey's General Store",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Башнефть": {
- "tags": {
- "name": "Башнефть",
- "amenity": "fuel"
- },
- "name": "Башнефть",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Kangaroo": {
- "tags": {
- "name": "Kangaroo",
- "amenity": "fuel"
- },
- "name": "Kangaroo",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/コスモ石油 (COSMO)": {
- "tags": {
- "name": "コスモ石油 (COSMO)",
- "amenity": "fuel"
- },
- "name": "コスモ石油 (COSMO)",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/MEROIL": {
- "tags": {
- "name": "MEROIL",
- "amenity": "fuel"
- },
- "name": "MEROIL",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/1-2-3": {
- "tags": {
- "name": "1-2-3",
- "amenity": "fuel"
- },
- "name": "1-2-3",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/出光": {
- "tags": {
- "name": "出光",
- "name:en": "IDEMITSU",
- "amenity": "fuel"
- },
- "name": "出光",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/НК Альянс": {
- "tags": {
- "name": "НК Альянс",
- "amenity": "fuel"
- },
- "name": "НК Альянс",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Sinclair": {
- "tags": {
- "name": "Sinclair",
- "amenity": "fuel"
- },
- "name": "Sinclair",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Conoco": {
- "tags": {
- "name": "Conoco",
- "amenity": "fuel"
- },
- "name": "Conoco",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/SPBU": {
- "tags": {
- "name": "SPBU",
- "amenity": "fuel"
- },
- "name": "SPBU",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Макпетрол": {
- "tags": {
- "name": "Макпетрол",
- "amenity": "fuel"
- },
- "name": "Макпетрол",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Posto Ipiranga": {
- "tags": {
- "name": "Posto Ipiranga",
- "amenity": "fuel"
- },
- "name": "Posto Ipiranga",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Posto Shell": {
- "tags": {
- "name": "Posto Shell",
- "amenity": "fuel"
- },
- "name": "Posto Shell",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Phoenix": {
- "tags": {
- "name": "Phoenix",
- "amenity": "fuel"
- },
- "name": "Phoenix",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Ipiranga": {
- "tags": {
- "name": "Ipiranga",
- "amenity": "fuel"
- },
- "name": "Ipiranga",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/OKKO": {
- "tags": {
- "name": "OKKO",
- "amenity": "fuel"
- },
- "name": "OKKO",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ОККО": {
- "tags": {
- "name": "ОККО",
- "amenity": "fuel"
- },
- "name": "ОККО",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/บางจาก": {
- "tags": {
- "name": "บางจาก",
- "amenity": "fuel"
- },
- "name": "บางจาก",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/QuikTrip": {
- "tags": {
- "name": "QuikTrip",
- "amenity": "fuel"
- },
- "name": "QuikTrip",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Posto BR": {
- "tags": {
- "name": "Posto BR",
- "amenity": "fuel"
- },
- "name": "Posto BR",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ป ต ท": {
- "tags": {
- "name": "ป ต ท",
- "amenity": "fuel"
- },
- "name": "ป ต ท",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ปตท": {
- "tags": {
- "name": "ปตท",
- "amenity": "fuel"
- },
- "name": "ปตท",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/ANP": {
- "tags": {
- "name": "ANP",
- "amenity": "fuel"
- },
- "name": "ANP",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Kum & Go": {
- "tags": {
- "name": "Kum & Go",
- "amenity": "fuel"
- },
- "name": "Kum & Go",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Petrolimex": {
- "tags": {
- "name": "Petrolimex",
- "amenity": "fuel"
- },
- "name": "Petrolimex",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Sokimex": {
- "tags": {
- "name": "Sokimex",
- "amenity": "fuel"
- },
- "name": "Sokimex",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Tela": {
- "tags": {
- "name": "Tela",
- "amenity": "fuel"
- },
- "name": "Tela",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Posto": {
- "tags": {
- "name": "Posto",
- "amenity": "fuel"
- },
- "name": "Posto",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Укрнафта": {
- "tags": {
- "name": "Укрнафта",
- "amenity": "fuel"
- },
- "name": "Укрнафта",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Татнефтепродукт": {
- "tags": {
- "name": "Татнефтепродукт",
- "amenity": "fuel"
- },
- "name": "Татнефтепродукт",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Afriquia": {
- "tags": {
- "name": "Afriquia",
- "amenity": "fuel"
- },
- "name": "Afriquia",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/Murphy USA": {
- "tags": {
- "name": "Murphy USA",
- "amenity": "fuel"
- },
- "name": "Murphy USA",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/昭和シェル (Showa-shell)": {
- "tags": {
- "name": "昭和シェル (Showa-shell)",
- "amenity": "fuel"
- },
- "name": "昭和シェル (Showa-shell)",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/エネオス": {
- "tags": {
- "name": "エネオス",
- "amenity": "fuel"
- },
- "name": "エネオス",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/fuel/CNG": {
- "tags": {
- "name": "CNG",
- "amenity": "fuel"
- },
- "name": "CNG",
- "icon": "fuel",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "address",
- "building_area"
- ],
- "suggestion": true
- },
- "amenity/pub/Kings Arms": {
- "tags": {
- "name": "Kings Arms",
- "amenity": "pub"
- },
- "name": "Kings Arms",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Ship": {
- "tags": {
- "name": "The Ship",
- "amenity": "pub"
- },
- "name": "The Ship",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The White Horse": {
- "tags": {
- "name": "The White Horse",
- "amenity": "pub"
- },
- "name": "The White Horse",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The White Hart": {
- "tags": {
- "name": "The White Hart",
- "amenity": "pub"
- },
- "name": "The White Hart",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Royal Oak": {
- "tags": {
- "name": "Royal Oak",
- "amenity": "pub"
- },
- "name": "Royal Oak",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Red Lion": {
- "tags": {
- "name": "The Red Lion",
- "amenity": "pub"
- },
- "name": "The Red Lion",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Kings Arms": {
- "tags": {
- "name": "The Kings Arms",
- "amenity": "pub"
- },
- "name": "The Kings Arms",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Star": {
- "tags": {
- "name": "The Star",
- "amenity": "pub"
- },
- "name": "The Star",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Anchor": {
- "tags": {
- "name": "The Anchor",
- "amenity": "pub"
- },
- "name": "The Anchor",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Cross Keys": {
- "tags": {
- "name": "The Cross Keys",
- "amenity": "pub"
- },
- "name": "The Cross Keys",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Wheatsheaf": {
- "tags": {
- "name": "The Wheatsheaf",
- "amenity": "pub"
- },
- "name": "The Wheatsheaf",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Crown Inn": {
- "tags": {
- "name": "The Crown Inn",
- "amenity": "pub"
- },
- "name": "The Crown Inn",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Kings Head": {
- "tags": {
- "name": "The Kings Head",
- "amenity": "pub"
- },
- "name": "The Kings Head",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Castle": {
- "tags": {
- "name": "The Castle",
- "amenity": "pub"
- },
- "name": "The Castle",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Railway": {
- "tags": {
- "name": "The Railway",
- "amenity": "pub"
- },
- "name": "The Railway",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The White Lion": {
- "tags": {
- "name": "The White Lion",
- "amenity": "pub"
- },
- "name": "The White Lion",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Bell": {
- "tags": {
- "name": "The Bell",
- "amenity": "pub"
- },
- "name": "The Bell",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Bull": {
- "tags": {
- "name": "The Bull",
- "amenity": "pub"
- },
- "name": "The Bull",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Plough": {
- "tags": {
- "name": "The Plough",
- "amenity": "pub"
- },
- "name": "The Plough",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The George": {
- "tags": {
- "name": "The George",
- "amenity": "pub"
- },
- "name": "The George",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Royal Oak": {
- "tags": {
- "name": "The Royal Oak",
- "amenity": "pub"
- },
- "name": "The Royal Oak",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Fox": {
- "tags": {
- "name": "The Fox",
- "amenity": "pub"
- },
- "name": "The Fox",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Prince of Wales": {
- "tags": {
- "name": "Prince of Wales",
- "amenity": "pub"
- },
- "name": "Prince of Wales",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Rising Sun": {
- "tags": {
- "name": "The Rising Sun",
- "amenity": "pub"
- },
- "name": "The Rising Sun",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Prince of Wales": {
- "tags": {
- "name": "The Prince of Wales",
- "amenity": "pub"
- },
- "name": "The Prince of Wales",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Crown": {
- "tags": {
- "name": "The Crown",
- "amenity": "pub"
- },
- "name": "The Crown",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Chequers": {
- "tags": {
- "name": "The Chequers",
- "amenity": "pub"
- },
- "name": "The Chequers",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Swan": {
- "tags": {
- "name": "The Swan",
- "amenity": "pub"
- },
- "name": "The Swan",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Rose and Crown": {
- "tags": {
- "name": "Rose and Crown",
- "amenity": "pub"
- },
- "name": "Rose and Crown",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Victoria": {
- "tags": {
- "name": "The Victoria",
- "amenity": "pub"
- },
- "name": "The Victoria",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/New Inn": {
- "tags": {
- "name": "New Inn",
- "amenity": "pub"
- },
- "name": "New Inn",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Royal Hotel": {
- "tags": {
- "name": "Royal Hotel",
- "amenity": "pub"
- },
- "name": "Royal Hotel",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Red Lion": {
- "tags": {
- "name": "Red Lion",
- "amenity": "pub"
- },
- "name": "Red Lion",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Cross Keys": {
- "tags": {
- "name": "Cross Keys",
- "amenity": "pub"
- },
- "name": "Cross Keys",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Greyhound": {
- "tags": {
- "name": "The Greyhound",
- "amenity": "pub"
- },
- "name": "The Greyhound",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Black Horse": {
- "tags": {
- "name": "The Black Horse",
- "amenity": "pub"
- },
- "name": "The Black Horse",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The New Inn": {
- "tags": {
- "name": "The New Inn",
- "amenity": "pub"
- },
- "name": "The New Inn",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Kings Head": {
- "tags": {
- "name": "Kings Head",
- "amenity": "pub"
- },
- "name": "Kings Head",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Albion": {
- "tags": {
- "name": "The Albion",
- "amenity": "pub"
- },
- "name": "The Albion",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Angel": {
- "tags": {
- "name": "The Angel",
- "amenity": "pub"
- },
- "name": "The Angel",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Queens Head": {
- "tags": {
- "name": "The Queens Head",
- "amenity": "pub"
- },
- "name": "The Queens Head",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/The Ship Inn": {
- "tags": {
- "name": "The Ship Inn",
- "amenity": "pub"
- },
- "name": "The Ship Inn",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Rose & Crown": {
- "tags": {
- "name": "Rose & Crown",
- "amenity": "pub"
- },
- "name": "Rose & Crown",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Queens Head": {
- "tags": {
- "name": "Queens Head",
- "amenity": "pub"
- },
- "name": "Queens Head",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/pub/Irish Pub": {
- "tags": {
- "name": "Irish Pub",
- "amenity": "pub"
- },
- "name": "Irish Pub",
- "icon": "beer",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Quick": {
- "tags": {
- "name": "Quick",
- "amenity": "fast_food"
- },
- "name": "Quick",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/McDonald's": {
- "tags": {
- "name": "McDonald's",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "McDonald's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Subway": {
- "tags": {
- "name": "Subway",
- "cuisine": "sandwich",
- "amenity": "fast_food"
- },
- "name": "Subway",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Burger King": {
- "tags": {
- "name": "Burger King",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "Burger King",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Ali Baba": {
- "tags": {
- "name": "Ali Baba",
- "amenity": "fast_food"
- },
- "name": "Ali Baba",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Hungry Jacks": {
- "tags": {
- "name": "Hungry Jacks",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "Hungry Jacks",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Red Rooster": {
- "tags": {
- "name": "Red Rooster",
- "amenity": "fast_food"
- },
- "name": "Red Rooster",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/KFC": {
- "tags": {
- "name": "KFC",
- "cuisine": "chicken",
- "amenity": "fast_food"
- },
- "name": "KFC",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Domino's Pizza": {
- "tags": {
- "name": "Domino's Pizza",
- "cuisine": "pizza",
- "amenity": "fast_food"
- },
- "name": "Domino's Pizza",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Chowking": {
- "tags": {
- "name": "Chowking",
- "amenity": "fast_food"
- },
- "name": "Chowking",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Jollibee": {
- "tags": {
- "name": "Jollibee",
- "amenity": "fast_food"
- },
- "name": "Jollibee",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Hesburger": {
- "tags": {
- "name": "Hesburger",
- "amenity": "fast_food"
- },
- "name": "Hesburger",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/肯德基": {
- "tags": {
- "name": "肯德基",
- "amenity": "fast_food"
- },
- "name": "肯德基",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Wendy's": {
- "tags": {
- "name": "Wendy's",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "Wendy's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Tim Hortons": {
- "tags": {
- "name": "Tim Hortons",
- "amenity": "fast_food"
- },
- "name": "Tim Hortons",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Steers": {
- "tags": {
- "name": "Steers",
- "amenity": "fast_food"
- },
- "name": "Steers",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Hardee's": {
- "tags": {
- "name": "Hardee's",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "Hardee's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Arby's": {
- "tags": {
- "name": "Arby's",
- "amenity": "fast_food"
- },
- "name": "Arby's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/A&W": {
- "tags": {
- "name": "A&W",
- "amenity": "fast_food"
- },
- "name": "A&W",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Dairy Queen": {
- "tags": {
- "name": "Dairy Queen",
- "amenity": "fast_food"
- },
- "name": "Dairy Queen",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Hallo Pizza": {
- "tags": {
- "name": "Hallo Pizza",
- "amenity": "fast_food"
- },
- "name": "Hallo Pizza",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Fish & Chips": {
- "tags": {
- "name": "Fish & Chips",
- "amenity": "fast_food"
- },
- "name": "Fish & Chips",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Harvey's": {
- "tags": {
- "name": "Harvey's",
- "amenity": "fast_food"
- },
- "name": "Harvey's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/麥當勞": {
- "tags": {
- "name": "麥當勞",
- "amenity": "fast_food"
- },
- "name": "麥當勞",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Pizza Pizza": {
- "tags": {
- "name": "Pizza Pizza",
- "amenity": "fast_food"
- },
- "name": "Pizza Pizza",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Kotipizza": {
- "tags": {
- "name": "Kotipizza",
- "amenity": "fast_food"
- },
- "name": "Kotipizza",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Jack in the Box": {
- "tags": {
- "name": "Jack in the Box",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "Jack in the Box",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Istanbul": {
- "tags": {
- "name": "Istanbul",
- "amenity": "fast_food"
- },
- "name": "Istanbul",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Kochlöffel": {
- "tags": {
- "name": "Kochlöffel",
- "amenity": "fast_food"
- },
- "name": "Kochlöffel",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Döner": {
- "tags": {
- "name": "Döner",
- "amenity": "fast_food"
- },
- "name": "Döner",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Telepizza": {
- "tags": {
- "name": "Telepizza",
- "amenity": "fast_food"
- },
- "name": "Telepizza",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Sibylla": {
- "tags": {
- "name": "Sibylla",
- "amenity": "fast_food"
- },
- "name": "Sibylla",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Carl's Jr.": {
- "tags": {
- "name": "Carl's Jr.",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "Carl's Jr.",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Quiznos": {
- "tags": {
- "name": "Quiznos",
- "cuisine": "sandwich",
- "amenity": "fast_food"
- },
- "name": "Quiznos",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Wimpy": {
- "tags": {
- "name": "Wimpy",
- "amenity": "fast_food"
- },
- "name": "Wimpy",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Sonic": {
- "tags": {
- "name": "Sonic",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "Sonic",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Taco Bell": {
- "tags": {
- "name": "Taco Bell",
- "amenity": "fast_food"
- },
- "name": "Taco Bell",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Pizza Nova": {
- "tags": {
- "name": "Pizza Nova",
- "amenity": "fast_food"
- },
- "name": "Pizza Nova",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Papa John's": {
- "tags": {
- "name": "Papa John's",
- "cuisine": "pizza",
- "amenity": "fast_food"
- },
- "name": "Papa John's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Nordsee": {
- "tags": {
- "name": "Nordsee",
- "amenity": "fast_food"
- },
- "name": "Nordsee",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Mr. Sub": {
- "tags": {
- "name": "Mr. Sub",
- "amenity": "fast_food"
- },
- "name": "Mr. Sub",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Kebab": {
- "tags": {
- "name": "Kebab",
- "amenity": "fast_food"
- },
- "name": "Kebab",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Макдоналдс": {
- "tags": {
- "name": "Макдоналдс",
- "name:en": "McDonald's",
- "amenity": "fast_food"
- },
- "name": "Макдоналдс",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Asia Imbiss": {
- "tags": {
- "name": "Asia Imbiss",
- "amenity": "fast_food"
- },
- "name": "Asia Imbiss",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Imbiss": {
- "tags": {
- "name": "Imbiss",
- "amenity": "fast_food"
- },
- "name": "Imbiss",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Chipotle": {
- "tags": {
- "name": "Chipotle",
- "cuisine": "mexican",
- "amenity": "fast_food"
- },
- "name": "Chipotle",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/マクドナルド": {
- "tags": {
- "name": "マクドナルド",
- "name:en": "McDonald's",
- "cuisine": "burger",
- "amenity": "fast_food"
- },
- "name": "マクドナルド",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/In-N-Out Burger": {
- "tags": {
- "name": "In-N-Out Burger",
- "amenity": "fast_food"
- },
- "name": "In-N-Out Burger",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Jimmy John's": {
- "tags": {
- "name": "Jimmy John's",
- "amenity": "fast_food"
- },
- "name": "Jimmy John's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Jamba Juice": {
- "tags": {
- "name": "Jamba Juice",
- "amenity": "fast_food"
- },
- "name": "Jamba Juice",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Робин Сдобин": {
- "tags": {
- "name": "Робин Сдобин",
- "amenity": "fast_food"
- },
- "name": "Робин Сдобин",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Baskin Robbins": {
- "tags": {
- "name": "Baskin Robbins",
- "amenity": "fast_food"
- },
- "name": "Baskin Robbins",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/ケンタッキーフライドチキン": {
- "tags": {
- "name": "ケンタッキーフライドチキン",
- "name:en": "KFC",
- "cuisine": "chicken",
- "amenity": "fast_food"
- },
- "name": "ケンタッキーフライドチキン",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/吉野家": {
- "tags": {
- "name": "吉野家",
- "amenity": "fast_food"
- },
- "name": "吉野家",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Taco Time": {
- "tags": {
- "name": "Taco Time",
- "amenity": "fast_food"
- },
- "name": "Taco Time",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/松屋": {
- "tags": {
- "name": "松屋",
- "name:en": "Matsuya",
- "amenity": "fast_food"
- },
- "name": "松屋",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Little Caesars": {
- "tags": {
- "name": "Little Caesars",
- "amenity": "fast_food"
- },
- "name": "Little Caesars",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/El Pollo Loco": {
- "tags": {
- "name": "El Pollo Loco",
- "amenity": "fast_food"
- },
- "name": "El Pollo Loco",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Del Taco": {
- "tags": {
- "name": "Del Taco",
- "amenity": "fast_food"
- },
- "name": "Del Taco",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/White Castle": {
- "tags": {
- "name": "White Castle",
- "amenity": "fast_food"
- },
- "name": "White Castle",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Boston Market": {
- "tags": {
- "name": "Boston Market",
- "amenity": "fast_food"
- },
- "name": "Boston Market",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Chick-fil-A": {
- "tags": {
- "name": "Chick-fil-A",
- "cuisine": "chicken",
- "amenity": "fast_food"
- },
- "name": "Chick-fil-A",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Panda Express": {
- "tags": {
- "name": "Panda Express",
- "amenity": "fast_food"
- },
- "name": "Panda Express",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Whataburger": {
- "tags": {
- "name": "Whataburger",
- "amenity": "fast_food"
- },
- "name": "Whataburger",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Taco John's": {
- "tags": {
- "name": "Taco John's",
- "amenity": "fast_food"
- },
- "name": "Taco John's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Теремок": {
- "tags": {
- "name": "Теремок",
- "amenity": "fast_food"
- },
- "name": "Теремок",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Culver's": {
- "tags": {
- "name": "Culver's",
- "amenity": "fast_food"
- },
- "name": "Culver's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Five Guys": {
- "tags": {
- "name": "Five Guys",
- "amenity": "fast_food"
- },
- "name": "Five Guys",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Church's Chicken": {
- "tags": {
- "name": "Church's Chicken",
- "amenity": "fast_food"
- },
- "name": "Church's Chicken",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Popeye's": {
- "tags": {
- "name": "Popeye's",
- "cuisine": "chicken",
- "amenity": "fast_food"
- },
- "name": "Popeye's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Long John Silver's": {
- "tags": {
- "name": "Long John Silver's",
- "amenity": "fast_food"
- },
- "name": "Long John Silver's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Pollo Campero": {
- "tags": {
- "name": "Pollo Campero",
- "amenity": "fast_food"
- },
- "name": "Pollo Campero",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Zaxby's": {
- "tags": {
- "name": "Zaxby's",
- "amenity": "fast_food"
- },
- "name": "Zaxby's",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/すき家": {
- "tags": {
- "name": "すき家",
- "name:en": "SUKIYA",
- "amenity": "fast_food"
- },
- "name": "すき家",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/モスバーガー": {
- "tags": {
- "name": "モスバーガー",
- "name:en": "MOS BURGER",
- "amenity": "fast_food"
- },
- "name": "モスバーガー",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/Русский Аппетит": {
- "tags": {
- "name": "Русский Аппетит",
- "amenity": "fast_food"
- },
- "name": "Русский Аппетит",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/fast_food/なか卯": {
- "tags": {
- "name": "なか卯",
- "amenity": "fast_food"
- },
- "name": "なか卯",
- "icon": "fast-food",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Pizza Hut": {
- "tags": {
- "name": "Pizza Hut",
- "amenity": "restaurant"
- },
- "name": "Pizza Hut",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Little Chef": {
- "tags": {
- "name": "Little Chef",
- "amenity": "restaurant"
- },
- "name": "Little Chef",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Adler": {
- "tags": {
- "name": "Adler",
- "amenity": "restaurant"
- },
- "name": "Adler",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Zur Krone": {
- "tags": {
- "name": "Zur Krone",
- "amenity": "restaurant"
- },
- "name": "Zur Krone",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Deutsches Haus": {
- "tags": {
- "name": "Deutsches Haus",
- "amenity": "restaurant"
- },
- "name": "Deutsches Haus",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Krone": {
- "tags": {
- "name": "Krone",
- "amenity": "restaurant"
- },
- "name": "Krone",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Akropolis": {
- "tags": {
- "name": "Akropolis",
- "amenity": "restaurant"
- },
- "name": "Akropolis",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Schützenhaus": {
- "tags": {
- "name": "Schützenhaus",
- "amenity": "restaurant"
- },
- "name": "Schützenhaus",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Kreuz": {
- "tags": {
- "name": "Kreuz",
- "amenity": "restaurant"
- },
- "name": "Kreuz",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Waldschänke": {
- "tags": {
- "name": "Waldschänke",
- "amenity": "restaurant"
- },
- "name": "Waldschänke",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/La Piazza": {
- "tags": {
- "name": "La Piazza",
- "amenity": "restaurant"
- },
- "name": "La Piazza",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Lamm": {
- "tags": {
- "name": "Lamm",
- "amenity": "restaurant"
- },
- "name": "Lamm",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Zur Sonne": {
- "tags": {
- "name": "Zur Sonne",
- "amenity": "restaurant"
- },
- "name": "Zur Sonne",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Zur Linde": {
- "tags": {
- "name": "Zur Linde",
- "amenity": "restaurant"
- },
- "name": "Zur Linde",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Poseidon": {
- "tags": {
- "name": "Poseidon",
- "amenity": "restaurant"
- },
- "name": "Poseidon",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Shanghai": {
- "tags": {
- "name": "Shanghai",
- "amenity": "restaurant"
- },
- "name": "Shanghai",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Red Lobster": {
- "tags": {
- "name": "Red Lobster",
- "amenity": "restaurant"
- },
- "name": "Red Lobster",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Zum Löwen": {
- "tags": {
- "name": "Zum Löwen",
- "amenity": "restaurant"
- },
- "name": "Zum Löwen",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Swiss Chalet": {
- "tags": {
- "name": "Swiss Chalet",
- "amenity": "restaurant"
- },
- "name": "Swiss Chalet",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Olympia": {
- "tags": {
- "name": "Olympia",
- "amenity": "restaurant"
- },
- "name": "Olympia",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Wagamama": {
- "tags": {
- "name": "Wagamama",
- "amenity": "restaurant"
- },
- "name": "Wagamama",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Frankie & Benny's": {
- "tags": {
- "name": "Frankie & Benny's",
- "amenity": "restaurant"
- },
- "name": "Frankie & Benny's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Hooters": {
- "tags": {
- "name": "Hooters",
- "amenity": "restaurant"
- },
- "name": "Hooters",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Sternen": {
- "tags": {
- "name": "Sternen",
- "amenity": "restaurant"
- },
- "name": "Sternen",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Hirschen": {
- "tags": {
- "name": "Hirschen",
- "amenity": "restaurant"
- },
- "name": "Hirschen",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Denny's": {
- "tags": {
- "name": "Denny's",
- "amenity": "restaurant"
- },
- "name": "Denny's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Athen": {
- "tags": {
- "name": "Athen",
- "amenity": "restaurant"
- },
- "name": "Athen",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Sonne": {
- "tags": {
- "name": "Sonne",
- "amenity": "restaurant"
- },
- "name": "Sonne",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Hirsch": {
- "tags": {
- "name": "Hirsch",
- "amenity": "restaurant"
- },
- "name": "Hirsch",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Ratskeller": {
- "tags": {
- "name": "Ratskeller",
- "amenity": "restaurant"
- },
- "name": "Ratskeller",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/La Cantina": {
- "tags": {
- "name": "La Cantina",
- "amenity": "restaurant"
- },
- "name": "La Cantina",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Gasthaus Krone": {
- "tags": {
- "name": "Gasthaus Krone",
- "amenity": "restaurant"
- },
- "name": "Gasthaus Krone",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/El Greco": {
- "tags": {
- "name": "El Greco",
- "amenity": "restaurant"
- },
- "name": "El Greco",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Gasthof zur Post": {
- "tags": {
- "name": "Gasthof zur Post",
- "amenity": "restaurant"
- },
- "name": "Gasthof zur Post",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Nando's": {
- "tags": {
- "name": "Nando's",
- "amenity": "restaurant"
- },
- "name": "Nando's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Löwen": {
- "tags": {
- "name": "Löwen",
- "amenity": "restaurant"
- },
- "name": "Löwen",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/La Pataterie": {
- "tags": {
- "name": "La Pataterie",
- "amenity": "restaurant"
- },
- "name": "La Pataterie",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Bella Napoli": {
- "tags": {
- "name": "Bella Napoli",
- "amenity": "restaurant"
- },
- "name": "Bella Napoli",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Pizza Express": {
- "tags": {
- "name": "Pizza Express",
- "amenity": "restaurant"
- },
- "name": "Pizza Express",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Mandarin": {
- "tags": {
- "name": "Mandarin",
- "amenity": "restaurant"
- },
- "name": "Mandarin",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Hong Kong": {
- "tags": {
- "name": "Hong Kong",
- "amenity": "restaurant"
- },
- "name": "Hong Kong",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Zizzi": {
- "tags": {
- "name": "Zizzi",
- "amenity": "restaurant"
- },
- "name": "Zizzi",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Cracker Barrel": {
- "tags": {
- "name": "Cracker Barrel",
- "amenity": "restaurant"
- },
- "name": "Cracker Barrel",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Rhodos": {
- "tags": {
- "name": "Rhodos",
- "amenity": "restaurant"
- },
- "name": "Rhodos",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Lindenhof": {
- "tags": {
- "name": "Lindenhof",
- "amenity": "restaurant"
- },
- "name": "Lindenhof",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Milano": {
- "tags": {
- "name": "Milano",
- "amenity": "restaurant"
- },
- "name": "Milano",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Dolce Vita": {
- "tags": {
- "name": "Dolce Vita",
- "amenity": "restaurant"
- },
- "name": "Dolce Vita",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Kirchenwirt": {
- "tags": {
- "name": "Kirchenwirt",
- "amenity": "restaurant"
- },
- "name": "Kirchenwirt",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Kantine": {
- "tags": {
- "name": "Kantine",
- "amenity": "restaurant"
- },
- "name": "Kantine",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Ochsen": {
- "tags": {
- "name": "Ochsen",
- "amenity": "restaurant"
- },
- "name": "Ochsen",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Spur": {
- "tags": {
- "name": "Spur",
- "amenity": "restaurant"
- },
- "name": "Spur",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Mykonos": {
- "tags": {
- "name": "Mykonos",
- "amenity": "restaurant"
- },
- "name": "Mykonos",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Lotus": {
- "tags": {
- "name": "Lotus",
- "amenity": "restaurant"
- },
- "name": "Lotus",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Applebee's": {
- "tags": {
- "name": "Applebee's",
- "amenity": "restaurant"
- },
- "name": "Applebee's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Flunch": {
- "tags": {
- "name": "Flunch",
- "amenity": "restaurant"
- },
- "name": "Flunch",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Zur Post": {
- "tags": {
- "name": "Zur Post",
- "amenity": "restaurant"
- },
- "name": "Zur Post",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/China Town": {
- "tags": {
- "name": "China Town",
- "amenity": "restaurant"
- },
- "name": "China Town",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/La Dolce Vita": {
- "tags": {
- "name": "La Dolce Vita",
- "amenity": "restaurant"
- },
- "name": "La Dolce Vita",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Waffle House": {
- "tags": {
- "name": "Waffle House",
- "amenity": "restaurant"
- },
- "name": "Waffle House",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Delphi": {
- "tags": {
- "name": "Delphi",
- "amenity": "restaurant"
- },
- "name": "Delphi",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Linde": {
- "tags": {
- "name": "Linde",
- "amenity": "restaurant"
- },
- "name": "Linde",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Outback Steakhouse": {
- "tags": {
- "name": "Outback Steakhouse",
- "amenity": "restaurant"
- },
- "name": "Outback Steakhouse",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Dionysos": {
- "tags": {
- "name": "Dionysos",
- "amenity": "restaurant"
- },
- "name": "Dionysos",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Kelsey's": {
- "tags": {
- "name": "Kelsey's",
- "amenity": "restaurant"
- },
- "name": "Kelsey's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Boston Pizza": {
- "tags": {
- "name": "Boston Pizza",
- "amenity": "restaurant"
- },
- "name": "Boston Pizza",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Bella Italia": {
- "tags": {
- "name": "Bella Italia",
- "amenity": "restaurant"
- },
- "name": "Bella Italia",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Sizzler": {
- "tags": {
- "name": "Sizzler",
- "amenity": "restaurant"
- },
- "name": "Sizzler",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Grüner Baum": {
- "tags": {
- "name": "Grüner Baum",
- "amenity": "restaurant"
- },
- "name": "Grüner Baum",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Taj Mahal": {
- "tags": {
- "name": "Taj Mahal",
- "amenity": "restaurant"
- },
- "name": "Taj Mahal",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Rössli": {
- "tags": {
- "name": "Rössli",
- "amenity": "restaurant"
- },
- "name": "Rössli",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Traube": {
- "tags": {
- "name": "Traube",
- "amenity": "restaurant"
- },
- "name": "Traube",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Adria": {
- "tags": {
- "name": "Adria",
- "amenity": "restaurant"
- },
- "name": "Adria",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Red Robin": {
- "tags": {
- "name": "Red Robin",
- "amenity": "restaurant"
- },
- "name": "Red Robin",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Roma": {
- "tags": {
- "name": "Roma",
- "amenity": "restaurant"
- },
- "name": "Roma",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/San Marco": {
- "tags": {
- "name": "San Marco",
- "amenity": "restaurant"
- },
- "name": "San Marco",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Hellas": {
- "tags": {
- "name": "Hellas",
- "amenity": "restaurant"
- },
- "name": "Hellas",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/La Perla": {
- "tags": {
- "name": "La Perla",
- "amenity": "restaurant"
- },
- "name": "La Perla",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Vips": {
- "tags": {
- "name": "Vips",
- "amenity": "restaurant"
- },
- "name": "Vips",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Panera Bread": {
- "tags": {
- "name": "Panera Bread",
- "amenity": "restaurant"
- },
- "name": "Panera Bread",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Da Vinci": {
- "tags": {
- "name": "Da Vinci",
- "amenity": "restaurant"
- },
- "name": "Da Vinci",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Hippopotamus": {
- "tags": {
- "name": "Hippopotamus",
- "amenity": "restaurant"
- },
- "name": "Hippopotamus",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Prezzo": {
- "tags": {
- "name": "Prezzo",
- "amenity": "restaurant"
- },
- "name": "Prezzo",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Courtepaille": {
- "tags": {
- "name": "Courtepaille",
- "amenity": "restaurant"
- },
- "name": "Courtepaille",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Hard Rock Cafe": {
- "tags": {
- "name": "Hard Rock Cafe",
- "amenity": "restaurant"
- },
- "name": "Hard Rock Cafe",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Panorama": {
- "tags": {
- "name": "Panorama",
- "amenity": "restaurant"
- },
- "name": "Panorama",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/デニーズ": {
- "tags": {
- "name": "デニーズ",
- "amenity": "restaurant"
- },
- "name": "デニーズ",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Sportheim": {
- "tags": {
- "name": "Sportheim",
- "amenity": "restaurant"
- },
- "name": "Sportheim",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/餃子の王将": {
- "tags": {
- "name": "餃子の王将",
- "amenity": "restaurant"
- },
- "name": "餃子の王将",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Bären": {
- "tags": {
- "name": "Bären",
- "amenity": "restaurant"
- },
- "name": "Bären",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Alte Post": {
- "tags": {
- "name": "Alte Post",
- "amenity": "restaurant"
- },
- "name": "Alte Post",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Pizzeria Roma": {
- "tags": {
- "name": "Pizzeria Roma",
- "amenity": "restaurant"
- },
- "name": "Pizzeria Roma",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/China Garden": {
- "tags": {
- "name": "China Garden",
- "amenity": "restaurant"
- },
- "name": "China Garden",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Vapiano": {
- "tags": {
- "name": "Vapiano",
- "amenity": "restaurant"
- },
- "name": "Vapiano",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Mamma Mia": {
- "tags": {
- "name": "Mamma Mia",
- "amenity": "restaurant"
- },
- "name": "Mamma Mia",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Schwarzer Adler": {
- "tags": {
- "name": "Schwarzer Adler",
- "amenity": "restaurant"
- },
- "name": "Schwarzer Adler",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/IHOP": {
- "tags": {
- "name": "IHOP",
- "amenity": "restaurant"
- },
- "name": "IHOP",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Chili's": {
- "tags": {
- "name": "Chili's",
- "amenity": "restaurant"
- },
- "name": "Chili's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Asia": {
- "tags": {
- "name": "Asia",
- "amenity": "restaurant"
- },
- "name": "Asia",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Olive Garden": {
- "tags": {
- "name": "Olive Garden",
- "amenity": "restaurant"
- },
- "name": "Olive Garden",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/TGI Friday's": {
- "tags": {
- "name": "TGI Friday's",
- "amenity": "restaurant"
- },
- "name": "TGI Friday's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Friendly's": {
- "tags": {
- "name": "Friendly's",
- "amenity": "restaurant"
- },
- "name": "Friendly's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Buffalo Grill": {
- "tags": {
- "name": "Buffalo Grill",
- "amenity": "restaurant"
- },
- "name": "Buffalo Grill",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Texas Roadhouse": {
- "tags": {
- "name": "Texas Roadhouse",
- "amenity": "restaurant"
- },
- "name": "Texas Roadhouse",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/ガスト": {
- "tags": {
- "name": "ガスト",
- "name:en": "Gusto",
- "amenity": "restaurant"
- },
- "name": "ガスト",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Sakura": {
- "tags": {
- "name": "Sakura",
- "amenity": "restaurant"
- },
- "name": "Sakura",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Mensa": {
- "tags": {
- "name": "Mensa",
- "amenity": "restaurant"
- },
- "name": "Mensa",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/The Keg": {
- "tags": {
- "name": "The Keg",
- "amenity": "restaurant"
- },
- "name": "The Keg",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/サイゼリヤ": {
- "tags": {
- "name": "サイゼリヤ",
- "amenity": "restaurant"
- },
- "name": "サイゼリヤ",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/La Strada": {
- "tags": {
- "name": "La Strada",
- "amenity": "restaurant"
- },
- "name": "La Strada",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Village Inn": {
- "tags": {
- "name": "Village Inn",
- "amenity": "restaurant"
- },
- "name": "Village Inn",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Buffalo Wild Wings": {
- "tags": {
- "name": "Buffalo Wild Wings",
- "amenity": "restaurant"
- },
- "name": "Buffalo Wild Wings",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Peking": {
- "tags": {
- "name": "Peking",
- "amenity": "restaurant"
- },
- "name": "Peking",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Round Table Pizza": {
- "tags": {
- "name": "Round Table Pizza",
- "amenity": "restaurant"
- },
- "name": "Round Table Pizza",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/California Pizza Kitchen": {
- "tags": {
- "name": "California Pizza Kitchen",
- "amenity": "restaurant"
- },
- "name": "California Pizza Kitchen",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Якитория": {
- "tags": {
- "name": "Якитория",
- "amenity": "restaurant"
- },
- "name": "Якитория",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Golden Corral": {
- "tags": {
- "name": "Golden Corral",
- "amenity": "restaurant"
- },
- "name": "Golden Corral",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Perkins": {
- "tags": {
- "name": "Perkins",
- "amenity": "restaurant"
- },
- "name": "Perkins",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Ruby Tuesday": {
- "tags": {
- "name": "Ruby Tuesday",
- "amenity": "restaurant"
- },
- "name": "Ruby Tuesday",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Shari's": {
- "tags": {
- "name": "Shari's",
- "amenity": "restaurant"
- },
- "name": "Shari's",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Bob Evans": {
- "tags": {
- "name": "Bob Evans",
- "amenity": "restaurant"
- },
- "name": "Bob Evans",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/바다횟집 (Bada Fish Restaurant)": {
- "tags": {
- "name": "바다횟집 (Bada Fish Restaurant)",
- "amenity": "restaurant"
- },
- "name": "바다횟집 (Bada Fish Restaurant)",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Mang Inasal": {
- "tags": {
- "name": "Mang Inasal",
- "amenity": "restaurant"
- },
- "name": "Mang Inasal",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Евразия": {
- "tags": {
- "name": "Евразия",
- "amenity": "restaurant"
- },
- "name": "Евразия",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/ジョナサン": {
- "tags": {
- "name": "ジョナサン",
- "amenity": "restaurant"
- },
- "name": "ジョナサン",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/restaurant/Longhorn Steakhouse": {
- "tags": {
- "name": "Longhorn Steakhouse",
- "amenity": "restaurant"
- },
- "name": "Longhorn Steakhouse",
- "icon": "restaurant",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "building_area",
- "address",
- "opening_hours",
- "capacity",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/bank/Chase": {
- "tags": {
- "name": "Chase",
- "amenity": "bank"
- },
- "name": "Chase",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Commonwealth Bank": {
- "tags": {
- "name": "Commonwealth Bank",
- "amenity": "bank"
- },
- "name": "Commonwealth Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Citibank": {
- "tags": {
- "name": "Citibank",
- "amenity": "bank"
- },
- "name": "Citibank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/HSBC": {
- "tags": {
- "name": "HSBC",
- "amenity": "bank"
- },
- "name": "HSBC",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Barclays": {
- "tags": {
- "name": "Barclays",
- "amenity": "bank"
- },
- "name": "Barclays",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Westpac": {
- "tags": {
- "name": "Westpac",
- "amenity": "bank"
- },
- "name": "Westpac",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/NAB": {
- "tags": {
- "name": "NAB",
- "amenity": "bank"
- },
- "name": "NAB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ANZ": {
- "tags": {
- "name": "ANZ",
- "amenity": "bank"
- },
- "name": "ANZ",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Lloyds Bank": {
- "tags": {
- "name": "Lloyds Bank",
- "amenity": "bank"
- },
- "name": "Lloyds Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Landbank": {
- "tags": {
- "name": "Landbank",
- "amenity": "bank"
- },
- "name": "Landbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Sparkasse": {
- "tags": {
- "name": "Sparkasse",
- "amenity": "bank"
- },
- "name": "Sparkasse",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/UCPB": {
- "tags": {
- "name": "UCPB",
- "amenity": "bank"
- },
- "name": "UCPB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/PNB": {
- "tags": {
- "name": "PNB",
- "amenity": "bank"
- },
- "name": "PNB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Metrobank": {
- "tags": {
- "name": "Metrobank",
- "amenity": "bank"
- },
- "name": "Metrobank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BDO": {
- "tags": {
- "name": "BDO",
- "amenity": "bank"
- },
- "name": "BDO",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Volksbank": {
- "tags": {
- "name": "Volksbank",
- "amenity": "bank"
- },
- "name": "Volksbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BPI": {
- "tags": {
- "name": "BPI",
- "amenity": "bank"
- },
- "name": "BPI",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Postbank": {
- "tags": {
- "name": "Postbank",
- "amenity": "bank"
- },
- "name": "Postbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/NatWest": {
- "tags": {
- "name": "NatWest",
- "amenity": "bank"
- },
- "name": "NatWest",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Raiffeisenbank": {
- "tags": {
- "name": "Raiffeisenbank",
- "amenity": "bank"
- },
- "name": "Raiffeisenbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Yorkshire Bank": {
- "tags": {
- "name": "Yorkshire Bank",
- "amenity": "bank"
- },
- "name": "Yorkshire Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ABSA": {
- "tags": {
- "name": "ABSA",
- "amenity": "bank"
- },
- "name": "ABSA",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Standard Bank": {
- "tags": {
- "name": "Standard Bank",
- "amenity": "bank"
- },
- "name": "Standard Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/FNB": {
- "tags": {
- "name": "FNB",
- "amenity": "bank"
- },
- "name": "FNB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Deutsche Bank": {
- "tags": {
- "name": "Deutsche Bank",
- "amenity": "bank"
- },
- "name": "Deutsche Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/SEB": {
- "tags": {
- "name": "SEB",
- "amenity": "bank"
- },
- "name": "SEB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Commerzbank": {
- "tags": {
- "name": "Commerzbank",
- "amenity": "bank"
- },
- "name": "Commerzbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Targobank": {
- "tags": {
- "name": "Targobank",
- "amenity": "bank"
- },
- "name": "Targobank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ABN AMRO": {
- "tags": {
- "name": "ABN AMRO",
- "amenity": "bank"
- },
- "name": "ABN AMRO",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Handelsbanken": {
- "tags": {
- "name": "Handelsbanken",
- "amenity": "bank"
- },
- "name": "Handelsbanken",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Swedbank": {
- "tags": {
- "name": "Swedbank",
- "amenity": "bank"
- },
- "name": "Swedbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Kreissparkasse": {
- "tags": {
- "name": "Kreissparkasse",
- "amenity": "bank"
- },
- "name": "Kreissparkasse",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/UniCredit Bank": {
- "tags": {
- "name": "UniCredit Bank",
- "amenity": "bank"
- },
- "name": "UniCredit Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Monte dei Paschi di Siena": {
- "tags": {
- "name": "Monte dei Paschi di Siena",
- "amenity": "bank"
- },
- "name": "Monte dei Paschi di Siena",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caja Rural": {
- "tags": {
- "name": "Caja Rural",
- "amenity": "bank"
- },
- "name": "Caja Rural",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Dresdner Bank": {
- "tags": {
- "name": "Dresdner Bank",
- "amenity": "bank"
- },
- "name": "Dresdner Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Sparda-Bank": {
- "tags": {
- "name": "Sparda-Bank",
- "amenity": "bank"
- },
- "name": "Sparda-Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/VÚB": {
- "tags": {
- "name": "VÚB",
- "amenity": "bank"
- },
- "name": "VÚB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Slovenská sporiteľňa": {
- "tags": {
- "name": "Slovenská sporiteľňa",
- "amenity": "bank"
- },
- "name": "Slovenská sporiteľňa",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank of Montreal": {
- "tags": {
- "name": "Bank of Montreal",
- "amenity": "bank"
- },
- "name": "Bank of Montreal",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/KBC": {
- "tags": {
- "name": "KBC",
- "amenity": "bank"
- },
- "name": "KBC",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Royal Bank of Scotland": {
- "tags": {
- "name": "Royal Bank of Scotland",
- "amenity": "bank"
- },
- "name": "Royal Bank of Scotland",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/TSB": {
- "tags": {
- "name": "TSB",
- "amenity": "bank"
- },
- "name": "TSB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/US Bank": {
- "tags": {
- "name": "US Bank",
- "amenity": "bank"
- },
- "name": "US Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/HypoVereinsbank": {
- "tags": {
- "name": "HypoVereinsbank",
- "amenity": "bank"
- },
- "name": "HypoVereinsbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank Austria": {
- "tags": {
- "name": "Bank Austria",
- "amenity": "bank"
- },
- "name": "Bank Austria",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ING": {
- "tags": {
- "name": "ING",
- "amenity": "bank"
- },
- "name": "ING",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Erste Bank": {
- "tags": {
- "name": "Erste Bank",
- "amenity": "bank"
- },
- "name": "Erste Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/CIBC": {
- "tags": {
- "name": "CIBC",
- "amenity": "bank"
- },
- "name": "CIBC",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Scotiabank": {
- "tags": {
- "name": "Scotiabank",
- "amenity": "bank"
- },
- "name": "Scotiabank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caisse d'Épargne": {
- "tags": {
- "name": "Caisse d'Épargne",
- "amenity": "bank"
- },
- "name": "Caisse d'Épargne",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Santander": {
- "tags": {
- "name": "Santander",
- "amenity": "bank"
- },
- "name": "Santander",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank of Scotland": {
- "tags": {
- "name": "Bank of Scotland",
- "amenity": "bank"
- },
- "name": "Bank of Scotland",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/TD Canada Trust": {
- "tags": {
- "name": "TD Canada Trust",
- "amenity": "bank"
- },
- "name": "TD Canada Trust",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BMO": {
- "tags": {
- "name": "BMO",
- "amenity": "bank"
- },
- "name": "BMO",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Danske Bank": {
- "tags": {
- "name": "Danske Bank",
- "amenity": "bank"
- },
- "name": "Danske Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/OTP": {
- "tags": {
- "name": "OTP",
- "amenity": "bank"
- },
- "name": "OTP",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Crédit Agricole": {
- "tags": {
- "name": "Crédit Agricole",
- "amenity": "bank"
- },
- "name": "Crédit Agricole",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/LCL": {
- "tags": {
- "name": "LCL",
- "amenity": "bank"
- },
- "name": "LCL",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/VR-Bank": {
- "tags": {
- "name": "VR-Bank",
- "amenity": "bank"
- },
- "name": "VR-Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ČSOB": {
- "tags": {
- "name": "ČSOB",
- "amenity": "bank"
- },
- "name": "ČSOB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Česká spořitelna": {
- "tags": {
- "name": "Česká spořitelna",
- "amenity": "bank"
- },
- "name": "Česká spořitelna",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BNP": {
- "tags": {
- "name": "BNP",
- "amenity": "bank"
- },
- "name": "BNP",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Royal Bank": {
- "tags": {
- "name": "Royal Bank",
- "amenity": "bank"
- },
- "name": "Royal Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Nationwide": {
- "tags": {
- "name": "Nationwide",
- "amenity": "bank"
- },
- "name": "Nationwide",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Halifax": {
- "tags": {
- "name": "Halifax",
- "amenity": "bank"
- },
- "name": "Halifax",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BAWAG PSK": {
- "tags": {
- "name": "BAWAG PSK",
- "amenity": "bank"
- },
- "name": "BAWAG PSK",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/National Bank": {
- "tags": {
- "name": "National Bank",
- "amenity": "bank"
- },
- "name": "National Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Nedbank": {
- "tags": {
- "name": "Nedbank",
- "amenity": "bank"
- },
- "name": "Nedbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/First National Bank": {
- "tags": {
- "name": "First National Bank",
- "amenity": "bank"
- },
- "name": "First National Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Nordea": {
- "tags": {
- "name": "Nordea",
- "amenity": "bank"
- },
- "name": "Nordea",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Rabobank": {
- "tags": {
- "name": "Rabobank",
- "amenity": "bank"
- },
- "name": "Rabobank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Sparkasse KölnBonn": {
- "tags": {
- "name": "Sparkasse KölnBonn",
- "amenity": "bank"
- },
- "name": "Sparkasse KölnBonn",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Tatra banka": {
- "tags": {
- "name": "Tatra banka",
- "amenity": "bank"
- },
- "name": "Tatra banka",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Berliner Sparkasse": {
- "tags": {
- "name": "Berliner Sparkasse",
- "amenity": "bank"
- },
- "name": "Berliner Sparkasse",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Berliner Volksbank": {
- "tags": {
- "name": "Berliner Volksbank",
- "amenity": "bank"
- },
- "name": "Berliner Volksbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Wells Fargo": {
- "tags": {
- "name": "Wells Fargo",
- "amenity": "bank"
- },
- "name": "Wells Fargo",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Credit Suisse": {
- "tags": {
- "name": "Credit Suisse",
- "amenity": "bank"
- },
- "name": "Credit Suisse",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Société Générale": {
- "tags": {
- "name": "Société Générale",
- "amenity": "bank"
- },
- "name": "Société Générale",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Osuuspankki": {
- "tags": {
- "name": "Osuuspankki",
- "amenity": "bank"
- },
- "name": "Osuuspankki",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Sparkasse Aachen": {
- "tags": {
- "name": "Sparkasse Aachen",
- "amenity": "bank"
- },
- "name": "Sparkasse Aachen",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Hamburger Sparkasse": {
- "tags": {
- "name": "Hamburger Sparkasse",
- "amenity": "bank"
- },
- "name": "Hamburger Sparkasse",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Cassa di Risparmio del Veneto": {
- "tags": {
- "name": "Cassa di Risparmio del Veneto",
- "amenity": "bank"
- },
- "name": "Cassa di Risparmio del Veneto",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BNP Paribas": {
- "tags": {
- "name": "BNP Paribas",
- "amenity": "bank"
- },
- "name": "BNP Paribas",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banque Populaire": {
- "tags": {
- "name": "Banque Populaire",
- "amenity": "bank"
- },
- "name": "Banque Populaire",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BNP Paribas Fortis": {
- "tags": {
- "name": "BNP Paribas Fortis",
- "amenity": "bank"
- },
- "name": "BNP Paribas Fortis",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Popular": {
- "tags": {
- "name": "Banco Popular",
- "amenity": "bank"
- },
- "name": "Banco Popular",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bancaja": {
- "tags": {
- "name": "Bancaja",
- "amenity": "bank"
- },
- "name": "Bancaja",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banesto": {
- "tags": {
- "name": "Banesto",
- "amenity": "bank"
- },
- "name": "Banesto",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/La Caixa": {
- "tags": {
- "name": "La Caixa",
- "amenity": "bank"
- },
- "name": "La Caixa",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Santander Consumer Bank": {
- "tags": {
- "name": "Santander Consumer Bank",
- "amenity": "bank"
- },
- "name": "Santander Consumer Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BRD": {
- "tags": {
- "name": "BRD",
- "amenity": "bank"
- },
- "name": "BRD",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BCR": {
- "tags": {
- "name": "BCR",
- "amenity": "bank"
- },
- "name": "BCR",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banca Transilvania": {
- "tags": {
- "name": "Banca Transilvania",
- "amenity": "bank"
- },
- "name": "Banca Transilvania",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BW-Bank": {
- "tags": {
- "name": "BW-Bank",
- "amenity": "bank"
- },
- "name": "BW-Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Komerční banka": {
- "tags": {
- "name": "Komerční banka",
- "amenity": "bank"
- },
- "name": "Komerční banka",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Pastor": {
- "tags": {
- "name": "Banco Pastor",
- "amenity": "bank"
- },
- "name": "Banco Pastor",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Stadtsparkasse": {
- "tags": {
- "name": "Stadtsparkasse",
- "amenity": "bank"
- },
- "name": "Stadtsparkasse",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Ulster Bank": {
- "tags": {
- "name": "Ulster Bank",
- "amenity": "bank"
- },
- "name": "Ulster Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Sberbank": {
- "tags": {
- "name": "Sberbank",
- "amenity": "bank"
- },
- "name": "Sberbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/CIC": {
- "tags": {
- "name": "CIC",
- "amenity": "bank"
- },
- "name": "CIC",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bancpost": {
- "tags": {
- "name": "Bancpost",
- "amenity": "bank"
- },
- "name": "Bancpost",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caja Madrid": {
- "tags": {
- "name": "Caja Madrid",
- "amenity": "bank"
- },
- "name": "Caja Madrid",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Maybank": {
- "tags": {
- "name": "Maybank",
- "amenity": "bank"
- },
- "name": "Maybank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/中国银行": {
- "tags": {
- "name": "中国银行",
- "amenity": "bank"
- },
- "name": "中国银行",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Unicredit Banca": {
- "tags": {
- "name": "Unicredit Banca",
- "amenity": "bank"
- },
- "name": "Unicredit Banca",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Crédit Mutuel": {
- "tags": {
- "name": "Crédit Mutuel",
- "amenity": "bank"
- },
- "name": "Crédit Mutuel",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BBVA": {
- "tags": {
- "name": "BBVA",
- "amenity": "bank"
- },
- "name": "BBVA",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Intesa San Paolo": {
- "tags": {
- "name": "Intesa San Paolo",
- "amenity": "bank"
- },
- "name": "Intesa San Paolo",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/TD Bank": {
- "tags": {
- "name": "TD Bank",
- "amenity": "bank"
- },
- "name": "TD Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Belfius": {
- "tags": {
- "name": "Belfius",
- "amenity": "bank"
- },
- "name": "Belfius",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank of America": {
- "tags": {
- "name": "Bank of America",
- "amenity": "bank"
- },
- "name": "Bank of America",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/RBC": {
- "tags": {
- "name": "RBC",
- "amenity": "bank"
- },
- "name": "RBC",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Alpha Bank": {
- "tags": {
- "name": "Alpha Bank",
- "amenity": "bank"
- },
- "name": "Alpha Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Сбербанк": {
- "tags": {
- "name": "Сбербанк",
- "amenity": "bank"
- },
- "name": "Сбербанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Россельхозбанк": {
- "tags": {
- "name": "Россельхозбанк",
- "amenity": "bank"
- },
- "name": "Россельхозбанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Crédit du Nord": {
- "tags": {
- "name": "Crédit du Nord",
- "amenity": "bank"
- },
- "name": "Crédit du Nord",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BancoEstado": {
- "tags": {
- "name": "BancoEstado",
- "amenity": "bank"
- },
- "name": "BancoEstado",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Millennium Bank": {
- "tags": {
- "name": "Millennium Bank",
- "amenity": "bank"
- },
- "name": "Millennium Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/State Bank of India": {
- "tags": {
- "name": "State Bank of India",
- "amenity": "bank"
- },
- "name": "State Bank of India",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Беларусбанк": {
- "tags": {
- "name": "Беларусбанк",
- "amenity": "bank"
- },
- "name": "Беларусбанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ING Bank Śląski": {
- "tags": {
- "name": "ING Bank Śląski",
- "amenity": "bank"
- },
- "name": "ING Bank Śląski",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caixa Geral de Depósitos": {
- "tags": {
- "name": "Caixa Geral de Depósitos",
- "amenity": "bank"
- },
- "name": "Caixa Geral de Depósitos",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Kreissparkasse Köln": {
- "tags": {
- "name": "Kreissparkasse Köln",
- "amenity": "bank"
- },
- "name": "Kreissparkasse Köln",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco BCI": {
- "tags": {
- "name": "Banco BCI",
- "amenity": "bank"
- },
- "name": "Banco BCI",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco de Chile": {
- "tags": {
- "name": "Banco de Chile",
- "amenity": "bank"
- },
- "name": "Banco de Chile",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ВТБ24": {
- "tags": {
- "name": "ВТБ24",
- "amenity": "bank"
- },
- "name": "ВТБ24",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/UBS": {
- "tags": {
- "name": "UBS",
- "amenity": "bank"
- },
- "name": "UBS",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/PKO BP": {
- "tags": {
- "name": "PKO BP",
- "amenity": "bank"
- },
- "name": "PKO BP",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Chinabank": {
- "tags": {
- "name": "Chinabank",
- "amenity": "bank"
- },
- "name": "Chinabank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/PSBank": {
- "tags": {
- "name": "PSBank",
- "amenity": "bank"
- },
- "name": "PSBank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Union Bank": {
- "tags": {
- "name": "Union Bank",
- "amenity": "bank"
- },
- "name": "Union Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/China Bank": {
- "tags": {
- "name": "China Bank",
- "amenity": "bank"
- },
- "name": "China Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/RCBC": {
- "tags": {
- "name": "RCBC",
- "amenity": "bank"
- },
- "name": "RCBC",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Unicaja": {
- "tags": {
- "name": "Unicaja",
- "amenity": "bank"
- },
- "name": "Unicaja",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BBK": {
- "tags": {
- "name": "BBK",
- "amenity": "bank"
- },
- "name": "BBK",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Ibercaja": {
- "tags": {
- "name": "Ibercaja",
- "amenity": "bank"
- },
- "name": "Ibercaja",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/RBS": {
- "tags": {
- "name": "RBS",
- "amenity": "bank"
- },
- "name": "RBS",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Commercial Bank of Ceylon PLC": {
- "tags": {
- "name": "Commercial Bank of Ceylon PLC",
- "amenity": "bank"
- },
- "name": "Commercial Bank of Ceylon PLC",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank of Ireland": {
- "tags": {
- "name": "Bank of Ireland",
- "amenity": "bank"
- },
- "name": "Bank of Ireland",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BNL": {
- "tags": {
- "name": "BNL",
- "amenity": "bank"
- },
- "name": "BNL",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Santander": {
- "tags": {
- "name": "Banco Santander",
- "amenity": "bank"
- },
- "name": "Banco Santander",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Itaú": {
- "tags": {
- "name": "Banco Itaú",
- "amenity": "bank"
- },
- "name": "Banco Itaú",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/AIB": {
- "tags": {
- "name": "AIB",
- "amenity": "bank"
- },
- "name": "AIB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BZ WBK": {
- "tags": {
- "name": "BZ WBK",
- "amenity": "bank"
- },
- "name": "BZ WBK",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco do Brasil": {
- "tags": {
- "name": "Banco do Brasil",
- "amenity": "bank"
- },
- "name": "Banco do Brasil",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caixa Econômica Federal": {
- "tags": {
- "name": "Caixa Econômica Federal",
- "amenity": "bank"
- },
- "name": "Caixa Econômica Federal",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Fifth Third Bank": {
- "tags": {
- "name": "Fifth Third Bank",
- "amenity": "bank"
- },
- "name": "Fifth Third Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banca Popolare di Vicenza": {
- "tags": {
- "name": "Banca Popolare di Vicenza",
- "amenity": "bank"
- },
- "name": "Banca Popolare di Vicenza",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Wachovia": {
- "tags": {
- "name": "Wachovia",
- "amenity": "bank"
- },
- "name": "Wachovia",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/OLB": {
- "tags": {
- "name": "OLB",
- "amenity": "bank"
- },
- "name": "OLB",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/みずほ銀行": {
- "tags": {
- "name": "みずほ銀行",
- "amenity": "bank"
- },
- "name": "みずほ銀行",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BES": {
- "tags": {
- "name": "BES",
- "amenity": "bank"
- },
- "name": "BES",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ICICI Bank": {
- "tags": {
- "name": "ICICI Bank",
- "amenity": "bank"
- },
- "name": "ICICI Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/HDFC Bank": {
- "tags": {
- "name": "HDFC Bank",
- "amenity": "bank"
- },
- "name": "HDFC Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/La Banque Postale": {
- "tags": {
- "name": "La Banque Postale",
- "amenity": "bank"
- },
- "name": "La Banque Postale",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Pekao SA": {
- "tags": {
- "name": "Pekao SA",
- "amenity": "bank"
- },
- "name": "Pekao SA",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Oberbank": {
- "tags": {
- "name": "Oberbank",
- "amenity": "bank"
- },
- "name": "Oberbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bradesco": {
- "tags": {
- "name": "Bradesco",
- "amenity": "bank"
- },
- "name": "Bradesco",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Oldenburgische Landesbank": {
- "tags": {
- "name": "Oldenburgische Landesbank",
- "amenity": "bank"
- },
- "name": "Oldenburgische Landesbank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bendigo Bank": {
- "tags": {
- "name": "Bendigo Bank",
- "amenity": "bank"
- },
- "name": "Bendigo Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Argenta": {
- "tags": {
- "name": "Argenta",
- "amenity": "bank"
- },
- "name": "Argenta",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/AXA": {
- "tags": {
- "name": "AXA",
- "amenity": "bank"
- },
- "name": "AXA",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Axis Bank": {
- "tags": {
- "name": "Axis Bank",
- "amenity": "bank"
- },
- "name": "Axis Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Nación": {
- "tags": {
- "name": "Banco Nación",
- "amenity": "bank"
- },
- "name": "Banco Nación",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/GE Money Bank": {
- "tags": {
- "name": "GE Money Bank",
- "amenity": "bank"
- },
- "name": "GE Money Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Альфа-Банк": {
- "tags": {
- "name": "Альфа-Банк",
- "amenity": "bank"
- },
- "name": "Альфа-Банк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Белагропромбанк": {
- "tags": {
- "name": "Белагропромбанк",
- "amenity": "bank"
- },
- "name": "Белагропромбанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caja Círculo": {
- "tags": {
- "name": "Caja Círculo",
- "amenity": "bank"
- },
- "name": "Caja Círculo",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Galicia": {
- "tags": {
- "name": "Banco Galicia",
- "amenity": "bank"
- },
- "name": "Banco Galicia",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Eurobank": {
- "tags": {
- "name": "Eurobank",
- "amenity": "bank"
- },
- "name": "Eurobank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banca Intesa": {
- "tags": {
- "name": "Banca Intesa",
- "amenity": "bank"
- },
- "name": "Banca Intesa",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Canara Bank": {
- "tags": {
- "name": "Canara Bank",
- "amenity": "bank"
- },
- "name": "Canara Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Cajamar": {
- "tags": {
- "name": "Cajamar",
- "amenity": "bank"
- },
- "name": "Cajamar",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banamex": {
- "tags": {
- "name": "Banamex",
- "amenity": "bank"
- },
- "name": "Banamex",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Crédit Mutuel de Bretagne": {
- "tags": {
- "name": "Crédit Mutuel de Bretagne",
- "amenity": "bank"
- },
- "name": "Crédit Mutuel de Bretagne",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Davivienda": {
- "tags": {
- "name": "Davivienda",
- "amenity": "bank"
- },
- "name": "Davivienda",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank Spółdzielczy": {
- "tags": {
- "name": "Bank Spółdzielczy",
- "amenity": "bank"
- },
- "name": "Bank Spółdzielczy",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Credit Agricole": {
- "tags": {
- "name": "Credit Agricole",
- "amenity": "bank"
- },
- "name": "Credit Agricole",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bankinter": {
- "tags": {
- "name": "Bankinter",
- "amenity": "bank"
- },
- "name": "Bankinter",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banque Nationale": {
- "tags": {
- "name": "Banque Nationale",
- "amenity": "bank"
- },
- "name": "Banque Nationale",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank of the West": {
- "tags": {
- "name": "Bank of the West",
- "amenity": "bank"
- },
- "name": "Bank of the West",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Key Bank": {
- "tags": {
- "name": "Key Bank",
- "amenity": "bank"
- },
- "name": "Key Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Western Union": {
- "tags": {
- "name": "Western Union",
- "amenity": "bank"
- },
- "name": "Western Union",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Citizens Bank": {
- "tags": {
- "name": "Citizens Bank",
- "amenity": "bank"
- },
- "name": "Citizens Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ПриватБанк": {
- "tags": {
- "name": "ПриватБанк",
- "amenity": "bank"
- },
- "name": "ПриватБанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Security Bank": {
- "tags": {
- "name": "Security Bank",
- "amenity": "bank"
- },
- "name": "Security Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Millenium Bank": {
- "tags": {
- "name": "Millenium Bank",
- "amenity": "bank"
- },
- "name": "Millenium Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bankia": {
- "tags": {
- "name": "Bankia",
- "amenity": "bank"
- },
- "name": "Bankia",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/三菱東京UFJ銀行": {
- "tags": {
- "name": "三菱東京UFJ銀行",
- "amenity": "bank"
- },
- "name": "三菱東京UFJ銀行",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caixa": {
- "tags": {
- "name": "Caixa",
- "amenity": "bank"
- },
- "name": "Caixa",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco de Costa Rica": {
- "tags": {
- "name": "Banco de Costa Rica",
- "amenity": "bank"
- },
- "name": "Banco de Costa Rica",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/SunTrust Bank": {
- "tags": {
- "name": "SunTrust Bank",
- "amenity": "bank"
- },
- "name": "SunTrust Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Itaú": {
- "tags": {
- "name": "Itaú",
- "amenity": "bank"
- },
- "name": "Itaú",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/PBZ": {
- "tags": {
- "name": "PBZ",
- "amenity": "bank"
- },
- "name": "PBZ",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/中国工商银行": {
- "tags": {
- "name": "中国工商银行",
- "amenity": "bank"
- },
- "name": "中国工商银行",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bancolombia": {
- "tags": {
- "name": "Bancolombia",
- "amenity": "bank"
- },
- "name": "Bancolombia",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Райффайзен Банк Аваль": {
- "tags": {
- "name": "Райффайзен Банк Аваль",
- "amenity": "bank"
- },
- "name": "Райффайзен Банк Аваль",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bancomer": {
- "tags": {
- "name": "Bancomer",
- "amenity": "bank"
- },
- "name": "Bancomer",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banorte": {
- "tags": {
- "name": "Banorte",
- "amenity": "bank"
- },
- "name": "Banorte",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Alior Bank": {
- "tags": {
- "name": "Alior Bank",
- "amenity": "bank"
- },
- "name": "Alior Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BOC": {
- "tags": {
- "name": "BOC",
- "amenity": "bank"
- },
- "name": "BOC",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Банк Москвы": {
- "tags": {
- "name": "Банк Москвы",
- "amenity": "bank"
- },
- "name": "Банк Москвы",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ВТБ": {
- "tags": {
- "name": "ВТБ",
- "amenity": "bank"
- },
- "name": "ВТБ",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Getin Bank": {
- "tags": {
- "name": "Getin Bank",
- "amenity": "bank"
- },
- "name": "Getin Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caja Duero": {
- "tags": {
- "name": "Caja Duero",
- "amenity": "bank"
- },
- "name": "Caja Duero",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Regions Bank": {
- "tags": {
- "name": "Regions Bank",
- "amenity": "bank"
- },
- "name": "Regions Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Росбанк": {
- "tags": {
- "name": "Росбанк",
- "amenity": "bank"
- },
- "name": "Росбанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Estado": {
- "tags": {
- "name": "Banco Estado",
- "amenity": "bank"
- },
- "name": "Banco Estado",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BCI": {
- "tags": {
- "name": "BCI",
- "amenity": "bank"
- },
- "name": "BCI",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/SunTrust": {
- "tags": {
- "name": "SunTrust",
- "amenity": "bank"
- },
- "name": "SunTrust",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/PNC Bank": {
- "tags": {
- "name": "PNC Bank",
- "amenity": "bank"
- },
- "name": "PNC Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/신한은행": {
- "tags": {
- "name": "신한은행",
- "name:en": "Sinhan Bank",
- "amenity": "bank"
- },
- "name": "신한은행",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/우리은행": {
- "tags": {
- "name": "우리은행",
- "name:en": "Uri Bank",
- "amenity": "bank"
- },
- "name": "우리은행",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/국민은행": {
- "tags": {
- "name": "국민은행",
- "name:en": "Gungmin Bank",
- "amenity": "bank"
- },
- "name": "국민은행",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/중소기업은행": {
- "tags": {
- "name": "중소기업은행",
- "name:en": "Industrial Bank of Korea",
- "amenity": "bank"
- },
- "name": "중소기업은행",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/광주은행": {
- "tags": {
- "name": "광주은행",
- "name:en": "Gwangju Bank",
- "amenity": "bank"
- },
- "name": "광주은행",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Газпромбанк": {
- "tags": {
- "name": "Газпромбанк",
- "amenity": "bank"
- },
- "name": "Газпромбанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/M&T Bank": {
- "tags": {
- "name": "M&T Bank",
- "amenity": "bank"
- },
- "name": "M&T Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Caja de Burgos": {
- "tags": {
- "name": "Caja de Burgos",
- "amenity": "bank"
- },
- "name": "Caja de Burgos",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Santander Totta": {
- "tags": {
- "name": "Santander Totta",
- "amenity": "bank"
- },
- "name": "Santander Totta",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/УкрСиббанк": {
- "tags": {
- "name": "УкрСиббанк",
- "amenity": "bank"
- },
- "name": "УкрСиббанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Ощадбанк": {
- "tags": {
- "name": "Ощадбанк",
- "amenity": "bank"
- },
- "name": "Ощадбанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Уралсиб": {
- "tags": {
- "name": "Уралсиб",
- "amenity": "bank"
- },
- "name": "Уралсиб",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/りそな銀行": {
- "tags": {
- "name": "りそな銀行",
- "name:en": "Mizuho Bank",
- "amenity": "bank"
- },
- "name": "りそな銀行",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Ecobank": {
- "tags": {
- "name": "Ecobank",
- "amenity": "bank"
- },
- "name": "Ecobank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Cajero Automatico Bancared": {
- "tags": {
- "name": "Cajero Automatico Bancared",
- "amenity": "bank"
- },
- "name": "Cajero Automatico Bancared",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Промсвязьбанк": {
- "tags": {
- "name": "Промсвязьбанк",
- "amenity": "bank"
- },
- "name": "Промсвязьбанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/三井住友銀行": {
- "tags": {
- "name": "三井住友銀行",
- "amenity": "bank"
- },
- "name": "三井住友銀行",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Provincia": {
- "tags": {
- "name": "Banco Provincia",
- "amenity": "bank"
- },
- "name": "Banco Provincia",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/BB&T": {
- "tags": {
- "name": "BB&T",
- "amenity": "bank"
- },
- "name": "BB&T",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Возрождение": {
- "tags": {
- "name": "Возрождение",
- "amenity": "bank"
- },
- "name": "Возрождение",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Capital One": {
- "tags": {
- "name": "Capital One",
- "amenity": "bank"
- },
- "name": "Capital One",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/横浜銀行": {
- "tags": {
- "name": "横浜銀行",
- "amenity": "bank"
- },
- "name": "横浜銀行",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank Mandiri": {
- "tags": {
- "name": "Bank Mandiri",
- "amenity": "bank"
- },
- "name": "Bank Mandiri",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco de la Nación": {
- "tags": {
- "name": "Banco de la Nación",
- "amenity": "bank"
- },
- "name": "Banco de la Nación",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco G&T Continental": {
- "tags": {
- "name": "Banco G&T Continental",
- "amenity": "bank"
- },
- "name": "Banco G&T Continental",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Peoples Bank": {
- "tags": {
- "name": "Peoples Bank",
- "amenity": "bank"
- },
- "name": "Peoples Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/工商银行": {
- "tags": {
- "name": "工商银行",
- "amenity": "bank"
- },
- "name": "工商银行",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Совкомбанк": {
- "tags": {
- "name": "Совкомбанк",
- "amenity": "bank"
- },
- "name": "Совкомбанк",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Provincial": {
- "tags": {
- "name": "Provincial",
- "amenity": "bank"
- },
- "name": "Provincial",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco de Desarrollo Banrural": {
- "tags": {
- "name": "Banco de Desarrollo Banrural",
- "amenity": "bank"
- },
- "name": "Banco de Desarrollo Banrural",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banco Bradesco": {
- "tags": {
- "name": "Banco Bradesco",
- "amenity": "bank"
- },
- "name": "Banco Bradesco",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bicentenario": {
- "tags": {
- "name": "Bicentenario",
- "amenity": "bank"
- },
- "name": "Bicentenario",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/ლიბერთი ბანკი": {
- "tags": {
- "name": "ლიბერთი ბანკი",
- "name:en": "Liberty Bank",
- "amenity": "bank"
- },
- "name": "ლიბერთი ბანკი",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Banesco": {
- "tags": {
- "name": "Banesco",
- "amenity": "bank"
- },
- "name": "Banesco",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Mercantil": {
- "tags": {
- "name": "Mercantil",
- "amenity": "bank"
- },
- "name": "Mercantil",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Bank BRI": {
- "tags": {
- "name": "Bank BRI",
- "amenity": "bank"
- },
- "name": "Bank BRI",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/Del Tesoro": {
- "tags": {
- "name": "Del Tesoro",
- "amenity": "bank"
- },
- "name": "Del Tesoro",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/하나은행": {
- "tags": {
- "name": "하나은행",
- "amenity": "bank"
- },
- "name": "하나은행",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/CityCommerce Bank": {
- "tags": {
- "name": "CityCommerce Bank",
- "amenity": "bank"
- },
- "name": "CityCommerce Bank",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/bank/De Venezuela": {
- "tags": {
- "name": "De Venezuela",
- "amenity": "bank"
- },
- "name": "De Venezuela",
- "icon": "bank",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "atm",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/car_rental/Europcar": {
- "tags": {
- "name": "Europcar",
- "amenity": "car_rental"
- },
- "name": "Europcar",
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "fields": [
- "operator"
- ],
- "suggestion": true
- },
- "amenity/car_rental/Budget": {
- "tags": {
- "name": "Budget",
- "amenity": "car_rental"
- },
- "name": "Budget",
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "fields": [
- "operator"
- ],
- "suggestion": true
- },
- "amenity/car_rental/Sixt": {
- "tags": {
- "name": "Sixt",
- "amenity": "car_rental"
- },
- "name": "Sixt",
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "fields": [
- "operator"
- ],
- "suggestion": true
- },
- "amenity/car_rental/Avis": {
- "tags": {
- "name": "Avis",
- "amenity": "car_rental"
- },
- "name": "Avis",
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "fields": [
- "operator"
- ],
- "suggestion": true
- },
- "amenity/car_rental/Hertz": {
- "tags": {
- "name": "Hertz",
- "amenity": "car_rental"
- },
- "name": "Hertz",
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "fields": [
- "operator"
- ],
- "suggestion": true
- },
- "amenity/car_rental/Enterprise": {
- "tags": {
- "name": "Enterprise",
- "amenity": "car_rental"
- },
- "name": "Enterprise",
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "fields": [
- "operator"
- ],
- "suggestion": true
- },
- "amenity/car_rental/stadtmobil CarSharing-Station": {
- "tags": {
- "name": "stadtmobil CarSharing-Station",
- "amenity": "car_rental"
- },
- "name": "stadtmobil CarSharing-Station",
- "icon": "car",
- "geometry": [
- "point",
- "area"
- ],
- "fields": [
- "operator"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Rowlands Pharmacy": {
- "tags": {
- "name": "Rowlands Pharmacy",
- "amenity": "pharmacy"
- },
- "name": "Rowlands Pharmacy",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Boots": {
- "tags": {
- "name": "Boots",
- "amenity": "pharmacy"
- },
- "name": "Boots",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Marien-Apotheke": {
- "tags": {
- "name": "Marien-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Marien-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Mercury Drug": {
- "tags": {
- "name": "Mercury Drug",
- "amenity": "pharmacy"
- },
- "name": "Mercury Drug",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Löwen-Apotheke": {
- "tags": {
- "name": "Löwen-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Löwen-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Superdrug": {
- "tags": {
- "name": "Superdrug",
- "amenity": "pharmacy"
- },
- "name": "Superdrug",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Sonnen-Apotheke": {
- "tags": {
- "name": "Sonnen-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Sonnen-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Rathaus-Apotheke": {
- "tags": {
- "name": "Rathaus-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Rathaus-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Engel-Apotheke": {
- "tags": {
- "name": "Engel-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Engel-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Hirsch-Apotheke": {
- "tags": {
- "name": "Hirsch-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Hirsch-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Stern-Apotheke": {
- "tags": {
- "name": "Stern-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Stern-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Lloyds Pharmacy": {
- "tags": {
- "name": "Lloyds Pharmacy",
- "amenity": "pharmacy"
- },
- "name": "Lloyds Pharmacy",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Rosen-Apotheke": {
- "tags": {
- "name": "Rosen-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Rosen-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Stadt-Apotheke": {
- "tags": {
- "name": "Stadt-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Stadt-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Markt-Apotheke": {
- "tags": {
- "name": "Markt-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Markt-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Аптека": {
- "tags": {
- "name": "Аптека",
- "amenity": "pharmacy"
- },
- "name": "Аптека",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Pharmasave": {
- "tags": {
- "name": "Pharmasave",
- "amenity": "pharmacy"
- },
- "name": "Pharmasave",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Brunnen-Apotheke": {
- "tags": {
- "name": "Brunnen-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Brunnen-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Shoppers Drug Mart": {
- "tags": {
- "name": "Shoppers Drug Mart",
- "amenity": "pharmacy"
- },
- "name": "Shoppers Drug Mart",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Apotheke am Markt": {
- "tags": {
- "name": "Apotheke am Markt",
- "amenity": "pharmacy"
- },
- "name": "Apotheke am Markt",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Alte Apotheke": {
- "tags": {
- "name": "Alte Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Alte Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Neue Apotheke": {
- "tags": {
- "name": "Neue Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Neue Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Gintarinė vaistinė": {
- "tags": {
- "name": "Gintarinė vaistinė",
- "amenity": "pharmacy"
- },
- "name": "Gintarinė vaistinė",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Rats-Apotheke": {
- "tags": {
- "name": "Rats-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Rats-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Adler Apotheke": {
- "tags": {
- "name": "Adler Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Adler Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Pharmacie Centrale": {
- "tags": {
- "name": "Pharmacie Centrale",
- "amenity": "pharmacy"
- },
- "name": "Pharmacie Centrale",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Walgreens": {
- "tags": {
- "name": "Walgreens",
- "amenity": "pharmacy"
- },
- "name": "Walgreens",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Rite Aid": {
- "tags": {
- "name": "Rite Aid",
- "amenity": "pharmacy"
- },
- "name": "Rite Aid",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Apotheke": {
- "tags": {
- "name": "Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Linden-Apotheke": {
- "tags": {
- "name": "Linden-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Linden-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Bahnhof-Apotheke": {
- "tags": {
- "name": "Bahnhof-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Bahnhof-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Burg-Apotheke": {
- "tags": {
- "name": "Burg-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Burg-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Jean Coutu": {
- "tags": {
- "name": "Jean Coutu",
- "amenity": "pharmacy"
- },
- "name": "Jean Coutu",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Pharmaprix": {
- "tags": {
- "name": "Pharmaprix",
- "amenity": "pharmacy"
- },
- "name": "Pharmaprix",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Farmacias Ahumada": {
- "tags": {
- "name": "Farmacias Ahumada",
- "amenity": "pharmacy"
- },
- "name": "Farmacias Ahumada",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Farmacia Comunale": {
- "tags": {
- "name": "Farmacia Comunale",
- "amenity": "pharmacy"
- },
- "name": "Farmacia Comunale",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Farmacias Cruz Verde": {
- "tags": {
- "name": "Farmacias Cruz Verde",
- "amenity": "pharmacy"
- },
- "name": "Farmacias Cruz Verde",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Cruz Verde": {
- "tags": {
- "name": "Cruz Verde",
- "amenity": "pharmacy"
- },
- "name": "Cruz Verde",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Hubertus Apotheke": {
- "tags": {
- "name": "Hubertus Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Hubertus Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/CVS": {
- "tags": {
- "name": "CVS",
- "amenity": "pharmacy"
- },
- "name": "CVS",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Farmacias SalcoBrand": {
- "tags": {
- "name": "Farmacias SalcoBrand",
- "amenity": "pharmacy"
- },
- "name": "Farmacias SalcoBrand",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Фармация": {
- "tags": {
- "name": "Фармация",
- "amenity": "pharmacy"
- },
- "name": "Фармация",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Bären-Apotheke": {
- "tags": {
- "name": "Bären-Apotheke",
- "amenity": "pharmacy"
- },
- "name": "Bären-Apotheke",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Clicks": {
- "tags": {
- "name": "Clicks",
- "amenity": "pharmacy"
- },
- "name": "Clicks",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/セイジョー": {
- "tags": {
- "name": "セイジョー",
- "amenity": "pharmacy"
- },
- "name": "セイジョー",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/マツモトキヨシ": {
- "tags": {
- "name": "マツモトキヨシ",
- "amenity": "pharmacy"
- },
- "name": "マツモトキヨシ",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Dr. Max": {
- "tags": {
- "name": "Dr. Max",
- "amenity": "pharmacy"
- },
- "name": "Dr. Max",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Вита": {
- "tags": {
- "name": "Вита",
- "amenity": "pharmacy"
- },
- "name": "Вита",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/サンドラッグ": {
- "tags": {
- "name": "サンドラッグ",
- "amenity": "pharmacy"
- },
- "name": "サンドラッグ",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Apteka": {
- "tags": {
- "name": "Apteka",
- "amenity": "pharmacy"
- },
- "name": "Apteka",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Первая помощь": {
- "tags": {
- "name": "Первая помощь",
- "amenity": "pharmacy"
- },
- "name": "Первая помощь",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Ригла": {
- "tags": {
- "name": "Ригла",
- "amenity": "pharmacy"
- },
- "name": "Ригла",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Имплозия": {
- "tags": {
- "name": "Имплозия",
- "amenity": "pharmacy"
- },
- "name": "Имплозия",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Kinney Drugs": {
- "tags": {
- "name": "Kinney Drugs",
- "amenity": "pharmacy"
- },
- "name": "Kinney Drugs",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Классика": {
- "tags": {
- "name": "Классика",
- "amenity": "pharmacy"
- },
- "name": "Классика",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Ljekarna": {
- "tags": {
- "name": "Ljekarna",
- "amenity": "pharmacy"
- },
- "name": "Ljekarna",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/SalcoBrand": {
- "tags": {
- "name": "SalcoBrand",
- "amenity": "pharmacy"
- },
- "name": "SalcoBrand",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Аптека 36,6": {
- "tags": {
- "name": "Аптека 36,6",
- "amenity": "pharmacy"
- },
- "name": "Аптека 36,6",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Фармакор": {
- "tags": {
- "name": "Фармакор",
- "amenity": "pharmacy"
- },
- "name": "Фармакор",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/スギ薬局": {
- "tags": {
- "name": "スギ薬局",
- "amenity": "pharmacy"
- },
- "name": "スギ薬局",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Аптечный пункт": {
- "tags": {
- "name": "Аптечный пункт",
- "amenity": "pharmacy"
- },
- "name": "Аптечный пункт",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Невис": {
- "tags": {
- "name": "Невис",
- "amenity": "pharmacy"
- },
- "name": "Невис",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/トモズ (Tomod's)": {
- "tags": {
- "name": "トモズ (Tomod's)",
- "amenity": "pharmacy"
- },
- "name": "トモズ (Tomod's)",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Eurovaistinė": {
- "tags": {
- "name": "Eurovaistinė",
- "amenity": "pharmacy"
- },
- "name": "Eurovaistinė",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Farmacity": {
- "tags": {
- "name": "Farmacity",
- "amenity": "pharmacy"
- },
- "name": "Farmacity",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/аптека": {
- "tags": {
- "name": "аптека",
- "amenity": "pharmacy"
- },
- "name": "аптека",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/The Generics Pharmacy": {
- "tags": {
- "name": "The Generics Pharmacy",
- "amenity": "pharmacy"
- },
- "name": "The Generics Pharmacy",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Farmatodo": {
- "tags": {
- "name": "Farmatodo",
- "amenity": "pharmacy"
- },
- "name": "Farmatodo",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Duane Reade": {
- "tags": {
- "name": "Duane Reade",
- "amenity": "pharmacy"
- },
- "name": "Duane Reade",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Фармленд": {
- "tags": {
- "name": "Фармленд",
- "amenity": "pharmacy"
- },
- "name": "Фармленд",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/ドラッグてらしま (Drug Terashima)": {
- "tags": {
- "name": "ドラッグてらしま (Drug Terashima)",
- "amenity": "pharmacy"
- },
- "name": "ドラッグてらしま (Drug Terashima)",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Арніка": {
- "tags": {
- "name": "Арніка",
- "amenity": "pharmacy"
- },
- "name": "Арніка",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/ავერსი (Aversi)": {
- "tags": {
- "name": "ავერსი (Aversi)",
- "amenity": "pharmacy"
- },
- "name": "ავერსი (Aversi)",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/pharmacy/Farmahorro": {
- "tags": {
- "name": "Farmahorro",
- "amenity": "pharmacy"
- },
- "name": "Farmahorro",
- "icon": "pharmacy",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "amenity/cafe/Starbucks": {
- "tags": {
- "name": "Starbucks",
- "cuisine": "coffee_shop",
- "amenity": "cafe"
- },
- "name": "Starbucks",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Cafeteria": {
- "tags": {
- "name": "Cafeteria",
- "amenity": "cafe"
- },
- "name": "Cafeteria",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Costa": {
- "tags": {
- "name": "Costa",
- "amenity": "cafe"
- },
- "name": "Costa",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Caffè Nero": {
- "tags": {
- "name": "Caffè Nero",
- "amenity": "cafe"
- },
- "name": "Caffè Nero",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Кафе": {
- "tags": {
- "name": "Кафе",
- "amenity": "cafe"
- },
- "name": "Кафе",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Café Central": {
- "tags": {
- "name": "Café Central",
- "amenity": "cafe"
- },
- "name": "Café Central",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Second Cup": {
- "tags": {
- "name": "Second Cup",
- "amenity": "cafe"
- },
- "name": "Second Cup",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Eisdiele": {
- "tags": {
- "name": "Eisdiele",
- "amenity": "cafe"
- },
- "name": "Eisdiele",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Dunkin Donuts": {
- "tags": {
- "name": "Dunkin Donuts",
- "cuisine": "donut",
- "amenity": "cafe"
- },
- "name": "Dunkin Donuts",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Espresso House": {
- "tags": {
- "name": "Espresso House",
- "amenity": "cafe"
- },
- "name": "Espresso House",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Segafredo": {
- "tags": {
- "name": "Segafredo",
- "amenity": "cafe"
- },
- "name": "Segafredo",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Coffee Time": {
- "tags": {
- "name": "Coffee Time",
- "amenity": "cafe"
- },
- "name": "Coffee Time",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Cafe Coffee Day": {
- "tags": {
- "name": "Cafe Coffee Day",
- "amenity": "cafe"
- },
- "name": "Cafe Coffee Day",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Eiscafe Venezia": {
- "tags": {
- "name": "Eiscafe Venezia",
- "amenity": "cafe"
- },
- "name": "Eiscafe Venezia",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/スターバックス": {
- "tags": {
- "name": "スターバックス",
- "name:en": "Starbucks",
- "amenity": "cafe"
- },
- "name": "スターバックス",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Шоколадница": {
- "tags": {
- "name": "Шоколадница",
- "amenity": "cafe"
- },
- "name": "Шоколадница",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Pret A Manger": {
- "tags": {
- "name": "Pret A Manger",
- "amenity": "cafe"
- },
- "name": "Pret A Manger",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Столовая": {
- "tags": {
- "name": "Столовая",
- "amenity": "cafe"
- },
- "name": "Столовая",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/ドトール": {
- "tags": {
- "name": "ドトール",
- "name:en": "DOUTOR",
- "amenity": "cafe"
- },
- "name": "ドトール",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Tchibo": {
- "tags": {
- "name": "Tchibo",
- "amenity": "cafe"
- },
- "name": "Tchibo",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Кофе Хауз": {
- "tags": {
- "name": "Кофе Хауз",
- "amenity": "cafe"
- },
- "name": "Кофе Хауз",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Caribou Coffee": {
- "tags": {
- "name": "Caribou Coffee",
- "amenity": "cafe"
- },
- "name": "Caribou Coffee",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Уют": {
- "tags": {
- "name": "Уют",
- "amenity": "cafe"
- },
- "name": "Уют",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Шашлычная": {
- "tags": {
- "name": "Шашлычная",
- "amenity": "cafe"
- },
- "name": "Шашлычная",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/คาเฟ่ อเมซอน": {
- "tags": {
- "name": "คาเฟ่ อเมซอน",
- "amenity": "cafe"
- },
- "name": "คาเฟ่ อเมซอน",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Traveler's Coffee": {
- "tags": {
- "name": "Traveler's Coffee",
- "amenity": "cafe"
- },
- "name": "Traveler's Coffee",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/カフェ・ド・クリエ": {
- "tags": {
- "name": "カフェ・ド・クリエ",
- "name:en": "Cafe de CRIE",
- "amenity": "cafe"
- },
- "name": "カフェ・ド・クリエ",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "amenity/cafe/Cafe Amazon": {
- "tags": {
- "name": "Cafe Amazon",
- "amenity": "cafe"
- },
- "name": "Cafe Amazon",
- "icon": "cafe",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "cuisine",
- "internet_access",
- "building_area",
- "address",
- "opening_hours",
- "smoking"
- ],
- "suggestion": true
- },
- "shop/supermarket/Budgens": {
- "tags": {
- "name": "Budgens",
- "shop": "supermarket"
- },
- "name": "Budgens",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Morrisons": {
- "tags": {
- "name": "Morrisons",
- "shop": "supermarket"
- },
- "name": "Morrisons",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Interspar": {
- "tags": {
- "name": "Interspar",
- "shop": "supermarket"
- },
- "name": "Interspar",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Merkur": {
- "tags": {
- "name": "Merkur",
- "shop": "supermarket"
- },
- "name": "Merkur",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Sainsbury's": {
- "tags": {
- "name": "Sainsbury's",
- "shop": "supermarket"
- },
- "name": "Sainsbury's",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Lidl": {
- "tags": {
- "name": "Lidl",
- "shop": "supermarket"
- },
- "name": "Lidl",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/EDEKA": {
- "tags": {
- "name": "EDEKA",
- "shop": "supermarket"
- },
- "name": "EDEKA",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Coles": {
- "tags": {
- "name": "Coles",
- "shop": "supermarket"
- },
- "name": "Coles",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Iceland": {
- "tags": {
- "name": "Iceland",
- "shop": "supermarket"
- },
- "name": "Iceland",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Coop": {
- "tags": {
- "name": "Coop",
- "shop": "supermarket"
- },
- "name": "Coop",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Tesco": {
- "tags": {
- "name": "Tesco",
- "shop": "supermarket"
- },
- "name": "Tesco",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Woolworths": {
- "tags": {
- "name": "Woolworths",
- "shop": "supermarket"
- },
- "name": "Woolworths",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Zielpunkt": {
- "tags": {
- "name": "Zielpunkt",
- "shop": "supermarket"
- },
- "name": "Zielpunkt",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Nahkauf": {
- "tags": {
- "name": "Nahkauf",
- "shop": "supermarket"
- },
- "name": "Nahkauf",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Billa": {
- "tags": {
- "name": "Billa",
- "shop": "supermarket"
- },
- "name": "Billa",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Kaufland": {
- "tags": {
- "name": "Kaufland",
- "shop": "supermarket"
- },
- "name": "Kaufland",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Plus": {
- "tags": {
- "name": "Plus",
- "shop": "supermarket"
- },
- "name": "Plus",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/ALDI": {
- "tags": {
- "name": "ALDI",
- "shop": "supermarket"
- },
- "name": "ALDI",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Checkers": {
- "tags": {
- "name": "Checkers",
- "shop": "supermarket"
- },
- "name": "Checkers",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Tesco Metro": {
- "tags": {
- "name": "Tesco Metro",
- "shop": "supermarket"
- },
- "name": "Tesco Metro",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/NP": {
- "tags": {
- "name": "NP",
- "shop": "supermarket"
- },
- "name": "NP",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Penny": {
- "tags": {
- "name": "Penny",
- "shop": "supermarket"
- },
- "name": "Penny",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Norma": {
- "tags": {
- "name": "Norma",
- "shop": "supermarket"
- },
- "name": "Norma",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Asda": {
- "tags": {
- "name": "Asda",
- "shop": "supermarket"
- },
- "name": "Asda",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Netto": {
- "tags": {
- "name": "Netto",
- "shop": "supermarket"
- },
- "name": "Netto",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/REWE": {
- "tags": {
- "name": "REWE",
- "shop": "supermarket"
- },
- "name": "REWE",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Rewe": {
- "tags": {
- "name": "Rewe",
- "shop": "supermarket"
- },
- "name": "Rewe",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Aldi Süd": {
- "tags": {
- "name": "Aldi Süd",
- "shop": "supermarket"
- },
- "name": "Aldi Süd",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Real": {
- "tags": {
- "name": "Real",
- "shop": "supermarket"
- },
- "name": "Real",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/King Soopers": {
- "tags": {
- "name": "King Soopers",
- "shop": "supermarket"
- },
- "name": "King Soopers",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Kiwi": {
- "tags": {
- "name": "Kiwi",
- "shop": "supermarket"
- },
- "name": "Kiwi",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Edeka": {
- "tags": {
- "name": "Edeka",
- "shop": "supermarket"
- },
- "name": "Edeka",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Pick n Pay": {
- "tags": {
- "name": "Pick n Pay",
- "shop": "supermarket"
- },
- "name": "Pick n Pay",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/ICA": {
- "tags": {
- "name": "ICA",
- "shop": "supermarket"
- },
- "name": "ICA",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Tengelmann": {
- "tags": {
- "name": "Tengelmann",
- "shop": "supermarket"
- },
- "name": "Tengelmann",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Carrefour": {
- "tags": {
- "name": "Carrefour",
- "shop": "supermarket"
- },
- "name": "Carrefour",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Waitrose": {
- "tags": {
- "name": "Waitrose",
- "shop": "supermarket"
- },
- "name": "Waitrose",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Spar": {
- "tags": {
- "name": "Spar",
- "shop": "supermarket"
- },
- "name": "Spar",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Hofer": {
- "tags": {
- "name": "Hofer",
- "shop": "supermarket"
- },
- "name": "Hofer",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/M-Preis": {
- "tags": {
- "name": "M-Preis",
- "shop": "supermarket"
- },
- "name": "M-Preis",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/LIDL": {
- "tags": {
- "name": "LIDL",
- "shop": "supermarket"
- },
- "name": "LIDL",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/tegut": {
- "tags": {
- "name": "tegut",
- "shop": "supermarket"
- },
- "name": "tegut",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Sainsbury's Local": {
- "tags": {
- "name": "Sainsbury's Local",
- "shop": "supermarket"
- },
- "name": "Sainsbury's Local",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/E-Center": {
- "tags": {
- "name": "E-Center",
- "shop": "supermarket"
- },
- "name": "E-Center",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Aldi Nord": {
- "tags": {
- "name": "Aldi Nord",
- "shop": "supermarket"
- },
- "name": "Aldi Nord",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/nahkauf": {
- "tags": {
- "name": "nahkauf",
- "shop": "supermarket"
- },
- "name": "nahkauf",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Meijer": {
- "tags": {
- "name": "Meijer",
- "shop": "supermarket"
- },
- "name": "Meijer",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Safeway": {
- "tags": {
- "name": "Safeway",
- "shop": "supermarket"
- },
- "name": "Safeway",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Costco": {
- "tags": {
- "name": "Costco",
- "shop": "supermarket"
- },
- "name": "Costco",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Albert": {
- "tags": {
- "name": "Albert",
- "shop": "supermarket"
- },
- "name": "Albert",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Jumbo": {
- "tags": {
- "name": "Jumbo",
- "shop": "supermarket"
- },
- "name": "Jumbo",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Shoprite": {
- "tags": {
- "name": "Shoprite",
- "shop": "supermarket"
- },
- "name": "Shoprite",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/MPreis": {
- "tags": {
- "name": "MPreis",
- "shop": "supermarket"
- },
- "name": "MPreis",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Penny Market": {
- "tags": {
- "name": "Penny Market",
- "shop": "supermarket"
- },
- "name": "Penny Market",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Tesco Extra": {
- "tags": {
- "name": "Tesco Extra",
- "shop": "supermarket"
- },
- "name": "Tesco Extra",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Albert Heijn": {
- "tags": {
- "name": "Albert Heijn",
- "shop": "supermarket"
- },
- "name": "Albert Heijn",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/IGA": {
- "tags": {
- "name": "IGA",
- "shop": "supermarket"
- },
- "name": "IGA",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Super U": {
- "tags": {
- "name": "Super U",
- "shop": "supermarket"
- },
- "name": "Super U",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Metro": {
- "tags": {
- "name": "Metro",
- "shop": "supermarket"
- },
- "name": "Metro",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Neukauf": {
- "tags": {
- "name": "Neukauf",
- "shop": "supermarket"
- },
- "name": "Neukauf",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Migros": {
- "tags": {
- "name": "Migros",
- "shop": "supermarket"
- },
- "name": "Migros",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Marktkauf": {
- "tags": {
- "name": "Marktkauf",
- "shop": "supermarket"
- },
- "name": "Marktkauf",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Delikatesy Centrum": {
- "tags": {
- "name": "Delikatesy Centrum",
- "shop": "supermarket"
- },
- "name": "Delikatesy Centrum",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/C1000": {
- "tags": {
- "name": "C1000",
- "shop": "supermarket"
- },
- "name": "C1000",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Hoogvliet": {
- "tags": {
- "name": "Hoogvliet",
- "shop": "supermarket"
- },
- "name": "Hoogvliet",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/COOP": {
- "tags": {
- "name": "COOP",
- "shop": "supermarket"
- },
- "name": "COOP",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Food Basics": {
- "tags": {
- "name": "Food Basics",
- "shop": "supermarket"
- },
- "name": "Food Basics",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Casino": {
- "tags": {
- "name": "Casino",
- "shop": "supermarket"
- },
- "name": "Casino",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Penny Markt": {
- "tags": {
- "name": "Penny Markt",
- "shop": "supermarket"
- },
- "name": "Penny Markt",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Giant": {
- "tags": {
- "name": "Giant",
- "shop": "supermarket"
- },
- "name": "Giant",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Rema 1000": {
- "tags": {
- "name": "Rema 1000",
- "shop": "supermarket"
- },
- "name": "Rema 1000",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Kaufpark": {
- "tags": {
- "name": "Kaufpark",
- "shop": "supermarket"
- },
- "name": "Kaufpark",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/ALDI SÜD": {
- "tags": {
- "name": "ALDI SÜD",
- "shop": "supermarket"
- },
- "name": "ALDI SÜD",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Simply Market": {
- "tags": {
- "name": "Simply Market",
- "shop": "supermarket"
- },
- "name": "Simply Market",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Konzum": {
- "tags": {
- "name": "Konzum",
- "shop": "supermarket"
- },
- "name": "Konzum",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Carrefour Express": {
- "tags": {
- "name": "Carrefour Express",
- "shop": "supermarket"
- },
- "name": "Carrefour Express",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Eurospar": {
- "tags": {
- "name": "Eurospar",
- "shop": "supermarket"
- },
- "name": "Eurospar",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Mercator": {
- "tags": {
- "name": "Mercator",
- "shop": "supermarket"
- },
- "name": "Mercator",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Famila": {
- "tags": {
- "name": "Famila",
- "shop": "supermarket"
- },
- "name": "Famila",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Hemköp": {
- "tags": {
- "name": "Hemköp",
- "shop": "supermarket"
- },
- "name": "Hemköp",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/real,-": {
- "tags": {
- "name": "real,-",
- "shop": "supermarket"
- },
- "name": "real,-",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Markant": {
- "tags": {
- "name": "Markant",
- "shop": "supermarket"
- },
- "name": "Markant",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Volg": {
- "tags": {
- "name": "Volg",
- "shop": "supermarket"
- },
- "name": "Volg",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Leader Price": {
- "tags": {
- "name": "Leader Price",
- "shop": "supermarket"
- },
- "name": "Leader Price",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Treff 3000": {
- "tags": {
- "name": "Treff 3000",
- "shop": "supermarket"
- },
- "name": "Treff 3000",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/SuperBrugsen": {
- "tags": {
- "name": "SuperBrugsen",
- "shop": "supermarket"
- },
- "name": "SuperBrugsen",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Kaiser's": {
- "tags": {
- "name": "Kaiser's",
- "shop": "supermarket"
- },
- "name": "Kaiser's",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/K+K": {
- "tags": {
- "name": "K+K",
- "shop": "supermarket"
- },
- "name": "K+K",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Unimarkt": {
- "tags": {
- "name": "Unimarkt",
- "shop": "supermarket"
- },
- "name": "Unimarkt",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Carrefour City": {
- "tags": {
- "name": "Carrefour City",
- "shop": "supermarket"
- },
- "name": "Carrefour City",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Sobeys": {
- "tags": {
- "name": "Sobeys",
- "shop": "supermarket"
- },
- "name": "Sobeys",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/S-Market": {
- "tags": {
- "name": "S-Market",
- "shop": "supermarket"
- },
- "name": "S-Market",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Combi": {
- "tags": {
- "name": "Combi",
- "shop": "supermarket"
- },
- "name": "Combi",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Denner": {
- "tags": {
- "name": "Denner",
- "shop": "supermarket"
- },
- "name": "Denner",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Konsum": {
- "tags": {
- "name": "Konsum",
- "shop": "supermarket"
- },
- "name": "Konsum",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Franprix": {
- "tags": {
- "name": "Franprix",
- "shop": "supermarket"
- },
- "name": "Franprix",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Monoprix": {
- "tags": {
- "name": "Monoprix",
- "shop": "supermarket"
- },
- "name": "Monoprix",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Diska": {
- "tags": {
- "name": "Diska",
- "shop": "supermarket"
- },
- "name": "Diska",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/PENNY": {
- "tags": {
- "name": "PENNY",
- "shop": "supermarket"
- },
- "name": "PENNY",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Dia": {
- "tags": {
- "name": "Dia",
- "shop": "supermarket"
- },
- "name": "Dia",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Giant Eagle": {
- "tags": {
- "name": "Giant Eagle",
- "shop": "supermarket"
- },
- "name": "Giant Eagle",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/NORMA": {
- "tags": {
- "name": "NORMA",
- "shop": "supermarket"
- },
- "name": "NORMA",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/AD Delhaize": {
- "tags": {
- "name": "AD Delhaize",
- "shop": "supermarket"
- },
- "name": "AD Delhaize",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Auchan": {
- "tags": {
- "name": "Auchan",
- "shop": "supermarket"
- },
- "name": "Auchan",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Mercadona": {
- "tags": {
- "name": "Mercadona",
- "shop": "supermarket"
- },
- "name": "Mercadona",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Consum": {
- "tags": {
- "name": "Consum",
- "shop": "supermarket"
- },
- "name": "Consum",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Carrefour Market": {
- "tags": {
- "name": "Carrefour Market",
- "shop": "supermarket"
- },
- "name": "Carrefour Market",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Whole Foods": {
- "tags": {
- "name": "Whole Foods",
- "shop": "supermarket"
- },
- "name": "Whole Foods",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Pam": {
- "tags": {
- "name": "Pam",
- "shop": "supermarket"
- },
- "name": "Pam",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/sky": {
- "tags": {
- "name": "sky",
- "shop": "supermarket"
- },
- "name": "sky",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Despar": {
- "tags": {
- "name": "Despar",
- "shop": "supermarket"
- },
- "name": "Despar",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Eroski": {
- "tags": {
- "name": "Eroski",
- "shop": "supermarket"
- },
- "name": "Eroski",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Maxi": {
- "tags": {
- "name": "Maxi",
- "shop": "supermarket"
- },
- "name": "Maxi",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Colruyt": {
- "tags": {
- "name": "Colruyt",
- "shop": "supermarket"
- },
- "name": "Colruyt",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/The Co-operative": {
- "tags": {
- "name": "The Co-operative",
- "shop": "supermarket"
- },
- "name": "The Co-operative",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Intermarché": {
- "tags": {
- "name": "Intermarché",
- "shop": "supermarket"
- },
- "name": "Intermarché",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Delhaize": {
- "tags": {
- "name": "Delhaize",
- "shop": "supermarket"
- },
- "name": "Delhaize",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/CBA": {
- "tags": {
- "name": "CBA",
- "shop": "supermarket"
- },
- "name": "CBA",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Shopi": {
- "tags": {
- "name": "Shopi",
- "shop": "supermarket"
- },
- "name": "Shopi",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Walmart": {
- "tags": {
- "name": "Walmart",
- "shop": "supermarket"
- },
- "name": "Walmart",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Kroger": {
- "tags": {
- "name": "Kroger",
- "shop": "supermarket"
- },
- "name": "Kroger",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Albertsons": {
- "tags": {
- "name": "Albertsons",
- "shop": "supermarket"
- },
- "name": "Albertsons",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Trader Joe's": {
- "tags": {
- "name": "Trader Joe's",
- "shop": "supermarket"
- },
- "name": "Trader Joe's",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Feneberg": {
- "tags": {
- "name": "Feneberg",
- "shop": "supermarket"
- },
- "name": "Feneberg",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/denn's Biomarkt": {
- "tags": {
- "name": "denn's Biomarkt",
- "shop": "supermarket"
- },
- "name": "denn's Biomarkt",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Kvickly": {
- "tags": {
- "name": "Kvickly",
- "shop": "supermarket"
- },
- "name": "Kvickly",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Makro": {
- "tags": {
- "name": "Makro",
- "shop": "supermarket"
- },
- "name": "Makro",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Dico": {
- "tags": {
- "name": "Dico",
- "shop": "supermarket"
- },
- "name": "Dico",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Nah & Frisch": {
- "tags": {
- "name": "Nah & Frisch",
- "shop": "supermarket"
- },
- "name": "Nah & Frisch",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Champion": {
- "tags": {
- "name": "Champion",
- "shop": "supermarket"
- },
- "name": "Champion",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/ICA Supermarket": {
- "tags": {
- "name": "ICA Supermarket",
- "shop": "supermarket"
- },
- "name": "ICA Supermarket",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Fakta": {
- "tags": {
- "name": "Fakta",
- "shop": "supermarket"
- },
- "name": "Fakta",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Магнит": {
- "tags": {
- "name": "Магнит",
- "shop": "supermarket"
- },
- "name": "Магнит",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Caprabo": {
- "tags": {
- "name": "Caprabo",
- "shop": "supermarket"
- },
- "name": "Caprabo",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Famiglia Cooperativa": {
- "tags": {
- "name": "Famiglia Cooperativa",
- "shop": "supermarket"
- },
- "name": "Famiglia Cooperativa",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Народная 7Я семьЯ": {
- "tags": {
- "name": "Народная 7Я семьЯ",
- "shop": "supermarket"
- },
- "name": "Народная 7Я семьЯ",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Esselunga": {
- "tags": {
- "name": "Esselunga",
- "shop": "supermarket"
- },
- "name": "Esselunga",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Maxima": {
- "tags": {
- "name": "Maxima",
- "shop": "supermarket"
- },
- "name": "Maxima",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Wasgau": {
- "tags": {
- "name": "Wasgau",
- "shop": "supermarket"
- },
- "name": "Wasgau",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Pingo Doce": {
- "tags": {
- "name": "Pingo Doce",
- "shop": "supermarket"
- },
- "name": "Pingo Doce",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Match": {
- "tags": {
- "name": "Match",
- "shop": "supermarket"
- },
- "name": "Match",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Profi": {
- "tags": {
- "name": "Profi",
- "shop": "supermarket"
- },
- "name": "Profi",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Lider": {
- "tags": {
- "name": "Lider",
- "shop": "supermarket"
- },
- "name": "Lider",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Unimarc": {
- "tags": {
- "name": "Unimarc",
- "shop": "supermarket"
- },
- "name": "Unimarc",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Co-operative Food": {
- "tags": {
- "name": "Co-operative Food",
- "shop": "supermarket"
- },
- "name": "Co-operative Food",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Santa Isabel": {
- "tags": {
- "name": "Santa Isabel",
- "shop": "supermarket"
- },
- "name": "Santa Isabel",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Седьмой континент": {
- "tags": {
- "name": "Седьмой континент",
- "shop": "supermarket"
- },
- "name": "Седьмой континент",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/HIT": {
- "tags": {
- "name": "HIT",
- "shop": "supermarket"
- },
- "name": "HIT",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Rimi": {
- "tags": {
- "name": "Rimi",
- "shop": "supermarket"
- },
- "name": "Rimi",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Conad": {
- "tags": {
- "name": "Conad",
- "shop": "supermarket"
- },
- "name": "Conad",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Фуршет": {
- "tags": {
- "name": "Фуршет",
- "shop": "supermarket"
- },
- "name": "Фуршет",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Willys": {
- "tags": {
- "name": "Willys",
- "shop": "supermarket"
- },
- "name": "Willys",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Farmfoods": {
- "tags": {
- "name": "Farmfoods",
- "shop": "supermarket"
- },
- "name": "Farmfoods",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/U Express": {
- "tags": {
- "name": "U Express",
- "shop": "supermarket"
- },
- "name": "U Express",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Фора": {
- "tags": {
- "name": "Фора",
- "shop": "supermarket"
- },
- "name": "Фора",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Dunnes Stores": {
- "tags": {
- "name": "Dunnes Stores",
- "shop": "supermarket"
- },
- "name": "Dunnes Stores",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Сільпо": {
- "tags": {
- "name": "Сільпо",
- "shop": "supermarket"
- },
- "name": "Сільпо",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/マルエツ": {
- "tags": {
- "name": "マルエツ",
- "shop": "supermarket"
- },
- "name": "マルエツ",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Piggly Wiggly": {
- "tags": {
- "name": "Piggly Wiggly",
- "shop": "supermarket"
- },
- "name": "Piggly Wiggly",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Crai": {
- "tags": {
- "name": "Crai",
- "shop": "supermarket"
- },
- "name": "Crai",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/El Árbol": {
- "tags": {
- "name": "El Árbol",
- "shop": "supermarket"
- },
- "name": "El Árbol",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Centre Commercial E. Leclerc": {
- "tags": {
- "name": "Centre Commercial E. Leclerc",
- "shop": "supermarket"
- },
- "name": "Centre Commercial E. Leclerc",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Foodland": {
- "tags": {
- "name": "Foodland",
- "shop": "supermarket"
- },
- "name": "Foodland",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Super Brugsen": {
- "tags": {
- "name": "Super Brugsen",
- "shop": "supermarket"
- },
- "name": "Super Brugsen",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Дикси": {
- "tags": {
- "name": "Дикси",
- "shop": "supermarket"
- },
- "name": "Дикси",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Пятёрочка": {
- "tags": {
- "name": "Пятёрочка",
- "shop": "supermarket"
- },
- "name": "Пятёрочка",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Publix": {
- "tags": {
- "name": "Publix",
- "shop": "supermarket"
- },
- "name": "Publix",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Føtex": {
- "tags": {
- "name": "Føtex",
- "shop": "supermarket"
- },
- "name": "Føtex",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/coop": {
- "tags": {
- "name": "coop",
- "shop": "supermarket"
- },
- "name": "coop",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Coop Konsum": {
- "tags": {
- "name": "Coop Konsum",
- "shop": "supermarket"
- },
- "name": "Coop Konsum",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Carrefour Contact": {
- "tags": {
- "name": "Carrefour Contact",
- "shop": "supermarket"
- },
- "name": "Carrefour Contact",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/SPAR": {
- "tags": {
- "name": "SPAR",
- "shop": "supermarket"
- },
- "name": "SPAR",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/No Frills": {
- "tags": {
- "name": "No Frills",
- "shop": "supermarket"
- },
- "name": "No Frills",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Plodine": {
- "tags": {
- "name": "Plodine",
- "shop": "supermarket"
- },
- "name": "Plodine",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/ADEG": {
- "tags": {
- "name": "ADEG",
- "shop": "supermarket"
- },
- "name": "ADEG",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Minipreço": {
- "tags": {
- "name": "Minipreço",
- "shop": "supermarket"
- },
- "name": "Minipreço",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Biedronka": {
- "tags": {
- "name": "Biedronka",
- "shop": "supermarket"
- },
- "name": "Biedronka",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/The Co-operative Food": {
- "tags": {
- "name": "The Co-operative Food",
- "shop": "supermarket"
- },
- "name": "The Co-operative Food",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Eurospin": {
- "tags": {
- "name": "Eurospin",
- "shop": "supermarket"
- },
- "name": "Eurospin",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Семья": {
- "tags": {
- "name": "Семья",
- "shop": "supermarket"
- },
- "name": "Семья",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Gadis": {
- "tags": {
- "name": "Gadis",
- "shop": "supermarket"
- },
- "name": "Gadis",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Евроопт": {
- "tags": {
- "name": "Евроопт",
- "shop": "supermarket"
- },
- "name": "Евроопт",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Квартал": {
- "tags": {
- "name": "Квартал",
- "shop": "supermarket"
- },
- "name": "Квартал",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/New World": {
- "tags": {
- "name": "New World",
- "shop": "supermarket"
- },
- "name": "New World",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Countdown": {
- "tags": {
- "name": "Countdown",
- "shop": "supermarket"
- },
- "name": "Countdown",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Reliance Fresh": {
- "tags": {
- "name": "Reliance Fresh",
- "shop": "supermarket"
- },
- "name": "Reliance Fresh",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Stokrotka": {
- "tags": {
- "name": "Stokrotka",
- "shop": "supermarket"
- },
- "name": "Stokrotka",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Coop Jednota": {
- "tags": {
- "name": "Coop Jednota",
- "shop": "supermarket"
- },
- "name": "Coop Jednota",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Fred Meyer": {
- "tags": {
- "name": "Fred Meyer",
- "shop": "supermarket"
- },
- "name": "Fred Meyer",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Irma": {
- "tags": {
- "name": "Irma",
- "shop": "supermarket"
- },
- "name": "Irma",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Continente": {
- "tags": {
- "name": "Continente",
- "shop": "supermarket"
- },
- "name": "Continente",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Price Chopper": {
- "tags": {
- "name": "Price Chopper",
- "shop": "supermarket"
- },
- "name": "Price Chopper",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Game": {
- "tags": {
- "name": "Game",
- "shop": "supermarket"
- },
- "name": "Game",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Soriana": {
- "tags": {
- "name": "Soriana",
- "shop": "supermarket"
- },
- "name": "Soriana",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Alimerka": {
- "tags": {
- "name": "Alimerka",
- "shop": "supermarket"
- },
- "name": "Alimerka",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Piotr i Paweł": {
- "tags": {
- "name": "Piotr i Paweł",
- "shop": "supermarket"
- },
- "name": "Piotr i Paweł",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Перекресток": {
- "tags": {
- "name": "Перекресток",
- "shop": "supermarket"
- },
- "name": "Перекресток",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Maxima X": {
- "tags": {
- "name": "Maxima X",
- "shop": "supermarket"
- },
- "name": "Maxima X",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Карусель": {
- "tags": {
- "name": "Карусель",
- "shop": "supermarket"
- },
- "name": "Карусель",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/ALDI Nord": {
- "tags": {
- "name": "ALDI Nord",
- "shop": "supermarket"
- },
- "name": "ALDI Nord",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Condis": {
- "tags": {
- "name": "Condis",
- "shop": "supermarket"
- },
- "name": "Condis",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Sam's Club": {
- "tags": {
- "name": "Sam's Club",
- "shop": "supermarket"
- },
- "name": "Sam's Club",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Копейка": {
- "tags": {
- "name": "Копейка",
- "shop": "supermarket"
- },
- "name": "Копейка",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Géant Casino": {
- "tags": {
- "name": "Géant Casino",
- "shop": "supermarket"
- },
- "name": "Géant Casino",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/ASDA": {
- "tags": {
- "name": "ASDA",
- "shop": "supermarket"
- },
- "name": "ASDA",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Intermarche": {
- "tags": {
- "name": "Intermarche",
- "shop": "supermarket"
- },
- "name": "Intermarche",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Stop & Shop": {
- "tags": {
- "name": "Stop & Shop",
- "shop": "supermarket"
- },
- "name": "Stop & Shop",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Food Lion": {
- "tags": {
- "name": "Food Lion",
- "shop": "supermarket"
- },
- "name": "Food Lion",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Harris Teeter": {
- "tags": {
- "name": "Harris Teeter",
- "shop": "supermarket"
- },
- "name": "Harris Teeter",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Foodworks": {
- "tags": {
- "name": "Foodworks",
- "shop": "supermarket"
- },
- "name": "Foodworks",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Polo Market": {
- "tags": {
- "name": "Polo Market",
- "shop": "supermarket"
- },
- "name": "Polo Market",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Лента": {
- "tags": {
- "name": "Лента",
- "shop": "supermarket"
- },
- "name": "Лента",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/西友 (SEIYU)": {
- "tags": {
- "name": "西友 (SEIYU)",
- "shop": "supermarket"
- },
- "name": "西友 (SEIYU)",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/H-E-B": {
- "tags": {
- "name": "H-E-B",
- "shop": "supermarket"
- },
- "name": "H-E-B",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Атак": {
- "tags": {
- "name": "Атак",
- "shop": "supermarket"
- },
- "name": "Атак",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Полушка": {
- "tags": {
- "name": "Полушка",
- "shop": "supermarket"
- },
- "name": "Полушка",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Extra": {
- "tags": {
- "name": "Extra",
- "shop": "supermarket"
- },
- "name": "Extra",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Sigma": {
- "tags": {
- "name": "Sigma",
- "shop": "supermarket"
- },
- "name": "Sigma",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/АТБ": {
- "tags": {
- "name": "АТБ",
- "shop": "supermarket"
- },
- "name": "АТБ",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Bodega Aurrera": {
- "tags": {
- "name": "Bodega Aurrera",
- "shop": "supermarket"
- },
- "name": "Bodega Aurrera",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Tesco Lotus": {
- "tags": {
- "name": "Tesco Lotus",
- "shop": "supermarket"
- },
- "name": "Tesco Lotus",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Мария-Ра": {
- "tags": {
- "name": "Мария-Ра",
- "shop": "supermarket"
- },
- "name": "Мария-Ра",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Магнолия": {
- "tags": {
- "name": "Магнолия",
- "shop": "supermarket"
- },
- "name": "Магнолия",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Монетка": {
- "tags": {
- "name": "Монетка",
- "shop": "supermarket"
- },
- "name": "Монетка",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Hy-Vee": {
- "tags": {
- "name": "Hy-Vee",
- "shop": "supermarket"
- },
- "name": "Hy-Vee",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Walmart Supercenter": {
- "tags": {
- "name": "Walmart Supercenter",
- "shop": "supermarket"
- },
- "name": "Walmart Supercenter",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Hannaford": {
- "tags": {
- "name": "Hannaford",
- "shop": "supermarket"
- },
- "name": "Hannaford",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Wegmans": {
- "tags": {
- "name": "Wegmans",
- "shop": "supermarket"
- },
- "name": "Wegmans",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/業務スーパー": {
- "tags": {
- "name": "業務スーパー",
- "shop": "supermarket"
- },
- "name": "業務スーパー",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Norfa XL": {
- "tags": {
- "name": "Norfa XL",
- "shop": "supermarket"
- },
- "name": "Norfa XL",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/ヨークマート (YorkMart)": {
- "tags": {
- "name": "ヨークマート (YorkMart)",
- "shop": "supermarket"
- },
- "name": "ヨークマート (YorkMart)",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/supermarket/Leclerc Drive": {
- "tags": {
- "name": "Leclerc Drive",
- "shop": "supermarket"
- },
- "name": "Leclerc Drive",
- "icon": "grocery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "operator",
- "building_area",
- "address"
- ],
- "suggestion": true
- },
- "shop/electronics/Media Markt": {
- "tags": {
- "name": "Media Markt",
- "shop": "electronics"
- },
- "name": "Media Markt",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Maplin": {
- "tags": {
- "name": "Maplin",
- "shop": "electronics"
- },
- "name": "Maplin",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Best Buy": {
- "tags": {
- "name": "Best Buy",
- "shop": "electronics"
- },
- "name": "Best Buy",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Future Shop": {
- "tags": {
- "name": "Future Shop",
- "shop": "electronics"
- },
- "name": "Future Shop",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Saturn": {
- "tags": {
- "name": "Saturn",
- "shop": "electronics"
- },
- "name": "Saturn",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Currys": {
- "tags": {
- "name": "Currys",
- "shop": "electronics"
- },
- "name": "Currys",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Radio Shack": {
- "tags": {
- "name": "Radio Shack",
- "shop": "electronics"
- },
- "name": "Radio Shack",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Euronics": {
- "tags": {
- "name": "Euronics",
- "shop": "electronics"
- },
- "name": "Euronics",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Expert": {
- "tags": {
- "name": "Expert",
- "shop": "electronics"
- },
- "name": "Expert",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Эльдорадо": {
- "tags": {
- "name": "Эльдорадо",
- "shop": "electronics"
- },
- "name": "Эльдорадо",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/Darty": {
- "tags": {
- "name": "Darty",
- "shop": "electronics"
- },
- "name": "Darty",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/М.Видео": {
- "tags": {
- "name": "М.Видео",
- "shop": "electronics"
- },
- "name": "М.Видео",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/electronics/ヤマダ電機": {
- "tags": {
- "name": "ヤマダ電機",
- "shop": "electronics"
- },
- "name": "ヤマダ電機",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/McColl's": {
- "tags": {
- "name": "McColl's",
- "shop": "convenience"
- },
- "name": "McColl's",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Tesco Express": {
- "tags": {
- "name": "Tesco Express",
- "shop": "convenience"
- },
- "name": "Tesco Express",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/One Stop": {
- "tags": {
- "name": "One Stop",
- "shop": "convenience"
- },
- "name": "One Stop",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Londis": {
- "tags": {
- "name": "Londis",
- "shop": "convenience"
- },
- "name": "Londis",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/7-Eleven": {
- "tags": {
- "name": "7-Eleven",
- "shop": "convenience"
- },
- "name": "7-Eleven",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Sale": {
- "tags": {
- "name": "Sale",
- "shop": "convenience"
- },
- "name": "Sale",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Siwa": {
- "tags": {
- "name": "Siwa",
- "shop": "convenience"
- },
- "name": "Siwa",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/COOP Jednota": {
- "tags": {
- "name": "COOP Jednota",
- "shop": "convenience"
- },
- "name": "COOP Jednota",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Mac's": {
- "tags": {
- "name": "Mac's",
- "shop": "convenience"
- },
- "name": "Mac's",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Alepa": {
- "tags": {
- "name": "Alepa",
- "shop": "convenience"
- },
- "name": "Alepa",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Hasty Market": {
- "tags": {
- "name": "Hasty Market",
- "shop": "convenience"
- },
- "name": "Hasty Market",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/K-Market": {
- "tags": {
- "name": "K-Market",
- "shop": "convenience"
- },
- "name": "K-Market",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Costcutter": {
- "tags": {
- "name": "Costcutter",
- "shop": "convenience"
- },
- "name": "Costcutter",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Valintatalo": {
- "tags": {
- "name": "Valintatalo",
- "shop": "convenience"
- },
- "name": "Valintatalo",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Circle K": {
- "tags": {
- "name": "Circle K",
- "shop": "convenience"
- },
- "name": "Circle K",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/セブンイレブン": {
- "tags": {
- "name": "セブンイレブン",
- "name:en": "7-Eleven",
- "shop": "convenience"
- },
- "name": "セブンイレブン",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/ローソン": {
- "tags": {
- "name": "ローソン",
- "name:en": "LAWSON",
- "shop": "convenience"
- },
- "name": "ローソン",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Petit Casino": {
- "tags": {
- "name": "Petit Casino",
- "shop": "convenience"
- },
- "name": "Petit Casino",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Mace": {
- "tags": {
- "name": "Mace",
- "shop": "convenience"
- },
- "name": "Mace",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Mini Market": {
- "tags": {
- "name": "Mini Market",
- "shop": "convenience"
- },
- "name": "Mini Market",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Nisa Local": {
- "tags": {
- "name": "Nisa Local",
- "shop": "convenience"
- },
- "name": "Nisa Local",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Dorfladen": {
- "tags": {
- "name": "Dorfladen",
- "shop": "convenience"
- },
- "name": "Dorfladen",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Продукты": {
- "tags": {
- "name": "Продукты",
- "shop": "convenience"
- },
- "name": "Продукты",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Mini Stop": {
- "tags": {
- "name": "Mini Stop",
- "shop": "convenience"
- },
- "name": "Mini Stop",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/LAWSON": {
- "tags": {
- "name": "LAWSON",
- "shop": "convenience"
- },
- "name": "LAWSON",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/デイリーヤマザキ": {
- "tags": {
- "name": "デイリーヤマザキ",
- "shop": "convenience"
- },
- "name": "デイリーヤマザキ",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Надежда": {
- "tags": {
- "name": "Надежда",
- "shop": "convenience"
- },
- "name": "Надежда",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Nisa": {
- "tags": {
- "name": "Nisa",
- "shop": "convenience"
- },
- "name": "Nisa",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Premier": {
- "tags": {
- "name": "Premier",
- "shop": "convenience"
- },
- "name": "Premier",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/ABC": {
- "tags": {
- "name": "ABC",
- "shop": "convenience"
- },
- "name": "ABC",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/ミニストップ": {
- "tags": {
- "name": "ミニストップ",
- "name:en": "MINISTOP",
- "shop": "convenience"
- },
- "name": "ミニストップ",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/サンクス": {
- "tags": {
- "name": "サンクス",
- "name:en": "sunkus",
- "shop": "convenience"
- },
- "name": "サンクス",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/スリーエフ": {
- "tags": {
- "name": "スリーエフ",
- "shop": "convenience"
- },
- "name": "スリーエフ",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/8 à Huit": {
- "tags": {
- "name": "8 à Huit",
- "shop": "convenience"
- },
- "name": "8 à Huit",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Żabka": {
- "tags": {
- "name": "Żabka",
- "shop": "convenience"
- },
- "name": "Żabka",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Almacen": {
- "tags": {
- "name": "Almacen",
- "shop": "convenience"
- },
- "name": "Almacen",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Vival": {
- "tags": {
- "name": "Vival",
- "shop": "convenience"
- },
- "name": "Vival",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/FamilyMart": {
- "tags": {
- "name": "FamilyMart",
- "shop": "convenience"
- },
- "name": "FamilyMart",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/ファミリーマート": {
- "tags": {
- "name": "ファミリーマート",
- "name:en": "FamilyMart",
- "shop": "convenience"
- },
- "name": "ファミリーマート",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Sunkus": {
- "tags": {
- "name": "Sunkus",
- "shop": "convenience"
- },
- "name": "Sunkus",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/セブンイレブン(Seven-Eleven)": {
- "tags": {
- "name": "セブンイレブン(Seven-Eleven)",
- "shop": "convenience"
- },
- "name": "セブンイレブン(Seven-Eleven)",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Jednota": {
- "tags": {
- "name": "Jednota",
- "shop": "convenience"
- },
- "name": "Jednota",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Магазин": {
- "tags": {
- "name": "Магазин",
- "shop": "convenience"
- },
- "name": "Магазин",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Гастроном": {
- "tags": {
- "name": "Гастроном",
- "shop": "convenience"
- },
- "name": "Гастроном",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Sklep spożywczy": {
- "tags": {
- "name": "Sklep spożywczy",
- "shop": "convenience"
- },
- "name": "Sklep spożywczy",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Centra": {
- "tags": {
- "name": "Centra",
- "shop": "convenience"
- },
- "name": "Centra",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/サークルK": {
- "tags": {
- "name": "サークルK",
- "name:en": "Circle K",
- "shop": "convenience"
- },
- "name": "サークルK",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Wawa": {
- "tags": {
- "name": "Wawa",
- "shop": "convenience"
- },
- "name": "Wawa",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Proxi": {
- "tags": {
- "name": "Proxi",
- "shop": "convenience"
- },
- "name": "Proxi",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Универсам": {
- "tags": {
- "name": "Универсам",
- "shop": "convenience"
- },
- "name": "Универсам",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Groszek": {
- "tags": {
- "name": "Groszek",
- "shop": "convenience"
- },
- "name": "Groszek",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Select": {
- "tags": {
- "name": "Select",
- "shop": "convenience"
- },
- "name": "Select",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Večerka": {
- "tags": {
- "name": "Večerka",
- "shop": "convenience"
- },
- "name": "Večerka",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Potraviny": {
- "tags": {
- "name": "Potraviny",
- "shop": "convenience"
- },
- "name": "Potraviny",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Смак": {
- "tags": {
- "name": "Смак",
- "shop": "convenience"
- },
- "name": "Смак",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Эконом": {
- "tags": {
- "name": "Эконом",
- "shop": "convenience"
- },
- "name": "Эконом",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Березка": {
- "tags": {
- "name": "Березка",
- "shop": "convenience"
- },
- "name": "Березка",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Społem": {
- "tags": {
- "name": "Społem",
- "shop": "convenience"
- },
- "name": "Społem",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Cumberland Farms": {
- "tags": {
- "name": "Cumberland Farms",
- "shop": "convenience"
- },
- "name": "Cumberland Farms",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Tesco Lotus Express": {
- "tags": {
- "name": "Tesco Lotus Express",
- "shop": "convenience"
- },
- "name": "Tesco Lotus Express",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Kiosk": {
- "tags": {
- "name": "Kiosk",
- "shop": "convenience"
- },
- "name": "Kiosk",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/24 часа": {
- "tags": {
- "name": "24 часа",
- "shop": "convenience"
- },
- "name": "24 часа",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Минимаркет": {
- "tags": {
- "name": "Минимаркет",
- "shop": "convenience"
- },
- "name": "Минимаркет",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Oxxo": {
- "tags": {
- "name": "Oxxo",
- "shop": "convenience"
- },
- "name": "Oxxo",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/abc": {
- "tags": {
- "name": "abc",
- "shop": "convenience"
- },
- "name": "abc",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/7/11": {
- "tags": {
- "name": "7/11",
- "shop": "convenience"
- },
- "name": "7/11",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Stewart's": {
- "tags": {
- "name": "Stewart's",
- "shop": "convenience"
- },
- "name": "Stewart's",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Продукти": {
- "tags": {
- "name": "Продукти",
- "shop": "convenience"
- },
- "name": "Продукти",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/ローソンストア100 (LAWSON STORE 100)": {
- "tags": {
- "name": "ローソンストア100 (LAWSON STORE 100)",
- "shop": "convenience"
- },
- "name": "ローソンストア100 (LAWSON STORE 100)",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Радуга": {
- "tags": {
- "name": "Радуга",
- "shop": "convenience"
- },
- "name": "Радуга",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/ローソンストア100": {
- "tags": {
- "name": "ローソンストア100",
- "shop": "convenience"
- },
- "name": "ローソンストア100",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/เซเว่นอีเลฟเว่น": {
- "tags": {
- "name": "เซเว่นอีเลฟเว่น",
- "shop": "convenience"
- },
- "name": "เซเว่นอีเลฟเว่น",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Spożywczy": {
- "tags": {
- "name": "Spożywczy",
- "shop": "convenience"
- },
- "name": "Spożywczy",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Фортуна": {
- "tags": {
- "name": "Фортуна",
- "shop": "convenience"
- },
- "name": "Фортуна",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Picard": {
- "tags": {
- "name": "Picard",
- "shop": "convenience"
- },
- "name": "Picard",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Four Square": {
- "tags": {
- "name": "Four Square",
- "shop": "convenience"
- },
- "name": "Four Square",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Визит": {
- "tags": {
- "name": "Визит",
- "shop": "convenience"
- },
- "name": "Визит",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Авоська": {
- "tags": {
- "name": "Авоська",
- "shop": "convenience"
- },
- "name": "Авоська",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Dollar General": {
- "tags": {
- "name": "Dollar General",
- "shop": "convenience"
- },
- "name": "Dollar General",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Studenac": {
- "tags": {
- "name": "Studenac",
- "shop": "convenience"
- },
- "name": "Studenac",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Central Convenience Store": {
- "tags": {
- "name": "Central Convenience Store",
- "shop": "convenience"
- },
- "name": "Central Convenience Store",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/продукты": {
- "tags": {
- "name": "продукты",
- "shop": "convenience"
- },
- "name": "продукты",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Кулинария": {
- "tags": {
- "name": "Кулинария",
- "shop": "convenience"
- },
- "name": "Кулинария",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/全家": {
- "tags": {
- "name": "全家",
- "shop": "convenience"
- },
- "name": "全家",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Мечта": {
- "tags": {
- "name": "Мечта",
- "shop": "convenience"
- },
- "name": "Мечта",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Epicerie": {
- "tags": {
- "name": "Epicerie",
- "shop": "convenience"
- },
- "name": "Epicerie",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Кировский": {
- "tags": {
- "name": "Кировский",
- "shop": "convenience"
- },
- "name": "Кировский",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Food Mart": {
- "tags": {
- "name": "Food Mart",
- "shop": "convenience"
- },
- "name": "Food Mart",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Delikatesy": {
- "tags": {
- "name": "Delikatesy",
- "shop": "convenience"
- },
- "name": "Delikatesy",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/ポプラ": {
- "tags": {
- "name": "ポプラ",
- "shop": "convenience"
- },
- "name": "ポプラ",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Lewiatan": {
- "tags": {
- "name": "Lewiatan",
- "shop": "convenience"
- },
- "name": "Lewiatan",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Продуктовый магазин": {
- "tags": {
- "name": "Продуктовый магазин",
- "shop": "convenience"
- },
- "name": "Продуктовый магазин",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Продуктовый": {
- "tags": {
- "name": "Продуктовый",
- "shop": "convenience"
- },
- "name": "Продуктовый",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/セイコーマート (Seicomart)": {
- "tags": {
- "name": "セイコーマート (Seicomart)",
- "shop": "convenience"
- },
- "name": "セイコーマート (Seicomart)",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Виктория": {
- "tags": {
- "name": "Виктория",
- "shop": "convenience"
- },
- "name": "Виктория",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Весна": {
- "tags": {
- "name": "Весна",
- "shop": "convenience"
- },
- "name": "Весна",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Mini Market Non-Stop": {
- "tags": {
- "name": "Mini Market Non-Stop",
- "shop": "convenience"
- },
- "name": "Mini Market Non-Stop",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Копеечка": {
- "tags": {
- "name": "Копеечка",
- "shop": "convenience"
- },
- "name": "Копеечка",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Royal Farms": {
- "tags": {
- "name": "Royal Farms",
- "shop": "convenience"
- },
- "name": "Royal Farms",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Alfamart": {
- "tags": {
- "name": "Alfamart",
- "shop": "convenience"
- },
- "name": "Alfamart",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Indomaret": {
- "tags": {
- "name": "Indomaret",
- "shop": "convenience"
- },
- "name": "Indomaret",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/магазин": {
- "tags": {
- "name": "магазин",
- "shop": "convenience"
- },
- "name": "магазин",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/全家便利商店": {
- "tags": {
- "name": "全家便利商店",
- "shop": "convenience"
- },
- "name": "全家便利商店",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Boutique": {
- "tags": {
- "name": "Boutique",
- "shop": "convenience"
- },
- "name": "Boutique",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/მარკეტი (Market)": {
- "tags": {
- "name": "მარკეტი (Market)",
- "shop": "convenience"
- },
- "name": "მარკეტი (Market)",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/convenience/Stores": {
- "tags": {
- "name": "Stores",
- "shop": "convenience"
- },
- "name": "Stores",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/dm": {
- "tags": {
- "name": "dm",
- "shop": "chemist"
- },
- "name": "dm",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/Müller": {
- "tags": {
- "name": "Müller",
- "shop": "chemist"
- },
- "name": "Müller",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/Schlecker": {
- "tags": {
- "name": "Schlecker",
- "shop": "chemist"
- },
- "name": "Schlecker",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/Etos": {
- "tags": {
- "name": "Etos",
- "shop": "chemist"
- },
- "name": "Etos",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/Bipa": {
- "tags": {
- "name": "Bipa",
- "shop": "chemist"
- },
- "name": "Bipa",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/Rossmann": {
- "tags": {
- "name": "Rossmann",
- "shop": "chemist"
- },
- "name": "Rossmann",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/DM Drogeriemarkt": {
- "tags": {
- "name": "DM Drogeriemarkt",
- "shop": "chemist"
- },
- "name": "DM Drogeriemarkt",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/Ihr Platz": {
- "tags": {
- "name": "Ihr Platz",
- "shop": "chemist"
- },
- "name": "Ihr Platz",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/Douglas": {
- "tags": {
- "name": "Douglas",
- "shop": "chemist"
- },
- "name": "Douglas",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/chemist/Kruidvat": {
- "tags": {
- "name": "Kruidvat",
- "shop": "chemist"
- },
- "name": "Kruidvat",
- "icon": "chemist",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Kwik Fit": {
- "tags": {
- "name": "Kwik Fit",
- "shop": "car_repair"
- },
- "name": "Kwik Fit",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/ATU": {
- "tags": {
- "name": "ATU",
- "shop": "car_repair"
- },
- "name": "ATU",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Kwik-Fit": {
- "tags": {
- "name": "Kwik-Fit",
- "shop": "car_repair"
- },
- "name": "Kwik-Fit",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Midas": {
- "tags": {
- "name": "Midas",
- "shop": "car_repair"
- },
- "name": "Midas",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Feu Vert": {
- "tags": {
- "name": "Feu Vert",
- "shop": "car_repair"
- },
- "name": "Feu Vert",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Norauto": {
- "tags": {
- "name": "Norauto",
- "shop": "car_repair"
- },
- "name": "Norauto",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Speedy": {
- "tags": {
- "name": "Speedy",
- "shop": "car_repair"
- },
- "name": "Speedy",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Pit Stop": {
- "tags": {
- "name": "Pit Stop",
- "shop": "car_repair"
- },
- "name": "Pit Stop",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Jiffy Lube": {
- "tags": {
- "name": "Jiffy Lube",
- "shop": "car_repair"
- },
- "name": "Jiffy Lube",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Шиномонтаж": {
- "tags": {
- "name": "Шиномонтаж",
- "shop": "car_repair"
- },
- "name": "Шиномонтаж",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/СТО": {
- "tags": {
- "name": "СТО",
- "shop": "car_repair"
- },
- "name": "СТО",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/O'Reilly Auto Parts": {
- "tags": {
- "name": "O'Reilly Auto Parts",
- "shop": "car_repair"
- },
- "name": "O'Reilly Auto Parts",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Carglass": {
- "tags": {
- "name": "Carglass",
- "shop": "car_repair"
- },
- "name": "Carglass",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/шиномонтаж": {
- "tags": {
- "name": "шиномонтаж",
- "shop": "car_repair"
- },
- "name": "шиномонтаж",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Euromaster": {
- "tags": {
- "name": "Euromaster",
- "shop": "car_repair"
- },
- "name": "Euromaster",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Firestone": {
- "tags": {
- "name": "Firestone",
- "shop": "car_repair"
- },
- "name": "Firestone",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/AutoZone": {
- "tags": {
- "name": "AutoZone",
- "shop": "car_repair"
- },
- "name": "AutoZone",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Автосервис": {
- "tags": {
- "name": "Автосервис",
- "shop": "car_repair"
- },
- "name": "Автосервис",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Advance Auto Parts": {
- "tags": {
- "name": "Advance Auto Parts",
- "shop": "car_repair"
- },
- "name": "Advance Auto Parts",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car_repair/Roady": {
- "tags": {
- "name": "Roady",
- "shop": "car_repair"
- },
- "name": "Roady",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/furniture/IKEA": {
- "tags": {
- "name": "IKEA",
- "shop": "furniture"
- },
- "name": "IKEA",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/furniture/Jysk": {
- "tags": {
- "name": "Jysk",
- "shop": "furniture"
- },
- "name": "Jysk",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/furniture/Roller": {
- "tags": {
- "name": "Roller",
- "shop": "furniture"
- },
- "name": "Roller",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/furniture/Dänisches Bettenlager": {
- "tags": {
- "name": "Dänisches Bettenlager",
- "shop": "furniture"
- },
- "name": "Dänisches Bettenlager",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/furniture/Conforama": {
- "tags": {
- "name": "Conforama",
- "shop": "furniture"
- },
- "name": "Conforama",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/furniture/Matratzen Concord": {
- "tags": {
- "name": "Matratzen Concord",
- "shop": "furniture"
- },
- "name": "Matratzen Concord",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/furniture/Мебель": {
- "tags": {
- "name": "Мебель",
- "shop": "furniture"
- },
- "name": "Мебель",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/furniture/But": {
- "tags": {
- "name": "But",
- "shop": "furniture"
- },
- "name": "But",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Hornbach": {
- "tags": {
- "name": "Hornbach",
- "shop": "doityourself"
- },
- "name": "Hornbach",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/B&Q": {
- "tags": {
- "name": "B&Q",
- "shop": "doityourself"
- },
- "name": "B&Q",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Hubo": {
- "tags": {
- "name": "Hubo",
- "shop": "doityourself"
- },
- "name": "Hubo",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Mr Bricolage": {
- "tags": {
- "name": "Mr Bricolage",
- "shop": "doityourself"
- },
- "name": "Mr Bricolage",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Gamma": {
- "tags": {
- "name": "Gamma",
- "shop": "doityourself"
- },
- "name": "Gamma",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/OBI": {
- "tags": {
- "name": "OBI",
- "shop": "doityourself"
- },
- "name": "OBI",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Lowes": {
- "tags": {
- "name": "Lowes",
- "shop": "doityourself"
- },
- "name": "Lowes",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Wickes": {
- "tags": {
- "name": "Wickes",
- "shop": "doityourself"
- },
- "name": "Wickes",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Hagebau": {
- "tags": {
- "name": "Hagebau",
- "shop": "doityourself"
- },
- "name": "Hagebau",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Max Bahr": {
- "tags": {
- "name": "Max Bahr",
- "shop": "doityourself"
- },
- "name": "Max Bahr",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Castorama": {
- "tags": {
- "name": "Castorama",
- "shop": "doityourself"
- },
- "name": "Castorama",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Rona": {
- "tags": {
- "name": "Rona",
- "shop": "doityourself"
- },
- "name": "Rona",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Home Depot": {
- "tags": {
- "name": "Home Depot",
- "shop": "doityourself"
- },
- "name": "Home Depot",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Toom Baumarkt": {
- "tags": {
- "name": "Toom Baumarkt",
- "shop": "doityourself"
- },
- "name": "Toom Baumarkt",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Homebase": {
- "tags": {
- "name": "Homebase",
- "shop": "doityourself"
- },
- "name": "Homebase",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Baumax": {
- "tags": {
- "name": "Baumax",
- "shop": "doityourself"
- },
- "name": "Baumax",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Lagerhaus": {
- "tags": {
- "name": "Lagerhaus",
- "shop": "doityourself"
- },
- "name": "Lagerhaus",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Bauhaus": {
- "tags": {
- "name": "Bauhaus",
- "shop": "doityourself"
- },
- "name": "Bauhaus",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Canadian Tire": {
- "tags": {
- "name": "Canadian Tire",
- "shop": "doityourself"
- },
- "name": "Canadian Tire",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Leroy Merlin": {
- "tags": {
- "name": "Leroy Merlin",
- "shop": "doityourself"
- },
- "name": "Leroy Merlin",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Hellweg": {
- "tags": {
- "name": "Hellweg",
- "shop": "doityourself"
- },
- "name": "Hellweg",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Brico": {
- "tags": {
- "name": "Brico",
- "shop": "doityourself"
- },
- "name": "Brico",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Bricomarché": {
- "tags": {
- "name": "Bricomarché",
- "shop": "doityourself"
- },
- "name": "Bricomarché",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Toom": {
- "tags": {
- "name": "Toom",
- "shop": "doityourself"
- },
- "name": "Toom",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Hagebaumarkt": {
- "tags": {
- "name": "Hagebaumarkt",
- "shop": "doityourself"
- },
- "name": "Hagebaumarkt",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Praktiker": {
- "tags": {
- "name": "Praktiker",
- "shop": "doityourself"
- },
- "name": "Praktiker",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Menards": {
- "tags": {
- "name": "Menards",
- "shop": "doityourself"
- },
- "name": "Menards",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Weldom": {
- "tags": {
- "name": "Weldom",
- "shop": "doityourself"
- },
- "name": "Weldom",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Bunnings Warehouse": {
- "tags": {
- "name": "Bunnings Warehouse",
- "shop": "doityourself"
- },
- "name": "Bunnings Warehouse",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Ace Hardware": {
- "tags": {
- "name": "Ace Hardware",
- "shop": "doityourself"
- },
- "name": "Ace Hardware",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Home Hardware": {
- "tags": {
- "name": "Home Hardware",
- "shop": "doityourself"
- },
- "name": "Home Hardware",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Стройматериалы": {
- "tags": {
- "name": "Стройматериалы",
- "shop": "doityourself"
- },
- "name": "Стройматериалы",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Bricorama": {
- "tags": {
- "name": "Bricorama",
- "shop": "doityourself"
- },
- "name": "Bricorama",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/doityourself/Point P": {
- "tags": {
- "name": "Point P",
- "shop": "doityourself"
- },
- "name": "Point P",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/stationery/Staples": {
- "tags": {
- "name": "Staples",
- "shop": "stationery"
- },
- "name": "Staples",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/stationery/McPaper": {
- "tags": {
- "name": "McPaper",
- "shop": "stationery"
- },
- "name": "McPaper",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/stationery/Office Depot": {
- "tags": {
- "name": "Office Depot",
- "shop": "stationery"
- },
- "name": "Office Depot",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/stationery/Канцтовары": {
- "tags": {
- "name": "Канцтовары",
- "shop": "stationery"
- },
- "name": "Канцтовары",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Skoda": {
- "tags": {
- "name": "Skoda",
- "shop": "car"
- },
- "name": "Skoda",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/BMW": {
- "tags": {
- "name": "BMW",
- "shop": "car"
- },
- "name": "BMW",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Citroen": {
- "tags": {
- "name": "Citroen",
- "shop": "car"
- },
- "name": "Citroen",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Renault": {
- "tags": {
- "name": "Renault",
- "shop": "car"
- },
- "name": "Renault",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Mercedes-Benz": {
- "tags": {
- "name": "Mercedes-Benz",
- "shop": "car"
- },
- "name": "Mercedes-Benz",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Volvo": {
- "tags": {
- "name": "Volvo",
- "shop": "car"
- },
- "name": "Volvo",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Ford": {
- "tags": {
- "name": "Ford",
- "shop": "car"
- },
- "name": "Ford",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Volkswagen": {
- "tags": {
- "name": "Volkswagen",
- "shop": "car"
- },
- "name": "Volkswagen",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Mazda": {
- "tags": {
- "name": "Mazda",
- "shop": "car"
- },
- "name": "Mazda",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Mitsubishi": {
- "tags": {
- "name": "Mitsubishi",
- "shop": "car"
- },
- "name": "Mitsubishi",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Fiat": {
- "tags": {
- "name": "Fiat",
- "shop": "car"
- },
- "name": "Fiat",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Автозапчасти": {
- "tags": {
- "name": "Автозапчасти",
- "shop": "car"
- },
- "name": "Автозапчасти",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Opel": {
- "tags": {
- "name": "Opel",
- "shop": "car"
- },
- "name": "Opel",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Audi": {
- "tags": {
- "name": "Audi",
- "shop": "car"
- },
- "name": "Audi",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Toyota": {
- "tags": {
- "name": "Toyota",
- "shop": "car"
- },
- "name": "Toyota",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Nissan": {
- "tags": {
- "name": "Nissan",
- "shop": "car"
- },
- "name": "Nissan",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Suzuki": {
- "tags": {
- "name": "Suzuki",
- "shop": "car"
- },
- "name": "Suzuki",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Honda": {
- "tags": {
- "name": "Honda",
- "shop": "car"
- },
- "name": "Honda",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Peugeot": {
- "tags": {
- "name": "Peugeot",
- "shop": "car"
- },
- "name": "Peugeot",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Hyundai": {
- "tags": {
- "name": "Hyundai",
- "shop": "car"
- },
- "name": "Hyundai",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Subaru": {
- "tags": {
- "name": "Subaru",
- "shop": "car"
- },
- "name": "Subaru",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Chevrolet": {
- "tags": {
- "name": "Chevrolet",
- "shop": "car"
- },
- "name": "Chevrolet",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/car/Автомагазин": {
- "tags": {
- "name": "Автомагазин",
- "shop": "car"
- },
- "name": "Автомагазин",
- "icon": "car",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Matalan": {
- "tags": {
- "name": "Matalan",
- "shop": "clothes"
- },
- "name": "Matalan",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/KiK": {
- "tags": {
- "name": "KiK",
- "shop": "clothes"
- },
- "name": "KiK",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/H&M": {
- "tags": {
- "name": "H&M",
- "shop": "clothes"
- },
- "name": "H&M",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Urban Outfitters": {
- "tags": {
- "name": "Urban Outfitters",
- "shop": "clothes"
- },
- "name": "Urban Outfitters",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Vögele": {
- "tags": {
- "name": "Vögele",
- "shop": "clothes"
- },
- "name": "Vögele",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Zeeman": {
- "tags": {
- "name": "Zeeman",
- "shop": "clothes"
- },
- "name": "Zeeman",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Takko": {
- "tags": {
- "name": "Takko",
- "shop": "clothes"
- },
- "name": "Takko",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/C&A": {
- "tags": {
- "name": "C&A",
- "shop": "clothes"
- },
- "name": "C&A",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Zara": {
- "tags": {
- "name": "Zara",
- "shop": "clothes"
- },
- "name": "Zara",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Vero Moda": {
- "tags": {
- "name": "Vero Moda",
- "shop": "clothes"
- },
- "name": "Vero Moda",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/NKD": {
- "tags": {
- "name": "NKD",
- "shop": "clothes"
- },
- "name": "NKD",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Ernsting's family": {
- "tags": {
- "name": "Ernsting's family",
- "shop": "clothes"
- },
- "name": "Ernsting's family",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Winners": {
- "tags": {
- "name": "Winners",
- "shop": "clothes"
- },
- "name": "Winners",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/River Island": {
- "tags": {
- "name": "River Island",
- "shop": "clothes"
- },
- "name": "River Island",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Next": {
- "tags": {
- "name": "Next",
- "shop": "clothes"
- },
- "name": "Next",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Gap": {
- "tags": {
- "name": "Gap",
- "shop": "clothes"
- },
- "name": "Gap",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Adidas": {
- "tags": {
- "name": "Adidas",
- "shop": "clothes"
- },
- "name": "Adidas",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Mr Price": {
- "tags": {
- "name": "Mr Price",
- "shop": "clothes"
- },
- "name": "Mr Price",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Pep": {
- "tags": {
- "name": "Pep",
- "shop": "clothes"
- },
- "name": "Pep",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Edgars": {
- "tags": {
- "name": "Edgars",
- "shop": "clothes"
- },
- "name": "Edgars",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Ackermans": {
- "tags": {
- "name": "Ackermans",
- "shop": "clothes"
- },
- "name": "Ackermans",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Truworths": {
- "tags": {
- "name": "Truworths",
- "shop": "clothes"
- },
- "name": "Truworths",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Ross": {
- "tags": {
- "name": "Ross",
- "shop": "clothes"
- },
- "name": "Ross",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Burton": {
- "tags": {
- "name": "Burton",
- "shop": "clothes"
- },
- "name": "Burton",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Dorothy Perkins": {
- "tags": {
- "name": "Dorothy Perkins",
- "shop": "clothes"
- },
- "name": "Dorothy Perkins",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Lindex": {
- "tags": {
- "name": "Lindex",
- "shop": "clothes"
- },
- "name": "Lindex",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/s.Oliver": {
- "tags": {
- "name": "s.Oliver",
- "shop": "clothes"
- },
- "name": "s.Oliver",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Cecil": {
- "tags": {
- "name": "Cecil",
- "shop": "clothes"
- },
- "name": "Cecil",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Dress Barn": {
- "tags": {
- "name": "Dress Barn",
- "shop": "clothes"
- },
- "name": "Dress Barn",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Old Navy": {
- "tags": {
- "name": "Old Navy",
- "shop": "clothes"
- },
- "name": "Old Navy",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Jack & Jones": {
- "tags": {
- "name": "Jack & Jones",
- "shop": "clothes"
- },
- "name": "Jack & Jones",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Pimkie": {
- "tags": {
- "name": "Pimkie",
- "shop": "clothes"
- },
- "name": "Pimkie",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Esprit": {
- "tags": {
- "name": "Esprit",
- "shop": "clothes"
- },
- "name": "Esprit",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Primark": {
- "tags": {
- "name": "Primark",
- "shop": "clothes"
- },
- "name": "Primark",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Bonita": {
- "tags": {
- "name": "Bonita",
- "shop": "clothes"
- },
- "name": "Bonita",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Mexx": {
- "tags": {
- "name": "Mexx",
- "shop": "clothes"
- },
- "name": "Mexx",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Gerry Weber": {
- "tags": {
- "name": "Gerry Weber",
- "shop": "clothes"
- },
- "name": "Gerry Weber",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Tally Weijl": {
- "tags": {
- "name": "Tally Weijl",
- "shop": "clothes"
- },
- "name": "Tally Weijl",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Mango": {
- "tags": {
- "name": "Mango",
- "shop": "clothes"
- },
- "name": "Mango",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/TK Maxx": {
- "tags": {
- "name": "TK Maxx",
- "shop": "clothes"
- },
- "name": "TK Maxx",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Benetton": {
- "tags": {
- "name": "Benetton",
- "shop": "clothes"
- },
- "name": "Benetton",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Ulla Popken": {
- "tags": {
- "name": "Ulla Popken",
- "shop": "clothes"
- },
- "name": "Ulla Popken",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/AWG": {
- "tags": {
- "name": "AWG",
- "shop": "clothes"
- },
- "name": "AWG",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Tommy Hilfiger": {
- "tags": {
- "name": "Tommy Hilfiger",
- "shop": "clothes"
- },
- "name": "Tommy Hilfiger",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/New Yorker": {
- "tags": {
- "name": "New Yorker",
- "shop": "clothes"
- },
- "name": "New Yorker",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Orsay": {
- "tags": {
- "name": "Orsay",
- "shop": "clothes"
- },
- "name": "Orsay",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Jeans Fritz": {
- "tags": {
- "name": "Jeans Fritz",
- "shop": "clothes"
- },
- "name": "Jeans Fritz",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Charles Vögele": {
- "tags": {
- "name": "Charles Vögele",
- "shop": "clothes"
- },
- "name": "Charles Vögele",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/New Look": {
- "tags": {
- "name": "New Look",
- "shop": "clothes"
- },
- "name": "New Look",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Lacoste": {
- "tags": {
- "name": "Lacoste",
- "shop": "clothes"
- },
- "name": "Lacoste",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Etam": {
- "tags": {
- "name": "Etam",
- "shop": "clothes"
- },
- "name": "Etam",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Kiabi": {
- "tags": {
- "name": "Kiabi",
- "shop": "clothes"
- },
- "name": "Kiabi",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Jack Wolfskin": {
- "tags": {
- "name": "Jack Wolfskin",
- "shop": "clothes"
- },
- "name": "Jack Wolfskin",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/American Apparel": {
- "tags": {
- "name": "American Apparel",
- "shop": "clothes"
- },
- "name": "American Apparel",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Men's Wearhouse": {
- "tags": {
- "name": "Men's Wearhouse",
- "shop": "clothes"
- },
- "name": "Men's Wearhouse",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Intimissimi": {
- "tags": {
- "name": "Intimissimi",
- "shop": "clothes"
- },
- "name": "Intimissimi",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/United Colors of Benetton": {
- "tags": {
- "name": "United Colors of Benetton",
- "shop": "clothes"
- },
- "name": "United Colors of Benetton",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Jules": {
- "tags": {
- "name": "Jules",
- "shop": "clothes"
- },
- "name": "Jules",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Second Hand": {
- "tags": {
- "name": "Second Hand",
- "shop": "clothes"
- },
- "name": "Second Hand",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/AOKI": {
- "tags": {
- "name": "AOKI",
- "shop": "clothes"
- },
- "name": "AOKI",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Calzedonia": {
- "tags": {
- "name": "Calzedonia",
- "shop": "clothes"
- },
- "name": "Calzedonia",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/洋服の青山": {
- "tags": {
- "name": "洋服の青山",
- "shop": "clothes"
- },
- "name": "洋服の青山",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Levi's": {
- "tags": {
- "name": "Levi's",
- "shop": "clothes"
- },
- "name": "Levi's",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Celio": {
- "tags": {
- "name": "Celio",
- "shop": "clothes"
- },
- "name": "Celio",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/TJ Maxx": {
- "tags": {
- "name": "TJ Maxx",
- "shop": "clothes"
- },
- "name": "TJ Maxx",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Promod": {
- "tags": {
- "name": "Promod",
- "shop": "clothes"
- },
- "name": "Promod",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Street One": {
- "tags": {
- "name": "Street One",
- "shop": "clothes"
- },
- "name": "Street One",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/ユニクロ": {
- "tags": {
- "name": "ユニクロ",
- "shop": "clothes"
- },
- "name": "ユニクロ",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Banana Republic": {
- "tags": {
- "name": "Banana Republic",
- "shop": "clothes"
- },
- "name": "Banana Republic",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Одежда": {
- "tags": {
- "name": "Одежда",
- "shop": "clothes"
- },
- "name": "Одежда",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Marshalls": {
- "tags": {
- "name": "Marshalls",
- "shop": "clothes"
- },
- "name": "Marshalls",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/La Halle": {
- "tags": {
- "name": "La Halle",
- "shop": "clothes"
- },
- "name": "La Halle",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/Peacocks": {
- "tags": {
- "name": "Peacocks",
- "shop": "clothes"
- },
- "name": "Peacocks",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/clothes/しまむら": {
- "tags": {
- "name": "しまむら",
- "shop": "clothes"
- },
- "name": "しまむら",
- "icon": "clothing-store",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/books/Bruna": {
- "tags": {
- "name": "Bruna",
- "shop": "books"
- },
- "name": "Bruna",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/books/Waterstones": {
- "tags": {
- "name": "Waterstones",
- "shop": "books"
- },
- "name": "Waterstones",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/books/Libro": {
- "tags": {
- "name": "Libro",
- "shop": "books"
- },
- "name": "Libro",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/books/Barnes & Noble": {
- "tags": {
- "name": "Barnes & Noble",
- "shop": "books"
- },
- "name": "Barnes & Noble",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/books/Weltbild": {
- "tags": {
- "name": "Weltbild",
- "shop": "books"
- },
- "name": "Weltbild",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/books/Thalia": {
- "tags": {
- "name": "Thalia",
- "shop": "books"
- },
- "name": "Thalia",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/books/Книги": {
- "tags": {
- "name": "Книги",
- "shop": "books"
- },
- "name": "Книги",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Debenhams": {
- "tags": {
- "name": "Debenhams",
- "shop": "department_store"
- },
- "name": "Debenhams",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Karstadt": {
- "tags": {
- "name": "Karstadt",
- "shop": "department_store"
- },
- "name": "Karstadt",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Kmart": {
- "tags": {
- "name": "Kmart",
- "shop": "department_store"
- },
- "name": "Kmart",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Target": {
- "tags": {
- "name": "Target",
- "shop": "department_store"
- },
- "name": "Target",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Galeria Kaufhof": {
- "tags": {
- "name": "Galeria Kaufhof",
- "shop": "department_store"
- },
- "name": "Galeria Kaufhof",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Marks & Spencer": {
- "tags": {
- "name": "Marks & Spencer",
- "shop": "department_store"
- },
- "name": "Marks & Spencer",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Big W": {
- "tags": {
- "name": "Big W",
- "shop": "department_store"
- },
- "name": "Big W",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Woolworth": {
- "tags": {
- "name": "Woolworth",
- "shop": "department_store"
- },
- "name": "Woolworth",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Универмаг": {
- "tags": {
- "name": "Универмаг",
- "shop": "department_store"
- },
- "name": "Универмаг",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Sears": {
- "tags": {
- "name": "Sears",
- "shop": "department_store"
- },
- "name": "Sears",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Kohl's": {
- "tags": {
- "name": "Kohl's",
- "shop": "department_store"
- },
- "name": "Kohl's",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/Macy's": {
- "tags": {
- "name": "Macy's",
- "shop": "department_store"
- },
- "name": "Macy's",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/department_store/JCPenney": {
- "tags": {
- "name": "JCPenney",
- "shop": "department_store"
- },
- "name": "JCPenney",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/Alko": {
- "tags": {
- "name": "Alko",
- "shop": "alcohol"
- },
- "name": "Alko",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/The Beer Store": {
- "tags": {
- "name": "The Beer Store",
- "shop": "alcohol"
- },
- "name": "The Beer Store",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/Systembolaget": {
- "tags": {
- "name": "Systembolaget",
- "shop": "alcohol"
- },
- "name": "Systembolaget",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/LCBO": {
- "tags": {
- "name": "LCBO",
- "shop": "alcohol"
- },
- "name": "LCBO",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/Ароматный мир": {
- "tags": {
- "name": "Ароматный мир",
- "shop": "alcohol"
- },
- "name": "Ароматный мир",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/Bargain Booze": {
- "tags": {
- "name": "Bargain Booze",
- "shop": "alcohol"
- },
- "name": "Bargain Booze",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/Nicolas": {
- "tags": {
- "name": "Nicolas",
- "shop": "alcohol"
- },
- "name": "Nicolas",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/BWS": {
- "tags": {
- "name": "BWS",
- "shop": "alcohol"
- },
- "name": "BWS",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/Botilleria": {
- "tags": {
- "name": "Botilleria",
- "shop": "alcohol"
- },
- "name": "Botilleria",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/SAQ": {
- "tags": {
- "name": "SAQ",
- "shop": "alcohol"
- },
- "name": "SAQ",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/Gall & Gall": {
- "tags": {
- "name": "Gall & Gall",
- "shop": "alcohol"
- },
- "name": "Gall & Gall",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/alcohol/Живое пиво": {
- "tags": {
- "name": "Живое пиво",
- "shop": "alcohol"
- },
- "name": "Живое пиво",
- "icon": "alcohol-shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Kamps": {
- "tags": {
- "name": "Kamps",
- "shop": "bakery"
- },
- "name": "Kamps",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Banette": {
- "tags": {
- "name": "Banette",
- "shop": "bakery"
- },
- "name": "Banette",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Bäckerei Schmidt": {
- "tags": {
- "name": "Bäckerei Schmidt",
- "shop": "bakery"
- },
- "name": "Bäckerei Schmidt",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Anker": {
- "tags": {
- "name": "Anker",
- "shop": "bakery"
- },
- "name": "Anker",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Hofpfisterei": {
- "tags": {
- "name": "Hofpfisterei",
- "shop": "bakery"
- },
- "name": "Hofpfisterei",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Greggs": {
- "tags": {
- "name": "Greggs",
- "shop": "bakery"
- },
- "name": "Greggs",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Oebel": {
- "tags": {
- "name": "Oebel",
- "shop": "bakery"
- },
- "name": "Oebel",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Boulangerie": {
- "tags": {
- "name": "Boulangerie",
- "shop": "bakery"
- },
- "name": "Boulangerie",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Stadtbäckerei": {
- "tags": {
- "name": "Stadtbäckerei",
- "shop": "bakery"
- },
- "name": "Stadtbäckerei",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Steinecke": {
- "tags": {
- "name": "Steinecke",
- "shop": "bakery"
- },
- "name": "Steinecke",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Ihle": {
- "tags": {
- "name": "Ihle",
- "shop": "bakery"
- },
- "name": "Ihle",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Goldilocks": {
- "tags": {
- "name": "Goldilocks",
- "shop": "bakery"
- },
- "name": "Goldilocks",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Dat Backhus": {
- "tags": {
- "name": "Dat Backhus",
- "shop": "bakery"
- },
- "name": "Dat Backhus",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/K&U": {
- "tags": {
- "name": "K&U",
- "shop": "bakery"
- },
- "name": "K&U",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Der Beck": {
- "tags": {
- "name": "Der Beck",
- "shop": "bakery"
- },
- "name": "Der Beck",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Thürmann": {
- "tags": {
- "name": "Thürmann",
- "shop": "bakery"
- },
- "name": "Thürmann",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Backwerk": {
- "tags": {
- "name": "Backwerk",
- "shop": "bakery"
- },
- "name": "Backwerk",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Bäcker": {
- "tags": {
- "name": "Bäcker",
- "shop": "bakery"
- },
- "name": "Bäcker",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Schäfer's": {
- "tags": {
- "name": "Schäfer's",
- "shop": "bakery"
- },
- "name": "Schäfer's",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Panaderia": {
- "tags": {
- "name": "Panaderia",
- "shop": "bakery"
- },
- "name": "Panaderia",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Goeken backen": {
- "tags": {
- "name": "Goeken backen",
- "shop": "bakery"
- },
- "name": "Goeken backen",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Stadtbäckerei Junge": {
- "tags": {
- "name": "Stadtbäckerei Junge",
- "shop": "bakery"
- },
- "name": "Stadtbäckerei Junge",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Boulangerie Patisserie": {
- "tags": {
- "name": "Boulangerie Patisserie",
- "shop": "bakery"
- },
- "name": "Boulangerie Patisserie",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Paul": {
- "tags": {
- "name": "Paul",
- "shop": "bakery"
- },
- "name": "Paul",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Хлеб": {
- "tags": {
- "name": "Хлеб",
- "shop": "bakery"
- },
- "name": "Хлеб",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Piekarnia": {
- "tags": {
- "name": "Piekarnia",
- "shop": "bakery"
- },
- "name": "Piekarnia",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Пекарня": {
- "tags": {
- "name": "Пекарня",
- "shop": "bakery"
- },
- "name": "Пекарня",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/bakery/Кулиничи": {
- "tags": {
- "name": "Кулиничи",
- "shop": "bakery"
- },
- "name": "Кулиничи",
- "icon": "bakery",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/sports/Sports Direct": {
- "tags": {
- "name": "Sports Direct",
- "shop": "sports"
- },
- "name": "Sports Direct",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/sports/Decathlon": {
- "tags": {
- "name": "Decathlon",
- "shop": "sports"
- },
- "name": "Decathlon",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/sports/Intersport": {
- "tags": {
- "name": "Intersport",
- "shop": "sports"
- },
- "name": "Intersport",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/sports/Sports Authority": {
- "tags": {
- "name": "Sports Authority",
- "shop": "sports"
- },
- "name": "Sports Authority",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/sports/Спортмастер": {
- "tags": {
- "name": "Спортмастер",
- "shop": "sports"
- },
- "name": "Спортмастер",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/sports/Sport 2000": {
- "tags": {
- "name": "Sport 2000",
- "shop": "sports"
- },
- "name": "Sport 2000",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/sports/Dick's Sporting Goods": {
- "tags": {
- "name": "Dick's Sporting Goods",
- "shop": "sports"
- },
- "name": "Dick's Sporting Goods",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/variety_store/Tedi": {
- "tags": {
- "name": "Tedi",
- "shop": "variety_store"
- },
- "name": "Tedi",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/variety_store/Dollarama": {
- "tags": {
- "name": "Dollarama",
- "shop": "variety_store"
- },
- "name": "Dollarama",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/variety_store/Family Dollar": {
- "tags": {
- "name": "Family Dollar",
- "shop": "variety_store"
- },
- "name": "Family Dollar",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/variety_store/Dollar Tree": {
- "tags": {
- "name": "Dollar Tree",
- "shop": "variety_store"
- },
- "name": "Dollar Tree",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/pet/Fressnapf": {
- "tags": {
- "name": "Fressnapf",
- "shop": "pet"
- },
- "name": "Fressnapf",
- "icon": "dog-park",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/pet/PetSmart": {
- "tags": {
- "name": "PetSmart",
- "shop": "pet"
- },
- "name": "PetSmart",
- "icon": "dog-park",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/pet/Das Futterhaus": {
- "tags": {
- "name": "Das Futterhaus",
- "shop": "pet"
- },
- "name": "Das Futterhaus",
- "icon": "dog-park",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/pet/Pets at Home": {
- "tags": {
- "name": "Pets at Home",
- "shop": "pet"
- },
- "name": "Pets at Home",
- "icon": "dog-park",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/pet/Petco": {
- "tags": {
- "name": "Petco",
- "shop": "pet"
- },
- "name": "Petco",
- "icon": "dog-park",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/pet/Зоомагазин": {
- "tags": {
- "name": "Зоомагазин",
- "shop": "pet"
- },
- "name": "Зоомагазин",
- "icon": "dog-park",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Deichmann": {
- "tags": {
- "name": "Deichmann",
- "shop": "shoes"
- },
- "name": "Deichmann",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Reno": {
- "tags": {
- "name": "Reno",
- "shop": "shoes"
- },
- "name": "Reno",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Ecco": {
- "tags": {
- "name": "Ecco",
- "shop": "shoes"
- },
- "name": "Ecco",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Clarks": {
- "tags": {
- "name": "Clarks",
- "shop": "shoes"
- },
- "name": "Clarks",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/La Halle aux Chaussures": {
- "tags": {
- "name": "La Halle aux Chaussures",
- "shop": "shoes"
- },
- "name": "La Halle aux Chaussures",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Brantano": {
- "tags": {
- "name": "Brantano",
- "shop": "shoes"
- },
- "name": "Brantano",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Geox": {
- "tags": {
- "name": "Geox",
- "shop": "shoes"
- },
- "name": "Geox",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Salamander": {
- "tags": {
- "name": "Salamander",
- "shop": "shoes"
- },
- "name": "Salamander",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Обувь": {
- "tags": {
- "name": "Обувь",
- "shop": "shoes"
- },
- "name": "Обувь",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Payless Shoe Source": {
- "tags": {
- "name": "Payless Shoe Source",
- "shop": "shoes"
- },
- "name": "Payless Shoe Source",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Famous Footwear": {
- "tags": {
- "name": "Famous Footwear",
- "shop": "shoes"
- },
- "name": "Famous Footwear",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Quick Schuh": {
- "tags": {
- "name": "Quick Schuh",
- "shop": "shoes"
- },
- "name": "Quick Schuh",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Shoe Zone": {
- "tags": {
- "name": "Shoe Zone",
- "shop": "shoes"
- },
- "name": "Shoe Zone",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Foot Locker": {
- "tags": {
- "name": "Foot Locker",
- "shop": "shoes"
- },
- "name": "Foot Locker",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/Bata": {
- "tags": {
- "name": "Bata",
- "shop": "shoes"
- },
- "name": "Bata",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/shoes/ЦентрОбувь": {
- "tags": {
- "name": "ЦентрОбувь",
- "shop": "shoes"
- },
- "name": "ЦентрОбувь",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/toys/La Grande Récré": {
- "tags": {
- "name": "La Grande Récré",
- "shop": "toys"
- },
- "name": "La Grande Récré",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/toys/Toys R Us": {
- "tags": {
- "name": "Toys R Us",
- "shop": "toys"
- },
- "name": "Toys R Us",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/toys/Intertoys": {
- "tags": {
- "name": "Intertoys",
- "shop": "toys"
- },
- "name": "Intertoys",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/toys/Детский мир": {
- "tags": {
- "name": "Детский мир",
- "shop": "toys"
- },
- "name": "Детский мир",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/toys/Игрушки": {
- "tags": {
- "name": "Игрушки",
- "shop": "toys"
- },
- "name": "Игрушки",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/travel_agency/Flight Centre": {
- "tags": {
- "name": "Flight Centre",
- "shop": "travel_agency"
- },
- "name": "Flight Centre",
- "icon": "suitcase",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/travel_agency/Thomas Cook": {
- "tags": {
- "name": "Thomas Cook",
- "shop": "travel_agency"
- },
- "name": "Thomas Cook",
- "icon": "suitcase",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/jewelry/Bijou Brigitte": {
- "tags": {
- "name": "Bijou Brigitte",
- "shop": "jewelry"
- },
- "name": "Bijou Brigitte",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/jewelry/Christ": {
- "tags": {
- "name": "Christ",
- "shop": "jewelry"
- },
- "name": "Christ",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/jewelry/Swarovski": {
- "tags": {
- "name": "Swarovski",
- "shop": "jewelry"
- },
- "name": "Swarovski",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Fielmann": {
- "tags": {
- "name": "Fielmann",
- "shop": "optician"
- },
- "name": "Fielmann",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Apollo Optik": {
- "tags": {
- "name": "Apollo Optik",
- "shop": "optician"
- },
- "name": "Apollo Optik",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Vision Express": {
- "tags": {
- "name": "Vision Express",
- "shop": "optician"
- },
- "name": "Vision Express",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Оптика": {
- "tags": {
- "name": "Оптика",
- "shop": "optician"
- },
- "name": "Оптика",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Optic 2000": {
- "tags": {
- "name": "Optic 2000",
- "shop": "optician"
- },
- "name": "Optic 2000",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Alain Afflelou": {
- "tags": {
- "name": "Alain Afflelou",
- "shop": "optician"
- },
- "name": "Alain Afflelou",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Specsavers": {
- "tags": {
- "name": "Specsavers",
- "shop": "optician"
- },
- "name": "Specsavers",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Krys": {
- "tags": {
- "name": "Krys",
- "shop": "optician"
- },
- "name": "Krys",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/optician/Atol": {
- "tags": {
- "name": "Atol",
- "shop": "optician"
- },
- "name": "Atol",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/video/Blockbuster": {
- "tags": {
- "name": "Blockbuster",
- "shop": "video"
- },
- "name": "Blockbuster",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/video/World of Video": {
- "tags": {
- "name": "World of Video",
- "shop": "video"
- },
- "name": "World of Video",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Билайн": {
- "tags": {
- "name": "Билайн",
- "shop": "mobile_phone"
- },
- "name": "Билайн",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/ソフトバンクショップ (SoftBank shop)": {
- "tags": {
- "name": "ソフトバンクショップ (SoftBank shop)",
- "shop": "mobile_phone"
- },
- "name": "ソフトバンクショップ (SoftBank shop)",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Vodafone": {
- "tags": {
- "name": "Vodafone",
- "shop": "mobile_phone"
- },
- "name": "Vodafone",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/O2": {
- "tags": {
- "name": "O2",
- "shop": "mobile_phone"
- },
- "name": "O2",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Carphone Warehouse": {
- "tags": {
- "name": "Carphone Warehouse",
- "shop": "mobile_phone"
- },
- "name": "Carphone Warehouse",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Orange": {
- "tags": {
- "name": "Orange",
- "shop": "mobile_phone"
- },
- "name": "Orange",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Verizon Wireless": {
- "tags": {
- "name": "Verizon Wireless",
- "shop": "mobile_phone"
- },
- "name": "Verizon Wireless",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Sprint": {
- "tags": {
- "name": "Sprint",
- "shop": "mobile_phone"
- },
- "name": "Sprint",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/T-Mobile": {
- "tags": {
- "name": "T-Mobile",
- "shop": "mobile_phone"
- },
- "name": "T-Mobile",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/МТС": {
- "tags": {
- "name": "МТС",
- "shop": "mobile_phone"
- },
- "name": "МТС",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Евросеть": {
- "tags": {
- "name": "Евросеть",
- "shop": "mobile_phone"
- },
- "name": "Евросеть",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Bell": {
- "tags": {
- "name": "Bell",
- "shop": "mobile_phone"
- },
- "name": "Bell",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/The Phone House": {
- "tags": {
- "name": "The Phone House",
- "shop": "mobile_phone"
- },
- "name": "The Phone House",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/SFR": {
- "tags": {
- "name": "SFR",
- "shop": "mobile_phone"
- },
- "name": "SFR",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Связной": {
- "tags": {
- "name": "Связной",
- "shop": "mobile_phone"
- },
- "name": "Связной",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Мегафон": {
- "tags": {
- "name": "Мегафон",
- "shop": "mobile_phone"
- },
- "name": "Мегафон",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/AT&T": {
- "tags": {
- "name": "AT&T",
- "shop": "mobile_phone"
- },
- "name": "AT&T",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/ドコモショップ (docomo shop)": {
- "tags": {
- "name": "ドコモショップ (docomo shop)",
- "shop": "mobile_phone"
- },
- "name": "ドコモショップ (docomo shop)",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/au": {
- "tags": {
- "name": "au",
- "shop": "mobile_phone"
- },
- "name": "au",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Movistar": {
- "tags": {
- "name": "Movistar",
- "shop": "mobile_phone"
- },
- "name": "Movistar",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/mobile_phone/Bitė": {
- "tags": {
- "name": "Bitė",
- "shop": "mobile_phone"
- },
- "name": "Bitė",
- "icon": "mobilephone",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/computer/PC World": {
- "tags": {
- "name": "PC World",
- "shop": "computer"
- },
- "name": "PC World",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/computer/DNS": {
- "tags": {
- "name": "DNS",
- "shop": "computer"
- },
- "name": "DNS",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Klier": {
- "tags": {
- "name": "Klier",
- "shop": "hairdresser"
- },
- "name": "Klier",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Supercuts": {
- "tags": {
- "name": "Supercuts",
- "shop": "hairdresser"
- },
- "name": "Supercuts",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Hairkiller": {
- "tags": {
- "name": "Hairkiller",
- "shop": "hairdresser"
- },
- "name": "Hairkiller",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Great Clips": {
- "tags": {
- "name": "Great Clips",
- "shop": "hairdresser"
- },
- "name": "Great Clips",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Парикмахерская": {
- "tags": {
- "name": "Парикмахерская",
- "shop": "hairdresser"
- },
- "name": "Парикмахерская",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Стиль": {
- "tags": {
- "name": "Стиль",
- "shop": "hairdresser"
- },
- "name": "Стиль",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Fryzjer": {
- "tags": {
- "name": "Fryzjer",
- "shop": "hairdresser"
- },
- "name": "Fryzjer",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Franck Provost": {
- "tags": {
- "name": "Franck Provost",
- "shop": "hairdresser"
- },
- "name": "Franck Provost",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hairdresser/Салон красоты": {
- "tags": {
- "name": "Салон красоты",
- "shop": "hairdresser"
- },
- "name": "Салон красоты",
- "icon": "hairdresser",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hardware/1000 мелочей": {
- "tags": {
- "name": "1000 мелочей",
- "shop": "hardware"
- },
- "name": "1000 мелочей",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/hardware/Хозтовары": {
- "tags": {
- "name": "Хозтовары",
- "shop": "hardware"
- },
- "name": "Хозтовары",
- "icon": "shop",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- },
- "shop/motorcycle/Yamaha": {
- "tags": {
- "name": "Yamaha",
- "shop": "motorcycle"
- },
- "name": "Yamaha",
- "icon": "scooter",
- "geometry": [
- "point",
- "vertex",
- "area"
- ],
- "fields": [
- "address",
- "building_area",
- "opening_hours"
- ],
- "suggestion": true
- }
- },
- "defaults": {
- "area": [
- "category-landuse",
- "category-building",
- "category-water-area",
- "leisure/park",
- "amenity/hospital",
- "amenity/place_of_worship",
- "amenity/cafe",
- "amenity/restaurant",
- "area"
- ],
- "line": [
- "category-road",
- "category-rail",
- "category-path",
- "category-water-line",
- "power/line",
- "line"
- ],
- "point": [
- "leisure/park",
- "amenity/hospital",
- "amenity/place_of_worship",
- "amenity/cafe",
- "amenity/restaurant",
- "amenity/bar",
- "amenity/bank",
- "shop/supermarket",
- "point"
- ],
- "vertex": [
- "highway/crosswalk",
- "railway/level_crossing",
- "highway/traffic_signals",
- "highway/turning_circle",
- "highway/mini_roundabout",
- "highway/motorway_junction",
- "vertex"
- ],
- "relation": [
- "category-route",
- "category-restriction",
- "type/boundary",
- "type/multipolygon",
- "relation"
- ]
- },
- "categories": {
- "category-building": {
- "geometry": "area",
- "name": "Building",
- "icon": "building",
- "members": [
- "building/house",
- "building/apartments",
- "building/commercial",
- "building/industrial",
- "building/residential",
- "building"
- ]
- },
- "category-golf": {
- "geometry": "area",
- "name": "Golf",
- "icon": "golf",
- "members": [
- "golf/fairway",
- "golf/green",
- "golf/lateral_water_hazard",
- "golf/rough",
- "golf/bunker",
- "golf/tee",
- "golf/water_hazard"
- ]
- },
- "category-landuse": {
- "geometry": "area",
- "name": "Land Use",
- "icon": "land-use",
- "members": [
- "landuse/residential",
- "landuse/industrial",
- "landuse/commercial",
- "landuse/retail",
- "landuse/farm",
- "landuse/farmyard",
- "landuse/forest",
- "landuse/meadow",
- "landuse/cemetery",
- "landuse/military"
- ]
- },
- "category-path": {
- "geometry": "line",
- "name": "Path",
- "icon": "category-path",
- "members": [
- "highway/footway",
- "highway/cycleway",
- "highway/bridleway",
- "highway/path",
- "highway/steps"
- ]
- },
- "category-rail": {
- "geometry": "line",
- "name": "Rail",
- "icon": "category-rail",
- "members": [
- "railway/rail",
- "railway/subway",
- "railway/tram",
- "railway/monorail",
- "railway/disused",
- "railway/abandoned"
- ]
- },
- "category-restriction": {
- "geometry": "relation",
- "name": "Restriction",
- "icon": "restriction",
- "members": [
- "type/restriction/no_left_turn",
- "type/restriction/no_right_turn",
- "type/restriction/no_straight_on",
- "type/restriction/no_u_turn",
- "type/restriction/only_left_turn",
- "type/restriction/only_right_turn",
- "type/restriction/only_straight_on",
- "type/restriction"
- ]
- },
- "category-road": {
- "geometry": "line",
- "name": "Road",
- "icon": "category-roads",
- "members": [
- "highway/residential",
- "highway/motorway",
- "highway/trunk",
- "highway/primary",
- "highway/secondary",
- "highway/tertiary",
- "highway/service",
- "highway/motorway_link",
- "highway/trunk_link",
- "highway/primary_link",
- "highway/secondary_link",
- "highway/tertiary_link",
- "highway/unclassified",
- "highway/track",
- "highway/road"
- ]
- },
- "category-route": {
- "geometry": "relation",
- "name": "Route",
- "icon": "route",
- "members": [
- "type/route/road",
- "type/route/bicycle",
- "type/route/foot",
- "type/route/hiking",
- "type/route/bus",
- "type/route/train",
- "type/route/tram",
- "type/route/ferry",
- "type/route/power",
- "type/route/pipeline",
- "type/route/detour",
- "type/route_master",
- "type/route"
- ]
- },
- "category-water-area": {
- "geometry": "area",
- "name": "Water",
- "icon": "water",
- "members": [
- "natural/water/lake",
- "natural/water/pond",
- "natural/water/reservoir",
- "natural/water"
- ]
- },
- "category-water-line": {
- "geometry": "line",
- "name": "Water",
- "icon": "category-water",
- "members": [
- "waterway/river",
- "waterway/stream",
- "waterway/canal",
- "waterway/ditch",
- "waterway/drain"
- ]
- }
- },
- "fields": {
- "access": {
- "keys": [
- "access",
- "foot",
- "motor_vehicle",
- "bicycle",
- "horse"
- ],
- "reference": {
- "key": "access"
- },
- "type": "access",
- "label": "Access",
- "placeholder": "Unknown",
- "strings": {
- "types": {
- "access": "General",
- "foot": "Foot",
- "motor_vehicle": "Motor Vehicles",
- "bicycle": "Bicycles",
- "horse": "Horses"
- },
- "options": {
- "yes": {
- "title": "Allowed",
- "description": "Access permitted by law; a right of way"
- },
- "no": {
- "title": "Prohibited",
- "description": "Access not permitted to the general public"
- },
- "permissive": {
- "title": "Permissive",
- "description": "Access permitted until such time as the owner revokes the permission"
- },
- "private": {
- "title": "Private",
- "description": "Access permitted only with permission of the owner on an individual basis"
- },
- "designated": {
- "title": "Designated",
- "description": "Access permitted according to signs or specific local laws"
- },
- "destination": {
- "title": "Destination",
- "description": "Access permitted only to reach a destination"
- }
- }
- }
- },
- "access_simple": {
- "key": "access",
- "type": "combo",
- "label": "Access",
- "placeholder": "yes",
- "options": [
- "permissive",
- "private",
- "customers",
- "no"
- ]
- },
- "access_toilets": {
- "key": "access",
- "type": "combo",
- "label": "Access",
- "options": [
- "public",
- "permissive",
- "private",
- "customers"
- ]
- },
- "address": {
- "type": "address",
- "keys": [
- "addr:housename",
- "addr:housenumber",
- "addr:street",
- "addr:city",
- "addr:postcode"
- ],
- "reference": {
- "key": "addr"
- },
- "icon": "address",
- "universal": true,
- "label": "Address",
- "strings": {
- "placeholders": {
- "housename": "Housename",
- "housenumber": "123",
- "street": "Street",
- "city": "City",
- "postcode": "Postcode",
- "place": "Place",
- "hamlet": "Hamlet",
- "suburb": "Suburb",
- "subdistrict": "Subdistrict",
- "district": "District",
- "province": "Province",
- "state": "State",
- "country": "Country"
- }
- }
- },
- "admin_level": {
- "key": "admin_level",
- "type": "number",
- "label": "Admin Level"
- },
- "aerialway": {
- "key": "aerialway",
- "type": "typeCombo",
- "label": "Type"
- },
- "aerialway/access": {
- "key": "aerialway:access",
- "type": "combo",
- "label": "Access",
- "strings": {
- "options": {
- "entry": "Entry",
- "exit": "Exit",
- "both": "Both"
- }
- }
- },
- "aerialway/bubble": {
- "key": "aerialway:bubble",
- "type": "check",
- "label": "Bubble"
- },
- "aerialway/capacity": {
- "key": "aerialway:capacity",
- "type": "number",
- "label": "Capacity (per hour)",
- "placeholder": "500, 2500, 5000..."
- },
- "aerialway/duration": {
- "key": "aerialway:duration",
- "type": "number",
- "label": "Duration (minutes)",
- "placeholder": "1, 2, 3..."
- },
- "aerialway/heating": {
- "key": "aerialway:heating",
- "type": "check",
- "label": "Heated"
- },
- "aerialway/occupancy": {
- "key": "aerialway:occupancy",
- "type": "number",
- "label": "Occupancy",
- "placeholder": "2, 4, 8..."
- },
- "aerialway/summer/access": {
- "key": "aerialway:summer:access",
- "type": "combo",
- "label": "Access (summer)",
- "strings": {
- "options": {
- "entry": "Entry",
- "exit": "Exit",
- "both": "Both"
- }
- }
- },
- "aeroway": {
- "key": "aeroway",
- "type": "typeCombo",
- "label": "Type"
- },
- "amenity": {
- "key": "amenity",
- "type": "typeCombo",
- "label": "Type"
- },
- "artist": {
- "key": "artist_name",
- "type": "text",
- "label": "Artist"
- },
- "artwork_type": {
- "key": "artwork_type",
- "type": "combo",
- "label": "Type"
- },
- "atm": {
- "key": "atm",
- "type": "check",
- "label": "ATM"
- },
- "backrest": {
- "key": "backrest",
- "type": "check",
- "label": "Backrest"
- },
- "barrier": {
- "key": "barrier",
- "type": "typeCombo",
- "label": "Type"
- },
- "bicycle_parking": {
- "key": "bicycle_parking",
- "type": "combo",
- "label": "Type"
- },
- "boundary": {
- "key": "boundary",
- "type": "combo",
- "label": "Type"
- },
- "building": {
- "key": "building",
- "type": "typeCombo",
- "label": "Building"
- },
- "building_area": {
- "key": "building",
- "type": "defaultcheck",
- "default": "yes",
- "geometry": "area",
- "label": "Building"
- },
- "capacity": {
- "key": "capacity",
- "type": "number",
- "label": "Capacity",
- "placeholder": "50, 100, 200..."
- },
- "cardinal_direction": {
- "key": "direction",
- "type": "combo",
- "label": "Direction",
- "strings": {
- "options": {
- "N": "North",
- "E": "East",
- "S": "South",
- "W": "West",
- "NE": "Northeast",
- "SE": "Southeast",
- "SW": "Southwest",
- "NW": "Northwest",
- "NNE": "North-northeast",
- "ENE": "East-northeast",
- "ESE": "East-southeast",
- "SSE": "South-southeast",
- "SSW": "South-southwest",
- "WSW": "West-southwest",
- "WNW": "West-northwest",
- "NNW": "North-northwest"
- }
- }
- },
- "clock_direction": {
- "key": "direction",
- "type": "combo",
- "label": "Direction",
- "strings": {
- "options": {
- "clockwise": "Clockwise",
- "anticlockwise": "Counterclockwise"
- }
- }
- },
- "collection_times": {
- "key": "collection_times",
- "type": "text",
- "label": "Collection Times"
- },
- "construction": {
- "key": "construction",
- "type": "combo",
- "label": "Type"
- },
- "country": {
- "key": "country",
- "type": "combo",
- "label": "Country"
- },
- "covered": {
- "key": "covered",
- "type": "check",
- "label": "Covered"
- },
- "crop": {
- "key": "crop",
- "type": "combo",
- "label": "Crop"
- },
- "crossing": {
- "key": "crossing",
- "type": "combo",
- "label": "Type"
- },
- "cuisine": {
- "key": "cuisine",
- "type": "combo",
- "label": "Cuisine"
- },
- "denomination": {
- "key": "denomination",
- "type": "combo",
- "label": "Denomination"
- },
- "denotation": {
- "key": "denotation",
- "type": "combo",
- "label": "Denotation"
- },
- "description": {
- "key": "description",
- "type": "textarea",
- "label": "Description"
- },
- "electrified": {
- "key": "electrified",
- "type": "combo",
- "label": "Electrification",
- "placeholder": "Contact Line, Electrified Rail...",
- "strings": {
- "options": {
- "contact_line": "Contact Line",
- "rail": "Electrified Rail",
- "yes": "Yes (unspecified)",
- "no": "No"
- }
- }
- },
- "elevation": {
- "key": "ele",
- "type": "number",
- "icon": "elevation",
- "universal": true,
- "label": "Elevation"
- },
- "emergency": {
- "key": "emergency",
- "type": "check",
- "label": "Emergency"
- },
- "entrance": {
- "key": "entrance",
- "type": "typeCombo",
- "label": "Type"
- },
- "except": {
- "key": "except",
- "type": "combo",
- "label": "Exceptions"
- },
- "fax": {
- "key": "fax",
- "type": "tel",
- "label": "Fax",
- "placeholder": "+31 42 123 4567"
- },
- "fee": {
- "key": "fee",
- "type": "check",
- "label": "Fee"
- },
- "fire_hydrant/type": {
- "key": "fire_hydrant:type",
- "type": "combo",
- "label": "Type",
- "strings": {
- "options": {
- "pillar": "Pillar/Aboveground",
- "underground": "Underground",
- "wall": "Wall",
- "pond": "Pond"
- }
- }
- },
- "fixme": {
- "key": "fixme",
- "type": "textarea",
- "label": "Fix Me"
- },
- "fuel": {
- "key": "fuel",
- "type": "combo",
- "label": "Fuel"
- },
- "fuel/biodiesel": {
- "key": "fuel:biodiesel",
- "type": "check",
- "label": "Sells Biodiesel"
- },
- "fuel/diesel": {
- "key": "fuel:diesel",
- "type": "check",
- "label": "Sells Diesel"
- },
- "fuel/e10": {
- "key": "fuel:e10",
- "type": "check",
- "label": "Sells E10"
- },
- "fuel/e85": {
- "key": "fuel:e85",
- "type": "check",
- "label": "Sells E85"
- },
- "fuel/lpg": {
- "key": "fuel:lpg",
- "type": "check",
- "label": "Sells Propane"
- },
- "fuel/octane_100": {
- "key": "fuel:octane_100",
- "type": "check",
- "label": "Sells Racing Gasoline"
- },
- "fuel/octane_91": {
- "key": "fuel:octane_91",
- "type": "check",
- "label": "Sells Regular Gasoline"
- },
- "fuel/octane_95": {
- "key": "fuel:octane_95",
- "type": "check",
- "label": "Sells Midgrade Gasoline"
- },
- "fuel/octane_98": {
- "key": "fuel:octane_98",
- "type": "check",
- "label": "Sells Premium Gasoline"
- },
- "gauge": {
- "key": "gauge",
- "type": "combo",
- "label": "Gauge"
- },
- "generator/method": {
- "key": "generator:method",
- "type": "combo",
- "label": "Method"
- },
- "generator/source": {
- "key": "generator:source",
- "type": "combo",
- "label": "Source"
- },
- "generator/type": {
- "key": "generator:type",
- "type": "combo",
- "label": "Type"
- },
- "golf_hole": {
- "key": "ref",
- "type": "text",
- "label": "Reference",
- "placeholder": "Hole number (1-18)"
- },
- "handicap": {
- "key": "handicap",
- "type": "number",
- "label": "Handicap",
- "placeholder": "1-18"
- },
- "highway": {
- "key": "highway",
- "type": "typeCombo",
- "label": "Type"
- },
- "historic": {
- "key": "historic",
- "type": "typeCombo",
- "label": "Type"
- },
- "hoops": {
- "key": "hoops",
- "type": "number",
- "label": "Hoops",
- "placeholder": "1, 2, 4..."
- },
- "iata": {
- "key": "iata",
- "type": "text",
- "label": "IATA"
- },
- "icao": {
- "key": "icao",
- "type": "text",
- "label": "ICAO"
- },
- "incline": {
- "key": "incline",
- "type": "combo",
- "label": "Incline"
- },
- "information": {
- "key": "information",
- "type": "typeCombo",
- "label": "Type"
- },
- "internet_access": {
- "key": "internet_access",
- "type": "combo",
- "label": "Internet Access",
- "strings": {
- "options": {
- "yes": "Yes",
- "no": "No",
- "wlan": "Wifi",
- "wired": "Wired",
- "terminal": "Terminal"
- }
- }
- },
- "lamp_type": {
- "key": "lamp_type",
- "type": "combo",
- "label": "Type"
- },
- "landuse": {
- "key": "landuse",
- "type": "typeCombo",
- "label": "Type"
- },
- "lanes": {
- "key": "lanes",
- "type": "number",
- "label": "Lanes",
- "placeholder": "1, 2, 3..."
- },
- "layer": {
- "key": "layer",
- "type": "combo",
- "label": "Layer"
- },
- "leisure": {
- "key": "leisure",
- "type": "typeCombo",
- "label": "Type"
- },
- "length": {
- "key": "length",
- "type": "number",
- "label": "Length (Meters)"
- },
- "levels": {
- "key": "building:levels",
- "type": "number",
- "label": "Levels",
- "placeholder": "2, 4, 6..."
- },
- "lit": {
- "key": "lit",
- "type": "check",
- "label": "Lit"
- },
- "location": {
- "key": "location",
- "type": "combo",
- "label": "Location"
- },
- "man_made": {
- "key": "man_made",
- "type": "typeCombo",
- "label": "Type"
- },
- "maxspeed": {
- "key": "maxspeed",
- "type": "maxspeed",
- "label": "Speed Limit",
- "placeholder": "40, 50, 60..."
- },
- "mtb/scale": {
- "key": "mtb:scale",
- "type": "combo",
- "label": "Mountain Biking Difficulty",
- "placeholder": "0, 1, 2, 3...",
- "strings": {
- "options": {
- "0": "0: Solid gravel/packed earth, no obstacles, wide curves",
- "1": "1: Some loose surface, small obstacles, wide curves",
- "2": "2: Much loose surface, large obstacles, easy hairpins",
- "3": "3: Slippery surface, large obstacles, tight hairpins",
- "4": "4: Loose surface or boulders, dangerous hairpins",
- "5": "5: Maximum difficulty, boulder fields, landslides",
- "6": "6: Not rideable except by the very best mountain bikers"
- }
- }
- },
- "mtb/scale/imba": {
- "key": "mtb:scale:imba",
- "type": "combo",
- "label": "IMBA Trail Difficulty",
- "placeholder": "Easy, Medium, Difficult...",
- "strings": {
- "options": {
- "0": "Easiest (white circle)",
- "1": "Easy (green circle)",
- "2": "Medium (blue square)",
- "3": "Difficult (black diamond)",
- "4": "Extremely Difficult (double black diamond)"
- }
- }
- },
- "mtb/scale/uphill": {
- "key": "mtb:scale:uphill",
- "type": "combo",
- "label": "Mountain Biking Uphill Difficulty",
- "placeholder": "0, 1, 2, 3...",
- "strings": {
- "options": {
- "0": "0: Avg. incline <10%, gravel/packed earth, no obstacles",
- "1": "1: Avg. incline <15%, gravel/packed earth, few small objects",
- "2": "2: Avg. incline <20%, stable surface, fistsize rocks/roots",
- "3": "3: Avg. incline <25%, variable surface, fistsize rocks/branches",
- "4": "4: Avg. incline <30%, poor condition, big rocks/branches",
- "5": "5: Very steep, bike generally needs to be pushed or carried"
- }
- }
- },
- "name": {
- "key": "name",
- "type": "localized",
- "label": "Name",
- "placeholder": "Common name (if any)"
- },
- "natural": {
- "key": "natural",
- "type": "typeCombo",
- "label": "Natural"
- },
- "network": {
- "key": "network",
- "type": "text",
- "label": "Network"
- },
- "note": {
- "key": "note",
- "type": "textarea",
- "universal": true,
- "icon": "note",
- "label": "Note"
- },
- "office": {
- "key": "office",
- "type": "typeCombo",
- "label": "Type"
- },
- "oneway": {
- "key": "oneway",
- "type": "check",
- "label": "One Way",
- "strings": {
- "options": {
- "undefined": "Assumed to be No",
- "yes": "Yes",
- "no": "No"
- }
- }
- },
- "oneway_yes": {
- "key": "oneway",
- "type": "check",
- "label": "One Way",
- "strings": {
- "options": {
- "undefined": "Assumed to be Yes",
- "yes": "Yes",
- "no": "No"
- }
- }
- },
- "opening_hours": {
- "key": "opening_hours",
- "type": "text",
- "label": "Hours"
- },
- "operator": {
- "key": "operator",
- "type": "text",
- "label": "Operator"
- },
- "par": {
- "key": "par",
- "type": "number",
- "label": "Par",
- "placeholder": "3, 4, 5..."
- },
- "park_ride": {
- "key": "park_ride",
- "type": "check",
- "label": "Park and Ride"
- },
- "parking": {
- "key": "parking",
- "type": "combo",
- "label": "Type",
- "strings": {
- "options": {
- "surface": "Surface",
- "multi-storey": "Multilevel",
- "underground": "Underground",
- "sheds": "Sheds",
- "carports": "Carports",
- "garage_boxes": "Garage Boxes",
- "lane": "Roadside Lane"
- }
- }
- },
- "phone": {
- "key": "phone",
- "type": "tel",
- "icon": "telephone",
- "universal": true,
- "label": "Phone",
- "placeholder": "+31 42 123 4567"
- },
- "piste/difficulty": {
- "key": "piste:difficulty",
- "type": "combo",
- "label": "Difficulty",
- "placeholder": "Easy, Intermediate, Advanced...",
- "strings": {
- "options": {
- "novice": "Novice (instructional)",
- "easy": "Easy (green circle)",
- "intermediate": "Intermediate (blue square)",
- "advanced": "Advanced (black diamond)",
- "expert": "Expert (double black diamond)",
- "freeride": "Freeride (off-piste)",
- "extreme": "Extreme (climbing equipment required)"
- }
- }
- },
- "piste/grooming": {
- "key": "piste:grooming",
- "type": "combo",
- "label": "Grooming",
- "strings": {
- "options": {
- "classic": "Classic",
- "mogul": "Mogul",
- "backcountry": "Backcountry",
- "classic+skating": "Classic and Skating",
- "scooter": "Scooter/Snowmobile",
- "skating": "Skating"
- }
- }
- },
- "piste/type": {
- "key": "piste:type",
- "type": "typeCombo",
- "label": "Type",
- "strings": {
- "options": {
- "downhill": "Downhill",
- "nordic": "Nordic",
- "skitour": "Skitour",
- "sled": "Sled",
- "hike": "Hike",
- "sleigh": "Sleigh",
- "ice_skate": "Ice Skate",
- "snow_park": "Snow Park",
- "playground": "Playground"
- }
- }
- },
- "place": {
- "key": "place",
- "type": "typeCombo",
- "label": "Type"
- },
- "population": {
- "key": "population",
- "type": "text",
- "label": "Population"
- },
- "power": {
- "key": "power",
- "type": "typeCombo",
- "label": "Type"
- },
- "railway": {
- "key": "railway",
- "type": "typeCombo",
- "label": "Type"
- },
- "recycling/cans": {
- "key": "recycling:cans",
- "type": "check",
- "label": "Accepts Cans"
- },
- "recycling/clothes": {
- "key": "recycling:clothes",
- "type": "check",
- "label": "Accepts Clothes"
- },
- "recycling/glass": {
- "key": "recycling:glass",
- "type": "check",
- "label": "Accepts Glass"
- },
- "recycling/paper": {
- "key": "recycling:paper",
- "type": "check",
- "label": "Accepts Paper"
- },
- "ref": {
- "key": "ref",
- "type": "text",
- "label": "Reference"
- },
- "relation": {
- "key": "type",
- "type": "combo",
- "label": "Type"
- },
- "religion": {
- "key": "religion",
- "type": "combo",
- "label": "Religion"
- },
- "restriction": {
- "key": "restriction",
- "type": "combo",
- "label": "Type"
- },
- "restrictions": {
- "type": "restrictions",
- "geometry": "vertex",
- "icon": "restrictions",
- "reference": {
- "rtype": "restriction"
- },
- "label": "Turn Restrictions"
- },
- "route": {
- "key": "route",
- "type": "combo",
- "label": "Type"
- },
- "route_master": {
- "key": "route_master",
- "type": "combo",
- "label": "Type"
- },
- "sac_scale": {
- "key": "sac_scale",
- "type": "combo",
- "label": "Hiking Difficulty",
- "placeholder": "Mountain Hiking, Alpine Hiking...",
- "strings": {
- "options": {
- "hiking": "T1: Hiking",
- "mountain_hiking": "T2: Mountain Hiking",
- "demanding_mountain_hiking": "T3: Demanding Mountain Hiking",
- "alpine_hiking": "T4: Alpine Hiking",
- "demanding_alpine_hiking": "T5: Demanding Alpine Hiking",
- "difficult_alpine_hiking": "T6: Difficult Alpine Hiking"
- }
- }
- },
- "seasonal": {
- "key": "seasonal",
- "type": "check",
- "label": "Seasonal"
- },
- "service": {
- "key": "service",
- "type": "combo",
- "label": "Type",
- "options": [
- "parking_aisle",
- "driveway",
- "alley",
- "emergency_access",
- "drive-through"
- ]
- },
- "shelter": {
- "key": "shelter",
- "type": "check",
- "label": "Shelter"
- },
- "shelter_type": {
- "key": "shelter_type",
- "type": "combo",
- "label": "Type"
- },
- "shop": {
- "key": "shop",
- "type": "typeCombo",
- "label": "Type"
- },
- "sloped_curb": {
- "key": "sloped_curb",
- "type": "combo",
- "label": "Sloped Curb"
- },
- "smoking": {
- "key": "smoking",
- "type": "combo",
- "label": "Smoking",
- "placeholder": "No, Separated, Yes...",
- "strings": {
- "options": {
- "no": "No smoking anywhere",
- "separated": "In smoking areas, not physically isolated",
- "isolated": "In smoking areas, physically isolated",
- "outside": "Allowed outside",
- "yes": "Allowed everywhere",
- "dedicated": "Dedicated to smokers (e.g. smokers' club)"
- }
- }
- },
- "smoothness": {
- "key": "smoothness",
- "type": "combo",
- "label": "Smoothness",
- "placeholder": "Thin Rollers, Wheels, Off-Road...",
- "strings": {
- "options": {
- "excellent": "Thin Rollers: rollerblade, skateboard",
- "good": "Thin Wheels: racing bike",
- "intermediate": "Wheels: city bike, wheelchair, scooter",
- "bad": "Robust Wheels: trekking bike, car, rickshaw",
- "very_bad": "High Clearance: light duty off-road vehicle",
- "horrible": "Off-Road: heavy duty off-road vehicle",
- "very_horrible": "Specialized off-road: tractor, ATV",
- "impassible": "Impassible / No wheeled vehicle"
- }
- }
- },
- "social_facility_for": {
- "key": "social_facility:for",
- "type": "radio",
- "label": "People served",
- "placeholder": "Homeless, Disabled, Child, etc",
- "options": [
- "abused",
- "child",
- "disabled",
- "diseased",
- "drug_addicted",
- "homeless",
- "juvenile",
- "mental_health",
- "migrant",
- "orphan",
- "senior",
- "underprivileged",
- "unemployed",
- "victim"
- ]
- },
- "source": {
- "key": "source",
- "type": "text",
- "icon": "source",
- "universal": true,
- "label": "Source"
- },
- "sport": {
- "key": "sport",
- "type": "combo",
- "label": "Sport"
- },
- "sport_ice": {
- "key": "sport",
- "type": "combo",
- "label": "Sport",
- "options": [
- "skating",
- "hockey",
- "multi",
- "curling",
- "ice_stock"
- ]
- },
- "structure": {
- "type": "radio",
- "keys": [
- "bridge",
- "tunnel",
- "embankment",
- "cutting",
- "ford"
- ],
- "label": "Structure",
- "placeholder": "Unknown",
- "strings": {
- "options": {
- "bridge": "Bridge",
- "tunnel": "Tunnel",
- "embankment": "Embankment",
- "cutting": "Cutting",
- "ford": "Ford"
- }
- }
- },
- "studio_type": {
- "key": "type",
- "type": "combo",
- "label": "Type",
- "options": [
- "audio",
- "video"
- ]
- },
- "supervised": {
- "key": "supervised",
- "type": "check",
- "label": "Supervised"
- },
- "surface": {
- "key": "surface",
- "type": "combo",
- "label": "Surface"
- },
- "tactile_paving": {
- "key": "tactile_paving",
- "type": "check",
- "label": "Tactile Paving"
- },
- "toilets/disposal": {
- "key": "toilets:disposal",
- "type": "combo",
- "label": "Disposal",
- "strings": {
- "options": {
- "flush": "Flush",
- "pitlatrine": "Pit/Latrine",
- "chemical": "Chemical",
- "bucket": "Bucket"
- }
- }
- },
- "tourism": {
- "key": "tourism",
- "type": "typeCombo",
- "label": "Type"
- },
- "towertype": {
- "key": "tower:type",
- "type": "combo",
- "label": "Tower type"
- },
- "tracktype": {
- "key": "tracktype",
- "type": "combo",
- "label": "Track Type",
- "placeholder": "Solid, Mostly Solid, Soft...",
- "strings": {
- "options": {
- "grade1": "Solid: paved or heavily compacted hardcore surface",
- "grade2": "Mostly Solid: gravel/rock with some soft material mixed in",
- "grade3": "Even mixture of hard and soft materials",
- "grade4": "Mostly Soft: soil/sand/grass with some hard material mixed in",
- "grade5": "Soft: soil/sand/grass"
- }
- }
- },
- "trail_visibility": {
- "key": "trail_visibility",
- "type": "combo",
- "label": "Trail Visibility",
- "placeholder": "Excellent, Good, Bad...",
- "strings": {
- "options": {
- "excellent": "Excellent: unambiguous path or markers everywhere",
- "good": "Good: markers visible, sometimes require searching",
- "intermediate": "Intermediate: few markers, path mostly visible",
- "bad": "Bad: no markers, path sometimes invisible/pathless",
- "horrible": "Horrible: often pathless, some orientation skills required",
- "no": "No: pathless, excellent orientation skills required"
- }
- }
- },
- "tree_type": {
- "key": "type",
- "type": "combo",
- "label": "Type",
- "options": [
- "broad_leaved",
- "conifer",
- "palm"
- ]
- },
- "trees": {
- "key": "trees",
- "type": "combo",
- "label": "Trees"
- },
- "tunnel": {
- "key": "tunnel",
- "type": "combo",
- "label": "Tunnel"
- },
- "vending": {
- "key": "vending",
- "type": "combo",
- "label": "Type of Goods"
- },
- "water": {
- "key": "water",
- "type": "combo",
- "label": "Type"
- },
- "waterway": {
- "key": "waterway",
- "type": "typeCombo",
- "label": "Type"
- },
- "website": {
- "key": "website",
- "type": "url",
- "icon": "website",
- "placeholder": "http://example.com/",
- "universal": true,
- "label": "Website"
- },
- "wetland": {
- "key": "wetland",
- "type": "combo",
- "label": "Type"
- },
- "wheelchair": {
- "key": "wheelchair",
- "type": "radio",
- "options": [
- "yes",
- "limited",
- "no"
- ],
- "icon": "wheelchair",
- "universal": true,
- "label": "Wheelchair Access"
- },
- "width": {
- "key": "width",
- "type": "number",
- "label": "Width (Meters)"
- },
- "wikipedia": {
- "key": "wikipedia",
- "type": "wikipedia",
- "icon": "wikipedia",
- "universal": true,
- "label": "Wikipedia"
- },
- "wood": {
- "key": "wood",
- "type": "combo",
- "label": "Type"
- }
- }
- },
+ "wikipedia": [
+ [
+ "English",
+ "English",
+ "en"
+ ],
+ [
+ "German",
+ "Deutsch",
+ "de"
+ ],
+ [
+ "Dutch",
+ "Nederlands",
+ "nl"
+ ],
+ [
+ "French",
+ "Français",
+ "fr"
+ ],
+ [
+ "Italian",
+ "Italiano",
+ "it"
+ ],
+ [
+ "Russian",
+ "Русский",
+ "ru"
+ ],
+ [
+ "Spanish",
+ "Español",
+ "es"
+ ],
+ [
+ "Polish",
+ "Polski",
+ "pl"
+ ],
+ [
+ "Swedish",
+ "Svenska",
+ "sv"
+ ],
+ [
+ "Japanese",
+ "日本語",
+ "ja"
+ ],
+ [
+ "Portuguese",
+ "Português",
+ "pt"
+ ],
+ [
+ "Chinese",
+ "中文",
+ "zh"
+ ],
+ [
+ "Vietnamese",
+ "Tiếng Việt",
+ "vi"
+ ],
+ [
+ "Ukrainian",
+ "Українська",
+ "uk"
+ ],
+ [
+ "Catalan",
+ "Català",
+ "ca"
+ ],
+ [
+ "Norwegian (Bokmål)",
+ "Norsk (Bokmål)",
+ "no"
+ ],
+ [
+ "Waray-Waray",
+ "Winaray",
+ "war"
+ ],
+ [
+ "Cebuano",
+ "Sinugboanong Binisaya",
+ "ceb"
+ ],
+ [
+ "Finnish",
+ "Suomi",
+ "fi"
+ ],
+ [
+ "Persian",
+ "فارسی",
+ "fa"
+ ],
+ [
+ "Czech",
+ "Čeština",
+ "cs"
+ ],
+ [
+ "Hungarian",
+ "Magyar",
+ "hu"
+ ],
+ [
+ "Korean",
+ "한국어",
+ "ko"
+ ],
+ [
+ "Romanian",
+ "Română",
+ "ro"
+ ],
+ [
+ "Arabic",
+ "العربية",
+ "ar"
+ ],
+ [
+ "Turkish",
+ "Türkçe",
+ "tr"
+ ],
+ [
+ "Indonesian",
+ "Bahasa Indonesia",
+ "id"
+ ],
+ [
+ "Kazakh",
+ "Қазақша",
+ "kk"
+ ],
+ [
+ "Malay",
+ "Bahasa Melayu",
+ "ms"
+ ],
+ [
+ "Serbian",
+ "Српски / Srpski",
+ "sr"
+ ],
+ [
+ "Slovak",
+ "Slovenčina",
+ "sk"
+ ],
+ [
+ "Esperanto",
+ "Esperanto",
+ "eo"
+ ],
+ [
+ "Danish",
+ "Dansk",
+ "da"
+ ],
+ [
+ "Lithuanian",
+ "Lietuvių",
+ "lt"
+ ],
+ [
+ "Basque",
+ "Euskara",
+ "eu"
+ ],
+ [
+ "Bulgarian",
+ "Български",
+ "bg"
+ ],
+ [
+ "Hebrew",
+ "עברית",
+ "he"
+ ],
+ [
+ "Slovenian",
+ "Slovenščina",
+ "sl"
+ ],
+ [
+ "Croatian",
+ "Hrvatski",
+ "hr"
+ ],
+ [
+ "Volapük",
+ "Volapük",
+ "vo"
+ ],
+ [
+ "Estonian",
+ "Eesti",
+ "et"
+ ],
+ [
+ "Hindi",
+ "हिन्दी",
+ "hi"
+ ],
+ [
+ "Uzbek",
+ "O‘zbek",
+ "uz"
+ ],
+ [
+ "Galician",
+ "Galego",
+ "gl"
+ ],
+ [
+ "Norwegian (Nynorsk)",
+ "Nynorsk",
+ "nn"
+ ],
+ [
+ "Simple English",
+ "Simple English",
+ "simple"
+ ],
+ [
+ "Azerbaijani",
+ "Azərbaycanca",
+ "az"
+ ],
+ [
+ "Latin",
+ "Latina",
+ "la"
+ ],
+ [
+ "Greek",
+ "Ελληνικά",
+ "el"
+ ],
+ [
+ "Thai",
+ "ไทย",
+ "th"
+ ],
+ [
+ "Serbo-Croatian",
+ "Srpskohrvatski / Српскохрватски",
+ "sh"
+ ],
+ [
+ "Georgian",
+ "ქართული",
+ "ka"
+ ],
+ [
+ "Occitan",
+ "Occitan",
+ "oc"
+ ],
+ [
+ "Macedonian",
+ "Македонски",
+ "mk"
+ ],
+ [
+ "Newar / Nepal Bhasa",
+ "नेपाल भाषा",
+ "new"
+ ],
+ [
+ "Tagalog",
+ "Tagalog",
+ "tl"
+ ],
+ [
+ "Piedmontese",
+ "Piemontèis",
+ "pms"
+ ],
+ [
+ "Belarusian",
+ "Беларуская",
+ "be"
+ ],
+ [
+ "Haitian",
+ "Krèyol ayisyen",
+ "ht"
+ ],
+ [
+ "Tamil",
+ "தமிழ்",
+ "ta"
+ ],
+ [
+ "Telugu",
+ "తెలుగు",
+ "te"
+ ],
+ [
+ "Belarusian (Taraškievica)",
+ "Беларуская (тарашкевіца)",
+ "be-x-old"
+ ],
+ [
+ "Latvian",
+ "Latviešu",
+ "lv"
+ ],
+ [
+ "Breton",
+ "Brezhoneg",
+ "br"
+ ],
+ [
+ "Malagasy",
+ "Malagasy",
+ "mg"
+ ],
+ [
+ "Albanian",
+ "Shqip",
+ "sq"
+ ],
+ [
+ "Armenian",
+ "Հայերեն",
+ "hy"
+ ],
+ [
+ "Tatar",
+ "Tatarça / Татарча",
+ "tt"
+ ],
+ [
+ "Javanese",
+ "Basa Jawa",
+ "jv"
+ ],
+ [
+ "Welsh",
+ "Cymraeg",
+ "cy"
+ ],
+ [
+ "Marathi",
+ "मराठी",
+ "mr"
+ ],
+ [
+ "Luxembourgish",
+ "Lëtzebuergesch",
+ "lb"
+ ],
+ [
+ "Icelandic",
+ "Íslenska",
+ "is"
+ ],
+ [
+ "Bosnian",
+ "Bosanski",
+ "bs"
+ ],
+ [
+ "Burmese",
+ "မြန်မာဘာသာ",
+ "my"
+ ],
+ [
+ "Yoruba",
+ "Yorùbá",
+ "yo"
+ ],
+ [
+ "Bashkir",
+ "Башҡорт",
+ "ba"
+ ],
+ [
+ "Malayalam",
+ "മലയാളം",
+ "ml"
+ ],
+ [
+ "Aragonese",
+ "Aragonés",
+ "an"
+ ],
+ [
+ "Lombard",
+ "Lumbaart",
+ "lmo"
+ ],
+ [
+ "Afrikaans",
+ "Afrikaans",
+ "af"
+ ],
+ [
+ "West Frisian",
+ "Frysk",
+ "fy"
+ ],
+ [
+ "Western Panjabi",
+ "شاہ مکھی پنجابی (Shāhmukhī Pañjābī)",
+ "pnb"
+ ],
+ [
+ "Bengali",
+ "বাংলা",
+ "bn"
+ ],
+ [
+ "Swahili",
+ "Kiswahili",
+ "sw"
+ ],
+ [
+ "Bishnupriya Manipuri",
+ "ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী",
+ "bpy"
+ ],
+ [
+ "Ido",
+ "Ido",
+ "io"
+ ],
+ [
+ "Kirghiz",
+ "Кыргызча",
+ "ky"
+ ],
+ [
+ "Urdu",
+ "اردو",
+ "ur"
+ ],
+ [
+ "Nepali",
+ "नेपाली",
+ "ne"
+ ],
+ [
+ "Sicilian",
+ "Sicilianu",
+ "scn"
+ ],
+ [
+ "Gujarati",
+ "ગુજરાતી",
+ "gu"
+ ],
+ [
+ "Cantonese",
+ "粵語",
+ "zh-yue"
+ ],
+ [
+ "Low Saxon",
+ "Plattdüütsch",
+ "nds"
+ ],
+ [
+ "Kurdish",
+ "Kurdî / كوردی",
+ "ku"
+ ],
+ [
+ "Irish",
+ "Gaeilge",
+ "ga"
+ ],
+ [
+ "Asturian",
+ "Asturianu",
+ "ast"
+ ],
+ [
+ "Quechua",
+ "Runa Simi",
+ "qu"
+ ],
+ [
+ "Sundanese",
+ "Basa Sunda",
+ "su"
+ ],
+ [
+ "Chuvash",
+ "Чăваш",
+ "cv"
+ ],
+ [
+ "Scots",
+ "Scots",
+ "sco"
+ ],
+ [
+ "Interlingua",
+ "Interlingua",
+ "ia"
+ ],
+ [
+ "Alemannic",
+ "Alemannisch",
+ "als"
+ ],
+ [
+ "Buginese",
+ "Basa Ugi",
+ "bug"
+ ],
+ [
+ "Neapolitan",
+ "Nnapulitano",
+ "nap"
+ ],
+ [
+ "Samogitian",
+ "Žemaitėška",
+ "bat-smg"
+ ],
+ [
+ "Kannada",
+ "ಕನ್ನಡ",
+ "kn"
+ ],
+ [
+ "Banyumasan",
+ "Basa Banyumasan",
+ "map-bms"
+ ],
+ [
+ "Walloon",
+ "Walon",
+ "wa"
+ ],
+ [
+ "Amharic",
+ "አማርኛ",
+ "am"
+ ],
+ [
+ "Sorani",
+ "Soranî / کوردی",
+ "ckb"
+ ],
+ [
+ "Scottish Gaelic",
+ "Gàidhlig",
+ "gd"
+ ],
+ [
+ "Fiji Hindi",
+ "Fiji Hindi",
+ "hif"
+ ],
+ [
+ "Min Nan",
+ "Bân-lâm-gú",
+ "zh-min-nan"
+ ],
+ [
+ "Tajik",
+ "Тоҷикӣ",
+ "tg"
+ ],
+ [
+ "Mazandarani",
+ "مَزِروني",
+ "mzn"
+ ],
+ [
+ "Egyptian Arabic",
+ "مصرى (Maṣrī)",
+ "arz"
+ ],
+ [
+ "Yiddish",
+ "ייִדיש",
+ "yi"
+ ],
+ [
+ "Venetian",
+ "Vèneto",
+ "vec"
+ ],
+ [
+ "Mongolian",
+ "Монгол",
+ "mn"
+ ],
+ [
+ "Tarantino",
+ "Tarandíne",
+ "roa-tara"
+ ],
+ [
+ "Sanskrit",
+ "संस्कृतम्",
+ "sa"
+ ],
+ [
+ "Nahuatl",
+ "Nāhuatl",
+ "nah"
+ ],
+ [
+ "Ossetian",
+ "Иронау",
+ "os"
+ ],
+ [
+ "Sakha",
+ "Саха тыла (Saxa Tyla)",
+ "sah"
+ ],
+ [
+ "Kapampangan",
+ "Kapampangan",
+ "pam"
+ ],
+ [
+ "Upper Sorbian",
+ "Hornjoserbsce",
+ "hsb"
+ ],
+ [
+ "Sinhalese",
+ "සිංහල",
+ "si"
+ ],
+ [
+ "Northern Sami",
+ "Sámegiella",
+ "se"
+ ],
+ [
+ "Limburgish",
+ "Limburgs",
+ "li"
+ ],
+ [
+ "Maori",
+ "Māori",
+ "mi"
+ ],
+ [
+ "Bavarian",
+ "Boarisch",
+ "bar"
+ ],
+ [
+ "Corsican",
+ "Corsu",
+ "co"
+ ],
+ [
+ "Ilokano",
+ "Ilokano",
+ "ilo"
+ ],
+ [
+ "Gan",
+ "贛語",
+ "gan"
+ ],
+ [
+ "Tibetan",
+ "བོད་སྐད",
+ "bo"
+ ],
+ [
+ "Gilaki",
+ "گیلکی",
+ "glk"
+ ],
+ [
+ "Faroese",
+ "Føroyskt",
+ "fo"
+ ],
+ [
+ "Rusyn",
+ "русиньскый язык",
+ "rue"
+ ],
+ [
+ "Punjabi",
+ "ਪੰਜਾਬੀ",
+ "pa"
+ ],
+ [
+ "Central_Bicolano",
+ "Bikol",
+ "bcl"
+ ],
+ [
+ "Hill Mari",
+ "Кырык Мары (Kyryk Mary) ",
+ "mrj"
+ ],
+ [
+ "Võro",
+ "Võro",
+ "fiu-vro"
+ ],
+ [
+ "Dutch Low Saxon",
+ "Nedersaksisch",
+ "nds-nl"
+ ],
+ [
+ "Turkmen",
+ "تركمن / Туркмен",
+ "tk"
+ ],
+ [
+ "Pashto",
+ "پښتو",
+ "ps"
+ ],
+ [
+ "West Flemish",
+ "West-Vlams",
+ "vls"
+ ],
+ [
+ "Mingrelian",
+ "მარგალური (Margaluri)",
+ "xmf"
+ ],
+ [
+ "Manx",
+ "Gaelg",
+ "gv"
+ ],
+ [
+ "Zazaki",
+ "Zazaki",
+ "diq"
+ ],
+ [
+ "Pangasinan",
+ "Pangasinan",
+ "pag"
+ ],
+ [
+ "Komi",
+ "Коми",
+ "kv"
+ ],
+ [
+ "Zeelandic",
+ "Zeêuws",
+ "zea"
+ ],
+ [
+ "Divehi",
+ "ދިވެހިބަސް",
+ "dv"
+ ],
+ [
+ "Oriya",
+ "ଓଡ଼ିଆ",
+ "or"
+ ],
+ [
+ "Khmer",
+ "ភាសាខ្មែរ",
+ "km"
+ ],
+ [
+ "Norman",
+ "Nouormand/Normaund",
+ "nrm"
+ ],
+ [
+ "Romansh",
+ "Rumantsch",
+ "rm"
+ ],
+ [
+ "Komi-Permyak",
+ "Перем Коми (Perem Komi)",
+ "koi"
+ ],
+ [
+ "Udmurt",
+ "Удмурт кыл",
+ "udm"
+ ],
+ [
+ "Meadow Mari",
+ "Олык Марий (Olyk Marij)",
+ "mhr"
+ ],
+ [
+ "Ladino",
+ "Dzhudezmo",
+ "lad"
+ ],
+ [
+ "North Frisian",
+ "Nordfriisk",
+ "frr"
+ ],
+ [
+ "Kashubian",
+ "Kaszëbsczi",
+ "csb"
+ ],
+ [
+ "Ligurian",
+ "Líguru",
+ "lij"
+ ],
+ [
+ "Wu",
+ "吴语",
+ "wuu"
+ ],
+ [
+ "Friulian",
+ "Furlan",
+ "fur"
+ ],
+ [
+ "Vepsian",
+ "Vepsän",
+ "vep"
+ ],
+ [
+ "Classical Chinese",
+ "古文 / 文言文",
+ "zh-classical"
+ ],
+ [
+ "Uyghur",
+ "ئۇيغۇر تىلى",
+ "ug"
+ ],
+ [
+ "Saterland Frisian",
+ "Seeltersk",
+ "stq"
+ ],
+ [
+ "Sardinian",
+ "Sardu",
+ "sc"
+ ],
+ [
+ "Aromanian",
+ "Armãneashce",
+ "roa-rup"
+ ],
+ [
+ "Pali",
+ "पाऴि",
+ "pi"
+ ],
+ [
+ "Somali",
+ "Soomaaliga",
+ "so"
+ ],
+ [
+ "Bihari",
+ "भोजपुरी",
+ "bh"
+ ],
+ [
+ "Maltese",
+ "Malti",
+ "mt"
+ ],
+ [
+ "Aymara",
+ "Aymar",
+ "ay"
+ ],
+ [
+ "Ripuarian",
+ "Ripoarisch",
+ "ksh"
+ ],
+ [
+ "Novial",
+ "Novial",
+ "nov"
+ ],
+ [
+ "Anglo-Saxon",
+ "Englisc",
+ "ang"
+ ],
+ [
+ "Cornish",
+ "Kernewek/Karnuack",
+ "kw"
+ ],
+ [
+ "Navajo",
+ "Diné bizaad",
+ "nv"
+ ],
+ [
+ "Picard",
+ "Picard",
+ "pcd"
+ ],
+ [
+ "Hakka",
+ "Hak-kâ-fa / 客家話",
+ "hak"
+ ],
+ [
+ "Guarani",
+ "Avañe'ẽ",
+ "gn"
+ ],
+ [
+ "Extremaduran",
+ "Estremeñu",
+ "ext"
+ ],
+ [
+ "Franco-Provençal/Arpitan",
+ "Arpitan",
+ "frp"
+ ],
+ [
+ "Assamese",
+ "অসমীয়া",
+ "as"
+ ],
+ [
+ "Silesian",
+ "Ślůnski",
+ "szl"
+ ],
+ [
+ "Gagauz",
+ "Gagauz",
+ "gag"
+ ],
+ [
+ "Interlingue",
+ "Interlingue",
+ "ie"
+ ],
+ [
+ "Lingala",
+ "Lingala",
+ "ln"
+ ],
+ [
+ "Emilian-Romagnol",
+ "Emiliàn e rumagnòl",
+ "eml"
+ ],
+ [
+ "Chechen",
+ "Нохчийн",
+ "ce"
+ ],
+ [
+ "Kalmyk",
+ "Хальмг",
+ "xal"
+ ],
+ [
+ "Palatinate German",
+ "Pfälzisch",
+ "pfl"
+ ],
+ [
+ "Hawaiian",
+ "Hawai`i",
+ "haw"
+ ],
+ [
+ "Karachay-Balkar",
+ "Къарачай-Малкъар (Qarachay-Malqar)",
+ "krc"
+ ],
+ [
+ "Pennsylvania German",
+ "Deitsch",
+ "pdc"
+ ],
+ [
+ "Kinyarwanda",
+ "Ikinyarwanda",
+ "rw"
+ ],
+ [
+ "Crimean Tatar",
+ "Qırımtatarca",
+ "crh"
+ ],
+ [
+ "Acehnese",
+ "Bahsa Acèh",
+ "ace"
+ ],
+ [
+ "Tongan",
+ "faka Tonga",
+ "to"
+ ],
+ [
+ "Greenlandic",
+ "Kalaallisut",
+ "kl"
+ ],
+ [
+ "Lower Sorbian",
+ "Dolnoserbski",
+ "dsb"
+ ],
+ [
+ "Aramaic",
+ "ܐܪܡܝܐ",
+ "arc"
+ ],
+ [
+ "Erzya",
+ "Эрзянь (Erzjanj Kelj)",
+ "myv"
+ ],
+ [
+ "Lezgian",
+ "Лезги чІал (Lezgi č’al)",
+ "lez"
+ ],
+ [
+ "Banjar",
+ "Bahasa Banjar",
+ "bjn"
+ ],
+ [
+ "Shona",
+ "chiShona",
+ "sn"
+ ],
+ [
+ "Papiamentu",
+ "Papiamentu",
+ "pap"
+ ],
+ [
+ "Kabyle",
+ "Taqbaylit",
+ "kab"
+ ],
+ [
+ "Tok Pisin",
+ "Tok Pisin",
+ "tpi"
+ ],
+ [
+ "Lak",
+ "Лакку",
+ "lbe"
+ ],
+ [
+ "Buryat (Russia)",
+ "Буряад",
+ "bxr"
+ ],
+ [
+ "Lojban",
+ "Lojban",
+ "jbo"
+ ],
+ [
+ "Wolof",
+ "Wolof",
+ "wo"
+ ],
+ [
+ "Moksha",
+ "Мокшень (Mokshanj Kälj)",
+ "mdf"
+ ],
+ [
+ "Zamboanga Chavacano",
+ "Chavacano de Zamboanga",
+ "cbk-zam"
+ ],
+ [
+ "Avar",
+ "Авар",
+ "av"
+ ],
+ [
+ "Sranan",
+ "Sranantongo",
+ "srn"
+ ],
+ [
+ "Mirandese",
+ "Mirandés",
+ "mwl"
+ ],
+ [
+ "Kabardian Circassian",
+ "Адыгэбзэ (Adighabze)",
+ "kbd"
+ ],
+ [
+ "Tahitian",
+ "Reo Mā`ohi",
+ "ty"
+ ],
+ [
+ "Lao",
+ "ລາວ",
+ "lo"
+ ],
+ [
+ "Abkhazian",
+ "Аҧсуа",
+ "ab"
+ ],
+ [
+ "Tetum",
+ "Tetun",
+ "tet"
+ ],
+ [
+ "Latgalian",
+ "Latgaļu",
+ "ltg"
+ ],
+ [
+ "Nauruan",
+ "dorerin Naoero",
+ "na"
+ ],
+ [
+ "Kongo",
+ "KiKongo",
+ "kg"
+ ],
+ [
+ "Igbo",
+ "Igbo",
+ "ig"
+ ],
+ [
+ "Northern Sotho",
+ "Sesotho sa Leboa",
+ "nso"
+ ],
+ [
+ "Zhuang",
+ "Cuengh",
+ "za"
+ ],
+ [
+ "Karakalpak",
+ "Qaraqalpaqsha",
+ "kaa"
+ ],
+ [
+ "Zulu",
+ "isiZulu",
+ "zu"
+ ],
+ [
+ "Cheyenne",
+ "Tsetsêhestâhese",
+ "chy"
+ ],
+ [
+ "Romani",
+ "romani - रोमानी",
+ "rmy"
+ ],
+ [
+ "Old Church Slavonic",
+ "Словѣньскъ",
+ "cu"
+ ],
+ [
+ "Tswana",
+ "Setswana",
+ "tn"
+ ],
+ [
+ "Cherokee",
+ "ᏣᎳᎩ",
+ "chr"
+ ],
+ [
+ "Bislama",
+ "Bislama",
+ "bi"
+ ],
+ [
+ "Min Dong",
+ "Mìng-dĕ̤ng-ngṳ̄",
+ "cdo"
+ ],
+ [
+ "Gothic",
+ "𐌲𐌿𐍄𐌹𐍃𐌺",
+ "got"
+ ],
+ [
+ "Samoan",
+ "Gagana Samoa",
+ "sm"
+ ],
+ [
+ "Moldovan",
+ "Молдовеняскэ",
+ "mo"
+ ],
+ [
+ "Bambara",
+ "Bamanankan",
+ "bm"
+ ],
+ [
+ "Inuktitut",
+ "ᐃᓄᒃᑎᑐᑦ",
+ "iu"
+ ],
+ [
+ "Norfolk",
+ "Norfuk",
+ "pih"
+ ],
+ [
+ "Pontic",
+ "Ποντιακά",
+ "pnt"
+ ],
+ [
+ "Sindhi",
+ "سنڌي، سندھی ، सिन्ध",
+ "sd"
+ ],
+ [
+ "Swati",
+ "SiSwati",
+ "ss"
+ ],
+ [
+ "Kikuyu",
+ "Gĩkũyũ",
+ "ki"
+ ],
+ [
+ "Ewe",
+ "Eʋegbe",
+ "ee"
+ ],
+ [
+ "Hausa",
+ "هَوُسَ",
+ "ha"
+ ],
+ [
+ "Oromo",
+ "Oromoo",
+ "om"
+ ],
+ [
+ "Fijian",
+ "Na Vosa Vakaviti",
+ "fj"
+ ],
+ [
+ "Tigrinya",
+ "ትግርኛ",
+ "ti"
+ ],
+ [
+ "Tsonga",
+ "Xitsonga",
+ "ts"
+ ],
+ [
+ "Kashmiri",
+ "कश्मीरी / كشميري",
+ "ks"
+ ],
+ [
+ "Venda",
+ "Tshivenda",
+ "ve"
+ ],
+ [
+ "Sango",
+ "Sängö",
+ "sg"
+ ],
+ [
+ "Kirundi",
+ "Kirundi",
+ "rn"
+ ],
+ [
+ "Sesotho",
+ "Sesotho",
+ "st"
+ ],
+ [
+ "Dzongkha",
+ "ཇོང་ཁ",
+ "dz"
+ ],
+ [
+ "Cree",
+ "Nehiyaw",
+ "cr"
+ ],
+ [
+ "Akan",
+ "Akana",
+ "ak"
+ ],
+ [
+ "Tumbuka",
+ "chiTumbuka",
+ "tum"
+ ],
+ [
+ "Luganda",
+ "Luganda",
+ "lg"
+ ],
+ [
+ "Chichewa",
+ "Chi-Chewa",
+ "ny"
+ ],
+ [
+ "Fula",
+ "Fulfulde",
+ "ff"
+ ],
+ [
+ "Inupiak",
+ "Iñupiak",
+ "ik"
+ ],
+ [
+ "Chamorro",
+ "Chamoru",
+ "ch"
+ ],
+ [
+ "Twi",
+ "Twi",
+ "tw"
+ ],
+ [
+ "Xhosa",
+ "isiXhosa",
+ "xh"
+ ],
+ [
+ "Ndonga",
+ "Oshiwambo",
+ "ng"
+ ],
+ [
+ "Sichuan Yi",
+ "ꆇꉙ",
+ "ii"
+ ],
+ [
+ "Choctaw",
+ "Choctaw",
+ "cho"
+ ],
+ [
+ "Marshallese",
+ "Ebon",
+ "mh"
+ ],
+ [
+ "Afar",
+ "Afar",
+ "aa"
+ ],
+ [
+ "Kuanyama",
+ "Kuanyama",
+ "kj"
+ ],
+ [
+ "Hiri Motu",
+ "Hiri Motu",
+ "ho"
+ ],
+ [
+ "Muscogee",
+ "Muskogee",
+ "mus"
+ ],
+ [
+ "Kanuri",
+ "Kanuri",
+ "kr"
+ ],
+ [
+ "Herero",
+ "Otsiherero",
+ "hz"
+ ]
+ ],
"imperial": {
"type": "FeatureCollection",
"features": [
528
]
},
+ "gift": {
+ "12": [
+ 258,
+ 528
+ ],
+ "18": [
+ 240,
+ 528
+ ],
+ "24": [
+ 216,
+ 528
+ ]
+ },
+ "ice-cream": {
+ "12": [
+ 42,
+ 552
+ ],
+ "18": [
+ 24,
+ 552
+ ],
+ "24": [
+ 0,
+ 552
+ ]
+ },
"highway-motorway": {
"line": [
20,
},
"multipolygon": {
"relation": [
- 140,
+ 141,
25
]
},
"ca",
"zh",
"zh-CN",
- "zh-CN.GB2312",
- "gan",
"zh-HK",
"zh-TW",
"yue",
"da",
"nl",
"en-GB",
+ "eo",
"et",
"fi",
"fr",
"gl",
"de",
"el",
+ "hi-IN",
"hu",
"is",
"id",
"lv",
"lt",
"no",
- "nn",
"fa",
"pl",
"pt",
"ru",
"sc",
"sr",
- "sr-RS",
"si",
"sk",
"sl",
"area": "Made an area circular."
},
"not_closed": "This can't be made circular because it's not a loop.",
- "too_large": "This can't be made circular because not enough of it is currently visible."
+ "too_large": "This can't be made circular because not enough of it is currently visible.",
+ "connected_to_hidden": "This can't be made circular because it is connected to a hidden feature."
},
"orthogonalize": {
"title": "Square",
"area": "Squared the corners of an area."
},
"not_squarish": "This can't be made square because it is not squarish.",
- "too_large": "This can't be made square because not enough of it is currently visible."
+ "too_large": "This can't be made square because not enough of it is currently visible.",
+ "connected_to_hidden": "This can't be made square because it is connected to a hidden feature."
},
"straighten": {
"title": "Straighten",
"description": "Straighten this line.",
"key": "S",
"annotation": "Straightened a line.",
- "too_bendy": "This can't be straightened because it bends too much."
+ "too_bendy": "This can't be straightened because it bends too much.",
+ "connected_to_hidden": "This line can't be straightened because it is connected to a hidden feature."
},
"delete": {
"title": "Delete",
"relation": "Deleted a relation.",
"multiple": "Deleted {n} objects."
},
- "incomplete_relation": "This feature can't be deleted because it hasn't been fully downloaded."
+ "incomplete_relation": "This feature can't be deleted because it hasn't been fully downloaded.",
+ "part_of_relation": "This feature can't be deleted because it's part of a larger relation. You must remove it from the relation first.",
+ "connected_to_hidden": "This can't be deleted because it is connected to a hidden feature."
},
"add_member": {
"annotation": "Added a member to a relation."
"description": "Disconnect these lines/areas from each other.",
"key": "D",
"annotation": "Disconnected lines/areas.",
- "not_connected": "There aren't enough lines/areas here to disconnect."
+ "not_connected": "There aren't enough lines/areas here to disconnect.",
+ "connected_to_hidden": "This can't be disconnected because it is connected to a hidden feature."
},
"merge": {
"title": "Merge",
"multiple": "Moved multiple objects."
},
"incomplete_relation": "This feature can't be moved because it hasn't been fully downloaded.",
- "too_large": "This can't be moved because not enough of it is currently visible."
+ "too_large": "This can't be moved because not enough of it is currently visible.",
+ "connected_to_hidden": "This can't be moved because it is connected to a hidden feature."
},
"rotate": {
"title": "Rotate",
"line": "Rotated a line.",
"area": "Rotated an area."
},
- "too_large": "This can't be rotated because not enough of it is currently visible."
+ "too_large": "This can't be rotated because not enough of it is currently visible.",
+ "connected_to_hidden": "This can't be rotated because it is connected to a hidden feature."
},
"reverse": {
"title": "Reverse",
"multiple": "Split {n} lines/area boundaries."
},
"not_eligible": "Lines can't be split at their beginning or end.",
- "multiple_ways": "There are too many lines here to split."
+ "multiple_ways": "There are too many lines here to split.",
+ "connected_to_hidden": "This can't be split because it is connected to a hidden feature."
},
"restriction": {
"help": {
"logout": "logout",
"loading_auth": "Connecting to OpenStreetMap...",
"report_a_bug": "report a bug",
+ "feature_info": {
+ "hidden_warning": "{count} hidden features",
+ "hidden_details": "These features are currently hidden: {details}"
+ },
"status": {
"error": "Unable to connect to API.",
"offline": "The API is offline. Please try editing later.",
"commit": {
"title": "Save Changes",
"description_placeholder": "Brief description of your contributions",
- "message_label": "Commit message",
+ "message_label": "Changeset comment",
"upload_explanation": "The changes you upload will be visible on all maps that use OpenStreetMap data.",
"upload_explanation_with_user": "The changes you upload as {user} will be visible on all maps that use OpenStreetMap data.",
"save": "Save",
"cancel": "Cancel",
+ "changes": "{count} Changes",
"warnings": "Warnings",
"modified": "Modified",
"deleted": "Deleted",
"list": "Edits by {users}",
"truncated_list": "Edits by {users} and {count} others"
},
+ "infobox": {
+ "selected": "{n} selected",
+ "geometry": "Geometry",
+ "closed": "closed",
+ "center": "Center",
+ "perimeter": "Perimeter",
+ "length": "Length",
+ "area": "Area",
+ "centroid": "Centroid",
+ "location": "Location",
+ "metric": "Metric",
+ "imperial": "Imperial"
+ },
+ "geometry": {
+ "point": "point",
+ "vertex": "vertex",
+ "line": "line",
+ "area": "area",
+ "relation": "relation"
+ },
"geocoder": {
"search": "Search worldwide...",
"no_results_visible": "No results in visible map area",
"node": "Node",
"way": "Way",
"relation": "Relation",
- "location": "Location"
+ "location": "Location",
+ "add_fields": "Add field:"
},
"background": {
"title": "Background",
"custom_button": "Edit custom background",
"custom_prompt": "Enter a tile URL template. Valid tokens are {z}, {x}, {y} for Z/X/Y scheme and {u} for quadtile scheme.",
"fix_misalignment": "Fix alignment",
- "reset": "reset"
+ "reset": "reset",
+ "minimap": {
+ "description": "Minimap",
+ "tooltip": "Show a zoomed out map to help locate the area currently displayed."
+ }
+ },
+ "map_data": {
+ "title": "Map Data",
+ "description": "Map Data",
+ "data_layers": "Data Layers",
+ "fill_area": "Fill Areas",
+ "map_features": "Map Features",
+ "autohidden": "These features have been automatically hidden because too many would be shown on the screen. You can zoom in to edit them."
+ },
+ "feature": {
+ "points": {
+ "description": "Points",
+ "tooltip": "Points of Interest"
+ },
+ "major_roads": {
+ "description": "Major Roads",
+ "tooltip": "Highways, Streets, etc."
+ },
+ "minor_roads": {
+ "description": "Minor Roads",
+ "tooltip": "Service Roads, Parking Aisles, Tracks, etc."
+ },
+ "paths": {
+ "description": "Paths",
+ "tooltip": "Sidewalks, Foot Paths, Cycle Paths, etc."
+ },
+ "buildings": {
+ "description": "Buildings",
+ "tooltip": "Buildings, Shelters, Garages, etc."
+ },
+ "landuse": {
+ "description": "Landuse Features",
+ "tooltip": "Forests, Farmland, Parks, Residential, Commercial, etc."
+ },
+ "boundaries": {
+ "description": "Boundaries",
+ "tooltip": "Administrative Boundaries"
+ },
+ "water": {
+ "description": "Water Features",
+ "tooltip": "Rivers, Lakes, Ponds, Basins, etc."
+ },
+ "rail": {
+ "description": "Rail Features",
+ "tooltip": "Railways"
+ },
+ "power": {
+ "description": "Power Features",
+ "tooltip": "Power Lines, Power Plants, Substations, etc."
+ },
+ "past_future": {
+ "description": "Past/Future",
+ "tooltip": "Proposed, Construction, Abandoned, Demolished, etc."
+ },
+ "others": {
+ "description": "Others",
+ "tooltip": "Everything Else"
+ }
+ },
+ "area_fill": {
+ "wireframe": {
+ "description": "No Fill (Wireframe)",
+ "tooltip": "Enabling wireframe mode makes it easy to see the background imagery."
+ },
+ "partial": {
+ "description": "Partial Fill",
+ "tooltip": "Areas are drawn with fill only around their inner edges. (Recommended for beginner mappers)"
+ },
+ "full": {
+ "description": "Full Fill",
+ "tooltip": "Areas are drawn fully filled."
+ }
},
"restore": {
"heading": "You have unsaved changes",
"title": "Save",
"help": "Save changes to OpenStreetMap, making them visible to other users.",
"no_changes": "No changes to save.",
- "error": "An error occurred while trying to save",
+ "error": "Errors occurred while trying to save",
+ "status_code": "Server returned status code {code}",
+ "unknown_error_details": "Please ensure you are connected to the internet.",
"uploading": "Uploading changes to OpenStreetMap.",
- "unsaved_changes": "You have unsaved changes"
+ "unsaved_changes": "You have unsaved changes",
+ "conflict": {
+ "header": "Resolve conflicting edits",
+ "count": "Conflict {num} of {total}",
+ "previous": "< Previous",
+ "next": "Next >",
+ "keep_local": "Keep mine",
+ "keep_remote": "Use theirs",
+ "restore": "Restore",
+ "delete": "Leave Deleted",
+ "download_changes": "Or download your changes.",
+ "done": "All conflicts resolved!",
+ "help": "Another user changed some of the same map features you changed.\nClick on each item below for more details about the conflict, and choose whether to keep\nyour changes or the other user's changes.\n"
+ }
+ },
+ "merge_remote_changes": {
+ "conflict": {
+ "deleted": "This object has been deleted by {user}.",
+ "location": "This object was moved by both you and {user}.",
+ "nodelist": "Nodes were changed by both you and {user}.",
+ "memberlist": "Relation members were changed by both you and {user}.",
+ "tags": "You changed the <b>{tag}</b> tag to \"{local}\" and {user} changed it to \"{remote}\"."
+ }
},
"success": {
"edited_osm": "Edited OSM!",
"help_html": "Your changes should appear in the \"Standard\" layer in a few minutes. Other layers, and certain features, may take longer\n(<a href='https://help.openstreetmap.org/questions/4705/why-havent-my-changes-appeared-on-the-map' target='_blank'>details</a>).\n"
},
"confirm": {
- "okay": "Okay"
+ "okay": "Okay",
+ "cancel": "Cancel"
},
"splash": {
"welcome": "Welcome to the iD OpenStreetMap editor",
"out": "Zoom Out"
},
"cannot_zoom": "Cannot zoom out further in current mode.",
+ "full_screen": "Toggle Full Screen",
"gpx": {
"local_layer": "Local GPX file",
"drag_drop": "Drag and drop a .gpx file on the page, or click the button to the right to browse",
"zoom": "Zoom to GPX track",
"browse": "Browse for a .gpx file"
},
+ "mapillary": {
+ "tooltip": "Street-level photos from Mapillary",
+ "title": "Photo Overlay (Mapillary)",
+ "view_on_mapillary": "View this image on Mapillary"
+ },
"help": {
"title": "Help",
- "help": "# Help\n\nThis is an editor for [OpenStreetMap](http://www.openstreetmap.org/), the\nfree and editable map of the world. You can use it to add and update\ndata in your area, making an open-source and open-data map of the world\nbetter for everyone.\n\nEdits that you make on this map will be visible to everyone who uses\nOpenStreetMap. In order to make an edit, you'll need a\n[free OpenStreetMap account](https://www.openstreetmap.org/user/new).\n\nThe [iD editor](http://ideditor.com/) is a collaborative project with [source\ncode available on GitHub](https://github.com/openstreetmap/iD).\n",
- "editing_saving": "# Editing & Saving\n\nThis editor is designed to work primarily online, and you're accessing\nit through a website right now.\n\n### Selecting Features\n\nTo select a map feature, like a road or point of interest, click\non it on the map. This will highlight the selected feature, open a panel with\ndetails about it, and show a menu of things you can do with the feature.\n\nTo select multiple features, hold down the 'Shift' key. Then either click\non the features you want to select, or drag on the map to draw a rectangle.\nThis will draw a box and select all the points within it.\n\n### Saving Edits\n\nWhen you make changes like editing roads, buildings, and places, these are\nstored locally until you save them to the server. Don't worry if you make\na mistake - you can undo changes by clicking the undo button, and redo\nchanges by clicking the redo button.\n\nClick 'Save' to finish a group of edits - for instance, if you've completed\nan area of town and would like to start on a new area. You'll have a chance\nto review what you've done, and the editor supplies helpful suggestions\nand warnings if something doesn't seem right about the changes.\n\nIf everything looks good, you can enter a short comment explaining the change\nyou made, and click 'Save' again to post the changes\nto [OpenStreetMap.org](http://www.openstreetmap.org/), where they are visible\nto all other users and available for others to build and improve upon.\n\nIf you can't finish your edits in one sitting, you can leave the editor\nwindow and come back (on the same browser and computer), and the\neditor application will offer to restore your work.\n",
+ "help": "# Help\n\nThis is an editor for [OpenStreetMap](http://www.openstreetmap.org/), the\nfree and editable map of the world. You can use it to add and update\ndata in your area, making an open-source and open-data map of the world\nbetter for everyone.\n\nEdits that you make on this map will be visible to everyone who uses\nOpenStreetMap. In order to make an edit, you'll need to\n[log in](https://www.openstreetmap.org/login).\n\nThe [iD editor](http://ideditor.com/) is a collaborative project with [source\ncode available on GitHub](https://github.com/openstreetmap/iD).\n",
+ "editing_saving": "# Editing & Saving\n\nThis editor is designed to work primarily online, and you're accessing\nit through a website right now.\n\n### Selecting Features\n\nTo select a map feature, like a road or point of interest, click\non it on the map. This will highlight the selected feature, open a panel with\ndetails about it, and show a menu of things you can do with the feature.\n\nTo select multiple features, hold down the 'Shift' key. Then either click\non the features you want to select, or drag on the map to draw a rectangle.\nThis will draw a box and select all the points within it.\n\n### Saving Edits\n\nWhen you make changes like editing roads, buildings, and places, these are\nstored locally until you save them to the server. Don't worry if you make\na mistake - you can undo changes by clicking the undo button, and redo\nchanges by clicking the redo button.\n\nClick 'Save' to finish a group of edits - for instance, if you've completed\nan area of town and would like to start on a new area. You'll have a chance\nto review what you've done, and the editor supplies helpful suggestions\nand warnings if something doesn't seem right about the changes.\n\nIf everything looks good, you can enter a short comment explaining the change\nyou made, and click 'Save' again to post the changes\nto [OpenStreetMap.org](http://www.openstreetmap.org/), where they are visible\nto all other users and available for others to build and improve upon.\n\nIf you can't finish your edits in one sitting, you can leave the editor\nwindow and come back (on the same browser and computer), and the\neditor application will offer to restore your work.\n\n### Using the editor\n\nA list of available keyboard shortcuts can be found [here](http://wiki.openstreetmap.org/wiki/ID/Shortcuts).\n",
"roads": "# Roads\n\nYou can create, fix, and delete roads with this editor. Roads can be all\nkinds: paths, highways, trails, cycleways, and more - any often-crossed\nsegment should be mappable.\n\n### Selecting\n\nClick on a road to select it. An outline should become visible, along\nwith a small tools menu on the map and a sidebar showing more information\nabout the road.\n\n### Modifying\n\nOften you'll see roads that aren't aligned to the imagery behind them\nor to a GPS track. You can adjust these roads so they are in the correct\nplace.\n\nFirst click on the road you want to change. This will highlight it and show\ncontrol points along it that you can drag to better locations. If\nyou want to add new control points for more detail, double-click a part\nof the road without a node, and one will be added.\n\nIf the road connects to another road, but doesn't properly connect on\nthe map, you can drag one of its control points onto the other road in\norder to join them. Having roads connect is important for the map\nand essential for providing driving directions.\n\nYou can also click the 'Move' tool or press the `M` shortcut key to move the entire road at\none time, and then click again to save that movement.\n\n### Deleting\n\nIf a road is entirely incorrect - you can see that it doesn't exist in satellite\nimagery and ideally have confirmed locally that it's not present - you can delete\nit, which removes it from the map. Be cautious when deleting features -\nlike any other edit, the results are seen by everyone and satellite imagery\nis often out of date, so the road could simply be newly built.\n\nYou can delete a road by clicking on it to select it, then clicking the\ntrash can icon or pressing the 'Delete' key.\n\n### Creating\n\nFound somewhere there should be a road but there isn't? Click the 'Line'\nicon in the top-left of the editor or press the shortcut key `2` to start drawing\na line.\n\nClick on the start of the road on the map to start drawing. If the road\nbranches off from an existing road, start by clicking on the place where they connect.\n\nThen click on points along the road so that it follows the right path, according\nto satellite imagery or GPS. If the road you are drawing crosses another road, connect\nit by clicking on the intersection point. When you're done drawing, double-click\nor press 'Return' or 'Enter' on your keyboard.\n",
- "gps": "# GPS\n\nGPS data is the most trusted source of data for OpenStreetMap. This editor\nsupports local traces - `.gpx` files on your local computer. You can collect\nthis kind of GPS trace with a number of smartphone applications as well as\npersonal GPS hardware.\n\nFor information on how to perform a GPS survey, read\n[Surveying with a GPS](http://learnosm.org/en/beginner/using-gps/).\n\nTo use a GPX track for mapping, drag and drop the GPX file onto the map\neditor. If it's recognized, it will be added to the map as a bright green\nline. Click on the 'Background Settings' menu on the right side to enable,\ndisable, or zoom to this new GPX-powered layer.\n\nThe GPX track isn't directly uploaded to OpenStreetMap - the best way to\nuse it is to draw on the map, using it as a guide for the new features that\nyou add, and also to [upload it to OpenStreetMap](http://www.openstreetmap.org/trace/create)\nfor other users to use.\n",
+ "gps": "# GPS\n\nCollected GPS traces are one valuable source of data for OpenStreetMap. This editor\nsupports local traces - `.gpx` files on your local computer. You can collect\nthis kind of GPS trace with a number of smartphone applications as well as\npersonal GPS hardware.\n\nFor information on how to perform a GPS survey, read\n[Mapping with a smartphone, GPS, or paper](http://learnosm.org/en/mobile-mapping/).\n\nTo use a GPX track for mapping, drag and drop the GPX file onto the map\neditor. If it's recognized, it will be added to the map as a bright purple\nline. Click on the 'Map Data' menu on the right side to enable,\ndisable, or zoom to this new GPX-powered layer.\n\nThe GPX track isn't directly uploaded to OpenStreetMap - the best way to\nuse it is to draw on the map, using it as a guide for the new features that\nyou add, and also to [upload it to OpenStreetMap](http://www.openstreetmap.org/trace/create)\nfor other users to use.\n",
"imagery": "# Imagery\n\nAerial imagery is an important resource for mapping. A combination of\nairplane flyovers, satellite views, and freely-compiled sources are available\nin the editor under the 'Background Settings' menu on the right.\n\nBy default a [Bing Maps](http://www.bing.com/maps/) satellite layer is\npresented in the editor, but as you pan and zoom the map to new geographical\nareas, new sources will become available. Some countries, like the United\nStates, France, and Denmark have very high-quality imagery available for some areas.\n\nImagery is sometimes offset from the map data because of a mistake on the\nimagery provider's side. If you see a lot of roads shifted from the background,\ndon't immediately move them all to match the background. Instead you can adjust\nthe imagery so that it matches the existing data by clicking 'Fix alignment' at\nthe bottom of the Background Settings UI.\n",
"addresses": "# Addresses\n\nAddresses are some of the most useful information for the map.\n\nAlthough addresses are often represented as parts of streets, in OpenStreetMap\nthey're recorded as attributes of buildings and places along streets.\n\nYou can add address information to places mapped as building outlines\nas well as those mapped as single points. The optimal source of address\ndata is from an on-the-ground survey or personal knowledge - as with any\nother feature, copying from commercial sources like Google Maps is strictly\nforbidden.\n",
- "inspector": "# Using the Inspector\n\nThe inspector is the section on the left side of the page that allows you to\nedit the details of the selected feature.\n\n### Selecting a Feature Type\n\nAfter you add a point, line, or area, you can choose what type of feature it\nis, like whether it's a highway or residential road, supermarket or cafe.\nThe inspector will display buttons for common feature types, and you can\nfind others by typing what you're looking for in the search box.\n\nClick the 'i' in the bottom-right-hand corner of a feature type button to\nlearn more about it. Click a button to choose that type.\n\n### Using Forms and Editing Tags\n\nAfter you choose a feature type, or when you select a feature that already\nhas a type assigned, the inspector will display fields with details about\nthe feature like its name and address.\n\nBelow the fields you see, you can click icons to add other details,\nlike [Wikipedia](http://www.wikipedia.org/) information, wheelchair\naccess, and more.\n\nAt the bottom of the inspector, click 'Additional tags' to add arbitrary\nother tags to the element. [Taginfo](http://taginfo.openstreetmap.org/) is a\ngreat resource for learn more about popular tag combinations.\n\nChanges you make in the inspector are automatically applied to the map.\nYou can undo them at any time by clicking the 'Undo' button.\n",
+ "inspector": "# Using the Inspector\n\nThe inspector is the section on the left side of the page that allows you to\nedit the details of the selected feature.\n\n### Selecting a Feature Type\n\nAfter you add a point, line, or area, you can choose what type of feature it\nis, like whether it's a highway or residential road, supermarket or cafe.\nThe inspector will display buttons for common feature types, and you can\nfind others by typing what you're looking for in the search box.\n\nClick the 'i' in the bottom-right-hand corner of a feature type button to\nlearn more about it. Click a button to choose that type.\n\n### Using Forms and Editing Tags\n\nAfter you choose a feature type, or when you select a feature that already\nhas a type assigned, the inspector will display fields with details about\nthe feature like its name and address.\n\nBelow the fields you see, you can click the 'Add field' dropdown to add\nother details, like a Wikipedia link, wheelchair access, and more.\n\nAt the bottom of the inspector, click 'Additional tags' to add arbitrary\nother tags to the element. [Taginfo](http://taginfo.openstreetmap.org/) is a\ngreat resource for learn more about popular tag combinations.\n\nChanges you make in the inspector are automatically applied to the map.\nYou can undo them at any time by clicking the 'Undo' button.\n",
"buildings": "# Buildings\n\nOpenStreetMap is the world's largest database of buildings. You can create\nand improve this database.\n\n### Selecting\n\nYou can select a building by clicking on its border. This will highlight the\nbuilding and open a small tools menu and a sidebar showing more information\nabout the building.\n\n### Modifying\n\nSometimes buildings are incorrectly placed or have incorrect tags.\n\nTo move an entire building, select it, then click the 'Move' tool. Move your\nmouse to shift the building, and click when it's correctly placed.\n\nTo fix the specific shape of a building, click and drag the nodes that form\nits border into better places.\n\n### Creating\n\nOne of the main questions around adding buildings to the map is that\nOpenStreetMap records buildings both as shapes and points. The rule of thumb\nis to _map a building as a shape whenever possible_, and map companies, homes,\namenities, and other things that operate out of buildings as points placed\nwithin the building shape.\n\nStart drawing a building as a shape by clicking the 'Area' button in the top\nleft of the interface, and end it either by pressing 'Return' on your keyboard\nor clicking on the first node drawn to close the shape.\n\n### Deleting\n\nIf a building is entirely incorrect - you can see that it doesn't exist in satellite\nimagery and ideally have confirmed locally that it's not present - you can delete\nit, which removes it from the map. Be cautious when deleting features -\nlike any other edit, the results are seen by everyone and satellite imagery\nis often out of date, so the building could simply be newly built.\n\nYou can delete a building by clicking on it to select it, then clicking the\ntrash can icon or pressing the 'Delete' key.\n",
"relations": "# Relations\n\nA relation is a special type of feature in OpenStreetMap that groups together\nother features. For example, two common types of relations are *route relations*,\nwhich group together sections of road that belong to a specific freeway or\nhighway, and *multipolygons*, which group together several lines that define\na complex area (one with several pieces or holes in it like a donut).\n\nThe group of features in a relation are called *members*. In the sidebar, you can\nsee which relations a feature is a member of, and click on a relation there\nto select the it. When the relation is selected, you can see all of its\nmembers listed in the sidebar and highlighted on the map.\n\nFor the most part, iD will take care of maintaining relations automatically\nwhile you edit. The main thing you should be aware of is that if you delete a\nsection of road to redraw it more accurately, you should make sure that the\nnew section is a member of the same relations as the original.\n\n## Editing Relations\n\nIf you want to edit relations, here are the basics.\n\nTo add a feature to a relation, select the feature, click the \"+\" button in the\n\"All relations\" section of the sidebar, and select or type the name of the relation.\n\nTo create a new relation, select the first feature that should be a member,\nclick the \"+\" button in the \"All relations\" section, and select \"New relation...\".\n\nTo remove a feature from a relation, select the feature and click the trash\nbutton next to the relation you want to remove it from.\n\nYou can create multipolygons with holes using the \"Merge\" tool. Draw two areas (inner\nand outer), hold the Shift key and click on each of them to select them both, and then\nclick the \"Merge\" (+) button.\n"
},
},
"areas": {
"title": "Areas",
- "add": "Areas are a more detailed way to represent features. They provide information on the boundaries of the feature. Areas can be used for most feature types points can be used for, and are often preferred. **Click the Area button to add a new area.**",
+ "add": "Areas are used to show the boundaries of features like lakes, buildings, and residential areas. They can be also be used for more detailed mapping of many features you might normally map as points. **Click the Area button to add a new area.**",
"corner": "Areas are drawn by placing nodes that mark the boundary of the area. **Place the starting node on one of the corners of the playground.**",
"place": "Draw the area by placing more nodes. Finish the area by clicking on the starting node. **Draw an area for the playground.**",
"search": "**Search for '{name}'.**",
},
"fields": {
"access": {
- "label": "Access",
- "placeholder": "Unknown",
+ "label": "Allowed Access",
+ "placeholder": "Not Specified",
"types": {
- "access": "General",
+ "access": "All",
"foot": "Foot",
"motor_vehicle": "Motor Vehicles",
"bicycle": "Bicycles",
"destination": {
"title": "Destination",
"description": "Access permitted only to reach a destination"
+ },
+ "dismount": {
+ "title": "Dismount",
+ "description": "Access permitted but rider must dismount"
}
}
},
"access_simple": {
- "label": "Access",
+ "label": "Allowed Access",
"placeholder": "yes"
},
"access_toilets": {
"placeholders": {
"housename": "Housename",
"housenumber": "123",
+ "conscriptionnumber": "123",
"street": "Street",
"city": "City",
"postcode": "Postcode",
"amenity": {
"label": "Type"
},
+ "area/highway": {
+ "label": "Type"
+ },
"artist": {
"label": "Artist"
},
"barrier": {
"label": "Type"
},
+ "bench": {
+ "label": "Bench"
+ },
"bicycle_parking": {
"label": "Type"
},
"boundary": {
"label": "Type"
},
+ "brand": {
+ "label": "Brand"
+ },
"building": {
"label": "Building"
},
"construction": {
"label": "Type"
},
+ "content": {
+ "label": "Contents"
+ },
"country": {
"label": "Country"
},
"covered": {
"label": "Covered"
},
+ "craft": {
+ "label": "Type"
+ },
"crop": {
"label": "Crop"
},
"cuisine": {
"label": "Cuisine"
},
+ "cycleway": {
+ "label": "Bike Lanes",
+ "placeholder": "none",
+ "types": {
+ "cycleway:left": "Left side",
+ "cycleway:right": "Right side"
+ },
+ "options": {
+ "none": {
+ "title": "None",
+ "description": "No bike lane"
+ },
+ "lane": {
+ "title": "Standard bike lane",
+ "description": "A bike lane separated from auto traffic by a painted line"
+ },
+ "shared_lane": {
+ "title": "Shared bike lane",
+ "description": "A bike lane with no separation from auto traffic"
+ },
+ "track": {
+ "title": "Bike track",
+ "description": "A bike lane separated from traffic by a physical barrier"
+ },
+ "share_busway": {
+ "title": "Bike lane shared with bus",
+ "description": "A bike lane shared with a bus lane"
+ },
+ "opposite_lane": {
+ "title": "Opposite bike lane",
+ "description": "A bike lane that travels in the opposite direction of traffic"
+ },
+ "opposite": {
+ "title": "Contraflow bike lane",
+ "description": "A bike lane that travels in both directions on a one-way street"
+ }
+ }
+ },
+ "delivery": {
+ "label": "Delivery"
+ },
"denomination": {
"label": "Denomination"
},
"description": {
"label": "Description"
},
+ "drive_through": {
+ "label": "Drive-Through"
+ },
"electrified": {
"label": "Electrification",
"placeholder": "Contact Line, Electrified Rail...",
"gauge": {
"label": "Gauge"
},
+ "gender": {
+ "label": "Gender",
+ "placeholder": "Unknown",
+ "options": {
+ "male": "Male",
+ "female": "Female",
+ "unisex": "Unisex"
+ }
+ },
"generator/method": {
"label": "Method"
},
"incline": {
"label": "Incline"
},
+ "incline_steps": {
+ "label": "Incline",
+ "options": {
+ "up": "Up",
+ "down": "Down"
+ }
+ },
"information": {
"label": "Type"
},
"layer": {
"label": "Layer"
},
+ "leaf_cycle": {
+ "label": "Leaf Cycle",
+ "options": {
+ "evergreen": "Evergreen",
+ "deciduous": "Deciduous",
+ "semi_evergreen": "Semi-Evergreen",
+ "semi_deciduous": "Semi-Deciduous",
+ "mixed": "Mixed"
+ }
+ },
+ "leaf_cycle_singular": {
+ "label": "Leaf Cycle",
+ "options": {
+ "evergreen": "Evergreen",
+ "deciduous": "Deciduous",
+ "semi_evergreen": "Semi-Evergreen",
+ "semi_deciduous": "Semi-Deciduous"
+ }
+ },
+ "leaf_type": {
+ "label": "Leaf Type",
+ "options": {
+ "broadleaved": "Broadleaved",
+ "needleleaved": "Needleleaved",
+ "mixed": "Mixed",
+ "leafless": "Leafless"
+ }
+ },
+ "leaf_type_singular": {
+ "label": "Leaf Type",
+ "options": {
+ "broadleaved": "Broadleaved",
+ "needleleaved": "Needleleaved",
+ "leafless": "Leafless"
+ }
+ },
"leisure": {
"label": "Type"
},
"length": {
"label": "Length (Meters)"
},
+ "level": {
+ "label": "Level"
+ },
"levels": {
"label": "Levels",
"placeholder": "2, 4, 6..."
"power": {
"label": "Type"
},
+ "power_supply": {
+ "label": "Power Supply"
+ },
"railway": {
"label": "Type"
},
"recycling/glass": {
"label": "Accepts Glass"
},
+ "recycling/glass_bottles": {
+ "label": "Accepts Glass Bottles"
+ },
"recycling/paper": {
"label": "Accepts Paper"
},
+ "recycling/plastic": {
+ "label": "Accepts Plastic"
+ },
+ "recycling/type": {
+ "label": "Recycling Type",
+ "options": {
+ "container": "Container",
+ "centre": "Recycling Center"
+ }
+ },
"ref": {
"label": "Reference"
},
"difficult_alpine_hiking": "T6: Difficult Alpine Hiking"
}
},
+ "sanitary_dump_station": {
+ "label": "Toilet Disposal"
+ },
"seasonal": {
"label": "Seasonal"
},
"service": {
"label": "Type"
},
+ "service/bicycle/chain_tool": {
+ "label": "Chain Tool",
+ "options": {
+ "undefined": "Assumed to be No",
+ "yes": "Yes",
+ "no": "No"
+ }
+ },
+ "service/bicycle/pump": {
+ "label": "Air Pump",
+ "options": {
+ "undefined": "Assumed to be No",
+ "yes": "Yes",
+ "no": "No"
+ }
+ },
+ "service_rail": {
+ "label": "Service Type",
+ "options": {
+ "spur": "Spur",
+ "yard": "Yard",
+ "siding": "Siding",
+ "crossover": "Crossover"
+ }
+ },
"shelter": {
"label": "Shelter"
},
"very_bad": "High Clearance: light duty off-road vehicle",
"horrible": "Off-Road: heavy duty off-road vehicle",
"very_horrible": "Specialized off-road: tractor, ATV",
- "impassible": "Impassible / No wheeled vehicle"
+ "impassable": "Impassable / No wheeled vehicle"
}
},
"social_facility_for": {
"sport_ice": {
"label": "Sport"
},
+ "sport_racing": {
+ "label": "Sport"
+ },
"structure": {
"label": "Structure",
"placeholder": "Unknown",
"studio_type": {
"label": "Type"
},
+ "substation": {
+ "label": "Type"
+ },
"supervised": {
"label": "Supervised"
},
"tactile_paving": {
"label": "Tactile Paving"
},
+ "takeaway": {
+ "label": "Takeaway",
+ "placeholder": "Yes, No, Takeaway Only...",
+ "options": {
+ "yes": "Yes",
+ "no": "No",
+ "only": "Takeaway Only"
+ }
+ },
"toilets/disposal": {
"label": "Disposal",
"options": {
"no": "No: pathless, excellent orientation skills required"
}
},
- "tree_type": {
- "label": "Type"
- },
"trees": {
"label": "Trees"
},
"water": {
"label": "Type"
},
+ "water_point": {
+ "label": "Water Point"
+ },
"waterway": {
"label": "Type"
},
},
"wikipedia": {
"label": "Wikipedia"
- },
- "wood": {
- "label": "Type"
}
},
"presets": {
},
"amenity/arts_centre": {
"name": "Arts Center",
- "terms": "arts,arts centre"
+ "terms": ""
},
"amenity/atm": {
"name": "ATM",
- "terms": ""
+ "terms": "money,cash,machine"
},
"amenity/bank": {
"name": "Bank",
- "terms": "coffer,countinghouse,credit union,depository,exchequer,fund,hoard,investment firm,repository,reserve,reservoir,safe,savings,stock,stockpile,store,storehouse,thrift,treasury,trust company,vault"
+ "terms": "credit union,check,deposit,fund,investment,repository,reserve,safe,savings,stock,treasury,trust,vault"
},
"amenity/bar": {
"name": "Bar",
- "terms": ""
+ "terms": "dive,beer,bier,booze"
},
"amenity/bbq": {
"name": "Barbecue/Grill",
- "terms": "barbecue,bbq,grill"
+ "terms": "bbq"
},
"amenity/bench": {
"name": "Bench",
},
"amenity/bicycle_parking": {
"name": "Bicycle Parking",
- "terms": ""
+ "terms": "bike"
},
"amenity/bicycle_rental": {
"name": "Bicycle Rental",
- "terms": ""
+ "terms": "bike"
+ },
+ "amenity/bicycle_repair_station": {
+ "name": "Bicycle Repair Station",
+ "terms": "bike"
+ },
+ "amenity/biergarten": {
+ "name": "Beer Garden",
+ "terms": "beer,bier,booze"
},
"amenity/boat_rental": {
"name": "Boat Rental",
"terms": ""
},
+ "amenity/bureau_de_change": {
+ "name": "Currency Exchange",
+ "terms": "bureau de change,money changer"
+ },
"amenity/bus_station": {
"name": "Bus Station",
"terms": ""
},
"amenity/cafe": {
"name": "Cafe",
- "terms": "coffee,tea,coffee shop"
+ "terms": "coffee,tea"
},
"amenity/car_rental": {
"name": "Car Rental",
"name": "Car Wash",
"terms": ""
},
+ "amenity/casino": {
+ "name": "Casino",
+ "terms": "gambling,roulette,craps,poker,blackjack"
+ },
"amenity/charging_station": {
"name": "Charging Station",
"terms": "EV,Electric Vehicle,Supercharger"
},
"amenity/childcare": {
- "name": "Childcare",
- "terms": "nursery,orphanage,playgroup"
+ "name": "Nursery/Childcare",
+ "terms": "daycare,orphanage,playgroup"
},
"amenity/cinema": {
"name": "Cinema",
- "terms": "big screen,bijou,cine,drive-in,film,flicks,motion pictures,movie house,movie theater,moving pictures,nabes,photoplay,picture show,pictures,playhouse,show,silver screen"
+ "terms": "drive-in,film,flick,movie,theater,picture,show,screen"
},
"amenity/clinic": {
"name": "Clinic",
- "terms": "clinic,medical clinic"
+ "terms": "medical,urgentcare"
},
"amenity/clock": {
"name": "Clock",
"terms": ""
},
"amenity/college": {
- "name": "College",
- "terms": ""
+ "name": "College Grounds",
+ "terms": "university"
+ },
+ "amenity/community_centre": {
+ "name": "Community Center",
+ "terms": "event,hall"
},
"amenity/compressed_air": {
"name": "Compressed Air",
},
"amenity/dentist": {
"name": "Dentist",
- "terms": "dentist,dentist's office"
+ "terms": "tooth,teeth"
},
"amenity/doctor": {
"name": "Doctor",
- "terms": "doctor,doctor's office"
+ "terms": "medic*"
},
"amenity/dojo": {
"name": "Dojo / Martial Arts Academy",
- "terms": "martial arts,dojo,dojang"
+ "terms": "martial arts,dojang"
},
"amenity/drinking_water": {
"name": "Drinking Water",
- "terms": "water fountain,potable water"
+ "terms": "fountain,potable"
},
"amenity/embassy": {
"name": "Embassy",
},
"amenity/fast_food": {
"name": "Fast Food",
- "terms": ""
+ "terms": "restaurant"
},
"amenity/fire_station": {
"name": "Fire Station",
"name": "Graveyard",
"terms": ""
},
+ "amenity/grit_bin": {
+ "name": "Grit Bin",
+ "terms": "salt,sand"
+ },
"amenity/hospital": {
"name": "Hospital Grounds",
- "terms": "clinic,emergency room,health service,hospice,infirmary,institution,nursing home,rest home,sanatorium,sanitarium,sick bay,surgery,ward"
+ "terms": "clinic,doctor,emergency room,health service,hospice,infirmary,institution,nursing home,sanatorium,sanitarium,sick,surgery,ward"
},
"amenity/kindergarten": {
- "name": "Kindergarten Grounds",
- "terms": "nursery,preschool"
+ "name": "Preschool/Kindergarten Grounds",
+ "terms": "kindergarden,pre-school"
},
"amenity/library": {
"name": "Library",
- "terms": ""
+ "terms": "book"
},
"amenity/marketplace": {
"name": "Marketplace",
},
"amenity/pharmacy": {
"name": "Pharmacy",
- "terms": ""
+ "terms": "drug,medicine"
},
"amenity/place_of_worship": {
"name": "Place of Worship",
},
"amenity/place_of_worship/christian": {
"name": "Church",
- "terms": "christian,abbey,basilica,bethel,cathedral,chancel,chantry,chapel,church,fold,house of God,house of prayer,house of worship,minster,mission,oratory,parish,sacellum,sanctuary,shrine,tabernacle,temple"
+ "terms": "christian,abbey,basilica,bethel,cathedral,chancel,chantry,chapel,fold,house of God,house of prayer,house of worship,minster,mission,oratory,parish,sacellum,sanctuary,shrine,tabernacle,temple"
},
"amenity/place_of_worship/jewish": {
"name": "Synagogue",
- "terms": "jewish,synagogue"
+ "terms": "jewish"
},
"amenity/place_of_worship/muslim": {
"name": "Mosque",
- "terms": "muslim,mosque"
+ "terms": "muslim"
},
"amenity/police": {
"name": "Police",
- "terms": "badge,bear,blue,bluecoat,bobby,boy scout,bull,constable,constabulary,cop,copper,corps,county mounty,detective,fed,flatfoot,force,fuzz,gendarme,gumshoe,heat,law,law enforcement,man,narc,officers,patrolman,police"
+ "terms": "badge,constable,constabulary,cop,detective,fed,law,enforcement,officer,patrol"
},
"amenity/post_box": {
"name": "Mailbox",
- "terms": "letter drop,letterbox,mail drop,mailbox,pillar box,postbox"
+ "terms": "letter,post"
},
"amenity/post_office": {
"name": "Post Office",
- "terms": ""
+ "terms": "letter,mail"
},
"amenity/pub": {
"name": "Pub",
- "terms": ""
+ "terms": "dive,beer,bier,booze"
+ },
+ "amenity/public_bookcase": {
+ "name": "Public Bookcase",
+ "terms": "library,bookcrossing"
},
"amenity/ranger_station": {
"name": "Ranger Station",
},
"amenity/recycling": {
"name": "Recycling",
+ "terms": "can,bottle,garbage,scrap,trash"
+ },
+ "amenity/register_office": {
+ "name": "Register Office",
"terms": ""
},
"amenity/restaurant": {
"name": "Restaurant",
- "terms": "bar,cafeteria,café,canteen,chophouse,coffee shop,diner,dining room,dive*,doughtnut shop,drive-in,eatery,eating house,eating place,fast-food place,fish and chips,greasy spoon,grill,hamburger stand,hashery,hideaway,hotdog stand,inn,joint*,luncheonette,lunchroom,night club,outlet*,pizzeria,saloon,soda fountain,watering hole"
+ "terms": "bar,breakfast,cafe,café,canteen,coffee,dine,dining,dinner,drive-in,eat,grill,lunch,table"
+ },
+ "amenity/sanitary_dump_station": {
+ "name": "RV Toilet Disposal",
+ "terms": "Motor Home,Camper,Sanitary,Dump Station,Elsan,CDP,CTDP,Chemical Toilet"
},
"amenity/school": {
"name": "School Grounds",
- "terms": "academy,alma mater,blackboard,college,department,discipline,establishment,faculty,hall,halls of ivy,institute,institution,jail*,schoolhouse,seminary,university"
+ "terms": "academy,elementary school,middle school,high school"
},
"amenity/shelter": {
"name": "Shelter",
- "terms": "lean-to"
+ "terms": "lean-to,gazebo,picnic"
},
"amenity/social_facility": {
"name": "Social Facility",
"terms": ""
},
"amenity/social_facility/group_home": {
- "name": "Group Home",
- "terms": "elderly,old,senior living"
+ "name": "Elderly Group Home",
+ "terms": "old,senior,living"
},
"amenity/social_facility/homeless_shelter": {
"name": "Homeless Shelter",
},
"amenity/studio": {
"name": "Studio",
- "terms": "recording studio,studio,radio,radio studio,television,television studio"
+ "terms": "recording,radio,television"
},
"amenity/swimming_pool": {
"name": "Swimming Pool",
},
"amenity/townhall": {
"name": "Town Hall",
- "terms": "village hall,city government,courthouse,municipal building,municipal center,municipal centre"
+ "terms": "village,city,government,courthouse,municipal"
},
"amenity/university": {
- "name": "University",
+ "name": "University Grounds",
"terms": "college"
},
"amenity/vending_machine": {
"name": "Vending Machine",
- "terms": ""
+ "terms": "snack,soda,ticket"
},
"amenity/veterinary": {
"name": "Veterinary",
},
"amenity/waste_basket": {
"name": "Waste Basket",
- "terms": "rubbish bin,litter bin,trash can,garbage can"
+ "terms": "rubbish,litter,trash,garbage"
},
"area": {
"name": "Area",
"terms": ""
},
+ "area/highway": {
+ "name": "Road Surface",
+ "terms": ""
+ },
"barrier": {
"name": "Barrier",
"terms": ""
"name": "Church",
"terms": ""
},
+ "building/college": {
+ "name": "College Building",
+ "terms": "university"
+ },
"building/commercial": {
"name": "Commercial Building",
"terms": ""
"name": "Industrial Building",
"terms": ""
},
+ "building/kindergarten": {
+ "name": "Preschool/Kindergarten Building",
+ "terms": "kindergarden,pre-school"
+ },
"building/public": {
"name": "Public Building",
"terms": ""
},
"building/school": {
"name": "School Building",
- "terms": ""
+ "terms": "academy,elementary school,middle school,high school"
},
"building/shed": {
"name": "Shed",
},
"building/university": {
"name": "University Building",
- "terms": ""
+ "terms": "college"
},
"building/warehouse": {
"name": "Warehouse",
"terms": ""
},
+ "craft": {
+ "name": "Craft",
+ "terms": ""
+ },
"craft/basket_maker": {
"name": "Basket Maker",
- "terms": "basket,basketry,basket maker,basket weaver"
+ "terms": ""
},
"craft/beekeeper": {
"name": "Beekeeper",
- "terms": "bees,beekeeper,bee box"
+ "terms": ""
},
"craft/blacksmith": {
"name": "Blacksmith",
- "terms": "blacksmith"
+ "terms": ""
},
"craft/boatbuilder": {
"name": "Boat Builder",
- "terms": "boat builder"
+ "terms": ""
},
"craft/bookbinder": {
"name": "Bookbinder",
- "terms": "bookbinder,book repair"
+ "terms": "book repair"
},
"craft/brewery": {
"name": "Brewery",
- "terms": "brewery"
+ "terms": "beer,bier"
},
"craft/carpenter": {
"name": "Carpenter",
- "terms": "carpenter,woodworker"
+ "terms": "woodworker"
},
"craft/carpet_layer": {
"name": "Carpet Layer",
- "terms": "carpet layer"
+ "terms": ""
},
"craft/caterer": {
"name": "Caterer",
- "terms": "Caterer,Catering"
+ "terms": ""
},
"craft/clockmaker": {
"name": "Clockmaker",
- "terms": "clock,clockmaker,clock repair"
+ "terms": ""
},
- "craft/confectionary": {
- "name": "Confectionary",
- "terms": "confectionary,sweets,candy"
+ "craft/confectionery": {
+ "name": "Confectionery",
+ "terms": "sweets,candy"
},
"craft/dressmaker": {
"name": "Dressmaker",
- "terms": "dress,dressmaker"
+ "terms": "seamstress"
},
"craft/electrician": {
"name": "Electrician",
- "terms": "electrician"
+ "terms": "power,wire"
},
"craft/gardener": {
"name": "Gardener",
- "terms": "gardener,landscaper,grounds keeper"
+ "terms": "landscaper,grounds keeper"
},
"craft/glaziery": {
"name": "Glaziery",
- "terms": "glass,glass foundry,stained-glass,window"
+ "terms": "glass,stained-glass,window"
},
"craft/handicraft": {
"name": "Handicraft",
- "terms": "handicraft"
+ "terms": ""
},
"craft/hvac": {
"name": "HVAC",
- "terms": "heating,ventilating,air-conditioning,air conditioning"
+ "terms": "heat*,vent*,air conditioning"
},
"craft/insulator": {
"name": "Insulator",
- "terms": "insulation,insulator"
+ "terms": ""
},
"craft/jeweler": {
"name": "Jeweler",
- "terms": "jeweler,gem,diamond"
+ "terms": ""
},
"craft/key_cutter": {
"name": "Key Cutter",
- "terms": "key,key cutter"
+ "terms": ""
},
"craft/locksmith": {
"name": "Locksmith",
- "terms": "locksmith,lock"
+ "terms": ""
},
"craft/metal_construction": {
"name": "Metal Construction",
- "terms": "metal construction"
+ "terms": ""
},
"craft/optician": {
"name": "Optician",
- "terms": "glasses,optician"
+ "terms": ""
},
"craft/painter": {
"name": "Painter",
- "terms": "painter"
+ "terms": ""
},
"craft/photographer": {
"name": "Photographer",
- "terms": "photographer"
+ "terms": ""
},
"craft/photographic_laboratory": {
"name": "Photographic Laboratory",
- "terms": "photographic laboratory,film developer"
+ "terms": "film"
},
"craft/plasterer": {
"name": "Plasterer",
- "terms": "plasterer"
+ "terms": ""
},
"craft/plumber": {
"name": "Plumber",
- "terms": "pumber"
+ "terms": "pipe"
},
"craft/pottery": {
"name": "Pottery",
- "terms": "pottery,potter"
+ "terms": "ceramic"
},
"craft/rigger": {
"name": "Rigger",
- "terms": "rigger"
+ "terms": ""
},
"craft/roofer": {
"name": "Roofer",
- "terms": "roofer"
+ "terms": ""
},
"craft/saddler": {
"name": "Saddler",
- "terms": "saddler"
+ "terms": ""
},
"craft/sailmaker": {
"name": "Sailmaker",
- "terms": "sailmaker"
+ "terms": ""
},
"craft/sawmill": {
"name": "Sawmill",
- "terms": "sawmill,lumber"
+ "terms": "lumber"
},
"craft/scaffolder": {
"name": "Scaffolder",
- "terms": "scaffolder"
+ "terms": ""
},
"craft/sculpter": {
"name": "Sculpter",
- "terms": "sculpter"
+ "terms": ""
},
"craft/shoemaker": {
"name": "Shoemaker",
- "terms": "shoe repair,shoemaker"
+ "terms": "cobbler"
},
"craft/stonemason": {
"name": "Stonemason",
- "terms": "stonemason,masonry"
+ "terms": "masonry"
},
"craft/sweep": {
"name": "Chimney Sweep",
- "terms": "sweep,chimney sweep"
+ "terms": ""
},
"craft/tailor": {
"name": "Tailor",
- "terms": "tailor,clothes"
+ "terms": "clothes,suit"
},
"craft/tiler": {
"name": "Tiler",
- "terms": "tiler"
+ "terms": ""
},
"craft/tinsmith": {
"name": "Tinsmith",
- "terms": "tinsmith"
+ "terms": ""
},
"craft/upholsterer": {
"name": "Upholsterer",
- "terms": "upholsterer"
+ "terms": ""
},
"craft/watchmaker": {
"name": "Watchmaker",
- "terms": "watch,watchmaker,watch repair"
+ "terms": ""
},
"craft/window_construction": {
"name": "Window Construction",
- "terms": "window,window maker,window construction"
+ "terms": "glass"
+ },
+ "craft/winery": {
+ "name": "Winery",
+ "terms": ""
},
"embankment": {
"name": "Embankment",
},
"emergency/ambulance_station": {
"name": "Ambulance Station",
- "terms": ""
+ "terms": "EMS,EMT,rescue"
},
"emergency/fire_hydrant": {
"name": "Fire Hydrant",
"terms": ""
},
"footway/crossing": {
- "name": "Crossing",
+ "name": "Street Crossing",
"terms": ""
},
"footway/crosswalk": {
- "name": "Crosswalk",
- "terms": "crosswalk,zebra crossing"
+ "name": "Pedestrian Crosswalk",
+ "terms": "zebra crossing"
},
"footway/sidewalk": {
"name": "Sidewalk",
},
"golf/green": {
"name": "Putting Green",
- "terms": "putting green"
+ "terms": ""
},
"golf/hole": {
"name": "Golf Hole",
},
"highway/bridleway": {
"name": "Bridle Path",
- "terms": "bridleway,equestrian trail,horse riding path,bridle road,horse trail"
+ "terms": "bridleway,equestrian,horse"
},
"highway/bus_stop": {
"name": "Bus Stop",
"terms": ""
},
+ "highway/corridor": {
+ "name": "Indoor Corridor",
+ "terms": "gallery,hall,hallway,indoor,passage,passageway"
+ },
"highway/crossing": {
- "name": "Crossing",
+ "name": "Street Crossing",
"terms": ""
},
"highway/crosswalk": {
- "name": "Crosswalk",
- "terms": "crosswalk,zebra crossing"
+ "name": "Pedestrian Crosswalk",
+ "terms": "zebra crossing"
},
"highway/cycleway": {
"name": "Cycle Path",
- "terms": ""
+ "terms": "bike"
},
"highway/footway": {
"name": "Foot Path",
- "terms": "beaten path,boulevard,clearing,course,cut*,drag*,footpath,highway,lane,line,orbit,passage,pathway,rail,rails,road,roadway,route,street,thoroughfare,trackway,trail,trajectory,walk"
+ "terms": "hike,hiking,trackway,trail,walk"
},
"highway/living_street": {
"name": "Living Street",
},
"highway/path": {
"name": "Path",
- "terms": ""
+ "terms": "hike,hiking,trackway,trail,walk"
},
"highway/pedestrian": {
- "name": "Pedestrian",
+ "name": "Pedestrian Street",
"terms": ""
},
"highway/primary": {
"name": "Primary Link",
"terms": "ramp,on ramp,off ramp"
},
+ "highway/raceway": {
+ "name": "Motor Raceway",
+ "terms": "auto*,race*,nascar"
+ },
"highway/residential": {
"name": "Residential Road",
"terms": ""
},
"highway/rest_area": {
"name": "Rest Area",
- "terms": "rest stop,turnout,lay-by"
+ "terms": "rest stop"
},
"highway/road": {
"name": "Unknown Road",
},
"highway/track": {
"name": "Track",
- "terms": ""
+ "terms": "woods road,fire road"
},
"highway/traffic_signals": {
"name": "Traffic Signals",
},
"highway/turning_circle": {
"name": "Turning Circle",
- "terms": ""
+ "terms": "cul-de-sac"
},
"highway/unclassified": {
"name": "Unclassified Road",
"name": "Wayside Shrine",
"terms": ""
},
+ "junction": {
+ "name": "Junction",
+ "terms": ""
+ },
"landuse": {
- "name": "Landuse",
+ "name": "Land Use",
"terms": ""
},
"landuse/allotments": {
"terms": ""
},
"landuse/commercial": {
- "name": "Commercial",
+ "name": "Commercial Area",
"terms": ""
},
"landuse/construction": {
"terms": ""
},
"landuse/farm": {
- "name": "Farm",
+ "name": "Farmland",
"terms": ""
},
"landuse/farmland": {
},
"landuse/forest": {
"name": "Forest",
+ "terms": "tree"
+ },
+ "landuse/garages": {
+ "name": "Garages",
"terms": ""
},
"landuse/grass": {
"terms": ""
},
"landuse/industrial": {
- "name": "Industrial",
+ "name": "Industrial Area",
"terms": ""
},
"landuse/landfill": {
"terms": ""
},
"landuse/military": {
- "name": "Military",
+ "name": "Military Area",
"terms": ""
},
"landuse/orchard": {
"name": "Orchard",
"terms": ""
},
+ "landuse/plant_nursery": {
+ "name": "Plant Nursery",
+ "terms": "vivero"
+ },
"landuse/quarry": {
"name": "Quarry",
"terms": ""
},
"landuse/residential": {
- "name": "Residential",
+ "name": "Residential Area",
"terms": ""
},
"landuse/retail": {
- "name": "Retail",
+ "name": "Retail Area",
"terms": ""
},
"landuse/vineyard": {
"name": "Leisure",
"terms": ""
},
+ "leisure/adult_gaming_centre": {
+ "name": "Adult Gaming Center",
+ "terms": "gambling,slot machine"
+ },
+ "leisure/bowling_alley": {
+ "name": "Bowling Alley",
+ "terms": ""
+ },
"leisure/common": {
"name": "Common",
"terms": "open space"
},
"leisure/marina": {
"name": "Marina",
- "terms": ""
+ "terms": "boat"
+ },
+ "leisure/nature_reserve": {
+ "name": "Nature Reserve",
+ "terms": "protected,wildlife"
},
"leisure/park": {
"name": "Park",
},
"leisure/picnic_table": {
"name": "Picnic Table",
- "terms": "bench,table"
+ "terms": "bench"
},
"leisure/pitch": {
"name": "Sport Pitch",
- "terms": ""
+ "terms": "field"
},
"leisure/pitch/american_football": {
"name": "American Football Field",
"name": "Playground",
"terms": "jungle gym,play area"
},
+ "leisure/running_track": {
+ "name": "Running Track",
+ "terms": ""
+ },
"leisure/slipway": {
"name": "Slipway",
- "terms": ""
+ "terms": "boat launch,boat ramp"
},
"leisure/sports_center": {
"name": "Sports Center / Gym",
"terms": ""
},
"leisure/track": {
- "name": "Race Track",
+ "name": "Racetrack (non-Motorsport)",
"terms": ""
},
"line": {
"name": "Man Made",
"terms": ""
},
+ "man_made/adit": {
+ "name": "Adit",
+ "terms": "entrance,underground,mine,cave"
+ },
"man_made/breakwater": {
"name": "Breakwater",
"terms": ""
"name": "Lighthouse",
"terms": ""
},
+ "man_made/mast": {
+ "name": "Radio Mast",
+ "terms": "broadcast tower,cell phone tower,cell tower,guyed tower,mobile phone tower,radio tower,television tower,transmission mast,transmission tower,tv tower"
+ },
"man_made/observation": {
"name": "Observation Tower",
"terms": "lookout tower,fire tower"
},
+ "man_made/petroleum_well": {
+ "name": "Oil Well",
+ "terms": "drilling rig,oil derrick,oil drill,oil horse,oil rig,oil pump,petroleum well,pumpjack"
+ },
"man_made/pier": {
"name": "Pier",
"terms": ""
"name": "Pipeline",
"terms": ""
},
+ "man_made/silo": {
+ "name": "Silo",
+ "terms": "grain,corn,wheat"
+ },
+ "man_made/storage_tank": {
+ "name": "Storage Tank",
+ "terms": "water,oil,gas,petrol"
+ },
"man_made/survey_point": {
"name": "Survey Point",
"terms": ""
},
"man_made/wastewater_plant": {
"name": "Wastewater Plant",
- "terms": "sewage works,sewage treatment plant,water treatment plant,reclamation plant"
+ "terms": "sewage*,water treatment plant,reclamation plant"
},
"man_made/water_tower": {
"name": "Water Tower",
"terms": ""
},
"man_made/water_well": {
- "name": "Water well",
+ "name": "Water Well",
"terms": ""
},
"man_made/water_works": {
"name": "Beach",
"terms": ""
},
+ "natural/cave_entrance": {
+ "name": "Cave Entrance",
+ "terms": "cavern,hollow,grotto,shelter,cavity"
+ },
"natural/cliff": {
"name": "Cliff",
"terms": ""
"name": "Peak",
"terms": "acme,aiguille,alp,climax,crest,crown,hill,mount,mountain,pinnacle,summit,tip,top"
},
+ "natural/saddle": {
+ "name": "Saddle",
+ "terms": "pass,mountain pass,top"
+ },
"natural/scree": {
"name": "Scree",
"terms": "loose rocks"
},
"natural/scrub": {
"name": "Scrub",
- "terms": ""
+ "terms": "bush,shrubs"
},
"natural/spring": {
"name": "Spring",
"name": "Tree",
"terms": ""
},
+ "natural/tree_row": {
+ "name": "Tree row",
+ "terms": ""
+ },
+ "natural/volcano": {
+ "name": "Volcano",
+ "terms": "mountain,crater"
+ },
"natural/water": {
"name": "Water",
"terms": ""
},
"natural/wood": {
"name": "Wood",
- "terms": ""
+ "terms": "tree"
},
"office": {
"name": "Office",
},
"office/employment_agency": {
"name": "Employment Agency",
- "terms": ""
+ "terms": "job"
},
"office/estate_agent": {
"name": "Real Estate Office",
"name": "City",
"terms": ""
},
+ "place/farm": {
+ "name": "Farm",
+ "terms": ""
+ },
"place/hamlet": {
"name": "Hamlet",
"terms": ""
"name": "Substation",
"terms": ""
},
+ "power/substation": {
+ "name": "Substation",
+ "terms": ""
+ },
"power/tower": {
"name": "High-Voltage Tower",
"terms": ""
"terms": "break,interrupt,rest,wait,interruption"
},
"railway/level_crossing": {
- "name": "Level Crossing",
- "terms": "crossing,railroad crossing,railway crossing,grade crossing,road through railroad,train crossing"
+ "name": "Railway Crossing",
+ "terms": "crossing,railroad crossing,level crossing,grade crossing,road through railroad,train crossing"
},
"railway/monorail": {
"name": "Monorail",
"name": "Relation",
"terms": ""
},
+ "roundabout": {
+ "name": "Roundabout",
+ "terms": ""
+ },
"route/ferry": {
"name": "Ferry Route",
"terms": ""
},
"shop/alcohol": {
"name": "Liquor Store",
- "terms": "alcohol"
+ "terms": "alcohol,beer,booze,wine"
+ },
+ "shop/anime": {
+ "name": "Anime Shop",
+ "terms": ""
+ },
+ "shop/antiques": {
+ "name": "Antiques Shop",
+ "terms": ""
},
"shop/art": {
- "name": "Art Shop",
- "terms": "art store,art gallery"
+ "name": "Art Gallery",
+ "terms": ""
+ },
+ "shop/baby_goods": {
+ "name": "Baby Goods Store",
+ "terms": ""
+ },
+ "shop/bag": {
+ "name": "Bag/Luggage Store",
+ "terms": "handbag,purse"
},
"shop/bakery": {
"name": "Bakery",
"terms": ""
},
+ "shop/bathroom_furnishing": {
+ "name": "Bathroom Furnishing Store",
+ "terms": ""
+ },
"shop/beauty": {
"name": "Beauty Shop",
"terms": "nail spa,spa,salon,tanning"
},
+ "shop/bed": {
+ "name": "Bedding/Mattress Store",
+ "terms": ""
+ },
"shop/beverages": {
"name": "Beverage Store",
"terms": ""
"terms": ""
},
"shop/books": {
- "name": "Bookstore",
+ "name": "Book Store",
"terms": ""
},
"shop/boutique": {
},
"shop/butcher": {
"name": "Butcher",
+ "terms": "meat"
+ },
+ "shop/candles": {
+ "name": "Candle Shop",
"terms": ""
},
"shop/car": {
"name": "Car Dealership",
- "terms": ""
+ "terms": "auto"
},
"shop/car_parts": {
"name": "Car Parts Store",
- "terms": ""
+ "terms": "auto"
},
"shop/car_repair": {
"name": "Car Repair Shop",
+ "terms": "auto"
+ },
+ "shop/carpet": {
+ "name": "Carpet Store",
+ "terms": "rug"
+ },
+ "shop/cheese": {
+ "name": "Cheese Store",
"terms": ""
},
"shop/chemist": {
"name": "Chemist",
"terms": ""
},
+ "shop/chocolate": {
+ "name": "Chocolate Store",
+ "terms": ""
+ },
"shop/clothes": {
"name": "Clothing Store",
"terms": ""
"terms": ""
},
"shop/confectionery": {
- "name": "Confectionery",
+ "name": "Candy Store",
"terms": ""
},
"shop/convenience": {
"name": "Convenience Store",
"terms": ""
},
+ "shop/copyshop": {
+ "name": "Copy Store",
+ "terms": ""
+ },
+ "shop/cosmetics": {
+ "name": "Cosmetics Store",
+ "terms": ""
+ },
+ "shop/craft": {
+ "name": "Arts and Crafts Store",
+ "terms": ""
+ },
+ "shop/curtain": {
+ "name": "Curtain Store",
+ "terms": "drape*,window"
+ },
+ "shop/dairy": {
+ "name": "Dairy Store",
+ "terms": "milk,egg,cheese"
+ },
"shop/deli": {
"name": "Deli",
- "terms": ""
+ "terms": "lunch,meat,sandwich"
},
"shop/department_store": {
"name": "Department Store",
"terms": ""
},
"shop/dry_cleaning": {
- "name": "Dry Cleaners",
+ "name": "Dry Cleaner",
"terms": ""
},
"shop/electronics": {
"name": "Electronics Store",
- "terms": ""
+ "terms": "appliance,audio,computer,tv"
+ },
+ "shop/erotic": {
+ "name": "Erotic Store",
+ "terms": "sex,porn"
+ },
+ "shop/fabric": {
+ "name": "Fabric Store",
+ "terms": "sew"
},
"shop/farm": {
"name": "Produce Stand",
"terms": "farm shop,farm stand"
},
+ "shop/fashion": {
+ "name": "Fashion Store",
+ "terms": ""
+ },
"shop/fishmonger": {
"name": "Fishmonger",
"terms": ""
},
"shop/florist": {
"name": "Florist",
+ "terms": "flower"
+ },
+ "shop/frame": {
+ "name": "Framing Shop",
"terms": ""
},
"shop/funeral_directors": {
"name": "Funeral Home",
- "terms": "undertaker,funeral parlour,funeral parlor,memorial home"
+ "terms": "undertaker,memorial home"
+ },
+ "shop/furnace": {
+ "name": "Furnace Store",
+ "terms": "oven,stove"
},
"shop/furniture": {
"name": "Furniture Store",
- "terms": ""
+ "terms": "chair,sofa,table"
},
"shop/garden_centre": {
"name": "Garden Center",
- "terms": "garden centre"
+ "terms": "landscape,mulch,shrub,tree"
},
"shop/gift": {
"name": "Gift Shop",
},
"shop/greengrocer": {
"name": "Greengrocer",
- "terms": ""
+ "terms": "fruit,vegetable"
},
"shop/hairdresser": {
"name": "Hairdresser",
"name": "Hardware Store",
"terms": ""
},
+ "shop/hearing_aids": {
+ "name": "Hearing Aids Store",
+ "terms": ""
+ },
+ "shop/herbalist": {
+ "name": "Herbalist",
+ "terms": ""
+ },
"shop/hifi": {
"name": "Hifi Store",
+ "terms": "stereo,video"
+ },
+ "shop/houseware": {
+ "name": "Houseware Store",
+ "terms": "home,household"
+ },
+ "shop/interior_decoration": {
+ "name": "Interior Decoration Store",
"terms": ""
},
"shop/jewelry": {
"name": "Jeweler",
- "terms": ""
+ "terms": "diamond,gem,ring"
},
"shop/kiosk": {
- "name": "Kiosk",
+ "name": "News Kiosk",
+ "terms": ""
+ },
+ "shop/kitchen": {
+ "name": "Kitchen Design Store",
"terms": ""
},
"shop/laundry": {
"name": "Laundry",
"terms": ""
},
+ "shop/leather": {
+ "name": "Leather Store",
+ "terms": ""
+ },
"shop/locksmith": {
"name": "Locksmith",
- "terms": "keys"
+ "terms": "key,lockpick"
},
"shop/lottery": {
"name": "Lottery Shop",
"name": "Mall",
"terms": ""
},
+ "shop/massage": {
+ "name": "Massage Shop",
+ "terms": ""
+ },
+ "shop/medical_supply": {
+ "name": "Medical Supply Store",
+ "terms": ""
+ },
"shop/mobile_phone": {
"name": "Mobile Phone Store",
"terms": ""
},
+ "shop/money_lender": {
+ "name": "Money Lender",
+ "terms": ""
+ },
"shop/motorcycle": {
"name": "Motorcycle Dealership",
"terms": ""
},
"shop/music": {
"name": "Music Store",
+ "terms": "CD,vinyl"
+ },
+ "shop/musical_instrument": {
+ "name": "Musical Instrument Store",
"terms": ""
},
"shop/newsagent": {
- "name": "Newsagent",
+ "name": "Newspaper/Magazine Shop",
"terms": ""
},
"shop/optician": {
"name": "Optician",
+ "terms": "eye,glasses"
+ },
+ "shop/organic": {
+ "name": "Organic Goods Store",
"terms": ""
},
"shop/outdoor": {
- "name": "Outdoor Store",
+ "name": "Outdoors Store",
+ "terms": "camping,climbing,hiking"
+ },
+ "shop/paint": {
+ "name": "Paint Store",
+ "terms": ""
+ },
+ "shop/pawnbroker": {
+ "name": "Pawn Shop",
"terms": ""
},
"shop/pet": {
"name": "Pet Store",
- "terms": ""
+ "terms": "cat,dog,fish"
},
"shop/photo": {
"name": "Photography Store",
+ "terms": "camera,film"
+ },
+ "shop/pyrotechnics": {
+ "name": "Fireworks Store",
+ "terms": ""
+ },
+ "shop/radiotechnics": {
+ "name": "Radio/Electronic Component Store",
+ "terms": ""
+ },
+ "shop/religion": {
+ "name": "Religious Store",
+ "terms": ""
+ },
+ "shop/scuba_diving": {
+ "name": "Scuba Diving Shop",
"terms": ""
},
"shop/seafood": {
"name": "Seafood Shop",
"terms": "fishmonger"
},
+ "shop/second_hand": {
+ "name": "Consignment/Thrift Store",
+ "terms": "secondhand,second hand,resale,thrift,used"
+ },
"shop/shoes": {
"name": "Shoe Store",
"terms": ""
},
"shop/stationery": {
"name": "Stationery Store",
- "terms": ""
+ "terms": "card,paper"
},
"shop/supermarket": {
"name": "Supermarket",
- "terms": "bazaar,boutique,chain,co-op,cut-rate store,discount store,five-and-dime,flea market,galleria,grocery store,mall,mart,outlet,outlet store,shop,shopping center,shopping centre,shopping plaza,stand,store,supermarket,thrift shop"
+ "terms": "grocery,store,shop"
},
"shop/tailor": {
"name": "Tailor",
- "terms": "tailor,clothes"
+ "terms": "clothes,suit"
+ },
+ "shop/tattoo": {
+ "name": "Tattoo Parlor",
+ "terms": ""
+ },
+ "shop/tea": {
+ "name": "Tea Store",
+ "terms": ""
+ },
+ "shop/ticket": {
+ "name": "Ticket Seller",
+ "terms": ""
+ },
+ "shop/tobacco": {
+ "name": "Tobacco Shop",
+ "terms": ""
},
"shop/toys": {
"name": "Toy Store",
"name": "Vacant Shop",
"terms": ""
},
+ "shop/vacuum_cleaner": {
+ "name": "Vacuum Cleaner Store",
+ "terms": ""
+ },
"shop/variety_store": {
"name": "Variety Store",
"terms": ""
},
"shop/video": {
"name": "Video Store",
+ "terms": "DVD"
+ },
+ "shop/video_games": {
+ "name": "Video Game Store",
+ "terms": ""
+ },
+ "shop/water_sports": {
+ "name": "Watersport/Swim Shop",
+ "terms": ""
+ },
+ "shop/weapons": {
+ "name": "Weapon Shop",
+ "terms": "ammo,gun,knife,knives"
+ },
+ "shop/window_blind": {
+ "name": "Window Blind Store",
"terms": ""
},
"shop/wine": {
"name": "Wine Shop",
- "terms": "winery"
+ "terms": ""
},
"tourism": {
"name": "Tourism",
},
"tourism/camp_site": {
"name": "Camp Site",
- "terms": "camping"
+ "terms": "Tent"
},
"tourism/caravan_site": {
"name": "RV Park",
- "terms": ""
+ "terms": "Motor Home,Camper"
},
"tourism/chalet": {
"name": "Chalet",
},
"tourism/guest_house": {
"name": "Guest House",
- "terms": "B&B,Bed & Breakfast,Bed and Breakfast"
+ "terms": "B&B,Bed and Breakfast"
},
"tourism/hostel": {
"name": "Hostel",
},
"tourism/museum": {
"name": "Museum",
- "terms": "exhibition,exhibits archive,foundation,gallery,hall,institution,library,menagerie,repository,salon,storehouse,treasury,vault"
+ "terms": "exhibition,foundation,gallery,hall,institution"
},
"tourism/picnic_site": {
"name": "Picnic Site",
- "terms": ""
+ "terms": "camp"
},
"tourism/theme_park": {
"name": "Theme Park",
"name": "Zoo",
"terms": ""
},
+ "traffic_calming/bump": {
+ "name": "Speed Bump",
+ "terms": "speed hump"
+ },
+ "traffic_calming/hump": {
+ "name": "Speed Hump",
+ "terms": "speed bump"
+ },
+ "traffic_calming/rumble_strip": {
+ "name": "Rumble Strip",
+ "terms": "sleeper lines,audible lines,growlers"
+ },
+ "traffic_calming/table": {
+ "name": "Raised Pedestrian Crossing",
+ "terms": "speed table,flat top hump"
+ },
"type/boundary": {
"name": "Boundary",
"terms": ""
"name": "Drain",
"terms": ""
},
+ "waterway/fuel": {
+ "name": "Marine Fuel Station",
+ "terms": "petrol,gas,diesel,boat"
+ },
"waterway/river": {
"name": "River",
"terms": "beck,branch,brook,course,creek,estuary,rill,rivulet,run,runnel,stream,tributary,watercourse"
"name": "Riverbank",
"terms": ""
},
+ "waterway/sanitary_dump_station": {
+ "name": "Marine Toilet Disposal",
+ "terms": "Boat,Watercraft,Sanitary,Dump Station,Pumpout,Pump out,Elsan,CDP,CTDP,Chemical Toilet"
+ },
"waterway/stream": {
"name": "Stream",
"terms": "beck,branch,brook,burn,course,creek,current,drift,flood,flow,freshet,race,rill,rindle,rivulet,run,runnel,rush,spate,spritz,surge,tide,torrent,tributary,watercourse"
"ENEOS": {
"count": 736
},
- "Stacja paliw": {
- "count": 94
- },
"Bharat Petroleum": {
"count": 64
},
}
},
"Taco Bell": {
- "count": 1423
+ "count": 1423,
+ "tags": {
+ "cuisine": "mexican"
+ }
},
"Pizza Nova": {
"count": 63
"Mr. Sub": {
"count": 103
},
- "Kebab": {
- "count": 182
- },
"Макдоналдс": {
"count": 324,
"tags": {
"Asia Imbiss": {
"count": 111
},
- "Imbiss": {
- "count": 199
- },
"Chipotle": {
"count": 290,
"tags": {
}
},
"Panda Express": {
- "count": 238
+ "count": 238,
+ "tags": {
+ "cuisine": "chinese"
+ }
},
"Whataburger": {
"count": 364
},
"restaurant": {
"Pizza Hut": {
- "count": 1180
+ "count": 1180,
+ "tags": {
+ "cuisine": "pizza"
+ }
},
"Little Chef": {
"count": 64
"Hirschen": {
"count": 79
},
- "Papa John's": {
- "count": 67,
- "tags": {
- "cuisine": "pizza"
- }
- },
"Denny's": {
"count": 450
},
"ジョナサン": {
"count": 59
},
- "Arby's": {
- "count": 51
- },
"Longhorn Steakhouse": {
"count": 66
}
"Security Bank": {
"count": 78
},
- "Millenium Bank": {
+ "Millenium": {
"count": 60
},
"Bankia": {
"Second Cup": {
"count": 193
},
- "Eisdiele": {
- "count": 73
- },
"Dunkin Donuts": {
"count": 428,
"tags": {
"count": 547
},
"Lidl": {
- "count": 6208
+ "count": 7130
},
- "EDEKA": {
- "count": 506
+ "Edeka": {
+ "count": 2293
},
"Coles": {
"count": 400
"count": 315
},
"Coop": {
- "count": 1906
+ "count": 2100
},
"Tesco": {
"count": 1297
"Netto": {
"count": 4379
},
- "REWE": {
- "count": 1474
- },
"Rewe": {
- "count": 1171
+ "count": 2645
},
"Aldi Süd": {
"count": 594
"Kiwi": {
"count": 167
},
- "Edeka": {
- "count": 1787
- },
"Pick n Pay": {
"count": 241
},
"count": 258
},
"Spar": {
- "count": 2100
+ "count": 2386
},
"Hofer": {
"count": 442
"M-Preis": {
"count": 76
},
- "LIDL": {
- "count": 922
- },
"tegut": {
"count": 210
},
"Hoogvliet": {
"count": 53
},
- "COOP": {
- "count": 194
- },
"Food Basics": {
"count": 75
},
"count": 80
},
"Whole Foods": {
- "count": 210
+ "count": 210,
+ "tags": {
+ "shop": "supermarket"
+ }
},
"Pam": {
"count": 56
"Unimarc": {
"count": 177
},
- "Co-operative Food": {
- "count": 59
+ "The Co-operative Food": {
+ "count": 190
},
"Santa Isabel": {
"count": 128
"Carrefour Contact": {
"count": 83
},
- "SPAR": {
- "count": 286
- },
"No Frills": {
"count": 105
},
"Biedronka": {
"count": 1335
},
- "The Co-operative Food": {
- "count": 131
- },
"Eurospin": {
"count": 155
},
"count": 255
},
"Spar": {
- "count": 922
+ "count": 1119
},
"McColl's": {
"count": 100
"count": 135
},
"Coop": {
- "count": 538
+ "count": 678
},
"Sale": {
"count": 80
"Valintatalo": {
"count": 62
},
- "SPAR": {
- "count": 197
- },
- "COOP": {
- "count": 140
- },
"Casino": {
"count": 90
},
"Гастроном": {
"count": 152
},
- "Sklep spożywczy": {
- "count": 318
- },
"Centra": {
"count": 111
},
"Kiosk": {
"count": 55
},
+ "Sklep spożywczy": {
+ "count": 130
+ },
"24 часа": {
"count": 58
},
"เซเว่นอีเลฟเว่น": {
"count": 185
},
- "Spożywczy": {
- "count": 78
- },
"Delikatesy Centrum": {
"count": 53
},
"count": 83
},
"Kwik Fit": {
- "count": 75
+ "count": 128
},
"ATU": {
"count": 261
},
- "Kwik-Fit": {
- "count": 53
- },
"Midas": {
"count": 202
},
"Firestone": {
"count": 88
},
- "AutoZone": {
- "count": 82
- },
"Автосервис": {
"count": 361
},
"Backwerk": {
"count": 95
},
- "Bäcker": {
- "count": 68
- },
"Schäfer's": {
"count": 51
},
"Хлеб": {
"count": 89
},
- "Piekarnia": {
- "count": 62
- },
"Пекарня": {
"count": 52
},
"Стиль": {
"count": 51
},
- "Fryzjer": {
- "count": 56
- },
"Franck Provost": {
"count": 70
},
],
[
"city"
+ ],
+ [
+ "postcode"
]
]
},
"postcode"
]
]
+ },
+ {
+ "countryCodes": [
+ "us"
+ ],
+ "format": [
+ [
+ "housenumber",
+ "street"
+ ],
+ [
+ "city",
+ "state",
+ "postcode"
+ ]
+ ]
+ },
+ {
+ "countryCodes": [
+ "ca"
+ ],
+ "format": [
+ [
+ "housenumber",
+ "street"
+ ],
+ [
+ "city",
+ "province",
+ "postcode"
+ ]
+ ]
}
]
};
\ No newline at end of file