AddressToGeocodeResult Method |
Namespace: Telogis.GeoBase
Address addr = Telogis.GeoBase.GeoCoder.ReverseGeoCode(new LatLon(33.584108, -117.731183)); // Or... // GeocodeAddress addr = GeoCoder.GeoCode("20 Enterprise, Aliso Viejo, California", Country.USA)[0]; IGeocodeResult result = addr.ToGeocodeResult(); string shortAddress = AddressFormatter.Default.GetShortLineForm(result.FoundAddress, "en-US"); // "Address found at '20 Enterprise' in USA" Console.WriteLine("Address found at '{0}' in {1}", shortAddress, result.FoundAddress.Country.ToString());