CMSuggestGeocoding
public class CMSuggestGeocoding
The Suggest Geocoding service encapsulates suggestGeocoding queries to cercalia API.
The Suggest Geocoder works with an APIKEY. Use the following call to configure it:
{CMCercalia.instance.apiKey = API_KEY}
Resolution of the queries is done asyncronously, so a delegate must be defined
CMSuggestGeocoding.getInstance().geocoding(address, delegate: self);
Copyright © 2017 Nexusgeographics All rights reserved.
-
Gets instance.
Declaration
Swift
public static func getInstance() -> CMSuggestGeocoding
Return Value
the instance
-
Geocoding.
Declaration
Swift
public func geocoding(cityCode:String?, streetCode:String?, houseNumber:String?, delegate: CMSuggestGeocodingDelegate)
Parameters
cityCode
the city code
streetCode
the street code
houseNumber
the house number
delegate
the delegate
-
Geocoding.
Declaration
Swift
public func geocoding(address: CMAddress, delegate: CMSuggestGeocodingDelegate)
Parameters
address
the address
delegate
the delegate