public async Task GetinitialAddressData() { _client.GetAddressInitialLoad(_appSettings.InitialAddressDataUrl, _appSettings.InitialAddressDataZipFilePath); _client.UnzipFile(_appSettings.InitialAddressDataUnzipPath, _appSettings.InitialAddressDataUnzipPath); await ProcessLatestAdresses( _appSettings.InitialAddressDataUnzipPath, _appSettings.InitialAddressDataProcessedPath, _appSettings.MinX, _appSettings.MinY, _appSettings.MaxX, _appSettings.MaxY); }
public async Task GetLatestGeoData() { await _client.GetFileFtp(_appSettings.FtpServer, _appSettings.GeoUserName, _appSettings.GeoPassword, _appSettings.GeoUnzipPath); _client.UnzipFile(_appSettings.GeoUnzipPath, _appSettings.GeoGmlPath); convertToGeojson(_appSettings.GeoFieldList, _appSettings.ConvertScriptFileName); ProcessGeoDirectory(_appSettings.GeoUnzipPath, _appSettings.GeoProcessedPath, _appSettings.GeoFieldList, _appSettings.MinX, _appSettings.MinY, _appSettings.MaxX, _appSettings.MaxY); }