/**
 * Given the latitude and longitude, determine if it represents a valid geographic location or not.
 *
 * @param latitude The latitude component of the location.
 * @param longitude The longitude component of the location.
 * @return True if the location is valid, False otherwise.
 */
fun checkLongitude(latitude: Double, longitude: Double): Boolean {

    // Check if the latitude is within the valid range (-90 to 90)
    // and the longitude is within the valid range (-180 to 180)
    return (latitude in -90.0..90.0) && (longitude in -180.0..180.0)
}
/**
 * Given the latitude and longitude, determine if it represents a valid geographic location or not.
 *
 * @param latitude The latitude component of the location.
 * @param longitude The longitude component of the location.
 * @return True if the location is valid, False otherwise.
 */
fun checkLongitude(latitude: Double, longitude: Double): Boolean {
/**
 * Given the latitude and longitude, determine if it represents a valid geographic location or not.
 *
 * @param latitude The latitude component of the location.
 * @param longitude The longitude component of the location.
 * @return True if the location is valid, False otherwise.
 */
fun checkLongitude(latitude: Double, longitude: Double): Boolean {

    // Check if the latitude is within the valid range (-90 to 90)
    // and the longitude is within the valid range (-180 to 180)
    return (latitude in -90.0..90.0) && (longitude in -180.0..180.0)
}