Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ototype into 186123335-google-sheet-clean-up
  • Loading branch information
YaokunLin committed Oct 4, 2023
2 parents 4ce2ff2 + bf71fd3 commit bd374cf
Show file tree
Hide file tree
Showing 11 changed files with 2,493 additions and 7,659 deletions.
4 changes: 2 additions & 2 deletions api/google_routes_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def get_optimized_routes_payload(selectedRouteList, originAddress, destinationAd
]

if to_optimize:
GOOG_FIELD_MASK = 'routes.duration,routes.distanceMeters,routes.optimizedIntermediateWaypointIndex'
GOOG_FIELD_MASK = 'routes.duration,routes.distanceMeters,routes.optimizedIntermediateWaypointIndex,routes.polyline'
optimizeWaypointOrder = True
else:
GOOG_FIELD_MASK = 'routes.duration,routes.distanceMeters'
GOOG_FIELD_MASK = 'routes.duration,routes.distanceMeters,routes.polyline'
optimizeWaypointOrder = False

return {
Expand Down
1 change: 1 addition & 0 deletions app_vue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Ensure you have followed the README file located here: api/README.md
### Google Maps Routes API
- this is used to calculate the optimal order of bins to visit
- note that if it returns empty object {} it is likely that your request is passing incorrect lat/long or location data
- we are also using it to return an encoded polyline

### JEST
- We are using Jest and specifically the `@vue/test-utils` version of it (more info [here](https://test-utils.vuejs.org/))
Expand Down
Loading

0 comments on commit bd374cf

Please sign in to comment.