GetAccuracyDescription

(TAddress.GetAccuracyDescription Method)

Convert the GGeoAddressAccuracy level form int to a description string.
public GetAccuracyDescription(AccuracyCode):String

Parameters

  • AccuracyCode : Number - Set the accuracy code.
  • Returns

  • AccuracyDescription : String - Return the corresponding accuracy deption according to the Accuracy Code Table
  • Example

    The following example does a reverse geocode in order to get TAdress object then using GetAccuracyDescription() to get the accuracy of the reverse geocoding.
    <script type="text/javascript">
         var lat = Text_Lat.value;
         var lng = Text_Lng.value;
         TGetAddressByLatLng(lat,lng, ReverseGeoCode);
    
         function ReverseGeoCode(Address, ErrorMsg){
             var add= Address.GetAccuracyDescription();
         } 
    </script>