-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from mapbox/1ec5-precision
Add precision property to Placemark
- Loading branch information
Showing
6 changed files
with
94 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
An indication of a placemark’s precision. | ||
A placemark’s `MBPlacemarkScope` indicates a feature’s size or importance, | ||
whereas its precision indicates how far the reported location may be from the | ||
actual real-world location. | ||
*/ | ||
typedef NSString *MBPlacemarkPrecision NS_TYPED_EXTENSIBLE_ENUM; | ||
|
||
/** | ||
The placemark represents a specific building with a location on the | ||
building’s rooftop or at one of its entrances. | ||
*/ | ||
extern MBPlacemarkPrecision const MBPlacemarkPrecisionBuilding; | ||
|
||
/** | ||
The placemark represents a tract or parcel of land with a location at the | ||
centroid. | ||
*/ | ||
extern MBPlacemarkPrecision const MBPlacemarkPrecisionParcel; | ||
|
||
/** | ||
The placemark represents an address that has been interpolated from an address | ||
range. The actual location is generally somewhere along the same block of the | ||
same street as the placemark’s location. | ||
*/ | ||
extern MBPlacemarkPrecision const MBPlacemarkPrecisionInterpolated; | ||
|
||
/** | ||
The placemark represents a block along a street or an intersection between two | ||
or more streets. | ||
*/ | ||
extern MBPlacemarkPrecision const MBPlacemarkPrecisionIntersection; | ||
|
||
/* | ||
The placemark represents an entire street with a location at its midpoint. | ||
*/ | ||
extern MBPlacemarkPrecision const MBPlacemarkPrecisionStreet; | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#import "MBPlacemarkPrecision.h" | ||
|
||
MBPlacemarkPrecision const MBPlacemarkPrecisionBuilding = @"rooftop"; | ||
MBPlacemarkPrecision const MBPlacemarkPrecisionParcel = @"parcel"; | ||
MBPlacemarkPrecision const MBPlacemarkPrecisionInterpolated = @"interpolated"; | ||
MBPlacemarkPrecision const MBPlacemarkPrecisionIntersection = @"intersection"; | ||
MBPlacemarkPrecision const MBPlacemarkPrecisionStreet = @"street"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters