15.338
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 16: | Zeile 16: | ||
local minimum_one_geocode_ok = false | local minimum_one_geocode_ok = false | ||
if not com.isTrue(args["Ehemals"]) then | if not com.isTrue(args["Ehemals"]) then | ||
local loc = str.splitAndStrip( | local loc = str.splitAndStrip(args["locationlist"] or "", ";") | ||
if args["location"] ~= nil then | if args["location"] ~= nil then | ||
table.insert(loc, args["location"]) | table.insert(loc, args["location"]) | ||
| Zeile 23: | Zeile 23: | ||
local subobject_entry = {} | local subobject_entry = {} | ||
subobject_entry["Geolokation"] = l | subobject_entry["Geolokation"] = l | ||
local geocode = | local geocode = frame:callParserFunction("#geocode", l) | ||
if geocode ~= "Geocoding failed" then | if geocode ~= "Geocoding failed" then | ||
subobject_entry["Geokoordinate"] = geocode | subobject_entry["Geokoordinate"] = geocode | ||
| Zeile 34: | Zeile 34: | ||
-- geocode lon/lat | -- geocode lon/lat | ||
if (not minimum_one_geocode_ok or com.isTrue(args["Ehemals"])) and args["lat"] ~= nil and args["lon"] ~= nil then | if (not minimum_one_geocode_ok or com.isTrue(args["Ehemals"])) and args["lat"] ~= nil and args["lon"] ~= nil then | ||
local geocode = | local geocode = frame:callParserFunction("#geocode", args["lat"] .. "," .. args["lon"]) | ||
if geocode ~= "Geocoding failed" then | if geocode ~= "Geocoding failed" then | ||
local subobject_entry = {} | local subobject_entry = {} | ||