MBNNLineLocationReference.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBNNLocationReferencePoint;
  4. NS_SWIFT_NAME(LineLocationReference)
  5. __attribute__((visibility ("default")))
  6. @interface MBNNLineLocationReference : NSObject
  7. // This class provides custom init which should be called
  8. - (nonnull instancetype)init NS_UNAVAILABLE;
  9. // This class provides custom init which should be called
  10. + (nonnull instancetype)new NS_UNAVAILABLE;
  11. - (nonnull instancetype)initWithPoints:(nonnull NSArray<MBNNLocationReferencePoint *> *)points
  12. positiveOffset:(double)positiveOffset
  13. negativeOffset:(double)negativeOffset;
  14. /**
  15. * Array of reference points. Be careful, reference points are not encoded
  16. * geometry points, especially if positive are negative offsets are not
  17. * zero. The correct way of using them — build a path on a road graph,
  18. * calculate its length, then cut the offsets.
  19. */
  20. @property (nonatomic, readonly, nonnull, copy) NSArray<MBNNLocationReferencePoint *> *points;
  21. /**
  22. * Fraction of the length between the two first location reference points
  23. * which should be excluded since the beginning. Lies on [0, 1)
  24. */
  25. @property (nonatomic, readonly) double positiveOffset;
  26. /**
  27. * Fraction of the length between the two last location reference points
  28. * which should be excluded from the end. Lies on [0, 1)
  29. */
  30. @property (nonatomic, readonly) double negativeOffset;
  31. @end