/**
 * Given a string of coordinates in degrees, returns a tuple representing the coordinates in tuple format.
 * Each coordinate in the string is separated by a comma.
 * The string contains both positive and negative numbers.
 * Example: "45.2,-73.6" will return (45.2, -73.6).
 */
fun convertDegrees(degrees: String): Pair<Double, Double> {

    // Split the string into a list of coordinates
    val coordinates = degrees.split(",")
    
    // Convert each coordinate from string to double
    val convertedCoordinates = coordinates.map { it.toDouble() }
    
    // Create a pair from the converted coordinates
    return Pair(convertedCoordinates[0], convertedCoordinates[1])
}
/**
 * Given a string of coordinates in degrees, returns a tuple representing the coordinates in tuple format.
 * Each coordinate in the string is separated by a comma.
 * The string contains both positive and negative numbers.
 * Example: "45.2,-73.6" will return (45.2, -73.6).
 */
fun convertDegrees(degrees: String): Pair<Double, Double> {
/**
 * Given a string of coordinates in degrees, returns a tuple representing the coordinates in tuple format.
 * Each coordinate in the string is separated by a comma.
 * The string contains both positive and negative numbers.
 * Example: "45.2,-73.6" will return (45.2, -73.6).
 */
fun convertDegrees(degrees: String): Pair<Double, Double> {

    // Split the string into a list of coordinates
    val coordinates = degrees.split(",")
    
    // Convert each coordinate from string to double
    val convertedCoordinates = coordinates.map { it.toDouble() }
    
    // Create a pair from the converted coordinates
    return Pair(convertedCoordinates[0], convertedCoordinates[1])
}