C# Class IsraelHiking.API.Services.Osm.OsmDataService

Inheritance: IOsmDataService
显示文件 Open project: IsraelHikingMap/Site

Public Methods

Method Description
Initialize ( string serverPath ) : System.Threading.Tasks.Task

Initializes the service.

OsmDataService ( IGraphHopperHelper graphHopperHelper, IHttpGatewayFactory httpGatewayFactory, IRemoteFileSizeFetcherGateway remoteFileSizeFetcherGateway, IFileSystemHelper fileSystemHelper, IElasticSearchGateway elasticSearchGateway, INssmHelper elasticSearchHelper, IOsmRepository osmRepository, IOsmGeoJsonPreprocessor osmGeoJsonPreprocessor, ILogger logger ) : System
UpdateData ( OsmDataServiceOperations operations ) : System.Threading.Tasks.Task

Private Methods

Method Description
FetchOsmFile ( string osmFilePath ) : System.Threading.Tasks.Task
UpdateElasticSearchFromFile ( string osmFilePath ) : System.Threading.Tasks.Task
UpdateElesticSearchHighwaysDataUsingPaging ( List highways ) : void
UpdateElesticSearchNamesDataUsingPaging ( Dictionary geoJsonNamesDictionary ) : void

Method Details

Initialize() public method

Initializes the service.
public Initialize ( string serverPath ) : System.Threading.Tasks.Task
serverPath string Bin folder where all dlls are.
return System.Threading.Tasks.Task

OsmDataService() public method

public OsmDataService ( IGraphHopperHelper graphHopperHelper, IHttpGatewayFactory httpGatewayFactory, IRemoteFileSizeFetcherGateway remoteFileSizeFetcherGateway, IFileSystemHelper fileSystemHelper, IElasticSearchGateway elasticSearchGateway, INssmHelper elasticSearchHelper, IOsmRepository osmRepository, IOsmGeoJsonPreprocessor osmGeoJsonPreprocessor, ILogger logger ) : System
graphHopperHelper IGraphHopperHelper
httpGatewayFactory IHttpGatewayFactory
remoteFileSizeFetcherGateway IRemoteFileSizeFetcherGateway
fileSystemHelper IFileSystemHelper
elasticSearchGateway IElasticSearchGateway
elasticSearchHelper INssmHelper
osmRepository IOsmRepository
osmGeoJsonPreprocessor IOsmGeoJsonPreprocessor
logger ILogger
return System

UpdateData() public method

public UpdateData ( OsmDataServiceOperations operations ) : System.Threading.Tasks.Task
operations OsmDataServiceOperations
return System.Threading.Tasks.Task