Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Adresse aus GPS Koordinaten ermitteln ?

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    14
    1
    239

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    582

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    1.8k

Adresse aus GPS Koordinaten ermitteln ?

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
87 Beiträge 12 Kommentatoren 7.1k Aufrufe 10 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • M Offline
    M Offline
    Micha 3
    schrieb am zuletzt editiert von
    #49

    https://forum.iobroker.net/topic/57207/adresse-aus-gps-koordinaten-ermitteln/19

    https://forum.iobroker.net/topic/57207/adresse-aus-gps-koordinaten-ermitteln/11

    https://forum.iobroker.net/topic/57207/adresse-aus-gps-koordinaten-ermitteln/16

    1 Antwort Letzte Antwort
    0
    • R Offline
      R Offline
      Razer2412
      schrieb am zuletzt editiert von
      #50

      @bahnuhr

      Dein Skript funktioniert in JS einwandfrei - Danke dafür!

      Wie ich dies nun in das vorhandene Blockly integrieren kann ist aber noch nicht ganz klar.

      @wolfi913

      Das sieht sehr vielversprechend aus und wird direkt mal getestet.

      Bitte habt Verständnis dafür, dass hier auch Leute unterwegs sind, die sich mit JS und httpGET etc. noch nicht so gut auskennen.

      Ich (wir) haben lediglich versucht, das initial von David G. zu Verfügung gestellte Skript wieder zum Laufen zu bekommen.
      Mir war nicht klar, dass dies von euch vollständig in JS gelöst wurde bzw. dass dies mit Blockly auch ohne das eingebettete JS funktioniert.

      1 Antwort Letzte Antwort
      0
      • W wolfi913

        @micha-3

        Warum nicht gleich alles als Blockly?

        z.B. so:
        Screenshot 2025-09-14 210216.png

        M Offline
        M Offline
        Micha 3
        schrieb am zuletzt editiert von
        #51

        @wolfi913 Fehlt da was? warum setzt du Lat und Lon vorher auf einen wert?

        R W 2 Antworten Letzte Antwort
        0
        • M Micha 3

          @wolfi913 Fehlt da was? warum setzt du Lat und Lon vorher auf einen wert?

          R Offline
          R Offline
          Razer2412
          schrieb am zuletzt editiert von
          #52

          @micha-3
          Das ist wahrscheinlich aus dem Beispiel von bahnuhr entnommen.

          Es müsste kein Problem sein, hier als einen "Wert" die Koordinaten des Fahrzeugs zu nutzen.

          ace17c24-793f-4083-96b9-b671c22d7c6c-{9DD7DEE6-3198-4F53-9DB3-C674B0B85A9E}.png

          W 1 Antwort Letzte Antwort
          1
          • M Micha 3

            @wolfi913 Fehlt da was? warum setzt du Lat und Lon vorher auf einen wert?

            W Online
            W Online
            wolfi913
            schrieb am zuletzt editiert von
            #53

            @micha-3
            War nur zum Testen
            Du müsstest das noch in einen Trigger auf die lat und lon Datenpunkte setzen und die jeweiligen Werte in die Variablen einlesen.

            1 Antwort Letzte Antwort
            1
            • R Razer2412

              @micha-3
              Das ist wahrscheinlich aus dem Beispiel von bahnuhr entnommen.

              Es müsste kein Problem sein, hier als einen "Wert" die Koordinaten des Fahrzeugs zu nutzen.

              ace17c24-793f-4083-96b9-b671c22d7c6c-{9DD7DEE6-3198-4F53-9DB3-C674B0B85A9E}.png

              W Online
              W Online
              wolfi913
              schrieb am zuletzt editiert von
              #54

              @razer2412 sagte in Adresse aus GPS Koordinaten ermitteln ?:

              @micha-3
              Das ist wahrscheinlich aus dem Beispiel von bahnuhr entnommen.

              Fast korrekt :blush:
              Hab das Beispiel von Codierknecht umgebaut

              R 1 Antwort Letzte Antwort
              1
              • W wolfi913

                @razer2412 sagte in Adresse aus GPS Koordinaten ermitteln ?:

                @micha-3
                Das ist wahrscheinlich aus dem Beispiel von bahnuhr entnommen.

                Fast korrekt :blush:
                Hab das Beispiel von Codierknecht umgebaut

                R Offline
                R Offline
                Razer2412
                schrieb am zuletzt editiert von
                #55

                @wolfi913

                Dein Blockly funktioniert wunderbar! Vielen Dank!

                Nur die Reihenfolge der Daten muss noch angepasst werden. :)

                1 Antwort Letzte Antwort
                1
                • M Offline
                  M Offline
                  Micha 3
                  schrieb am zuletzt editiert von Micha 3
                  #56

                  ich hab jetzt Fehler, GPS ist top

                  script.js.common.GPS: Cannot get address of "undefined": TypeError: Cannot read properties of undefined (reading 'address')
                  
                  1 Antwort Letzte Antwort
                  0
                  • R Offline
                    R Offline
                    Razer2412
                    schrieb am zuletzt editiert von Razer2412
                    #57

                    @Micha-3

                    teste mal das folgende Blockly Skript:

                    bf5d99f1-650a-4e3c-beee-e90baca46bb3-image.png

                    1 Antwort Letzte Antwort
                    0
                    • M Offline
                      M Offline
                      Micha 3
                      schrieb am zuletzt editiert von
                      #58

                      meins.

                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <variables>
                          <variable id="QN!T6w6a-/l=eT]qb^[m">lat</variable>
                          <variable id=";AX~{zgT$/kdtN6_QqtB">lon</variable>
                          <variable type="timeout" id="timeout">timeout</variable>
                          <variable id="InM51wH+hhRZ1K}Uo6R:">result</variable>
                          <variable id="A)i-Et;L|j!6^^m_Y4-G">strasse</variable>
                          <variable id="6*5_=d|`GXhhd:zBG^[c">plz</variable>
                          <variable id="CvK?S#qy;hmBCz`tdgBf">ort</variable>
                          <variable id="r,(Pk/vT!2f9I99,*O1I">bundesland</variable>
                          <variable id="-llvKNjIkTSSp;-GZ(3]">land</variable>
                          <variable id="329{(}BZRyRCy|UNJ2Mo">stadt</variable>
                          <variable id="j|Nt5wiqkFM%y4V(19rU">stadtteil</variable>
                        </variables>
                        <block type="procedures_defcustomnoreturn" id="Y0O~+EUHSHjgO]D;jg8-" x="-538" y="263">
                          <mutation statements="false">
                            <arg name="lat" varid="QN!T6w6a-/l=eT]qb^[m"></arg>
                            <arg name="lon" varid=";AX~{zgT$/kdtN6_QqtB"></arg>
                          </mutation>
                          <field name="NAME">setLocation</field>
                          <field name="SCRIPT">ZXh0ZW5kT2JqZWN0KCdzeXN0ZW0uY29uZmlnJywge2NvbW1vbjoge2xhdGl0dWRlOiBsYXQsIGxvbmdpdHVkZTogbG9ufX0pOw==</field>
                          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                        </block>
                        <block type="on" id="4ru.qSpei2XH^rB2vH-S" x="-562" y="313">
                          <field name="OID">sonoff.0.Temp-GPS.Uptime</field>
                          <field name="CONDITION">ne</field>
                          <field name="ACK_CONDITION"></field>
                          <statement name="STATEMENT">
                            <block type="timeouts_cleartimeout" id="H`5N!HFxr3!MHENWRt%N">
                              <field name="NAME">timeout</field>
                              <next>
                                <block type="timeouts_settimeout" id="{JvyKrcbL|PA~vVr-LG:">
                                  <field name="NAME">timeout</field>
                                  <field name="DELAY">2000</field>
                                  <field name="UNIT">ms</field>
                                  <statement name="STATEMENT">
                                    <block type="update" id="h)dlnR3^Q.](=4QSEJ(b">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.GPS.lat</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_rndfixed" id="bnK{F#|CqXlA9xawHkpf">
                                          <field name="n">2</field>
                                          <value name="x">
                                            <shadow type="math_number" id=")M%}Y+;HO~[uh;VgZ{;(">
                                              <field name="NUM">3.1234</field>
                                            </shadow>
                                            <block type="get_value" id="3Eb+zb%2/#@Y9I9so4Op">
                                              <field name="ATTR">val</field>
                                              <field name="OID">sonoff.0.Temp-GPS.GPS_Lat</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="update" id="wW)4.o_sZ)fb.atnCmR/">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">0_userdata.0.GPS.lon</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_rndfixed" id="JcP!P6GG*4.MkJcUV$Ib">
                                              <field name="n">2</field>
                                              <value name="x">
                                                <shadow type="math_number" id="rCU]GgK3f!WC~Hog`l_3">
                                                  <field name="NUM">3.1234</field>
                                                </shadow>
                                                <block type="get_value" id="L`):Oz%6hIWG2!kXZ7KX">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">sonoff.0.Temp-GPS.GPS_Lon</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="update" id="nP9xglS.aA[MbTbkYIl0">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                              <field name="OID">0_userdata.0.GPS.accuweather_GPS</field>
                                              <field name="WITH_DELAY">TRUE</field>
                                              <field name="DELAY_MS">200</field>
                                              <field name="UNIT">ms</field>
                                              <field name="CLEAR_RUNNING">FALSE</field>
                                              <value name="VALUE">
                                                <block type="text_join" id="q9N5_(eD8@Lo^lj|3N~2">
                                                  <mutation items="3"></mutation>
                                                  <value name="ADD0">
                                                    <block type="get_value" id="%}aB6;vIAApy1bl/X+{i">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">0_userdata.0.GPS.lat</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="text" id="KPp.^#63Ii89Zr{@h!d6">
                                                      <field name="TEXT">,</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD2">
                                                    <block type="get_value" id="1I~Jd)wr|w~m]AAhkQfC">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">0_userdata.0.GPS.lon</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="wR~~7^?!0{b~ZWJW2z2Y">
                                                  <field name="VAR" id="QN!T6w6a-/l=eT]qb^[m">lat</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="7x~tx,s?a(xli`sb]5*z">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">sonoff.0.Temp-GPS.GPS_Lat</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="|i,e7-xsVZtwL,YE9Pns">
                                                      <field name="VAR" id=";AX~{zgT$/kdtN6_QqtB">lon</field>
                                                      <value name="VALUE">
                                                        <block type="get_value" id="!/+#$U+|eCP!WX]+]~l|">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">sonoff.0.Temp-GPS.GPS_Lon</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="http_get" id="!5?-*Q~.RvH!2a;N;$8A">
                                                          <field name="TIMEOUT">5000</field>
                                                          <field name="UNIT">ms</field>
                                                          <field name="TYPE">text</field>
                                                          <value name="URL">
                                                            <shadow type="text" id="W3jT::nIRxhazYsa4:JL">
                                                              <field name="TEXT">http://</field>
                                                            </shadow>
                                                            <block type="text_join" id="%wST`3h.s5)s?yTXh$~i">
                                                              <mutation items="5"></mutation>
                                                              <value name="ADD0">
                                                                <block type="text" id="-8lYPxgfT*=]t2_g7#$[">
                                                                  <field name="TEXT">https://nominatim.openstreetmap.org/reverse.php?format=json&amp;lat=</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="variables_get" id="tiI%Gue0zt)Ek%,a:s52">
                                                                  <field name="VAR" id="QN!T6w6a-/l=eT]qb^[m">lat</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="text" id="!R=ImuE$Vd/2+[=%_`6}">
                                                                  <field name="TEXT">&amp;lon=</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD3">
                                                                <block type="variables_get" id="]z8~GQT@2PBU%@=!G9#(">
                                                                  <field name="VAR" id=";AX~{zgT$/kdtN6_QqtB">lon</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD4">
                                                                <block type="text" id="ebKGaWIPd`n`N[K(4Ve`">
                                                                  <field name="TEXT">&amp;zoom=18</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="controls_if" id="!,JgMofSD2s4%OATm#Y/">
                                                              <mutation else="1"></mutation>
                                                              <value name="IF0">
                                                                <block type="logic_compare" id="Lg1v?x0O`oHmH;0xbMva">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="http_response" id="*pdEOY-DN/ldpqq*FAu7">
                                                                      <field name="ATTR">response.statusCode</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="text" id="21:Ls`+-R4cDwlsqPL|2">
                                                                      <field name="TEXT">200</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="variables_set" id="I9#Bq3*PzD$iOfu-5]TY">
                                                                  <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                  <value name="VALUE">
                                                                    <block type="convert_json2object" id="SDiJFF[g4MRS.KoQ+x`E">
                                                                      <value name="VALUE">
                                                                        <block type="http_response" id="v3+Dyk@I0vn4`k~AYx7l">
                                                                          <field name="ATTR">response.data</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="debug" id="eU.[mIK1ul`Z93hZ{,p*">
                                                                      <field name="Severity">info</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="[I?^X?ha|_FCFS#FI7d.">
                                                                          <field name="TEXT">test</field>
                                                                        </shadow>
                                                                        <block type="get_attr" id="V/U]m5b#1WEyowil9c^n">
                                                                          <value name="PATH">
                                                                            <shadow type="text" id="Mgv2,j{bH?iH!eZ*Wtfu">
                                                                              <field name="TEXT">display_name</field>
                                                                            </shadow>
                                                                          </value>
                                                                          <value name="OBJECT">
                                                                            <shadow type="get_object" id="zu)XVk{He0L)-v|55BA5">
                                                                              <field name="OID">Object ID</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id=",YY~FWQ5r$1}(2B?dau[">
                                                                              <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                              <statement name="ELSE">
                                                                <block type="debug" id="R_jHmT#vH_l4`4/d7VE:">
                                                                  <field name="Severity">info</field>
                                                                  <value name="TEXT">
                                                                    <shadow type="text" id="zE1JpQaU461xf;Dv`z3u">
                                                                      <field name="TEXT">test</field>
                                                                    </shadow>
                                                                    <block type="http_response" id="Q)W:WJdX0DxwFKTib;[J">
                                                                      <field name="ATTR">err</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="procedures_callcustomnoreturn" id="]xfpyzOF9=)([-K1]^(_">
                                                              <mutation name="setLocation">
                                                                <arg name="lat"></arg>
                                                                <arg name="lon"></arg>
                                                              </mutation>
                                                              <value name="ARG0">
                                                                <block type="variables_get" id="~09Z[2;#mjJt5o([aZIA">
                                                                  <field name="VAR" id="QN!T6w6a-/l=eT]qb^[m">lat</field>
                                                                </block>
                                                              </value>
                                                              <value name="ARG1">
                                                                <block type="variables_get" id="llGZ2xUwPET:ipd_u.Zf">
                                                                  <field name="VAR" id=";AX~{zgT$/kdtN6_QqtB">lon</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="variables_set" id="6UkRrRin?=5699,9.LJ:">
                                                                  <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                  <value name="VALUE">
                                                                    <block type="text" id="p)6B^~T_Rv0AiRB*u]mk">
                                                                      <field name="TEXT"></field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="variables_set" id="x-ZTggEZU,P_aRK;JG.q">
                                                                      <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                      <value name="VALUE">
                                                                        <block type="text" id="[tz-5NkFJVl*J(Mfl$dw">
                                                                          <field name="TEXT"></field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="variables_set" id="KEkLwj1;v+n`|hcsbV~}">
                                                                          <field name="VAR" id="CvK?S#qy;hmBCz`tdgBf">ort</field>
                                                                          <value name="VALUE">
                                                                            <block type="text" id="X=_{Y7%|UC?a,BJinB-C">
                                                                              <field name="TEXT"></field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="variables_set" id="y8:oB^s_@fY8aPp]4mX$">
                                                                              <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                              <value name="VALUE">
                                                                                <block type="text" id="CwL{-QIfDx}g^#f)3$)6">
                                                                                  <field name="TEXT"></field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="variables_set" id="@0XAk3T@~yVm(H7^vCll">
                                                                                  <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="text" id="(N7@62Jo{saK[@@@ZFiE">
                                                                                      <field name="TEXT"></field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="variables_set" id="o^r(Hxy,g21/dt~9TKZy">
                                                                                      <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="get_attr" id="4BRp8)RL(Z,ya1V7L%,k">
                                                                                          <value name="PATH">
                                                                                            <shadow type="text" id="@+Kn.LF%vkB35cm%To%G">
                                                                                              <field name="TEXT">address.road</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                          <value name="OBJECT">
                                                                                            <block type="variables_get" id="/rsi@S]q*[hct$N@3[U^">
                                                                                              <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="variables_set" id="+g#!=48^0Ptra,[aQpyr">
                                                                                          <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="get_attr" id="~ZV;a5(Aw/K=L^#a3sw]">
                                                                                              <value name="PATH">
                                                                                                <shadow type="text" id="w:W|g,i:tSkuP*I^o;uQ">
                                                                                                  <field name="TEXT">address.postcode</field>
                                                                                                </shadow>
                                                                                              </value>
                                                                                              <value name="OBJECT">
                                                                                                <block type="variables_get" id="{yOR**tGuGj71m^D:d[!">
                                                                                                  <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="variables_set" id="m;eWQI56kzaa0toQpJ?x">
                                                                                              <field name="VAR" id="329{(}BZRyRCy|UNJ2Mo">stadt</field>
                                                                                              <value name="VALUE">
                                                                                                <block type="get_attr" id="v+*aTZolu/3.opuTsA2I">
                                                                                                  <value name="PATH">
                                                                                                    <shadow type="text" id="dK9#DRY/x5vYP7}W;`F(">
                                                                                                      <field name="TEXT">address.town</field>
                                                                                                    </shadow>
                                                                                                  </value>
                                                                                                  <value name="OBJECT">
                                                                                                    <block type="variables_get" id="nvly[(7r/+?7*WB4@eh;">
                                                                                                      <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <next>
                                                                                                <block type="variables_set" id="oen2z3!LI}$?{hlibd,q">
                                                                                                  <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="get_attr" id="2gd)S{;0+7JB)rtZ;bqr">
                                                                                                      <value name="PATH">
                                                                                                        <shadow type="text" id="qpGzmC!GGqM(OzR`L)?c">
                                                                                                          <field name="TEXT">address.village</field>
                                                                                                        </shadow>
                                                                                                      </value>
                                                                                                      <value name="OBJECT">
                                                                                                        <block type="variables_get" id="V.[]^O%U]RWf`BOs]tUD">
                                                                                                          <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <next>
                                                                                                    <block type="variables_set" id="JJ=pAjKY88C81_RZa79=">
                                                                                                      <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                      <value name="VALUE">
                                                                                                        <block type="get_attr" id="8h+PMWbE#|bn}CD4oTi|">
                                                                                                          <value name="PATH">
                                                                                                            <shadow type="text" id=";GH4zjhdYRVGRVHNvmLs">
                                                                                                              <field name="TEXT">address.state</field>
                                                                                                            </shadow>
                                                                                                          </value>
                                                                                                          <value name="OBJECT">
                                                                                                            <block type="variables_get" id="Sg;0Iu]BS#a}1VqQ`$?9">
                                                                                                              <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <next>
                                                                                                        <block type="variables_set" id="zw36a!](Wlgkn^.bA_v,">
                                                                                                          <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                          <value name="VALUE">
                                                                                                            <block type="get_attr" id="+fQ`)n1@Ww}/{%OO:K36">
                                                                                                              <value name="PATH">
                                                                                                                <shadow type="text" id="_MyW^~va)F:Z:IVq$)eR">
                                                                                                                  <field name="TEXT">address.country</field>
                                                                                                                </shadow>
                                                                                                              </value>
                                                                                                              <value name="OBJECT">
                                                                                                                <block type="variables_get" id="b!.wQ$]TN~jwuab{}EET">
                                                                                                                  <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <next>
                                                                                                            <block type="update" id="if)ck30){M%-RNa%6YzW">
                                                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                              <field name="OID">0_userdata.0.GPS.GPS_Position</field>
                                                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                                                              <value name="VALUE">
                                                                                                                <block type="text_join" id="L]Xd0hlDRwDDkUtpp:Sy">
                                                                                                                  <mutation items="7"></mutation>
                                                                                                                  <value name="ADD0">
                                                                                                                    <block type="logic_ternary" id="`UFoXvUPv1Pc4h`=|~JD">
                                                                                                                      <value name="IF">
                                                                                                                        <block type="variables_get" id="[.49M8y)hxq~{X^IRIhx">
                                                                                                                          <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="THEN">
                                                                                                                        <block type="variables_get" id="SWDWkrP_wLd{sF*qU!vC">
                                                                                                                          <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD1">
                                                                                                                    <block type="logic_ternary" id="zEMV.C]qSX{P`T-XP^Hb">
                                                                                                                      <value name="IF">
                                                                                                                        <block type="variables_get" id=";EN^{$cRysb_9ZPMBt`M">
                                                                                                                          <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="THEN">
                                                                                                                        <block type="text" id="GLb;?7As.fEM?4nR;ne=">
                                                                                                                          <field name="TEXT">, </field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD2">
                                                                                                                    <block type="logic_ternary" id="}z,CZJfQ*/A/w7YTi2~E">
                                                                                                                      <value name="IF">
                                                                                                                        <block type="variables_get" id="6h8XVvv(r%]fP]`_z[l:">
                                                                                                                          <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="THEN">
                                                                                                                        <block type="text_join" id="kpl;N_th,XsHq{je#6GM">
                                                                                                                          <mutation items="2"></mutation>
                                                                                                                          <value name="ADD0">
                                                                                                                            <block type="variables_get" id=";szAWOxJP9i/Y)YwBv?j">
                                                                                                                              <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <value name="ADD1">
                                                                                                                            <block type="text" id="#m)lI}H`?u[CTjPpEYp.">
                                                                                                                              <field name="TEXT">, </field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD3">
                                                                                                                    <block type="logic_ternary" id="f3q*%jcof-N9$#Oke-.o">
                                                                                                                      <value name="IF">
                                                                                                                        <block type="variables_get" id="NWTfW)1!!bSVDz~U)m/1">
                                                                                                                          <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="THEN">
                                                                                                                        <block type="text_join" id="sj#]HAN^-Gkp+[eghQuo">
                                                                                                                          <mutation items="2"></mutation>
                                                                                                                          <value name="ADD0">
                                                                                                                            <block type="variables_get" id="#.EdV`CR}}mi^q9|7Q#C">
                                                                                                                              <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <value name="ADD1">
                                                                                                                            <block type="text" id="jF{~=-QDhCT}v-wp%r*F">
                                                                                                                              <field name="TEXT">, </field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD4">
                                                                                                                    <block type="logic_ternary" id="_baHXH3=jK$cZ5Vt!*eN">
                                                                                                                      <value name="IF">
                                                                                                                        <block type="variables_get" id="XbvIoiom{mDSet)68I9V">
                                                                                                                          <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="THEN">
                                                                                                                        <block type="text_join" id="Pd(Rt;kJBEe!P588$8/d">
                                                                                                                          <mutation items="2"></mutation>
                                                                                                                          <value name="ADD0">
                                                                                                                            <block type="variables_get" id="VO9O.ditr_lkbbC}[#HM">
                                                                                                                              <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <value name="ADD1">
                                                                                                                            <block type="text" id=".szY]0{i}{xj3sH-dOie">
                                                                                                                              <field name="TEXT">, </field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD5">
                                                                                                                    <block type="logic_ternary" id="%8ys_w*3qpg6I?!YB2Wr">
                                                                                                                      <value name="IF">
                                                                                                                        <block type="variables_get" id="Y-mnVf(#$Q3@y^^?[9)J">
                                                                                                                          <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="THEN">
                                                                                                                        <block type="text_join" id="QIBSvhmB@0;noHJb|(yv">
                                                                                                                          <mutation items="2"></mutation>
                                                                                                                          <value name="ADD0">
                                                                                                                            <block type="variables_get" id="7L_T5x.wW}%U!x`^s7Dc">
                                                                                                                              <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD6">
                                                                                                                    <block type="logic_ternary" id="bneVX)V$6)Olno`7@-!v">
                                                                                                                      <value name="IF">
                                                                                                                        <block type="logic_negate" id="90!{0(0ipi52TP$IVCiv">
                                                                                                                          <value name="BOOL">
                                                                                                                            <block type="variables_get" id="cw17gqGGH_e|zmnNA:BX">
                                                                                                                              <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="THEN">
                                                                                                                        <block type="text" id=")-A+1mmU{^PQK+yNwNE%">
                                                                                                                          <field name="TEXT">Keine Adressen verfügbar.</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </next>
                                                                                                        </block>
                                                                                                      </next>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </xml>
                      
                      1 Antwort Letzte Antwort
                      0
                      • M Offline
                        M Offline
                        Micha 3
                        schrieb am zuletzt editiert von
                        #59

                        Danke für die Hilfe und Denkanstöße.

                        1 Antwort Letzte Antwort
                        0
                        • W wolfi913

                          @micha-3

                          Warum nicht gleich alles als Blockly?

                          z.B. so:
                          Screenshot 2025-09-14 210216.png

                          Steffe.S.S Offline
                          Steffe.S.S Offline
                          Steffe.S.
                          schrieb am zuletzt editiert von Steffe.S.
                          #60

                          @david-g said in Adresse aus GPS Koordinaten ermitteln ?:

                          @drfirebird

                          Das ist mein Blockly:

                          <xml xmlns="https://developers.google.com/blockly/xml">
                           <variables>
                             <variable id="2]3hGy$Na|L2qX#+=;E8">lat</variable>
                             <variable id=".hv$JjjT(QY(0c2!/tuc">lon</variable>
                             <variable id="InM51wH+hhRZ1K}Uo6R:">result</variable>
                             <variable id="T]JEvDq|YNa4JKlpQnSS">hausnummer</variable>
                             <variable id="A)i-Et;L|j!6^^m_Y4-G">strasse</variable>
                             <variable id="6*5_=d|`GXhhd:zBG^[c">plz</variable>
                             <variable id="CvK?S#qy;hmBCz`tdgBf">ort</variable>
                             <variable id="8Mxf1lU^+(_[XwY|L3(:">ort2</variable>
                             <variable id="gUjA0kp/zoi==V%A7(KI">kreis</variable>
                             <variable id="r,(Pk/vT!2f9I99,*O1I">bundesland</variable>
                             <variable id="-llvKNjIkTSSp;-GZ(3]">land</variable>
                             <variable id="329{(}BZRyRCy|UNJ2Mo">stadt</variable>
                             <variable id="j|Nt5wiqkFM%y4V(19rU">stadtteil</variable>
                           </variables>
                           <block type="procedures_defcustomreturn" id="?;wMWdJ!vB8:m#;$39f@" x="-113" y="-38">
                             <mutation statements="false">
                               <arg name="lat" varid="2]3hGy$Na|L2qX#+=;E8"></arg>
                               <arg name="lon" varid=".hv$JjjT(QY(0c2!/tuc"></arg>
                             </mutation>
                             <field name="NAME">OSM</field>
                             <field name="SCRIPT">dmFyIHJlcXVlc3QgPXJlcXVpcmUoJ3JlcXVlc3QnKTsNCmxldCByZXN1bHQ7DQpjb25zdCBvcHRpb25zID0gew0KICAgIHVybDogJ2h0dHBzOi8vbm9taW5hdGltLm9wZW5zdHJlZXRtYXAub3JnL3JldmVyc2UucGhwP2Zvcm1hdD1qc29uJmxhdD0nICsgbGF0ICsgJyZsb249JyArIGxvbiArICcmem9vbT0xOCcsDQogICAgbWV0aG9kOiAnR0VUJywNCiAgICBoZWFkZXJzOiB7DQogICAgICAgICdBY2NlcHQnOiAnYXBwbGljYXRpb24vanNvbicsDQogICAgICAgICdBY2NlcHQtQ2hhcnNldCc6ICd1dGYtOCcsDQogICAgICAgICdVc2VyLUFnZW50JzogJ2lvYnJva2VyIHNjcmlwdCcNCiAgICB9DQp9DQoNCnJlcXVlc3Qob3B0aW9ucywgZnVuY3Rpb24oZXJyLHJlc3BvbnNlLGJvZHkpew0KICAgIHJlc3VsdCA9IEpTT04ucGFyc2UoYm9keSk7DQp9KQ0KYXdhaXQgd2FpdCgxMDAwKTsNCnJldHVybiByZXN1bHQ7</field>
                             <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                           </block>
                           <block type="on" id="4ru.qSpei2XH^rB2vH-S" x="-112" y="12">
                             <field name="OID">places.0.tasker.latitude</field>
                             <field name="CONDITION">any</field>
                             <field name="ACK_CONDITION"></field>
                             <statement name="STATEMENT">
                               <block type="variables_set" id="wR~~7^?!0{b~ZWJW2z2Y">
                                 <field name="VAR" id="2]3hGy$Na|L2qX#+=;E8">lat</field>
                                 <value name="VALUE">
                                   <block type="get_value" id="7x~tx,s?a(xli`sb]5*z">
                                     <field name="ATTR">val</field>
                                     <field name="OID">places.0.tasker.latitude</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="variables_set" id="|i,e7-xsVZtwL,YE9Pns">
                                     <field name="VAR" id=".hv$JjjT(QY(0c2!/tuc">lon</field>
                                     <value name="VALUE">
                                       <block type="get_value" id="!/+#$U+|eCP!WX]+]~l|">
                                         <field name="ATTR">val</field>
                                         <field name="OID">places.0.tasker.longitude</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="_]-UxYH%D~}#l6DWPyqA">
                                         <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                         <value name="VALUE">
                                           <block type="procedures_callcustomreturn" id="E6q6k3RA-DSW4n:wbmt5" inline="true">
                                             <mutation name="OSM">
                                               <arg name="lat"></arg>
                                               <arg name="lon"></arg>
                                             </mutation>
                                             <value name="ARG0">
                                               <block type="variables_get" id="O~3vjlaQApGabQ#KZ_Np">
                                                 <field name="VAR" id="2]3hGy$Na|L2qX#+=;E8">lat</field>
                                               </block>
                                             </value>
                                             <value name="ARG1">
                                               <block type="variables_get" id=";6In%LVgU8c~ZW=V^#!+">
                                                 <field name="VAR" id=".hv$JjjT(QY(0c2!/tuc">lon</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="variables_set" id="*o+J}YHtCQe-Y!}W%d}_">
                                             <field name="VAR" id="T]JEvDq|YNa4JKlpQnSS">hausnummer</field>
                                             <value name="VALUE">
                                               <block type="text" id="zyNnn~74lGRs=kz@zQ%x">
                                                 <field name="TEXT"></field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="variables_set" id="6UkRrRin?=5699,9.LJ:">
                                                 <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                 <value name="VALUE">
                                                   <block type="text" id="p)6B^~T_Rv0AiRB*u]mk">
                                                     <field name="TEXT"></field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="variables_set" id="x-ZTggEZU,P_aRK;JG.q">
                                                     <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                     <value name="VALUE">
                                                       <block type="text" id="[tz-5NkFJVl*J(Mfl$dw">
                                                         <field name="TEXT"></field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="variables_set" id="KEkLwj1;v+n`|hcsbV~}">
                                                         <field name="VAR" id="CvK?S#qy;hmBCz`tdgBf">ort</field>
                                                         <value name="VALUE">
                                                           <block type="text" id="X=_{Y7%|UC?a,BJinB-C">
                                                             <field name="TEXT"></field>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="variables_set" id="ne@!nzO7Z8KNio9AsgdG">
                                                             <field name="VAR" id="8Mxf1lU^+(_[XwY|L3(:">ort2</field>
                                                             <value name="VALUE">
                                                               <block type="text" id="oR.COijs/oYMW@0AX*~K">
                                                                 <field name="TEXT"></field>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="variables_set" id="q86BP|SHyI5Sw0wKit:9">
                                                                 <field name="VAR" id="gUjA0kp/zoi==V%A7(KI">kreis</field>
                                                                 <value name="VALUE">
                                                                   <block type="text" id="r*imPdgaFOkct!+lI5Yo">
                                                                     <field name="TEXT"></field>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="variables_set" id="y8:oB^s_@fY8aPp]4mX$">
                                                                     <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                     <value name="VALUE">
                                                                       <block type="text" id="CwL{-QIfDx}g^#f)3$)6">
                                                                         <field name="TEXT"></field>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="variables_set" id="@0XAk3T@~yVm(H7^vCll">
                                                                         <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                         <value name="VALUE">
                                                                           <block type="text" id="(N7@62Jo{saK[@@@ZFiE">
                                                                             <field name="TEXT"></field>
                                                                           </block>
                                                                         </value>
                                                                         <next>
                                                                           <block type="variables_set" id="|mCWb0s,|mzF}8xffNqP">
                                                                             <field name="VAR" id="T]JEvDq|YNa4JKlpQnSS">hausnummer</field>
                                                                             <value name="VALUE">
                                                                               <block type="get_attr" id="-(-HXp55!|VOg5N|avy5">
                                                                                 <value name="PATH">
                                                                                   <shadow type="text" id="v{!XANWJ]P:Q^(gtzEmk">
                                                                                     <field name="TEXT">address.house_number</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                                 <value name="OBJECT">
                                                                                   <block type="variables_get" id="q*4$^E8{-,BUB$}}UtC)">
                                                                                     <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <next>
                                                                               <block type="variables_set" id="o^r(Hxy,g21/dt~9TKZy">
                                                                                 <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                 <value name="VALUE">
                                                                                   <block type="get_attr" id="4BRp8)RL(Z,ya1V7L%,k">
                                                                                     <value name="PATH">
                                                                                       <shadow type="text" id="@+Kn.LF%vkB35cm%To%G">
                                                                                         <field name="TEXT">address.road</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                     <value name="OBJECT">
                                                                                       <block type="variables_get" id="/rsi@S]q*[hct$N@3[U^">
                                                                                         <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <next>
                                                                                   <block type="variables_set" id="+g#!=48^0Ptra,[aQpyr">
                                                                                     <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="get_attr" id="~ZV;a5(Aw/K=L^#a3sw]">
                                                                                         <value name="PATH">
                                                                                           <shadow type="text" id="w:W|g,i:tSkuP*I^o;uQ">
                                                                                             <field name="TEXT">address.postcode</field>
                                                                                           </shadow>
                                                                                         </value>
                                                                                         <value name="OBJECT">
                                                                                           <block type="variables_get" id="{yOR**tGuGj71m^D:d[!">
                                                                                             <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                           </block>
                                                                                         </value>
                                                                                       </block>
                                                                                     </value>
                                                                                     <next>
                                                                                       <block type="variables_set" id="m;eWQI56kzaa0toQpJ?x">
                                                                                         <field name="VAR" id="329{(}BZRyRCy|UNJ2Mo">stadt</field>
                                                                                         <value name="VALUE">
                                                                                           <block type="get_attr" id="v+*aTZolu/3.opuTsA2I">
                                                                                             <value name="PATH">
                                                                                               <shadow type="text" id="dK9#DRY/x5vYP7}W;`F(">
                                                                                                 <field name="TEXT">address.town</field>
                                                                                               </shadow>
                                                                                             </value>
                                                                                             <value name="OBJECT">
                                                                                               <block type="variables_get" id="nvly[(7r/+?7*WB4@eh;">
                                                                                                 <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                               </block>
                                                                                             </value>
                                                                                           </block>
                                                                                         </value>
                                                                                         <next>
                                                                                           <block type="variables_set" id="oen2z3!LI}$?{hlibd,q">
                                                                                             <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                             <value name="VALUE">
                                                                                               <block type="get_attr" id="2gd)S{;0+7JB)rtZ;bqr">
                                                                                                 <value name="PATH">
                                                                                                   <shadow type="text" id="qpGzmC!GGqM(OzR`L)?c">
                                                                                                     <field name="TEXT">address.village</field>
                                                                                                   </shadow>
                                                                                                 </value>
                                                                                                 <value name="OBJECT">
                                                                                                   <block type="variables_get" id="V.[]^O%U]RWf`BOs]tUD">
                                                                                                     <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                   </block>
                                                                                                 </value>
                                                                                               </block>
                                                                                             </value>
                                                                                             <next>
                                                                                               <block type="variables_set" id="{yDWpRmYXY?]XfHdQ|g2">
                                                                                                 <field name="VAR" id="gUjA0kp/zoi==V%A7(KI">kreis</field>
                                                                                                 <value name="VALUE">
                                                                                                   <block type="get_attr" id="g~#/g^5sZK=Zj,%Ke5/s">
                                                                                                     <value name="PATH">
                                                                                                       <shadow type="text" id="W1g8|oIEO~6|_=|7R@7X">
                                                                                                         <field name="TEXT">address.county</field>
                                                                                                       </shadow>
                                                                                                     </value>
                                                                                                     <value name="OBJECT">
                                                                                                       <block type="variables_get" id="J)Bk|4^o(lvM(iv~(@xj">
                                                                                                         <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                   </block>
                                                                                                 </value>
                                                                                                 <next>
                                                                                                   <block type="variables_set" id="JJ=pAjKY88C81_RZa79=">
                                                                                                     <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                     <value name="VALUE">
                                                                                                       <block type="get_attr" id="8h+PMWbE#|bn}CD4oTi|">
                                                                                                         <value name="PATH">
                                                                                                           <shadow type="text" id=";GH4zjhdYRVGRVHNvmLs">
                                                                                                             <field name="TEXT">address.state</field>
                                                                                                           </shadow>
                                                                                                         </value>
                                                                                                         <value name="OBJECT">
                                                                                                           <block type="variables_get" id="Sg;0Iu]BS#a}1VqQ`$?9">
                                                                                                             <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                           </block>
                                                                                                         </value>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                     <next>
                                                                                                       <block type="variables_set" id="zw36a!](Wlgkn^.bA_v,">
                                                                                                         <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                         <value name="VALUE">
                                                                                                           <block type="get_attr" id="+fQ`)n1@Ww}/{%OO:K36">
                                                                                                             <value name="PATH">
                                                                                                               <shadow type="text" id="_MyW^~va)F:Z:IVq$)eR">
                                                                                                                 <field name="TEXT">address.country</field>
                                                                                                               </shadow>
                                                                                                             </value>
                                                                                                             <value name="OBJECT">
                                                                                                               <block type="variables_get" id="b!.wQ$]TN~jwuab{}EET">
                                                                                                                 <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                           </block>
                                                                                                         </value>
                                                                                                         <next>
                                                                                                           <block type="update" id="if)ck30){M%-RNa%6YzW">
                                                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                             <field name="OID">0_userdata.0.Kamera_tets</field>
                                                                                                             <field name="WITH_DELAY">FALSE</field>
                                                                                                             <value name="VALUE">
                                                                                                               <block type="text_join" id="L]Xd0hlDRwDDkUtpp:Sy">
                                                                                                                 <mutation items="10"></mutation>
                                                                                                                 <value name="ADD0">
                                                                                                                   <block type="logic_ternary" id="`UFoXvUPv1Pc4h`=|~JD">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id="[.49M8y)hxq~{X^IRIhx">
                                                                                                                         <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="variables_get" id="SWDWkrP_wLd{sF*qU!vC">
                                                                                                                         <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD1">
                                                                                                                   <block type="logic_ternary" id="vcVZEb8DzN)h~?~xN8-9">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id="I3DG;/dmb?K{_5{;owg2">
                                                                                                                         <field name="VAR" id="T]JEvDq|YNa4JKlpQnSS">hausnummer</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text_join" id="Ai]7i@~5/W?FUdK]ur}4">
                                                                                                                         <mutation items="3"></mutation>
                                                                                                                         <value name="ADD0">
                                                                                                                           <block type="text" id="6yfl7fSvG~cE$u:.$TgC">
                                                                                                                             <field name="TEXT"> </field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                         <value name="ADD1">
                                                                                                                           <block type="variables_get" id="+S)@B`}}t2SG}7vuMVJD">
                                                                                                                             <field name="VAR" id="T]JEvDq|YNa4JKlpQnSS">hausnummer</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD2">
                                                                                                                   <block type="logic_ternary" id="zEMV.C]qSX{P`T-XP^Hb">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id=";EN^{$cRysb_9ZPMBt`M">
                                                                                                                         <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text" id="GLb;?7As.fEM?4nR;ne=">
                                                                                                                         <field name="TEXT">, </field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD3">
                                                                                                                   <block type="logic_ternary" id="}z,CZJfQ*/A/w7YTi2~E">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id="6h8XVvv(r%]fP]`_z[l:">
                                                                                                                         <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text_join" id="kpl;N_th,XsHq{je#6GM">
                                                                                                                         <mutation items="2"></mutation>
                                                                                                                         <value name="ADD0">
                                                                                                                           <block type="variables_get" id=";szAWOxJP9i/Y)YwBv?j">
                                                                                                                             <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                         <value name="ADD1">
                                                                                                                           <block type="text" id="#m)lI}H`?u[CTjPpEYp.">
                                                                                                                             <field name="TEXT"> </field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD4">
                                                                                                                   <block type="logic_ternary" id="f3q*%jcof-N9$#Oke-.o">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id="NWTfW)1!!bSVDz~U)m/1">
                                                                                                                         <field name="VAR" id="329{(}BZRyRCy|UNJ2Mo">stadt</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text_join" id="sj#]HAN^-Gkp+[eghQuo">
                                                                                                                         <mutation items="2"></mutation>
                                                                                                                         <value name="ADD0">
                                                                                                                           <block type="variables_get" id="#.EdV`CR}}mi^q9|7Q#C">
                                                                                                                             <field name="VAR" id="329{(}BZRyRCy|UNJ2Mo">stadt</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD5">
                                                                                                                   <block type="logic_ternary" id="3}(rCIxnd-i9H=r%9|D_">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id="_zF]fccSN[EaZF7S+`Bq">
                                                                                                                         <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text_join" id="5{_~Hsp,?f;srXX4`u7b">
                                                                                                                         <mutation items="3"></mutation>
                                                                                                                         <value name="ADD0">
                                                                                                                           <block type="text" id="E}:x!ShHB.!M#zcb=u4m">
                                                                                                                             <field name="TEXT"> (</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                         <value name="ADD1">
                                                                                                                           <block type="variables_get" id="VH3cs+}4Q5RVaOsB{:i@">
                                                                                                                             <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                         <value name="ADD2">
                                                                                                                           <block type="text" id="4Ta#.3p=$7?enQV;2a1%">
                                                                                                                             <field name="TEXT">)</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD6">
                                                                                                                   <block type="logic_ternary" id="Vj8WjOez[mL4Zc?AX3Zx">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id="M-z[lpQ[x]I4k83U:,Gd">
                                                                                                                         <field name="VAR" id="gUjA0kp/zoi==V%A7(KI">kreis</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text_join" id="ERc_C[-PT^?8-q,#uh-y">
                                                                                                                         <mutation items="2"></mutation>
                                                                                                                         <value name="ADD0">
                                                                                                                           <block type="text" id="bCKq!|q{kx9I6..n^?8f">
                                                                                                                             <field name="TEXT">, </field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                         <value name="ADD1">
                                                                                                                           <block type="variables_get" id="kWEHuoiRjkV#krISVm^`">
                                                                                                                             <field name="VAR" id="gUjA0kp/zoi==V%A7(KI">kreis</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD7">
                                                                                                                   <block type="logic_ternary" id="_baHXH3=jK$cZ5Vt!*eN">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id="XbvIoiom{mDSet)68I9V">
                                                                                                                         <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text_join" id="Pd(Rt;kJBEe!P588$8/d">
                                                                                                                         <mutation items="2"></mutation>
                                                                                                                         <value name="ADD0">
                                                                                                                           <block type="text" id=".szY]0{i}{xj3sH-dOie">
                                                                                                                             <field name="TEXT">, </field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                         <value name="ADD1">
                                                                                                                           <block type="variables_get" id="VO9O.ditr_lkbbC}[#HM">
                                                                                                                             <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD8">
                                                                                                                   <block type="logic_ternary" id="%8ys_w*3qpg6I?!YB2Wr">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="variables_get" id="Y-mnVf(#$Q3@y^^?[9)J">
                                                                                                                         <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text_join" id="QIBSvhmB@0;noHJb|(yv">
                                                                                                                         <mutation items="2"></mutation>
                                                                                                                         <value name="ADD0">
                                                                                                                           <block type="text" id="N*!Q0NE,)$`$jJ!-MK4h">
                                                                                                                             <field name="TEXT">, </field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                         <value name="ADD1">
                                                                                                                           <block type="variables_get" id="7L_T5x.wW}%U!x`^s7Dc">
                                                                                                                             <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <value name="ADD9">
                                                                                                                   <block type="logic_ternary" id="bneVX)V$6)Olno`7@-!v">
                                                                                                                     <value name="IF">
                                                                                                                       <block type="logic_negate" id="90!{0(0ipi52TP$IVCiv">
                                                                                                                         <value name="BOOL">
                                                                                                                           <block type="variables_get" id="cw17gqGGH_e|zmnNA:BX">
                                                                                                                             <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <value name="THEN">
                                                                                                                       <block type="text" id=")-A+1mmU{^PQK+yNwNE%">
                                                                                                                         <field name="TEXT">Keine Adressen verfügbar.</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                           </block>
                                                                                                         </next>
                                                                                                       </block>
                                                                                                     </next>
                                                                                                   </block>
                                                                                                 </next>
                                                                                               </block>
                                                                                             </next>
                                                                                           </block>
                                                                                         </next>
                                                                                       </block>
                                                                                     </next>
                                                                                   </block>
                                                                                 </next>
                                                                               </block>
                                                                             </next>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                           </block>
                          </xml>
                          

                          Mir war es wichtig, für meine Visualisierung einen schönen sauberen Adressblock zu bekommen. Deshalb frage ich sehr viel ab, damit keine doppelten Kommas entstehen wenn es eine Info nicht gibt.

                          Wenn es zB so aussehen soll:

                          Teststraße 1, 12345 Testdorf, Deutschland
                          

                          Wenn es keine Straße gibt wollte ich da nicht

                          , 12345 Testdorf, Deutschland
                          

                          stehen haben.

                          Hier der Inhalt vom JS-Baustein ohne den Rest:

                          var request =require('request');
                          let result;
                          const options = {
                             url: 'https://nominatim.openstreetmap.org/reverse.php?format=json&lat=' + lat + '&lon=' + lon + '&zoom=18',
                             method: 'GET',
                             headers: {
                                 'Accept': 'application/json',
                                 'Accept-Charset': 'utf-8',
                                 'User-Agent': 'iobroker script'
                             }
                          }
                          
                          request(options, function(err,response,body){
                             result = JSON.parse(body);
                          })
                          await wait(1000);
                          return result;
                          

                          @DrFirebird

                          wenn ich Dein Skript benutze komm zuverlässig der Standort aus den GPS-Daten.

                          jedoch kommt zusätzlich noch diese Meldung:

                          	2025-10-05 02:48:39.807	warn	script.js.Standort_umrechnen: request package is deprecated - please use httpGet (or a stable lib like axios) instead!
                          

                          Hast Du zufällig eine aktuelle Version Deines Skriptes, welches Du hier posten kannst? Oder kann vielleicht jemand anderes helfen?

                          Ich bin zu unerfahren um das Skript mit dem httpGet - Baustein umzuwandeln.

                          Gruss S.

                          bahnuhrB 1 Antwort Letzte Antwort
                          0
                          • Steffe.S.S Steffe.S.

                            @david-g said in Adresse aus GPS Koordinaten ermitteln ?:

                            @drfirebird

                            Das ist mein Blockly:

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <variables>
                               <variable id="2]3hGy$Na|L2qX#+=;E8">lat</variable>
                               <variable id=".hv$JjjT(QY(0c2!/tuc">lon</variable>
                               <variable id="InM51wH+hhRZ1K}Uo6R:">result</variable>
                               <variable id="T]JEvDq|YNa4JKlpQnSS">hausnummer</variable>
                               <variable id="A)i-Et;L|j!6^^m_Y4-G">strasse</variable>
                               <variable id="6*5_=d|`GXhhd:zBG^[c">plz</variable>
                               <variable id="CvK?S#qy;hmBCz`tdgBf">ort</variable>
                               <variable id="8Mxf1lU^+(_[XwY|L3(:">ort2</variable>
                               <variable id="gUjA0kp/zoi==V%A7(KI">kreis</variable>
                               <variable id="r,(Pk/vT!2f9I99,*O1I">bundesland</variable>
                               <variable id="-llvKNjIkTSSp;-GZ(3]">land</variable>
                               <variable id="329{(}BZRyRCy|UNJ2Mo">stadt</variable>
                               <variable id="j|Nt5wiqkFM%y4V(19rU">stadtteil</variable>
                             </variables>
                             <block type="procedures_defcustomreturn" id="?;wMWdJ!vB8:m#;$39f@" x="-113" y="-38">
                               <mutation statements="false">
                                 <arg name="lat" varid="2]3hGy$Na|L2qX#+=;E8"></arg>
                                 <arg name="lon" varid=".hv$JjjT(QY(0c2!/tuc"></arg>
                               </mutation>
                               <field name="NAME">OSM</field>
                               <field name="SCRIPT">dmFyIHJlcXVlc3QgPXJlcXVpcmUoJ3JlcXVlc3QnKTsNCmxldCByZXN1bHQ7DQpjb25zdCBvcHRpb25zID0gew0KICAgIHVybDogJ2h0dHBzOi8vbm9taW5hdGltLm9wZW5zdHJlZXRtYXAub3JnL3JldmVyc2UucGhwP2Zvcm1hdD1qc29uJmxhdD0nICsgbGF0ICsgJyZsb249JyArIGxvbiArICcmem9vbT0xOCcsDQogICAgbWV0aG9kOiAnR0VUJywNCiAgICBoZWFkZXJzOiB7DQogICAgICAgICdBY2NlcHQnOiAnYXBwbGljYXRpb24vanNvbicsDQogICAgICAgICdBY2NlcHQtQ2hhcnNldCc6ICd1dGYtOCcsDQogICAgICAgICdVc2VyLUFnZW50JzogJ2lvYnJva2VyIHNjcmlwdCcNCiAgICB9DQp9DQoNCnJlcXVlc3Qob3B0aW9ucywgZnVuY3Rpb24oZXJyLHJlc3BvbnNlLGJvZHkpew0KICAgIHJlc3VsdCA9IEpTT04ucGFyc2UoYm9keSk7DQp9KQ0KYXdhaXQgd2FpdCgxMDAwKTsNCnJldHVybiByZXN1bHQ7</field>
                               <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                             </block>
                             <block type="on" id="4ru.qSpei2XH^rB2vH-S" x="-112" y="12">
                               <field name="OID">places.0.tasker.latitude</field>
                               <field name="CONDITION">any</field>
                               <field name="ACK_CONDITION"></field>
                               <statement name="STATEMENT">
                                 <block type="variables_set" id="wR~~7^?!0{b~ZWJW2z2Y">
                                   <field name="VAR" id="2]3hGy$Na|L2qX#+=;E8">lat</field>
                                   <value name="VALUE">
                                     <block type="get_value" id="7x~tx,s?a(xli`sb]5*z">
                                       <field name="ATTR">val</field>
                                       <field name="OID">places.0.tasker.latitude</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="variables_set" id="|i,e7-xsVZtwL,YE9Pns">
                                       <field name="VAR" id=".hv$JjjT(QY(0c2!/tuc">lon</field>
                                       <value name="VALUE">
                                         <block type="get_value" id="!/+#$U+|eCP!WX]+]~l|">
                                           <field name="ATTR">val</field>
                                           <field name="OID">places.0.tasker.longitude</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="variables_set" id="_]-UxYH%D~}#l6DWPyqA">
                                           <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                           <value name="VALUE">
                                             <block type="procedures_callcustomreturn" id="E6q6k3RA-DSW4n:wbmt5" inline="true">
                                               <mutation name="OSM">
                                                 <arg name="lat"></arg>
                                                 <arg name="lon"></arg>
                                               </mutation>
                                               <value name="ARG0">
                                                 <block type="variables_get" id="O~3vjlaQApGabQ#KZ_Np">
                                                   <field name="VAR" id="2]3hGy$Na|L2qX#+=;E8">lat</field>
                                                 </block>
                                               </value>
                                               <value name="ARG1">
                                                 <block type="variables_get" id=";6In%LVgU8c~ZW=V^#!+">
                                                   <field name="VAR" id=".hv$JjjT(QY(0c2!/tuc">lon</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id="*o+J}YHtCQe-Y!}W%d}_">
                                               <field name="VAR" id="T]JEvDq|YNa4JKlpQnSS">hausnummer</field>
                                               <value name="VALUE">
                                                 <block type="text" id="zyNnn~74lGRs=kz@zQ%x">
                                                   <field name="TEXT"></field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="variables_set" id="6UkRrRin?=5699,9.LJ:">
                                                   <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                   <value name="VALUE">
                                                     <block type="text" id="p)6B^~T_Rv0AiRB*u]mk">
                                                       <field name="TEXT"></field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="variables_set" id="x-ZTggEZU,P_aRK;JG.q">
                                                       <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                       <value name="VALUE">
                                                         <block type="text" id="[tz-5NkFJVl*J(Mfl$dw">
                                                           <field name="TEXT"></field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="variables_set" id="KEkLwj1;v+n`|hcsbV~}">
                                                           <field name="VAR" id="CvK?S#qy;hmBCz`tdgBf">ort</field>
                                                           <value name="VALUE">
                                                             <block type="text" id="X=_{Y7%|UC?a,BJinB-C">
                                                               <field name="TEXT"></field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="variables_set" id="ne@!nzO7Z8KNio9AsgdG">
                                                               <field name="VAR" id="8Mxf1lU^+(_[XwY|L3(:">ort2</field>
                                                               <value name="VALUE">
                                                                 <block type="text" id="oR.COijs/oYMW@0AX*~K">
                                                                   <field name="TEXT"></field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="variables_set" id="q86BP|SHyI5Sw0wKit:9">
                                                                   <field name="VAR" id="gUjA0kp/zoi==V%A7(KI">kreis</field>
                                                                   <value name="VALUE">
                                                                     <block type="text" id="r*imPdgaFOkct!+lI5Yo">
                                                                       <field name="TEXT"></field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="variables_set" id="y8:oB^s_@fY8aPp]4mX$">
                                                                       <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                       <value name="VALUE">
                                                                         <block type="text" id="CwL{-QIfDx}g^#f)3$)6">
                                                                           <field name="TEXT"></field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="variables_set" id="@0XAk3T@~yVm(H7^vCll">
                                                                           <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                           <value name="VALUE">
                                                                             <block type="text" id="(N7@62Jo{saK[@@@ZFiE">
                                                                               <field name="TEXT"></field>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="variables_set" id="|mCWb0s,|mzF}8xffNqP">
                                                                               <field name="VAR" id="T]JEvDq|YNa4JKlpQnSS">hausnummer</field>
                                                                               <value name="VALUE">
                                                                                 <block type="get_attr" id="-(-HXp55!|VOg5N|avy5">
                                                                                   <value name="PATH">
                                                                                     <shadow type="text" id="v{!XANWJ]P:Q^(gtzEmk">
                                                                                       <field name="TEXT">address.house_number</field>
                                                                                     </shadow>
                                                                                   </value>
                                                                                   <value name="OBJECT">
                                                                                     <block type="variables_get" id="q*4$^E8{-,BUB$}}UtC)">
                                                                                       <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="variables_set" id="o^r(Hxy,g21/dt~9TKZy">
                                                                                   <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="get_attr" id="4BRp8)RL(Z,ya1V7L%,k">
                                                                                       <value name="PATH">
                                                                                         <shadow type="text" id="@+Kn.LF%vkB35cm%To%G">
                                                                                           <field name="TEXT">address.road</field>
                                                                                         </shadow>
                                                                                       </value>
                                                                                       <value name="OBJECT">
                                                                                         <block type="variables_get" id="/rsi@S]q*[hct$N@3[U^">
                                                                                           <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                         </block>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                   <next>
                                                                                     <block type="variables_set" id="+g#!=48^0Ptra,[aQpyr">
                                                                                       <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="get_attr" id="~ZV;a5(Aw/K=L^#a3sw]">
                                                                                           <value name="PATH">
                                                                                             <shadow type="text" id="w:W|g,i:tSkuP*I^o;uQ">
                                                                                               <field name="TEXT">address.postcode</field>
                                                                                             </shadow>
                                                                                           </value>
                                                                                           <value name="OBJECT">
                                                                                             <block type="variables_get" id="{yOR**tGuGj71m^D:d[!">
                                                                                               <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                             </block>
                                                                                           </value>
                                                                                         </block>
                                                                                       </value>
                                                                                       <next>
                                                                                         <block type="variables_set" id="m;eWQI56kzaa0toQpJ?x">
                                                                                           <field name="VAR" id="329{(}BZRyRCy|UNJ2Mo">stadt</field>
                                                                                           <value name="VALUE">
                                                                                             <block type="get_attr" id="v+*aTZolu/3.opuTsA2I">
                                                                                               <value name="PATH">
                                                                                                 <shadow type="text" id="dK9#DRY/x5vYP7}W;`F(">
                                                                                                   <field name="TEXT">address.town</field>
                                                                                                 </shadow>
                                                                                               </value>
                                                                                               <value name="OBJECT">
                                                                                                 <block type="variables_get" id="nvly[(7r/+?7*WB4@eh;">
                                                                                                   <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </value>
                                                                                           <next>
                                                                                             <block type="variables_set" id="oen2z3!LI}$?{hlibd,q">
                                                                                               <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="get_attr" id="2gd)S{;0+7JB)rtZ;bqr">
                                                                                                   <value name="PATH">
                                                                                                     <shadow type="text" id="qpGzmC!GGqM(OzR`L)?c">
                                                                                                       <field name="TEXT">address.village</field>
                                                                                                     </shadow>
                                                                                                   </value>
                                                                                                   <value name="OBJECT">
                                                                                                     <block type="variables_get" id="V.[]^O%U]RWf`BOs]tUD">
                                                                                                       <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <next>
                                                                                                 <block type="variables_set" id="{yDWpRmYXY?]XfHdQ|g2">
                                                                                                   <field name="VAR" id="gUjA0kp/zoi==V%A7(KI">kreis</field>
                                                                                                   <value name="VALUE">
                                                                                                     <block type="get_attr" id="g~#/g^5sZK=Zj,%Ke5/s">
                                                                                                       <value name="PATH">
                                                                                                         <shadow type="text" id="W1g8|oIEO~6|_=|7R@7X">
                                                                                                           <field name="TEXT">address.county</field>
                                                                                                         </shadow>
                                                                                                       </value>
                                                                                                       <value name="OBJECT">
                                                                                                         <block type="variables_get" id="J)Bk|4^o(lvM(iv~(@xj">
                                                                                                           <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                   <next>
                                                                                                     <block type="variables_set" id="JJ=pAjKY88C81_RZa79=">
                                                                                                       <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                       <value name="VALUE">
                                                                                                         <block type="get_attr" id="8h+PMWbE#|bn}CD4oTi|">
                                                                                                           <value name="PATH">
                                                                                                             <shadow type="text" id=";GH4zjhdYRVGRVHNvmLs">
                                                                                                               <field name="TEXT">address.state</field>
                                                                                                             </shadow>
                                                                                                           </value>
                                                                                                           <value name="OBJECT">
                                                                                                             <block type="variables_get" id="Sg;0Iu]BS#a}1VqQ`$?9">
                                                                                                               <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                       <next>
                                                                                                         <block type="variables_set" id="zw36a!](Wlgkn^.bA_v,">
                                                                                                           <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                           <value name="VALUE">
                                                                                                             <block type="get_attr" id="+fQ`)n1@Ww}/{%OO:K36">
                                                                                                               <value name="PATH">
                                                                                                                 <shadow type="text" id="_MyW^~va)F:Z:IVq$)eR">
                                                                                                                   <field name="TEXT">address.country</field>
                                                                                                                 </shadow>
                                                                                                               </value>
                                                                                                               <value name="OBJECT">
                                                                                                                 <block type="variables_get" id="b!.wQ$]TN~jwuab{}EET">
                                                                                                                   <field name="VAR" id="InM51wH+hhRZ1K}Uo6R:">result</field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                           <next>
                                                                                                             <block type="update" id="if)ck30){M%-RNa%6YzW">
                                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                               <field name="OID">0_userdata.0.Kamera_tets</field>
                                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                                               <value name="VALUE">
                                                                                                                 <block type="text_join" id="L]Xd0hlDRwDDkUtpp:Sy">
                                                                                                                   <mutation items="10"></mutation>
                                                                                                                   <value name="ADD0">
                                                                                                                     <block type="logic_ternary" id="`UFoXvUPv1Pc4h`=|~JD">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id="[.49M8y)hxq~{X^IRIhx">
                                                                                                                           <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="variables_get" id="SWDWkrP_wLd{sF*qU!vC">
                                                                                                                           <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD1">
                                                                                                                     <block type="logic_ternary" id="vcVZEb8DzN)h~?~xN8-9">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id="I3DG;/dmb?K{_5{;owg2">
                                                                                                                           <field name="VAR" id="T]JEvDq|YNa4JKlpQnSS">hausnummer</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text_join" id="Ai]7i@~5/W?FUdK]ur}4">
                                                                                                                           <mutation items="3"></mutation>
                                                                                                                           <value name="ADD0">
                                                                                                                             <block type="text" id="6yfl7fSvG~cE$u:.$TgC">
                                                                                                                               <field name="TEXT"> </field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="ADD1">
                                                                                                                             <block type="variables_get" id="+S)@B`}}t2SG}7vuMVJD">
                                                                                                                               <field name="VAR" id="T]JEvDq|YNa4JKlpQnSS">hausnummer</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD2">
                                                                                                                     <block type="logic_ternary" id="zEMV.C]qSX{P`T-XP^Hb">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id=";EN^{$cRysb_9ZPMBt`M">
                                                                                                                           <field name="VAR" id="A)i-Et;L|j!6^^m_Y4-G">strasse</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text" id="GLb;?7As.fEM?4nR;ne=">
                                                                                                                           <field name="TEXT">, </field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD3">
                                                                                                                     <block type="logic_ternary" id="}z,CZJfQ*/A/w7YTi2~E">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id="6h8XVvv(r%]fP]`_z[l:">
                                                                                                                           <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text_join" id="kpl;N_th,XsHq{je#6GM">
                                                                                                                           <mutation items="2"></mutation>
                                                                                                                           <value name="ADD0">
                                                                                                                             <block type="variables_get" id=";szAWOxJP9i/Y)YwBv?j">
                                                                                                                               <field name="VAR" id="6*5_=d|`GXhhd:zBG^[c">plz</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="ADD1">
                                                                                                                             <block type="text" id="#m)lI}H`?u[CTjPpEYp.">
                                                                                                                               <field name="TEXT"> </field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD4">
                                                                                                                     <block type="logic_ternary" id="f3q*%jcof-N9$#Oke-.o">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id="NWTfW)1!!bSVDz~U)m/1">
                                                                                                                           <field name="VAR" id="329{(}BZRyRCy|UNJ2Mo">stadt</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text_join" id="sj#]HAN^-Gkp+[eghQuo">
                                                                                                                           <mutation items="2"></mutation>
                                                                                                                           <value name="ADD0">
                                                                                                                             <block type="variables_get" id="#.EdV`CR}}mi^q9|7Q#C">
                                                                                                                               <field name="VAR" id="329{(}BZRyRCy|UNJ2Mo">stadt</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD5">
                                                                                                                     <block type="logic_ternary" id="3}(rCIxnd-i9H=r%9|D_">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id="_zF]fccSN[EaZF7S+`Bq">
                                                                                                                           <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text_join" id="5{_~Hsp,?f;srXX4`u7b">
                                                                                                                           <mutation items="3"></mutation>
                                                                                                                           <value name="ADD0">
                                                                                                                             <block type="text" id="E}:x!ShHB.!M#zcb=u4m">
                                                                                                                               <field name="TEXT"> (</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="ADD1">
                                                                                                                             <block type="variables_get" id="VH3cs+}4Q5RVaOsB{:i@">
                                                                                                                               <field name="VAR" id="j|Nt5wiqkFM%y4V(19rU">stadtteil</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="ADD2">
                                                                                                                             <block type="text" id="4Ta#.3p=$7?enQV;2a1%">
                                                                                                                               <field name="TEXT">)</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD6">
                                                                                                                     <block type="logic_ternary" id="Vj8WjOez[mL4Zc?AX3Zx">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id="M-z[lpQ[x]I4k83U:,Gd">
                                                                                                                           <field name="VAR" id="gUjA0kp/zoi==V%A7(KI">kreis</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text_join" id="ERc_C[-PT^?8-q,#uh-y">
                                                                                                                           <mutation items="2"></mutation>
                                                                                                                           <value name="ADD0">
                                                                                                                             <block type="text" id="bCKq!|q{kx9I6..n^?8f">
                                                                                                                               <field name="TEXT">, </field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="ADD1">
                                                                                                                             <block type="variables_get" id="kWEHuoiRjkV#krISVm^`">
                                                                                                                               <field name="VAR" id="gUjA0kp/zoi==V%A7(KI">kreis</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD7">
                                                                                                                     <block type="logic_ternary" id="_baHXH3=jK$cZ5Vt!*eN">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id="XbvIoiom{mDSet)68I9V">
                                                                                                                           <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text_join" id="Pd(Rt;kJBEe!P588$8/d">
                                                                                                                           <mutation items="2"></mutation>
                                                                                                                           <value name="ADD0">
                                                                                                                             <block type="text" id=".szY]0{i}{xj3sH-dOie">
                                                                                                                               <field name="TEXT">, </field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="ADD1">
                                                                                                                             <block type="variables_get" id="VO9O.ditr_lkbbC}[#HM">
                                                                                                                               <field name="VAR" id="r,(Pk/vT!2f9I99,*O1I">bundesland</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD8">
                                                                                                                     <block type="logic_ternary" id="%8ys_w*3qpg6I?!YB2Wr">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="variables_get" id="Y-mnVf(#$Q3@y^^?[9)J">
                                                                                                                           <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text_join" id="QIBSvhmB@0;noHJb|(yv">
                                                                                                                           <mutation items="2"></mutation>
                                                                                                                           <value name="ADD0">
                                                                                                                             <block type="text" id="N*!Q0NE,)$`$jJ!-MK4h">
                                                                                                                               <field name="TEXT">, </field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="ADD1">
                                                                                                                             <block type="variables_get" id="7L_T5x.wW}%U!x`^s7Dc">
                                                                                                                               <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="ADD9">
                                                                                                                     <block type="logic_ternary" id="bneVX)V$6)Olno`7@-!v">
                                                                                                                       <value name="IF">
                                                                                                                         <block type="logic_negate" id="90!{0(0ipi52TP$IVCiv">
                                                                                                                           <value name="BOOL">
                                                                                                                             <block type="variables_get" id="cw17gqGGH_e|zmnNA:BX">
                                                                                                                               <field name="VAR" id="-llvKNjIkTSSp;-GZ(3]">land</field>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="THEN">
                                                                                                                         <block type="text" id=")-A+1mmU{^PQK+yNwNE%">
                                                                                                                           <field name="TEXT">Keine Adressen verfügbar.</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </next>
                                                                                                         </block>
                                                                                                       </next>
                                                                                                     </block>
                                                                                                   </next>
                                                                                                 </block>
                                                                                               </next>
                                                                                             </block>
                                                                                           </next>
                                                                                         </block>
                                                                                       </next>
                                                                                     </block>
                                                                                   </next>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                            </xml>
                            

                            Mir war es wichtig, für meine Visualisierung einen schönen sauberen Adressblock zu bekommen. Deshalb frage ich sehr viel ab, damit keine doppelten Kommas entstehen wenn es eine Info nicht gibt.

                            Wenn es zB so aussehen soll:

                            Teststraße 1, 12345 Testdorf, Deutschland
                            

                            Wenn es keine Straße gibt wollte ich da nicht

                            , 12345 Testdorf, Deutschland
                            

                            stehen haben.

                            Hier der Inhalt vom JS-Baustein ohne den Rest:

                            var request =require('request');
                            let result;
                            const options = {
                               url: 'https://nominatim.openstreetmap.org/reverse.php?format=json&lat=' + lat + '&lon=' + lon + '&zoom=18',
                               method: 'GET',
                               headers: {
                                   'Accept': 'application/json',
                                   'Accept-Charset': 'utf-8',
                                   'User-Agent': 'iobroker script'
                               }
                            }
                            
                            request(options, function(err,response,body){
                               result = JSON.parse(body);
                            })
                            await wait(1000);
                            return result;
                            

                            @DrFirebird

                            wenn ich Dein Skript benutze komm zuverlässig der Standort aus den GPS-Daten.

                            jedoch kommt zusätzlich noch diese Meldung:

                            	2025-10-05 02:48:39.807	warn	script.js.Standort_umrechnen: request package is deprecated - please use httpGet (or a stable lib like axios) instead!
                            

                            Hast Du zufällig eine aktuelle Version Deines Skriptes, welches Du hier posten kannst? Oder kann vielleicht jemand anderes helfen?

                            Ich bin zu unerfahren um das Skript mit dem httpGet - Baustein umzuwandeln.

                            Gruss S.

                            bahnuhrB Online
                            bahnuhrB Online
                            bahnuhr
                            Forum Testing Most Active
                            schrieb am zuletzt editiert von bahnuhr
                            #61

                            @steffe-s

                            anbei:

                                var lat = "51";
                                var lon = "10";
                            
                            httpGet('https://nominatim.openstreetmap.org/reverse.php?format=json&lat=' + lat + '&lon=' + lon + '&zoom=18', { timeout: 1000 }, (error, response) => {
                                if (!error) {
                                    var result = JSON.parse(response.data);
                                    log (result.address.road + " " + result.address.house_number); 
                                    log (result.address.postcode + " " + result.address.municipality); 
                                } else {
                                    console.error(error);
                                }
                            });
                            

                            Nachtrag:
                            Ich war zu schnell, es war ja schon mehrmals drin!

                            @steffe-s
                            Hast du den thread gelesen ?


                            Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                            Danke.
                            gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                            ScreenToGif :https://www.screentogif.com/downloads.html

                            Steffe.S.S 2 Antworten Letzte Antwort
                            0
                            • bahnuhrB bahnuhr

                              @steffe-s

                              anbei:

                                  var lat = "51";
                                  var lon = "10";
                              
                              httpGet('https://nominatim.openstreetmap.org/reverse.php?format=json&lat=' + lat + '&lon=' + lon + '&zoom=18', { timeout: 1000 }, (error, response) => {
                                  if (!error) {
                                      var result = JSON.parse(response.data);
                                      log (result.address.road + " " + result.address.house_number); 
                                      log (result.address.postcode + " " + result.address.municipality); 
                                  } else {
                                      console.error(error);
                                  }
                              });
                              

                              Nachtrag:
                              Ich war zu schnell, es war ja schon mehrmals drin!

                              @steffe-s
                              Hast du den thread gelesen ?

                              Steffe.S.S Offline
                              Steffe.S.S Offline
                              Steffe.S.
                              schrieb am zuletzt editiert von
                              #62

                              @bahnuhr

                              Ich habe den thread sogar mehrfach gelesen und bin dann gegen 4:00 Uhr ins Bett. Ich teste es dann noch mal

                              1 Antwort Letzte Antwort
                              0
                              • bahnuhrB bahnuhr

                                @steffe-s

                                anbei:

                                    var lat = "51";
                                    var lon = "10";
                                
                                httpGet('https://nominatim.openstreetmap.org/reverse.php?format=json&lat=' + lat + '&lon=' + lon + '&zoom=18', { timeout: 1000 }, (error, response) => {
                                    if (!error) {
                                        var result = JSON.parse(response.data);
                                        log (result.address.road + " " + result.address.house_number); 
                                        log (result.address.postcode + " " + result.address.municipality); 
                                    } else {
                                        console.error(error);
                                    }
                                });
                                

                                Nachtrag:
                                Ich war zu schnell, es war ja schon mehrmals drin!

                                @steffe-s
                                Hast du den thread gelesen ?

                                Steffe.S.S Offline
                                Steffe.S.S Offline
                                Steffe.S.
                                schrieb am zuletzt editiert von Steffe.S.
                                #63

                                @bahnuhr

                                Vielen Dank noch mal für den Hinweis auf deinen Skript. Es funktioniert super .

                                Jedoch bekomme ich es einfach nicht hin, meine GPS Daten nach eventueller Änderung automatisch in Dein Script zu bekommen.

                                Wäre es vielleicht möglich, dass du mir helfen kannst?

                                Gruß

                                bahnuhrB 1 Antwort Letzte Antwort
                                0
                                • Steffe.S.S Steffe.S.

                                  @bahnuhr

                                  Vielen Dank noch mal für den Hinweis auf deinen Skript. Es funktioniert super .

                                  Jedoch bekomme ich es einfach nicht hin, meine GPS Daten nach eventueller Änderung automatisch in Dein Script zu bekommen.

                                  Wäre es vielleicht möglich, dass du mir helfen kannst?

                                  Gruß

                                  bahnuhrB Online
                                  bahnuhrB Online
                                  bahnuhr
                                  Forum Testing Most Active
                                  schrieb am zuletzt editiert von
                                  #64

                                  @steffe-s
                                  Wo liegen die Daten?
                                  Und wo soll die Adresse hin ?


                                  Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                                  Danke.
                                  gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                                  ScreenToGif :https://www.screentogif.com/downloads.html

                                  Steffe.S.S 1 Antwort Letzte Antwort
                                  0
                                  • bahnuhrB bahnuhr

                                    @steffe-s
                                    Wo liegen die Daten?
                                    Und wo soll die Adresse hin ?

                                    Steffe.S.S Offline
                                    Steffe.S.S Offline
                                    Steffe.S.
                                    schrieb am zuletzt editiert von Steffe.S.
                                    #65

                                    @bahnuhr

                                    In deinem Skript in Zeile 1 und 2 stehen ja die GPS Daten drin.

                                    Diese kann man doch sicherlich auch mit einem Blockly dynamisch befüllen. Von 2 Datenpunkten, die lat und long Positionen. liefern.

                                    Danach könnte vielleicht die Adresse als Datenpunkt abgespeichert werden.

                                    bahnuhrB 1 Antwort Letzte Antwort
                                    0
                                    • Steffe.S.S Steffe.S.

                                      @bahnuhr

                                      In deinem Skript in Zeile 1 und 2 stehen ja die GPS Daten drin.

                                      Diese kann man doch sicherlich auch mit einem Blockly dynamisch befüllen. Von 2 Datenpunkten, die lat und long Positionen. liefern.

                                      Danach könnte vielleicht die Adresse als Datenpunkt abgespeichert werden.

                                      bahnuhrB Online
                                      bahnuhrB Online
                                      bahnuhr
                                      Forum Testing Most Active
                                      schrieb am zuletzt editiert von
                                      #66

                                      @steffe-s
                                      Ich will die DP wissen, wo deine Daten liegen !

                                      Und blockly mach ich nicht.

                                      Da muss jemand anders helfen.


                                      Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                                      Danke.
                                      gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                                      ScreenToGif :https://www.screentogif.com/downloads.html

                                      Steffe.S.S 1 Antwort Letzte Antwort
                                      0
                                      • bahnuhrB bahnuhr

                                        @steffe-s
                                        Ich will die DP wissen, wo deine Daten liegen !

                                        Und blockly mach ich nicht.

                                        Da muss jemand anders helfen.

                                        Steffe.S.S Offline
                                        Steffe.S.S Offline
                                        Steffe.S.
                                        schrieb am zuletzt editiert von
                                        #67

                                        @bahnuhr

                                        hier die Datenpunkte, die ich mir vorgestellt hatte:

                                        von lat und long kommen die Daten und bei Standort wollte ich die Adresse speichern

                                        Screenshot 2025-10-05 190915.png

                                        bahnuhrB S 2 Antworten Letzte Antwort
                                        0
                                        • Steffe.S.S Steffe.S.

                                          @bahnuhr

                                          hier die Datenpunkte, die ich mir vorgestellt hatte:

                                          von lat und long kommen die Daten und bei Standort wollte ich die Adresse speichern

                                          Screenshot 2025-10-05 190915.png

                                          bahnuhrB Online
                                          bahnuhrB Online
                                          bahnuhr
                                          Forum Testing Most Active
                                          schrieb am zuletzt editiert von bahnuhr
                                          #68

                                          @steffe-s

                                          ausprobieren:

                                          var idgps    = ["0_userdata.0.BMW-Adapter-Standort.latitude", "0_userdata.0.BMW-Adapter-Standort.longitude"];
                                          on({id: idgps, change: "ne"}, function(){
                                              Adresse_ermitteln();
                                          });
                                          
                                          function Adresse_ermitteln() {
                                              var lat = getState("0_userdata.0.BMS-Adapter-Standort.latitude").val;
                                              var lon = getState("0_userdata.0.BMS-Adapter-Standort.longitude").val;
                                              httpGet('https://nominatim.openstreetmap.org/reverse.php?format=json&lat=' + lat + '&lon=' + lon + '&zoom=18', { timeout: 1000 }, (error, response) => {
                                                  if (!error) {
                                                      var result = JSON.parse(response.data);
                                                      //log (result.address.road + " " + result.address.house_number); 
                                                      //log (result.address.postcode + " " + result.address.municipality); 
                                                      setState("0_userdata.0.BMW-Adapter-Standort.Standort", result.address.road + " " + result.address.house_number + ", "+ result.address.postcode + " " + result.address.municipality);
                                                  } else {
                                                      console.error(error);
                                                  }
                                              });
                                          }
                                          
                                          

                                          Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                                          Danke.
                                          gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                                          ScreenToGif :https://www.screentogif.com/downloads.html

                                          CodierknechtC Steffe.S.S 2 Antworten Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          830

                                          Online

                                          32.5k

                                          Benutzer

                                          81.9k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe