|
@@ -35,7 +35,7 @@ class CircuitListGeoJsonView(View):
|
|
|
d = dict()
|
|
|
d["type"] = "Feature"
|
|
|
d["geometry"] = {
|
|
|
- "coordinates": [[term.site.facility.latitude, term.site.facility.longitude] for term in terminations],
|
|
|
+ "coordinates": [[term.site.facility.longitude, term.site.facility.latitude] for term in terminations],
|
|
|
"elevation": [0, 0],
|
|
|
"type": "LineString",
|
|
|
}
|
|
@@ -69,7 +69,7 @@ class CircuitListGeoJsonView(View):
|
|
|
return True
|
|
|
# Convert circuits to geoJSON
|
|
|
g = [gen_geojson(c) for c in circuits.all() if keep_circuit(c)]
|
|
|
- return JsonResponse({"features": g})
|
|
|
+ return JsonResponse({"type": "FeatureCollection", "features": g})
|
|
|
|
|
|
#
|
|
|
# Providers
|