Contains classes, protocols, and enumerations for describing and calculating routes. More...
#import <SYRouting.h>
Instance Methods | |
(void) | - computeRouteFromJson: |
Method will compute route from json string obtained from [SYRouteQuickInfo serialize]. More... | |
(void) | - computeRouteForRequest: |
This method will compute full SYRoute. More... | |
(void) | - computeRoute:to:via:withOptions: |
This method will compute full SYRoute. More... | |
(void) | - computeGuidedRouteWithPolyline:options: |
This method will recreate route from dense set of GPS points. More... | |
(void) | - cancelComputing |
Cancel current computing request. More... | |
(void) | - computeNextTimes:in: |
Method will compute route durations in specified day time based on speed profiles and current traffic. More... | |
(void) | - computeEVRoute:to:via:withOptions:withEVProfile: |
This method will compute full EV SYRoute. Computed route could contain additional SYChargingWaypoint-s. More... | |
(void) | - computeEVRouteFrom:to:via:options:profile:preferences: |
This method will compute full EV SYRoute. Computed route could contain additional SYChargingWaypoint-s. More... | |
(void) | - computeEVRangeFromPosition:withCapacities:withOptions:withEVProfile:withCompletion: |
This method will compute routes in all directions from the position, and returns a polygon of where you can go with your battery capacity. You can get multiple polygons for different capacities in one call. More... | |
(nullable NSArray< SYChargingWaypoint * > *) | - chargingStationsFromRoute: |
(double) | - getRemainingBatteryCapacityAtWaypoint:profile:route: |
(void) | - computeAETRRoute:to:via:withOptions:withAETRProfile: |
This method will compute a SYRoute which fulfills AETR requirements for regular rest. Computed route may contain additional waypoints for rest. More... | |
Properties | |
id< SYRoutingDelegate > | delegate |
Delegate for for notification about route compute progress or state. More... | |
Contains classes, protocols, and enumerations for describing and calculating routes.
- (void) computeRouteFromJson: | (nonnull NSString *) | json |
Method will compute route from json string obtained from [SYRouteQuickInfo serialize].
json | NSString object representation. |
- (void) computeRouteForRequest: | (nonnull SYRouteRequest *) | request |
This method will compute full SYRoute.
request | Route request |
- (void) computeRoute: | (nonnull SYWaypoint *) | from | |
to: | (nonnull SYWaypoint *) | to | |
via: | (nullable NSArray< SYWaypoint * > *) | waypoints | |
withOptions: | ("Use computeRouteForRequest instead") | __deprecated_msg | |
This method will compute full SYRoute.
from | Start point |
to | Destination |
waypoints | Waypoints between start and destination |
options | SYRoutingOptions if needed |
- (void) computeGuidedRouteWithPolyline: | (nonnull NSArray< SYGeoCoordinate * > *) | polyline | |
options: | ("Use computeRouteForRequest instead") | __deprecated_msg | |
This method will recreate route from dense set of GPS points.
polyline | Guided route GPS points |
options | SYRoutingOptions if needed |
- (void) cancelComputing |
Cancel current computing request.
- (void) computeNextTimes: | (nonnull SYRoute *) | route | |
in: | (nonnull NSArray< NSDate * > *) | times | |
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. |
- (void) computeEVRoute: | (nonnull SYWaypoint *) | from | |
to: | (nonnull SYWaypoint *) | to | |
via: | (nullable NSArray< SYWaypoint * > *) | waypoints | |
withOptions: | (nullable SYRoutingOptions *) | options | |
withEVProfile: | ("Use computeRouteForRequest instead") | __deprecated_msg | |
This method will compute full EV SYRoute. Computed route could contain additional SYChargingWaypoint-s.
from | Start point |
to | Destination |
waypoints | Waypoints between start and destination |
options | SYRoutingOptions if needed |
profile | electric car profile |
- (void) computeEVRouteFrom: | (nonnull SYWaypoint *) | from | |
to: | (nonnull SYWaypoint *) | to | |
via: | (nullable NSArray< SYWaypoint * > *) | waypoints | |
options: | (nullable SYRoutingOptions *) | options | |
profile: | (nonnull SYEVProfile *) | profile | |
preferences: | ("Use computeRouteForRequest instead") | __deprecated_msg | |
This method will compute full EV SYRoute. Computed route could contain additional SYChargingWaypoint-s.
from | Start point |
to | Destination |
waypoints | Waypoints between start and destination |
options | SYRoutingOptions if needed |
profile | electric car profile |
preferences |
- (void) computeEVRangeFromPosition: | (nonnull SYGeoCoordinate *) | position | |
withCapacities: | (nonnull NSArray< NSNumber * > *) | capacities | |
withOptions: | (nullable SYRoutingOptions *) | options | |
withEVProfile: | (nonnull SYEVProfile *) | profile | |
withCompletion: | (nonnull void(^)(NSArray< NSArray< SYGeoCoordinate * > * > *_Nullable polygons, NSNumber *_Nullable error)) | completion | |
This method will compute routes in all directions from the position, and returns a polygon of 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, NSNumber is error value SYRoutingError in case of error, otherwise nil |
- (nullable NSArray<SYChargingWaypoint*>*) chargingStationsFromRoute: | (nonnull SYRoute *) | route |
route | ev 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 | ev route |
- (void) computeAETRRoute: | (nonnull SYWaypoint *) | from | |
to: | (nonnull SYWaypoint *) | to | |
via: | (nullable NSArray< SYWaypoint * > *) | waypoints | |
withOptions: | (nullable SYRoutingOptions *) | options | |
withAETRProfile: | ("Use computeRouteForRequest instead") | __deprecated_msg | |
This method will compute a SYRoute which fulfills AETR requirements for regular rest. Computed route may contain additional waypoints for rest.
from | Start point |
to | Destination |
waypoints | Waypoints between start and destination |
options | SYRoutingOptions if needed |
profile | AETR profile, current state and settings |
|
readwritenonatomicweak |
Delegate for for notification about route compute progress or state.