13 lines
329 B
Python
13 lines
329 B
Python
from app import create_app
|
|
app = create_app()
|
|
def swap_latlon(coords):
|
|
return [
|
|
[ # Polygon
|
|
[ # Ring
|
|
[lon, lat] for lat, lon in ring
|
|
] for ring in polygon
|
|
] for polygon in coords
|
|
]
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug=True, host="0.0.0.0", port=5000) |