CMGeocoder

public class CMGeocoder

The Geocoder service encapsulates reverse geocoding queries to cercalia API.

The 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:


 CMGeocoder.getInstance().reverseGeocoding.getFromLocation(latLng: latLng, delegate: self); 
 

Copyright © 2017 Nexusgeographics All rights reserved.

  • Gets instance.

    Declaration

    Swift

    public static func getInstance() -> CMGeocoder

    Return Value

    the instance

  • Main method to resolve reverse geocoding with Cercalia.

    Declaration

    Swift

    public func getFromLocation(latLng: CMLatLng, delegate: CMReverseGeocodingDelegate)

    Parameters

    latLng

    coordinates of the location

    delegate

    the delegate to treat the response