Skip to content

Commit 7e6f401

Browse files
committed
clean up comments
1 parent 369043d commit 7e6f401

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

python-verso-routing/main.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
import requests
55
from visuals import create_visuals
66

7-
# from visuals import create_visuals
8-
97
# Read the input from stdin.
10-
input = nextmv.load_local()
8+
input = nextmv.load()
119

1210
options = nextmv.Options(
1311
nextmv.Parameter(
@@ -20,6 +18,7 @@
2018
vroom_api_url = f"https://api.verso-optim.com/vrp/v1/solve?api_key={VROOM_API_KEY}"
2119
headers = {"Content-Type": "application/json"}
2220

21+
# Call VROOM API to solve the problem
2322
try:
2423
response = requests.post(vroom_api_url, headers=headers, json=input.data)
2524
response.raise_for_status()
@@ -31,15 +30,12 @@
3130

3231
solution = vroom_result if vroom_result else None
3332

34-
#######
35-
33+
# Create visuals with geojson for each route
3634
assets = create_visuals(solution)
3735

38-
# pull summary of solution into statistics
36+
# Pull summary of solution into Nextmvstatistics
3937
summary = solution.get("summary", {})
4038

41-
# extract polylines and convert to geojson so we can view the map
42-
4339
# Write output and statistics.
4440
output = nextmv.Output(
4541
solution=solution,

0 commit comments

Comments
 (0)