Skip to main content
18-Opal
April 20, 2017
Question

I have error about reverse geocoding

  • April 20, 2017
  • 8 replies
  • 2996 views

it was great

because it was working still yesterday

but Today!!

error!!!!!

please .. how to fix it?

thanks

8 replies

5-Regular Member
April 20, 2017

Hi seonho Cha​,

Does it work when you use http instead of https?

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

5-Regular Member
April 20, 2017

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

ignoreSSLErrors: true /* BOOLEAN */,

CHASEONHO18-OpalAuthor
18-Opal
April 20, 2017

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});

CHASEONHO18-OpalAuthor
18-Opal
April 20, 2017

i  did not turn off Computer about 7days.

and it's code works very well before today...