This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const key = 'cuisine'; | |
fetch(`https://taginfo.openstreetmap.org/api/4/key/overview?key=${key}`) | |
.then(x => x.json()) | |
.then(d => Math.ceil(d.data.counts[0].values / 999)) | |
.then(numPages => Array.from({length: numPages}, (_, i) => i + 1)) | |
.then(pages => Promise.all(pages | |
.map(i => `https://taginfo.openstreetmap.org/api/4/key/values?key=${key}&page=${i}&rp=999&sortname=count_all&sortorder=desc`) | |
.map(p => fetch(p).then(x => x.json()))) | |
.then(data => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var url = require('url'); | |
var redis = require('redis'); | |
var base62 = require('base62'); | |
var db = redis.createClient("/var/run/redis/redis-server.sock"); | |
http.createServer(function (req, res) { | |
if (req.method == "OPTIONS") { | |
res.writeHead(200, { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Rubik'; | |
font-style: normal; | |
font-weight: 400; | |
src: | |
local('Rubik'), | |
local('Rubik-Regular'), | |
url('./rubik-v4-latin-regular.woff2') format('woff2'), | |
url('./rubik-v4-latin-regular.woff') format('woff'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Example: Overpass-API with Leaflet.js</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | |
<style> | |
body { | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Empty Style Preview</title> | |
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.28.0/mapbox-gl.css" /> | |
<script src="https://api.mapbox.com/mapbox-gl-js/v0.28.0/mapbox-gl.js"></script> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>st-flurnamen Preview</title> | |
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.35.1/mapbox-gl.css" /> | |
<script src="https://api.mapbox.com/mapbox-gl-js/v0.35.1/mapbox-gl.js"></script> | |
<style> | |
body { margin:0; padding:0; background-color:black; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link type="text/css" rel="stylesheet" href="stylesheet.css"/> | |
<title>Convert GeoJSON</title> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script src="poly.js"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | id | version | |
---|---|---|---|
node | 334489687 | 3 | |
node | 354919611 | 5 | |
node | 1138179775 | 4 | |
node | 1429840833 | 5 | |
node | 1470794747 | 2 | |
node | 1472871495 | 2 | |
node | 1478934528 | 2 | |
node | 1485196779 | 2 | |
node | 1487705069 | 2 |
NewerOlder