Skip to content

Commit 9aad731

Browse files
committed
Merge pull request #31 from mapbox/1ec5-forward-scopes
Filter by scope
2 parents c04fdde + 2cf64aa commit 9aad731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MapboxGeocoder/MBGeocoder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public class MBGeocoder: NSObject {
4747
// public func geocodeAddressDictionary(addressDictionary: [NSObject : AnyObject],
4848
// completionHandler: MBGeocodeCompletionHandler)
4949

50-
public func geocodeAddressString(addressString: String, nearLocation focusLocation: CLLocation? = nil, inCountries ISOCountryCodes: [String]? = nil, completionHandler: MBGeocodeCompletionHandler) {
50+
public func geocodeAddressString(addressString: String, withAllowedScopes scopes: [MBPlacemark.Scope]? = nil, nearLocation focusLocation: CLLocation? = nil, inCountries ISOCountryCodes: [String]? = nil, completionHandler: MBGeocodeCompletionHandler) {
5151
guard !geocoding else {
5252
completionHandler(nil, errorForSimultaneousRequests)
5353
return
5454
}
5555

56-
let router = MBGeocoderRouter.V5(configuration, false, addressString, ISOCountryCodes, focusLocation?.coordinate, nil, nil)
56+
let router = MBGeocoderRouter.V5(configuration, false, addressString, ISOCountryCodes, focusLocation?.coordinate, scopes, nil)
5757
task = taskWithRouter(router, completionHandler: completionHandler)
5858
}
5959

0 commit comments

Comments
 (0)