AddressNameInfoIsNumber Property |
Namespace: Telogis.GeoBase
// Set a location (San Diego Freeway, Los Angeles) LatLon Location = new LatLon(33.668795, -117.820095); // Construct an Address.NameInfo array StringBuilder compiledOutput = new StringBuilder(); Address.NameInfo[] myStreetsArray = GeoCoder.ReverseGeoCode(Location).ExtendedNameInfo; for (int i = 0; i < myStreetsArray.Length; i++) { if (myStreetsArray[i].IsNumber) { compiledOutput.AppendFormat("Street name '{0}' is a number.\n", myStreetsArray[i].Name); } else { compiledOutput.AppendFormat("Street name '{0}' is not a number.\n", myStreetsArray[i].Name); } } Console.WriteLine(compiledOutput); // Street name 'San Diego Fwy [I-405]' is not a number. // Street name 'I-405' is not a number. // Street name 'San Diego Fwy' is not a number.