MBNNLocationReferencePoint.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <CoreLocation/CoreLocation.h>
  4. #import <MapboxNavigationNative/MBNNFormOfWay.h>
  5. #import <MapboxNavigationNative/MBNNOpenLRFunctionalRoadClass.h>
  6. /**
  7. * This class represents an encoded OpenLR reference point — coordinate with
  8. * associated characteristics of the road where the point is placed: road
  9. * class, form of way, bearing, etc. All the encoded objects use reference
  10. * points to define precisely how they should be matched.
  11. */
  12. NS_SWIFT_NAME(LocationReferencePoint)
  13. __attribute__((visibility ("default")))
  14. @interface MBNNLocationReferencePoint : NSObject
  15. // This class provides custom init which should be called
  16. - (nonnull instancetype)init NS_UNAVAILABLE;
  17. // This class provides custom init which should be called
  18. + (nonnull instancetype)new NS_UNAVAILABLE;
  19. - (nonnull instancetype)initWithCoord:(CLLocationCoordinate2D)coord
  20. functionalRoadClass:(MBNNOpenLRFunctionalRoadClass)functionalRoadClass
  21. formOfWay:(MBNNFormOfWay)formOfWay
  22. bearing:(int32_t)bearing
  23. lowestFunctionRoadClassToNextPoint:(MBNNOpenLRFunctionalRoadClass)lowestFunctionRoadClassToNextPoint
  24. distanceToNextPoint:(int32_t)distanceToNextPoint;
  25. @property (nonatomic, readonly) CLLocationCoordinate2D coord;
  26. @property (nonatomic, readonly) MBNNOpenLRFunctionalRoadClass functionalRoadClass;
  27. @property (nonatomic, readonly) MBNNFormOfWay formOfWay;
  28. /** Bearing in degrees, lies on [0, 360) */
  29. @property (nonatomic, readonly) int32_t bearing;
  30. @property (nonatomic, readonly) MBNNOpenLRFunctionalRoadClass lowestFunctionRoadClassToNextPoint;
  31. /** Distance to next location point in meters */
  32. @property (nonatomic, readonly) int32_t distanceToNextPoint;
  33. @end