Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leveraging Google Routes API to return polyline #99

Merged
merged 6 commits into from
Oct 4, 2023

Conversation

monicakochofar
Copy link
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

Copy link
Collaborator

@BallardRobinett BallardRobinett left a comment

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
1 check passed
@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