-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.py
More file actions
28 lines (21 loc) · 697 Bytes
/
map.py
File metadata and controls
28 lines (21 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
from flask import Flask, render_template
app = Flask(__name__)
app.config['API_KEY'] = os.environ.get('API_KEY', False)
@app.route('/')
def map():
zoom = 6
latitudes = list(drange(-80, 80, 13.25))
latitudes.reverse()
latitudes = [67.875, 62.25, 55.35, 47.025, 37.16, 25.79, 13.25, 0, -13.25, -25.79, -37.16, -47.025, -55.35, -62.25, -67.875]
#latitudes = [67.875, 62.25]
longitudes = list(drange(-173, 180, 14))
#longitudes = [163, 177]
return render_template('map.html', latitudes=latitudes, longitudes=longitudes, zoom=zoom)
def drange(start, stop, step):
r = start
while (r < stop):
yield r
r += step
if __name__ == '__main__':
app.run(debug=True)