8 Replies Latest reply on Apr 24, 2017 9:49 PM by anna RSS
    scha-2 Explorer

    I have error about reverse geocoding

    it was great

    because it was working still yesterday

    but Today!!

    error!!!!!

     

    please .. how to fix it?

    thanks

      • Re: I have error about reverse geocoding
        Ankit Gupta Ninja

        Hi seonho Cha,

         

        Does it work when you use http instead of https?

        Also, please share the code instead of a Screenshot of code.

        • Re: I have error about reverse geocoding
          Ankit Gupta Ninja

          Also, the error seems to be related to SSL try adding following in the params:

          ignoreSSLErrors: true /* BOOLEAN */,

            • Re: I have error about reverse geocoding
              scha-2 Explorer

              this is my code

              and i add that but still error...

               

              var params = {

                  ignoreSSLErrors: true /* BOOLEAN */,

                  timeout: 75 /* NUMBER */,

                  url: "https://maps.googleapis.com/maps/api/geocode/json?latlng=" + lat + "," + long + "&language=ko" /* STRING */,

              };

              // result: JSON

              var result = Resources["ContentLoaderFunctions"].GetJSON(params);

              var address = result.results[0].formatted_address.substring(5);

               

              var params={

                  infoTableName:"UpdatePropertiesInfoTableTMP",

                  dataShapeName:"NamedVTQ"

              };

              var updateValues = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

              updateValues.AddRow({'time':datetime,'name':'GPS_Address','quallity':undefined,'value':address});

               

               

               

              me.UpdatePropertyValues({values:updateValues});

              • Re: I have error about reverse geocoding
                scha-2 Explorer

                this code error

                i input String value(i have tried number input)

                 

                this code No error.. but i use real time data

                so this code not useful 

                  • Re: I have error about reverse geocoding
                    anna Creator

                    Dear seonho cha,

                    Please try to use http instead of https url:

                    //var url = "http://maps.googleapis.com/maps/api/geocode/json?latlng=39.773844,-89.643711";  
                    var url = "http://maps.googleapis.com/maps/api/geocode/json?latlng="+latitude+","+longitude;  
                      
                      
                      
                      
                    var params = {  
                      proxyScheme: undefined /* STRING */,  
                      headers: undefined /* JSON */,  
                      ignoreSSLErrors: undefined /* BOOLEAN */,  
                      useNTLM: undefined /* BOOLEAN */,  
                      workstation: undefined /* STRING */,  
                      useProxy: undefined/* BOOLEAN */,  
                      withCookies: undefined /* BOOLEAN */,  
                      proxyHost: undefined/* STRING */,  
                      url: url /* STRING */,  
                      timeout: undefined /* NUMBER */,  
                      proxyPort: undefined/* INTEGER */,  
                      password: undefined /* STRING */,  
                      domain: undefined /* STRING */,  
                      username: undefined /* STRING */  
                    };  
                      
                      
                    var json1 = Resources["ContentLoaderFunctions"].GetJSON(params);  
                    var result = json1.results[0].formatted_address;  
                    
                    
                    
                    
                    

                     

                     

                    input:

                    latitude:NUMBER

                    longitude:NUMBER

                    output: STRING  

                     

                    Please let me know if it works.

                     

                    Br,

                    Anna