Telogis.GeoBase.GeoCoder.GeoCodeFull |
A composite object that represents the result of a reverse geocoding call.
Name | Description |
---|---|
getAddress () | Gets the GeoCoder.Address contained in the GeoCoder.GeoCodeFull information. This is returned by reference, so changes to the object returned by this function will result in changes to the address record of the GeoCoder.GeoCodeFull object. JavaScript var s_loc = new Telogis.GeoBase.LatLon(33.584444,-117.731874); function myTestFunction() { Telogis.GeoBase.GeoCoder.reverseGeoCodeFull (s_loc, function (callback) { // Callback function begins if (callback) { alert ('Found address ' + callback.getAddress()); } else { alert ('No address found at ' + s_loc); } }, function (error) {alert(error)}); }; GeoCoder.Address - The address of the GeoCoder.GeoCodeFull result. |
getCrossStreet () | Gets the nearest cross-street to the GeoCoder.GeoCodeFull result. JavaScript var s_loc = new Telogis.GeoBase.LatLon(33.585532,-117.734311); function myTestFunction() { Telogis.GeoBase.GeoCoder.reverseGeoCodeFull(s_loc, function (rgcResult) { if (rgcResult) { var cs = rgcResult.getCrossStreet(); if (!cs) { cs = '(no cross streets found at this location)'; } alert ('Cross street: ' + cs); } else { alert ('Cannot reverse geocode location at ' + s_loc); } }, function (error) {alert(error)}); }; Street - Information about the nearest cross-street. |
getCrossStreetIntersection () | Gets the nearest cross-street intersection to the GeoCoder.GeoCodeFull result. JavaScript var s_loc = new Telogis.GeoBase.LatLon(33.585532,-117.734311); function myTestFunction() { Telogis.GeoBase.GeoCoder.reverseGeoCodeFull(s_loc, function (callback) { // Callback function begins if (callback) { var intersection = callback.getCrossStreetIntersection(); if (!intersection) { intersection = '(no intersection found at this location)'; } alert ('Intersection: ' + intersection); } else { alert ('Cannot reverse geocode location at ' + s_loc); } }, function (error) {alert(error)}); }; LatLon - Location of the nearest cross-street intersection. |
getIntersection () | Gets the location on the RemoteStreetLink that is closest to the GeoCoder.GeoCodeFull result (i.e. the link returned by GeoCoder.GeoCodeFull.getStreetLink). JavaScript var s_loc = new Telogis.GeoBase.LatLon(33.585532,-117.734311); function myTestFunction() { Telogis.GeoBase.GeoCoder.reverseGeoCodeFull (s_loc, function (callback) { // Callback function begins if (callback) { alert ('Closest intersection to this query point: ' + callback.getIntersection()); } else { alert ('No address found at ' + s_loc); } }, function (error) {alert(error)}); }; LatLon - The coordinates of the street-link point nearest to the geocoder result. |
getStreetLink () | Finds the RemoteStreetLink representing the street-link closest to the geocoded point. This is returned by reference, so changes to the object returned by this function will result in changes to the street-link record of the GeoCoder.GeoCodeFull object. JavaScript var s_loc = new Telogis.GeoBase.LatLon(33.585532,-117.734311); function myTestFunction() { Telogis.GeoBase.GeoCoder.reverseGeoCodeFull (s_loc, function (callback) { // Callback function begins if (callback) { alert ('Closest street link: ' + callback.getStreetLink()); } else { alert ('No address found at ' + s_loc); } }, function (error) {alert(error)}); }; RemoteStreetLink - The street link nearest the GeoCoder.GeoCodeFull result. |
getTimeZone () | Gets the timezone of the street-link in the GeoCoder.GeoCodeFull result. JavaScript var s_loc = new Telogis.GeoBase.LatLon(33.585532,-117.734311); function myTestFunction() { Telogis.GeoBase.GeoCoder.reverseGeoCodeFull (s_loc, function (callback) { // Callback function begins if (callback) { var tz = callback.getTimeZone(); if (tz==null) {tz = '(no timezone found for this street-link)';} alert ('Timezone: ' + tz); } }, function (error) {alert(error)}); }; Telogis.GeoBase.TimeZone - The timezone of the street0link in the GeoCoder.GeoCodeFull result. |
toString () | A function to represent the most important data of the GeoCoder.GeoCodeFull instance in a human-readable string. JavaScript var s_loc = new Telogis.GeoBase.LatLon(33.585532,-117.734311); function myTestFunction() { Telogis.GeoBase.GeoCoder.reverseGeoCodeFull (s_loc, function (callback) { // Callback function begins if (callback) { alert ('Address details: ' + callback.toString()); } else { alert ('No address found at ' + s_loc); } }, function (error) {alert(error)}); }; String - The string representation of the GeoCoder.GeoCodeFull data. |