cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

I have error about reverse geocoding

CHASEONHO
18-Opal

I have error about reverse geocoding

it was great

because it was working still yesterday

but Today!!

error!!!!!

please .. how to fix it?

thanks

8 REPLIES 8

Hi seonho Cha​,

Does it work when you use http instead of https?

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

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

ignoreSSLErrors: true /* BOOLEAN */,

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

i  did not turn off Computer about 7days.

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

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 

AnnaAn
14-Alexandrite
(To:CHASEONHO)

Dear seonho cha,

Please try to use http instead of https url:

  1. //var url = "http://maps.googleapis.com/maps/api/geocode/json?latlng=39.773844,-89.643711"; 
  2. var url = "http://maps.googleapis.com/maps/api/geocode/json?latlng="+latitude+","+longitude;
  3.  
  4.  
  5.  
  6.  
  7. var params = { 
  8.   proxyScheme: undefined /* STRING */
  9.   headers: undefined /* JSON */
  10.   ignoreSSLErrors: undefined /* BOOLEAN */
  11.   useNTLM: undefined /* BOOLEAN */
  12.   workstation: undefined /* STRING */
  13.   useProxy: undefined/* BOOLEAN */
  14.   withCookies: undefined /* BOOLEAN */
  15.   proxyHost: undefined/* STRING */
  16.   url: url /* STRING */
  17.   timeout: undefined /* NUMBER */
  18.   proxyPort: undefined/* INTEGER */
  19.   password: undefined /* STRING */
  20.   domain: undefined /* STRING */
  21.   username: undefined /* STRING */ 
  22. }; 
  23.  
  24.  
  25. var json1 = Resources["ContentLoaderFunctions"].GetJSON(params); 
  26. var result = json1.results[0].formatted_address; 

input:

latitude:NUMBER

longitude:NUMBER

output: STRING  

Please let me know if it works.

Br,

Anna

thanks a lot!!!

but https, http good working

and i found reason

i think if many Service(about 10?) in Thing

GeoCoding service appear this error

and i extend timeout 100 -> 1000

i think that both reason makes error

thank you really really you 're angel !!

AnnaAn
14-Alexandrite
(To:CHASEONHO)

Dear seonho cha,

You are welcome!

Glad to hear it works for you.

Please mark correct answer so we could close this thread and feel free to open new topic we will continue assist with your new issues.

Thank you,

Br,

Anna

Announcements


Top Tags