AddressNames Property |
Namespace: Telogis.GeoBase
The street may be identified by a number of different names, such as the I-405 which is also known as the San Diego Freeway. In this instance the most commonly used name will be the first value in the array. Alternate names are not ranked.
Use the array.Length property to check if alternate names exist.
// Geocode a location on the San Diego Freeway Address addr = GeoCoder.ReverseGeoCode(new LatLon(33.462080, -117.662400)); Console.WriteLine("Street name is '{0}'", addr.Names[0]); Console.WriteLine("Other names for this street include:"); for (int i = 1; i < addr.Names.Length; i++) { Console.WriteLine("\t{0}", addr.Names[i]); } // Output: // Street name is 'San Diego Fwy [I-5]' // Other names for this street include: // I-5 // San Diego Fwy