if (_isDecimalDegrees_(strsCoord))
{
Double d1 = Double.parseDouble(strsCoord[0].trim());
Double d2 = Double.parseDouble(strsCoord[1].trim());
return new BasicPointOfInterest(LatLon.fromDegrees(d1, d2));
}
else //may be in DMS
{
Angle aLat = Angle.fromDMS(strsCoord[0].trim());
Angle aLon = Angle.fromDMS(strsCoord[1].trim());
return new BasicPointOfInterest(LatLon.fromDegrees(aLat.getDegrees(), aLon.getDegrees()));
}
}