MBNNRoadObject.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxNavigationNative/MBNNRoadObjectProvider.h>
  4. #import <MapboxNavigationNative/MBNNRoadObjectType.h>
  5. @class MBNNMatchedRoadObjectLocation;
  6. @class MBNNRoadObjectMetadata;
  7. NS_SWIFT_NAME(RoadObject)
  8. __attribute__((visibility ("default")))
  9. @interface MBNNRoadObject : NSObject
  10. // This class provides custom init which should be called
  11. - (nonnull instancetype)init NS_UNAVAILABLE;
  12. // This class provides custom init which should be called
  13. + (nonnull instancetype)new NS_UNAVAILABLE;
  14. - (nonnull instancetype)initWithId:(nonnull NSString *)id
  15. length:(nullable NSNumber *)length
  16. location:(nonnull MBNNMatchedRoadObjectLocation *)location
  17. type:(MBNNRoadObjectType)type
  18. provider:(MBNNRoadObjectProvider)provider
  19. metadata:(nonnull MBNNRoadObjectMetadata *)metadata
  20. isUrban:(nullable NSNumber *)isUrban;
  21. /** road object id */
  22. @property (nonatomic, readonly, nonnull, copy) NSString *id;
  23. /** length in meters if it can be determined */
  24. @property (nonatomic, readonly, nullable) NSNumber *length;
  25. /** location of road object */
  26. @property (nonatomic, readonly, nonnull) MBNNMatchedRoadObjectLocation *location;
  27. /** type of road object */
  28. @property (nonatomic, readonly) MBNNRoadObjectType type;
  29. /** provider of road object */
  30. @property (nonatomic, readonly) MBNNRoadObjectProvider provider;
  31. /** road object metadata */
  32. @property (nonatomic, readonly, nonnull) MBNNRoadObjectMetadata *metadata;
  33. /** Is object is in urban area */
  34. @property (nonatomic, readonly, nullable) NSNumber *isUrban;
  35. @end