Class IWGeocoderClient

A geocoder client is necessary in order to convert an address into coordinates.

This class is part of the module geocoding.


Constructor Summary
IWGeocoderClient()
            Creates a new geocoder client.
 
Method Summary
 void geocodeAddress(address, maxHits, object)
           Geocodes an address into a coordinate.
 void geocodeAddressString(address, countryCode, maxHits, object)
           Geocode an address.
 void reverseGeocodeByHits(coordinate, hits, object)
           Searchs up to the specified number of addresses for a given coordinate. This is an asynchronous operation which will trigger an onreversegeocode event.
 void reverseGeocodeByRadius(coordinate, radius, object)
           Searchs addresses for a given coordinate within the specified radius. This is an asynchronous operation which will trigger an onreversegeocode event.
 String toString()
           Returns a string representation.
 
Event Summary
 void geocode(event)
           The geocode event is fired when the address is geocoded.

Register an event listener with IWEventManager.addListener(theGeocoderClient, 'ongeocode', yourHandlerMethod(event)); to receive the event.

 void reversegeocode(event)
           The reversegeocode 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.

 
Constructor Detail

IWGeocoderClient

IWGeocoderClient()

Method Detail

geocodeAddress

void geocodeAddress(address, maxHits, object)

geocodeAddressString

void geocodeAddressString(address, countryCode, maxHits, object)

reverseGeocodeByHits

void reverseGeocodeByHits(coordinate, hits, object)

reverseGeocodeByRadius

void reverseGeocodeByRadius(coordinate, radius, object)

toString

String toString()

Event Detail

geocode

void geocode(event)

reversegeocode

void reversegeocode(event)

Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:14 GMT+0100 (MEZ)