setLatitude

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

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

Parameters

degrees

The degrees of latitude to set between 0 and 90. For example 40 would be used for Lakewood, NJ. An IllegalArgumentException will be thrown if the value exceeds the limit.

direction

N for north and S for south. An IllegalArgumentException will be thrown if the value is not S or N.