GeoCoderGeoCode Method (String, String, String, String, Country) |
Namespace: Telogis.GeoBase
public static GeocodeAddress[] GeoCode( string address, string city, string region, string postalCode, Country country )
This form of geocode is likely to be more reliable than the free text Geocode.
The geocoder is capable of looking up street intersections when they are specified with the & (ampersand) or @ characters. For example:
18th & placentia, costa mesa18th @ placentia, costa mesaRelated articles: Geocoding Concept, Map Control Tutorial.
// Geocode an address GeocodeAddress[] addr = GeoCoder.GeoCode("20 Enterprise", "Aliso Viejo", "California", "92656", Country.USA); // Write out the first address in the array Console.WriteLine("Found address {0}", addr[0].ToString()); // Prints 'Found address 20 Enterprise, Aliso Viejo, California, 92656, USA'