I want to convert a String with a pattern like \"(53.324523, 43.252352)\" into a latlng. I already found the right function:
var input = latlngArray[i];
var
Quick fix after var input. Looks like the '(' is messing up the lat conversion:
input = input.replace('(','');
A general solution can be:
var locationToStringed = "(53.324523, 43.252352)";
var input = locationToStringed.replace('(', '');
var latlngStr = input.split(",", 2);
var lat = parseFloat(latlngStr[0]);
var lng = parseFloat(latlngStr[1]);
var parsedPosition = new google.maps.LatLng(lat, lng);