MBNNPolygonDistanceInfo.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBNNGate;
  4. /**
  5. * Represents the current distance to a road object of type "Polygon".
  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(PolygonDistanceInfo)
  10. __attribute__((visibility ("default")))
  11. @interface MBNNPolygonDistanceInfo : 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)initWithInside:(BOOL)inside
  17. entrances:(nonnull NSArray<MBNNGate *> *)entrances
  18. exits:(nonnull NSArray<MBNNGate *> *)exits;
  19. /** `true` if position is inside polygon, `false` otherwise */
  20. @property (nonatomic, readonly, getter=isInside) BOOL inside;
  21. /**
  22. * Distances to particular entrances, sorted by distance value. Might be
  23. * empty in the case when the polygon is very large and no entry could be
  24. * detected using most likely path. Currently for all entrances id field is
  25. * set to 0.
  26. */
  27. @property (nonatomic, readonly, nonnull, copy) NSArray<MBNNGate *> *entrances;
  28. /**
  29. * Distances to particular exits, sorted by distance value. Might be empty
  30. * in the case when the polygon is very large and no exit could be detected
  31. * using most probable path. Currently for all exits id field is set to 0.
  32. */
  33. @property (nonatomic, readonly, nonnull, copy) NSArray<MBNNGate *> *exits;
  34. @end