private DS.DistributedServices.ServiceProxies.AddressFinder.Point GetGeoLocationFromWebService(Address address) { DS.DistributedServices.ServiceProxies.AddressFinder.Point point = null; using (AddressFinderSoapClient addressFinderSoapClient = new AddressFinderSoapClient()) { point = addressFinderSoapClient.getXY(address, TOKEN); } return(point); }
private void SetGeolocationInfo(RouteServiceParameterDTO routeInfo) { Address address = GetAddressInfoObject(routeInfo); DS.DistributedServices.ServiceProxies.AddressFinder.Point point = GetGeoLocationFromWebService(address); if (point == null) { ThrowFaultException("Error while processing request !"); } routeInfo.x = point.x; routeInfo.y = point.y; }