[SOLVED] GeoLocation function not found

Started by lweidig, December 20, 2018, 05:37:38 AM

Previous topic - Next topic

lweidig

Running a script like the one at:
https://wiki.netxms.org/index.php?title=Script_Example:_Setting_node_geolocation_from_SNMP&mobileaction=toggle_view_desktop

Gives an error on the GeoLocation line with function not found.  We are running 2.2.10.  How do we correct this?

lweidig

Victor any ideas how to correct this?  The line of code is pretty much the one in the page referred to.  Thanks!

Victor Kirhenshtein

Hi,

replace code like

geoLoc = GeoLocation(lat, long);

with

geoLoc = new GeoLocation(lat, long);


I'll update script example as well.

Best regards,
Victor

lweidig