15.765
Bearbeitungen
(+ geoobjects.geojson, -getGeocode(frame, location), dms geocode) |
(Vereinfachung lat/lon temporär-Vorrang) |
||
| Zeile 75: | Zeile 75: | ||
com.isTrue(args["Ehemals"]) then | com.isTrue(args["Ehemals"]) then | ||
kategorien["Hat Objektlokation, ist aber ehemaliges Objekt"] = true | kategorien["Hat Objektlokation, ist aber ehemaliges Objekt"] = true | ||
elseif args["lat"] == nil or args["lon"] == nil then -- to do: dieses if später rausschmeißen nach Aufbau nominatim.fuerthwiki.de | |||
local geocode = frame:callParserFunction("#geocode", location) | |||
if geocode ~= "Geocoding failed" then | if geocode ~= "Geocoding failed" then | ||
geoobject_entry["Geokoordinate"] = geocode | geoobject_entry["Geokoordinate"] = geocode | ||
| Zeile 89: | Zeile 84: | ||
-- geocode nicht erfolgreich => SMW-DB-Eintrag nehmen | -- geocode nicht erfolgreich => SMW-DB-Eintrag nehmen | ||
kategorien["Hat Geo-Kodierungsfehler"] = true | kategorien["Hat Geo-Kodierungsfehler"] = true | ||
local smw_geokoordinate = mw.smw.ask( | local smw_geokoordinate = mw.smw.ask( -- SMW-Abfrage | ||
"[[-Has subobject::" .. pagename .. "]]" .. | "[[-Has subobject::" .. pagename .. "]]" .. | ||
"[[Geolokation::" .. location .. "]]" .. | "[[Geolokation::" .. location .. "]]" .. | ||