SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A geocoder client is necessary in order to convert an address into coordinates.
Author: JANConstructor Summary | |
IWGeocoderClient()
Creates a new geocoder client. |
Method Summary | |
void
|
geocodeAddress(address, maximumHits, object)
Geocodes an address into a coordinate. |
void
|
geocodeAddressString(address, countryCode, maximumHits, object)
Geocode an address. |
void
|
reverseGeocodeByHits(coordinate, hits, object)
Searchs addresses for a given coordinate within the specified radius. |
void
|
reverseGeocodeByRadius(coordinate, radius, object)
Searchs addresses for a given coordinate within the specified radius. |
String
|
toString()
Returns a string representation of this geocoder client. |
Event Summary | |
void
|
triggerOnGeocode(event)
The onGeocode event is fired when the address is geocoded. Register an event listener with IWEventManager.addListener(theGeocoderClient, 'ongeocode', yourHandlerMethod(event)); to receive the event. |
void
|
triggerOnReverseGeocode(event)
The onReverseGeocode event is fired when the coordinate is matched to addresses. Register an event listener with IWEventManager.addListener(theRouterClient, 'onreversegeocode', yourHandlerMethod(event)); to receive the event. |
Methods inherited from class AGeocoderClient |
getGeocoderType() |
getLogger() |
Constructor Detail |
IWGeocoderClient()
Method Detail |
void geocodeAddress(address, maximumHits, object)
IWAddress address
- an address
int maximumHits
- maximum number of returned addresses (optional)
Object object
- reserved for a user defined object (optional)
void
void geocodeAddressString(address, countryCode, maximumHits, object)
String address
- a String
String countryCode
- a String
int maximumHits
- maximum number of returned addresses (optional)
Object object
- reserved for a user defined object (optional)
void
void reverseGeocodeByHits(coordinate, hits, object)
IWCoordinate coordinate
- the search coordinate
Number hits
- the number of addresses to return
Object object
- reserved for a user defined object (optional)
void
void reverseGeocodeByRadius(coordinate, radius, object)
IWCoordinate coordinate
- the search coordinate
Number radius
- search radius in meter (max. 10 km).
Object object
- reserved for a user defined object (optional)
void
String toString()
String
Event Detail |
void triggerOnGeocode(event)
Register an event listener with IWEventManager.addListener(theGeocoderClient, 'ongeocode', yourHandlerMethod(event)); to receive the event.
IWGeocodingEvent event
- the geocoding event
void
void triggerOnReverseGeocode(event)
Register an event listener with IWEventManager.addListener(theRouterClient, 'onreversegeocode', yourHandlerMethod(event)); to receive the event.
IWReverseGeocodingEvent event
- the reverse geocoding event
void