From 6fa6fd29904bb28e8ad4a08f47992a9bd8f45e03 Mon Sep 17 00:00:00 2001 From: HarelM Date: Sun, 11 Aug 2024 22:55:26 +0300 Subject: [PATCH] Update inature reference according to discussion --- IsraelHiking.Web/src/application/services/poi.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IsraelHiking.Web/src/application/services/poi.service.ts b/IsraelHiking.Web/src/application/services/poi.service.ts index dd0528aef..24ca47865 100644 --- a/IsraelHiking.Web/src/application/services/poi.service.ts +++ b/IsraelHiking.Web/src/application/services/poi.service.ts @@ -672,7 +672,7 @@ export class PoiService { } private async enritchFeatureFromINature(feature: GeoJSON.Feature): Promise { - const iNatureRef = feature.properties["inature:website"]; + const iNatureRef = feature.properties["ref:IL:inature"]; const address = `https://inature.info/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=${iNatureRef}&origin=*`; const iNatureJson = await firstValueFrom(this.httpClient.get(address).pipe(timeout(3000))) as any; const content = iNatureJson.query.pages[Object.keys(iNatureJson.query.pages)[0]].revisions[0]["*"]; @@ -706,7 +706,7 @@ export class PoiService { if (feature.properties.wikidata) { wikidataPromise = this.enritchFeatureFromWikimedia(feature, language); } - if (feature.properties["inature:website"] && language === "he") { + if (feature.properties["ref:IL:inature"] && language === "he") { inaturePromise = this.enritchFeatureFromINature(feature); } if (type === "node" && feature.properties.place) {