MBNNSpeedLimitRestriction.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxNavigationNative/MBNNVehicleType.h>
  4. #import <MapboxNavigationNative/MBNNWeather.h>
  5. NS_SWIFT_NAME(SpeedLimitRestriction)
  6. __attribute__((visibility ("default")))
  7. @interface MBNNSpeedLimitRestriction : NSObject
  8. // This class provides custom init which should be called
  9. - (nonnull instancetype)init NS_UNAVAILABLE;
  10. // This class provides custom init which should be called
  11. + (nonnull instancetype)new NS_UNAVAILABLE;
  12. - (nonnull instancetype)initWithWeather:(nonnull NSArray<NSNumber *> *)weather
  13. dateTimeCondition:(nonnull NSString *)dateTimeCondition
  14. vehicleTypes:(nonnull NSArray<NSNumber *> *)vehicleTypes
  15. lanes:(nonnull NSArray<NSNumber *> *)lanes;
  16. /** Weather conditions where the speed limit is applied. Empty means all. */
  17. @property (nonatomic, readonly, nonnull, copy) NSArray<NSNumber *> *weather;
  18. /** OSM openning_hours format, see https://wiki.openstreetmap.org/wiki/Key:opening_hours */
  19. @property (nonatomic, readonly, nonnull, copy) NSString *dateTimeCondition;
  20. /** A list of types of vehicles for that the speed limit is included. Empty means all */
  21. @property (nonatomic, readonly, nonnull, copy) NSArray<NSNumber *> *vehicleTypes;
  22. /** Lane numbers where the speed limit is valid. Empty array means all lanes */
  23. @property (nonatomic, readonly, nonnull, copy) NSArray<NSNumber *> *lanes;
  24. - (BOOL)isEqualToSpeedLimitRestriction:(nonnull MBNNSpeedLimitRestriction *)other;
  25. @end