tasks
import_new_meshes(self)
¶
Look for new meshes and insert them into the database.
optimise_route(self, route_id, backup_mesh_ids=None)
¶
Use PolarRoute to calculate optimal route from Route database object and mesh. Saves Route in database and returns route geojson as dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
route_id
|
int
|
id of record in Route database table |
required |
backup_mesh_ids list
|
list of database ids of backup meshes to try in order of priority |
required |
Returns:
| Type | Description |
|---|---|
dict
|
route geojson as dictionary |