Contains classes, protocols, and enumerations for describing and calculating routes. More...
#import <SYRouting.h>
Instance Methods | |
((unavailable("Use static methods without creating and instance.") | - __attribute__ |
Class Methods | |
(nonnull SYTask *) | + computeRouteFromJson:progress:completion: |
Method will compute route from json string obtained from [SYRouteQuickInfo serialize]. More... | |
(nonnull SYTask *) | + computeRouteForRequest:withAlternatives:completion: |
This method will compute primary route with some optional alternatives. More... | |
(nonnull SYTask *) | + computeRouteDurationsForRoute:timesOfStart:completion: |
Method will compute route durations in specified day time based on speed profiles and current traffic. More... | |
(nonnull SYTask *) | + computeEVRangeFromPosition:capacities:options:evProfile:completion: |
This method will compute routes in all directions from the position, and returns a polygon of area where you can go with your battery capacity. You can get multiple polygons for different capacities in one call. More... | |
(void) | + cancelComputing |
Cancel all computing tasks. More... | |
(nullable NSArray< SYChargingWaypoint * > *) | + chargingStationsFromRoute: |
(double) | + getRemainingBatteryCapacityAtWaypoint:profile:route: |
((unavailable("Use static methods without creating and instance.") | + __attribute__ |
Contains classes, protocols, and enumerations for describing and calculating routes.
+ (nonnull SYTask*) computeRouteFromJson: | (nonnull NSString *) | json | |
progress: | (nullable void(^)(float progress)) | progress | |
completion: | (nonnull void(^)(SYRoute *_Nullable route, SYRoutingResult status)) | completion | |
Method will compute route from json string obtained from [SYRouteQuickInfo serialize].
json | NSString object representation. |
progress | of compute 0-1 |
completion | final call with all computed route |
+ (nonnull SYTask*) computeRouteForRequest: | (nonnull SYPrimaryRequest *) | primary | |
withAlternatives: | (nullable NSArray< SYAlternativeRequest * > *) | alternatives | |
completion: | (computeRoute(_:alternatives:completion:)) | NS_SWIFT_NAME | |
This method will compute primary route with some optional alternatives.
primary | SYPrimaryRequest request for primary route compute. |
alternatives | optional array of SYRoutingAlternativeType. SYRoutingAlternativeTypeAvoid may be listed multiple times. |
completion | final call with primary route and all computed alternatives |
+ (nonnull SYTask*) computeRouteDurationsForRoute: | (nonnull SYRoute *) | route | |
timesOfStart: | (nonnull NSArray< NSDate * > *) | times | |
completion: | (nonnull RouteDurationsFinishedBlock) | completion | |
Method will compute route durations in specified day time based on speed profiles and current traffic.
route | Route to compute durations on. |
times | Array of times. |
completion | durations array of durations in NSTimeInterval. |
+ (nonnull SYTask*) computeEVRangeFromPosition: | (nonnull SYGeoCoordinate *) | position | |
capacities: | (nonnull NSArray< NSNumber * > *) | capacities | |
options: | (nullable SYRoutingOptions *) | options | |
evProfile: | (nonnull SYEVProfile *) | profile | |
completion: | (nonnull EVRangeFinishedBlock) | completion | |
This method will compute routes in all directions from the position, and returns a polygon of area where you can go with your battery capacity. You can get multiple polygons for different capacities in one call.
position | Geographical position from which calculation starts |
capacities | List of battery capacities in kWh as start values for the computation |
options | SYRoutingOptions if needed |
profile | electric car profile |
completion | callback to recieve polygons, SYRoutingResult with status |
+ (void) cancelComputing |
Cancel all computing tasks.
+ (nullable NSArray<SYChargingWaypoint*>*) chargingStationsFromRoute: | (nonnull SYRoute *) | route |
route | Electric vehicle route from which to extract stations |
+ (double) getRemainingBatteryCapacityAtWaypoint: | (nonnull SYWaypoint *) | waypoint | |
profile: | (nonnull SYEVProfile *) | profile | |
route: | (nonnull SYRoute *) | route | |
waypoint | on route |
profile | starting battery profile |
route | electric vehicle route |
- ((unavailable("Use static methods without creating and instance.") __attribute__ |
+ ((unavailable("Use static methods without creating and instance.") __attribute__ |