// This file is generated and will be overwritten automatically. #import #import #import @class MBNNChargingWaypointMetadata; /** * Waypoint object from Directions API route response. * https://docs.mapbox.com/api/navigation/directions/#waypoint-object */ NS_SWIFT_NAME(Waypoint) __attribute__((visibility ("default"))) @interface MBNNWaypoint : NSObject // This class provides custom init which should be called - (nonnull instancetype)init NS_UNAVAILABLE; // This class provides custom init which should be called + (nonnull instancetype)new NS_UNAVAILABLE; - (nonnull instancetype)initWithName:(nonnull NSString *)name location:(CLLocationCoordinate2D)location distance:(nullable NSNumber *)distance metadata:(nullable MBNNChargingWaypointMetadata *)metadata target:(nullable CLLocation *)target type:(MBNNWaypointType)type; /** * Field name as is from direction's response. * Or corresponding value from a request URI param `waypoint_names` if there is no waypoints in the route response. */ @property (nonatomic, readonly, nonnull, copy) NSString *name; /** Field location as is from direction's response. */ @property (nonatomic, readonly) CLLocationCoordinate2D location; /** Field distance as is from direction's response. */ @property (nonatomic, readonly, nullable) NSNumber *distance; /** Field metadata as is from direction's response. */ @property (nonatomic, readonly, nullable) MBNNChargingWaypointMetadata *metadata; /** Corresponding value from a route request URI param `waypoint_targets`. */ @property (nonatomic, readonly, nullable) CLLocation *target; /** * Type of waypoint. * Silent type calculates based on `via_vaypoints` field, or segment's source of each leg for legacy routes. * EvCharging type calculates based on `metadata` field. */ @property (nonatomic, readonly) MBNNWaypointType type; - (BOOL)isEqualToWaypoint:(nonnull MBNNWaypoint *)other; @end