Platforms to show: All Mac Windows Linux Cross-Platform
Back to CLGeocoderMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You can use this method to cancel a pending request and free up the resources associated with that request. Canceling a pending request causes the completion handler event to be called.
If the request is not pending, because it has already returned or has not yet begun, this method does nothing.
Available in OS X v10.8 and later.
Some examples using this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CLGeocoderMBS.geocodeAddressDictionary(addressDictionary as Dictionary, completionHandler as CLGeocodeCompletionHandlerMBS, tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
addressDictionary: An Address Book dictionary containing information about the address to look up.
completionHandler: A handler object containing the code to execute at the end of the request. This code is called whether the request is successful or unsuccessful.
This method submits the specified location data to the geocoding server asynchronously and returns. Your completion handler block will be executed on the main thread. After initiating a forward-geocoding request, do not attempt to initiate another forward- or reverse-geocoding request.
Available in OS X v10.8 and later.
CLGeocoderMBS.geocodeAddressString(addressString as string, completionHandler as CLGeocodeCompletionHandlerMBS, tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
addressString: A string describing the location you want to look up. For example, you could specify the string "1 Infinite Loop, Cupertino, CA" to locate Apple headquarters.
completionHandler: A handler object containing the code to execute at the end of the request. This code is called whether the request is successful or unsuccessful.
This method submits the specified location data to the geocoding server asynchronously and returns. Your completion handler block will be executed on the main thread. After initiating a forward-geocoding request, do not attempt to initiate another forward- or reverse-geocoding request.
Available in OS X v10.8 and later.
See also:
- geocodeAddressString(addressString as string, region as CLRegionMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as Variant = nil)
- geocodeAddressString(addressString as string, region as CLRegionMBS, preferredLocale as NSLocaleMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as variant = nil)
Some examples using this method:
CLGeocoderMBS.geocodeAddressString(addressString as string, region as CLRegionMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
addressString: A string describing the location you want to look up. For example, you could specify the string "1 Infinite Loop, Cupertino, CA" to locate Apple headquarters.
region: A geographical region to use as a hint when looking up the specified address. Specifying a region lets you prioritize the returned set of results to locations that are close to some specific geographical area, which is typically the user's current location. If nil and the application is authorized for location services, the set of results is prioritized based on the user's approximate location. Invoking this method does not trigger a location services authorization request.
completionHandler: A handler object containing the code to execute at the end of the request. This code is called whether the request is successful or unsuccessful.
This method submits the specified location data to the geocoding server asynchronously and returns. Your completion handler block will be executed on the main thread. After initiating a forward-geocoding request, do not attempt to initiate another forward- or reverse-geocoding request.
Available in OS X v10.8 and later.
See also:
CLGeocoderMBS.geocodeAddressString(addressString as string, region as CLRegionMBS, preferredLocale as NSLocaleMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 17.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
addressString: A string describing the location you want to look up. For example, you could specify the string "1 Infinite Loop, Cupertino, CA" to locate Apple headquarters.
region: A geographical region to use as a hint when looking up the specified address. Specifying a region lets you prioritize the returned set of results to locations that are close to some specific geographical area, which is typically the user's current location. If nil and the application is authorized for location services, the set of results is prioritized based on the user's approximate location. Invoking this method does not trigger a location services authorization request.
completionHandler: A handler object containing the code to execute at the end of the request. This code is called whether the request is successful or unsuccessful.
This method submits the specified location data to the geocoding server asynchronously and returns. Your completion handler block will be executed on the main thread. After initiating a forward-geocoding request, do not attempt to initiate another forward- or reverse-geocoding request.
Available in OS X v10.8 and later.
For macOS 10.13 or newer we can optionally pass preferred locale.
See also:
CLGeocoderMBS.geocodePostalAddress(postalAddress as Variant, completionHandler as CLGeocodeCompletionHandlerMBS, tag as variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 17.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
postalAddress must be a CNPostalAddressMBS.
For macOS 10.13 or newer.
See also:
CLGeocoderMBS.geocodePostalAddress(postalAddress as Variant, preferredLocale as NSLocaleMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 17.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
postalAddress must be a CNPostalAddressMBS.
For macOS 10.13 or newer.
See also:
CLGeocoderMBS.isGeocoding as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This property contains the value true if the process is ongoing or false if the process is done or has not yet been initiated.
Available in OS X v10.8 and later.
Some examples using this method:
CLGeocoderMBS.reverseGeocodeLocation(location as CLLocationMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
location: The location object containing the coordinate data to look up.
completionHandler: The handler object containing the code to execute at the end of the request. This code is called whether the request is successful or unsuccessful.
This method submits the specified location data to the geocoding server asynchronously and returns. Your completion handler block will be executed on the main thread. After initiating a reverse-geocoding request, do not attempt to initiate another reverse- or forward-geocoding request.
Available in OS X v10.8 and later.
See also:
CLGeocoderMBS.reverseGeocodeLocation(location as CLLocationMBS, preferredLocale as NSLocaleMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreLocation | MBS MacFrameworks Plugin | 17.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
location: The location object containing the coordinate data to look up.
completionHandler: The handler object containing the code to execute at the end of the request. This code is called whether the request is successful or unsuccessful.
This method submits the specified location data to the geocoding server asynchronously and returns. Your completion handler block will be executed on the main thread. After initiating a reverse-geocoding request, do not attempt to initiate another reverse- or forward-geocoding request.
Available in OS X v10.8 and later.
For macOS 10.13 or newer we can optionally pass preferred locale.
See also:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.