public Task DeletePointOfInterestById(string id, string source) { var fullId = GeoJsonExtensions.GetId(source, id); return(_elasticClient.DeleteAsync <Feature>(fullId, d => d.Index(OSM_POIS_ALIAS))); }
public async Task <Feature> GetExternalPoiById(string id, string source) { var response = await _elasticClient.GetAsync <Feature>(GeoJsonExtensions.GetId(source, id), r => r.Index(EXTERNAL_POIS)); return(response.Source); }
public async Task DeleteHighwaysById(string id) { var fullId = GeoJsonExtensions.GetId(Sources.OSM, id); await _elasticClient.DeleteAsync <Feature>(fullId, d => d.Index(OSM_HIGHWAYS_ALIAS)); }