marola.location

package marola.location

Members list

Type members

Classlikes

object IpGeolocation

Coarse "where am I" for the CLI, from the machine's public IP — the zero-setup fallback when neither --lat/--lon nor MAROLA_ORIGIN_LAT/LON is given (see Main.resolveOrigin).

Coarse "where am I" for the CLI, from the machine's public IP — the zero-setup fallback when neither --lat/--lon nor MAROLA_ORIGIN_LAT/LON is given (see Main.resolveOrigin).

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
final case class IpLocation(coordinates: Coordinates, city: Option[String], agreeingSources: List[String], totalSources: Int)

Where this machine's public IP geolocates to, plus how much to trust it: agreeingSources are the providers whose answer landed within IpGeolocation.AgreementRadiusKm of the chosen point, out of totalSources that answered at all.

Where this machine's public IP geolocates to, plus how much to trust it: agreeingSources are the providers whose answer landed within IpGeolocation.AgreementRadiusKm of the chosen point, out of totalSources that answered at all.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all