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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interface
Geocoding.GeocodingCallback
geocoding callback.
-
Constructor Summary
Constructors Constructor and Description Geocoding()
The default constructor for constructing a newGeocoding
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
geocoding(GeocodingParameter parameter)
Forward geocoding.void
reverseGeocoding(Point2D point2D)
Reverse geocoding.boolean
setGeocodingCallback(Geocoding.GeocodingCallback callback)
Set geocoding callback.void
setKey(java.lang.String key)
Set the authorization code.
-
-
-
Constructor Detail
-
Geocoding
public Geocoding()
The default constructor for constructing a newGeocoding
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.
-
-