Skip to content

Commit 55efc8c

Browse files
committed
Renamed and renumbered landmark scope
1 parent bb92ae7 commit 55efc8c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

MapboxGeocoder/MBPlacemarkScope.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ typedef NS_OPTIONS(NSUInteger, MBPlacemarkScope) {
2222
MBPlacemarkScopeNeighborhood = (1 << 7),
2323
/// A physical address, such as to a business or residence.
2424
MBPlacemarkScopeAddress = (1 << 8),
25-
/// A point of interest, such as a business or school.
26-
MBPlacemarkScopePointOfInterest = (1 << 9),
27-
/// Subset of regular points of interest. Landmarks are particularly notable or long-lived features like parks, museums, and places of worship.
28-
MBPlacemarkScopePointOfInterestLandmark = (1 << 10),
29-
25+
26+
/// A particularly notable or long-lived point of interest, such as a park, museum, or place of worship.
27+
MBPlacemarkScopeLandmark = (1 << 91),
28+
/// A point of interest, such as a business or store.
29+
MBPlacemarkScopePointOfInterest = MBPlacemarkScopeLandmark | (1 << 9),
30+
3031
/// All scopes.
3132
MBPlacemarkScopeAll = 0x0ffffUL,
3233
};

MapboxGeocoder/MBPlacemarkScope.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extension PlacemarkScope: CustomStringConvertible {
2727
case "poi":
2828
scope.insert(.PointOfInterest)
2929
case "poi.landmark":
30-
scope.insert(.PointOfInterestLandmark)
30+
scope.insert(.Landmark)
3131
default:
3232
break
3333
}
@@ -64,7 +64,7 @@ extension PlacemarkScope: CustomStringConvertible {
6464
if contains(PlacemarkScope.PointOfInterest) {
6565
descriptions.append("poi")
6666
}
67-
if contains(PlacemarkScope.PointOfInterestLandmark) {
67+
if contains(PlacemarkScope.Landmark) {
6868
descriptions.append("poi.landmark")
6969
}
7070
return descriptions.joinWithSeparator(",")

0 commit comments

Comments
 (0)