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

Provide directions options conveniences #27

Open
sarahsnow1 opened this issue Mar 10, 2017 · 0 comments
Open

Provide directions options conveniences #27

sarahsnow1 opened this issue Mar 10, 2017 · 0 comments

Comments

@sarahsnow1
Copy link
Member

sarahsnow1 commented Mar 10, 2017

  • provide an enum for units
  • provide an enum for language
    • add support for 2 and 4 letter language codes
  • create separate method(s) which replace dictionary parameter and use them instead:
- (NSURLSessionDataTask * _Nullable)requestRouteWithLocations:(NSArray<OTRRoutingPoint*>* _Nonnull)locations
                     costingModel:(OTRRoutingCostingModel)costing
                    costingOption:(NSDictionary<NSString*, NSObject*>* _Nullable)costingOptions
                                   units:(OTRRoutingUnits)routingUnits
                            language:(OTRRoutingLanguage)routingLanguage
                         callback:(void (^ _Nonnull)(OTRRoutingResult  * _Nullable result,
                                                     id _Nullable invalidationToken,
                                                     NSError * _Nullable error ))callback;

Available unit and language values documented here:
https://mapzen.com/documentation/mobility/turn-by-turn/api-reference/

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

1 participant