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

Show routes info and instructions with the preferred unit-system #78

Conversation

thanosbellos
Copy link
Contributor

Upon successfull response, the routes info and instruction can now show
the distances with either metric or imperial units.We can do so by
setting an option on L.mapbox.directions().

-We can choose metric system setting option unit on directions creation
-Usage example :

    directions = L.mapbox.directions({units: 'metric'});

//if we do not set it or if we misspell it , imperial (miles) system will be used

-If we not specify units or if we misspell it, imperial system will be
used by default

Upon successfull response, the routes info and instruction can now show
the distances with either metric or imperial units.We can do so by
setting an option on L.mapbox.directions().

-We can choose metric system setting option unit on directions creation
-Usage example :  L.mapbox.directions({units:'metric'});
-If we not specify units or if we misspell it, imperial system will be
used by default
@thanosbellos thanosbellos mentioned this pull request Jun 13, 2015
@jfirebaugh
Copy link
Contributor

Thanks! Committed as a99abf2.

@jfirebaugh jfirebaugh closed this Jun 13, 2015
@thanosbellos thanosbellos deleted the pull-rq/route-info-instuctions-using-metric-system branch June 13, 2015 21:46
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