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

Travel Mode #4

Open
traleluia opened this issue Apr 20, 2015 · 2 comments
Open

Travel Mode #4

traleluia opened this issue Apr 20, 2015 · 2 comments

Comments

@traleluia
Copy link

Hello, I changed your code to give user option to choose the travel mode. It was a simple change and think it would be interesting to include this in the next update. Congratulations on your code, it freed me of Apple maps.

@jimmyjose-dev
Copy link
Owner

Do you mind submitting a pull request, I will gladly merge to the repo :)

@traleluia
Copy link
Author

I just realized a change in getDirectionsUsingGoogle function:

var path = "http://maps.googleapis.com/maps/api/directions/json?origin=\(origin)&destination=\(destination)&mode=\(travelMode)&language=pt-br&units=metric&alternatives=true&sensor=true"

You can also give the user the option to change the language and unit measures, as I have done. The result was pretty cool, you see.

image2
image1

The only difficulty I'm having is that the points of origin and destination are glued on the map side and I wish they were a little further away. Can you help me with this?

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

No branches or pull requests

2 participants