mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
use wikidata links for importance as well
This commit is contained in:
@@ -2698,13 +2698,15 @@ BEGIN
|
|||||||
RETURN result;
|
RETURN result;
|
||||||
END LOOP;
|
END LOOP;
|
||||||
|
|
||||||
FOR match IN SELECT * FROM wikipedia_article
|
IF extratags ? 'wikidata' THEN
|
||||||
WHERE osm_type = osm_type and osm_id = osm_id
|
FOR match IN SELECT * FROM wikipedia_article
|
||||||
ORDER BY importance DESC limit 1 LOOP
|
WHERE wd_page_title = extratags->'wikidata'
|
||||||
result.importance := match.importance;
|
ORDER BY importance DESC limit 1 LOOP
|
||||||
result.wikipedia := match.language || ':' || match.title;
|
result.importance := match.importance;
|
||||||
RETURN result;
|
result.wikipedia := match.language || ':' || match.title;
|
||||||
END LOOP;
|
RETURN result;
|
||||||
|
END LOOP;
|
||||||
|
END IF;
|
||||||
|
|
||||||
RETURN null;
|
RETURN null;
|
||||||
END;
|
END;
|
||||||
|
|||||||
Reference in New Issue
Block a user