How do I parse GISPoint to get individual Latitude and Longitude?

I have the following that will return me a camera object.

var milestoneCameraObject = new VideoOS.Platform.ConfigurationItems.Camera(camera.FQID);

It has a GISPoint which is defined as a string.

For example “POINT (-44.44444 33.33333)”

How do I parse this to get the individual Longitude and Latitude from it? Or is there another way to get the Longitude and Latitude for a given camera?

Please see this link, it might be helpful -

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_configuration_items_1_1_gis_map_location.html&tree=tree_search.html?search=gismaplocation

I looked at that and tried the following:

    var milestoneCameraObject = new VideoOS.Platform.ConfigurationItems.Camera(camera.FQID);

    var milestoneCameraGisLocation = new VideoOS.Platform.ConfigurationItems.GisMapLocation(camera.FQID);

But the PositionX and PositionY information is blank in the milestoneCameraGisLocation object.

Am I missing something?

You have already got milestoneCameraObject.GisPoint, so you will need to parse milestoneCameraObject.GisPoint.