setLongitude

fun setLongitude(degrees: Int, minutes: Int, seconds: Double, direction: String): GeoLocation

Method to set the longitude in degrees, minutes and seconds.

Parameters

degrees

The degrees of longitude to set between 0 and 180. As an example 74 would be set for Lakewood, NJ. An IllegalArgumentException will be thrown if the value exceeds the limits.

direction

E for east of the Prime Meridian or W for west of it. An IllegalArgumentException will be thrown if the value is not E or W.