com.supermap.onlineservices

Class Geocoding

  • java.lang.Object
    • com.supermap.onlineservices.Geocoding


  • public class Geocoding
    extends java.lang.Object
    Geocording class, mainly to provide forward, reverse geocoding interface.
    • Constructor Detail

      • Geocoding

        public Geocoding()
        The default constructor for constructing a new Geocoding object.
    • Method Detail

      • setKey

        public void setKey(java.lang.String key)
        Set the authorization code.
        Parameters:
        key - Authorization code.
      • geocoding

        public void geocoding(GeocodingParameter parameter)
        Forward geocoding.
        Parameters:
        parameter - The parameter of geocoding.
      • reverseGeocoding

        public void reverseGeocoding(Point2D point2D)
        Reverse geocoding.
        Parameters:
        point2D - Reverse geocoding point.
      • setGeocodingCallback

        public boolean setGeocodingCallback(Geocoding.GeocodingCallback callback)
        Set geocoding callback.
        Parameters:
        callback - Geocoding callback.
        Returns:
        A boolean. If setting successful return true; otherwise return false.