Skip to content

Leveraging Google Routes API to return polyline - #99

Merged
monicakochofar merged 6 commits into
developfrom
mk-update-line
Oct 4, 2023
Merged

Leveraging Google Routes API to return polyline#99
monicakochofar merged 6 commits into
developfrom
mk-update-line

Conversation

@monicakochofar

Copy link
Copy Markdown
Contributor

Turns out, after deeper research, the existing routes api that we are already using has a feature to return the polyline. Additionally google has freely presented the algorithm to decode this polyline to the public! Therefore there was an open source library available to decode it for us to use.

image

This PR restructures our code (also updated the backend call) to process this polyline

How:

  • renamed some variables to avoid confusion
  • created new app_vue/src/utils/polylineHelper.js file that calls the decoder library
  • updated the goog field mask so that we get an encoded polyline in the response

@BallardRobinett BallardRobinett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is awesome

@monicakochofar
monicakochofar merged commit bf71fd3 into develop Oct 4, 2023
@monicakochofar
monicakochofar deleted the mk-update-line branch October 6, 2023 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants