Skip to content

Commit fc2364f

Browse files
authored
Merge pull request #81 from mapbox/landmarkdown
fixes #78: add poi.landmark
2 parents 042bf7d + 95067e4 commit fc2364f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

MapboxGeocoder/MBPlacemarkScope.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ 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, school, or landmark.
25+
/// A point of interest, such as a business or school.
2626
MBPlacemarkScopePointOfInterest = (1 << 9),
27-
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+
2830
/// All scopes.
2931
MBPlacemarkScopeAll = 0x0ffffUL,
3032
};

MapboxGeocoder/MBPlacemarkScope.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ extension PlacemarkScope: CustomStringConvertible {
2626
scope.insert(.Address)
2727
case "poi":
2828
scope.insert(.PointOfInterest)
29+
case "poi.landmark":
30+
scope.insert(.PointOfInterestLandmark)
2931
default:
3032
break
3133
}
@@ -62,6 +64,9 @@ extension PlacemarkScope: CustomStringConvertible {
6264
if contains(PlacemarkScope.PointOfInterest) {
6365
descriptions.append("poi")
6466
}
67+
if contains(PlacemarkScope.PointOfInterestLandmark) {
68+
descriptions.append("poi.landmark")
69+
}
6570
return descriptions.joinWithSeparator(",")
6671
}
6772
}

0 commit comments

Comments
 (0)