MBNNPointDistanceInfo.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBNNPosition;
  4. /**
  5. * Represents the current distance to a road object of type "Point".
  6. * The structure is immutable, to get an updated info you should get a new instance of the info
  7. * via ElectronicHorizonObserver.
  8. */
  9. NS_SWIFT_NAME(PointDistanceInfo)
  10. __attribute__((visibility ("default")))
  11. @interface MBNNPointDistanceInfo : NSObject
  12. // This class provides custom init which should be called
  13. - (nonnull instancetype)init NS_UNAVAILABLE;
  14. // This class provides custom init which should be called
  15. + (nonnull instancetype)new NS_UNAVAILABLE;
  16. - (nonnull instancetype)initWithDistance:(double)distance
  17. position:(nonnull MBNNPosition *)position;
  18. /** distance to point in meters */
  19. @property (nonatomic, readonly) double distance;
  20. /** Position on the road graph with coordinate of the gantry entry point which we report the distance to. */
  21. @property (nonatomic, readonly, nonnull) MBNNPosition *position;
  22. @end