Telogis.GeoBase.GeoCoder.Address |
Represents the physical address returned by reverse geocoding.
Name | Description |
---|---|
getCity () | Gets the name of the city that the GeoCoder.Address is located in. JavaScript function myTestFunction() { var loc = new Telogis.GeoBase.LatLon(33.612914,-117.745395); Telogis.GeoBase.GeoCoder.reverseGeoCode(loc, function (callback) { if (callback) { alert('Found city '+ callback.getCity()); } else { alert('No matching address was found.'); } }, function (error) {alert(error)}); }; String - The address's city, or an empty string if none was available. |
getCountry () | Gets the country that the GeoCoder.Address is located in. JavaScript function myTestFunction() { var loc = new Telogis.GeoBase.LatLon(33.612914,-117.745395); Telogis.GeoBase.GeoCoder.reverseGeoCode(loc, function (callback) { if (callback) { alert('Found country '+ callback.getCountry()); } else { alert('No matching address was found.'); } }, function (error) {alert(error)}); }; String - The country of the address. |
getCounty () | Gets the name of the county of the GeoCoder.Address. JavaScript function myTestFunction() { var loc = new Telogis.GeoBase.LatLon(33.612914,-117.745395); Telogis.GeoBase.GeoCoder.reverseGeoCode(loc, function (callback) { if (callback) { alert('Found county '+ callback.getCounty()); } else { alert('No matching address was found.'); } }, function (error) {alert(error)}); }; String - The address's county, or an empty string if none was available. |
getNumber () | Gets the street number of the GeoCoder.Address. JavaScript function myTestFunction() { var loc = new Telogis.GeoBase.LatLon(33.584444,-117.731874); Telogis.GeoBase.GeoCoder.reverseGeoCode(loc, function (callback) { if (callback) { alert('Found street number '+ callback.getNumber()); } else { alert('No matching address was found.'); } }, function (error) {alert(error)}); }; Number - The address's street number. |
getPostalCode () | Gets the postal (or ZIP) code associated with the GeoCoder.Address. JavaScript function myTestFunction() { var loc = new Telogis.GeoBase.LatLon(33.584444,-117.731874); Telogis.GeoBase.GeoCoder.reverseGeoCode(loc, function (callback) { if (callback) { alert('Found ZIP/postal code '+ callback.getPostalCode()); } else { alert('No matching address was found.'); } }, function (error) {alert(error)}); }; String - The address's postal/ZIP code. |
getRegion () | Gets the name of the largest administrative region in which the GeoCoder.Address is located -- for example, this will be a state in the USA, or a province in the UK. JavaScript function myTestFunction() { var loc = new Telogis.GeoBase.LatLon(33.584444,-117.731874); Telogis.GeoBase.GeoCoder.reverseGeoCode(loc, function (callback) { if (callback) { alert('Found region '+ callback.getRegion()); } else { alert('No matching address was found.'); } }, function (error) {alert(error)}); }; String - The address's region, or an empty string if none was available. |
getStreet () | Gets the name of the street that the GeoCoder.Address is situated upon. If the street has multiple names, the most commonly used will be returned. JavaScript function myTestFunction() { var loc = new Telogis.GeoBase.LatLon(33.584444,-117.731874); Telogis.GeoBase.GeoCoder.reverseGeoCode(loc, function (callback) { if (callback) { alert('Found street '+ callback.getStreet()); } else { alert('No matching address was found.'); } }, function (error) {alert(error)}); }; String - The most common street name of the address. |
toString () | Converts the GeoCoder address to a meaningfully ordered string. JavaScript function myTestFunction() { var loc = new Telogis.GeoBase.LatLon(33.584444,-117.731874); Telogis.GeoBase.GeoCoder.reverseGeoCode(loc, function (callback) { if (callback) { alert('Found address '+ callback.toString()); } else { alert('No matching address was found.'); } }, function (error) {alert(error)}); }; String - A meaningfully ordered string representation of the address. |