Skip to content

Commit

Permalink
[#223] Add in type for valid geojson output from route planner
Browse files Browse the repository at this point in the history
  • Loading branch information
gecoombs committed Aug 21, 2023
1 parent 8a42776 commit 1620bfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polar_route/route_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,8 @@ def compute_smoothed_routes(self,blocked_metric='SIC',debugging=False):
SmoothedPath['properties']['distance'] = list(DistanceLegs)
SmoothedPath['properties']['speed'] = list(SpeedLegs)
SmoothedPaths += [SmoothedPath]


geojson['type'] = "FeatureCollection"
geojson['features'] = SmoothedPaths
self.smoothed_paths = geojson
self.mesh['paths'] = self.smoothed_paths

0 comments on commit 1620bfd

Please sign in to comment.