Region

world.places$package.Region
object Region

The named areas, resolution by M49 code, and the accessors for Region. Containment and grouping are deliberately absent: a region subtag needs the numeric identity, not the edges.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Region.type

Members list

Type members

Classlikes

final case class Unknown(code: Int) extends WorldError

Carries the code that resolved to nothing.

Carries the code that resolved to nothing.

Attributes

Supertypes
trait Product
trait Equals
class WorldError
class TypedError
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def from(m49: Int): Either[Unknown, Region]

Resolves any UN M49 numeric code: a macro area (419) or a territory's numeric (404).

Resolves any UN M49 numeric code: a macro area (419) or a territory's numeric (404).

Attributes

Inherited fields

val Africa: Region

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)
val Asia: Region

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)
val Europe: Region

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)

Attributes

Inherited from:
Regions (hidden)
val World: Region

Attributes

Inherited from:
Regions (hidden)

Givens

Givens

given given_Ordering_Region: Ordering[Region]

Extensions

Extensions

extension (r: Region)
def m49: Option[Int]
def subtag: String

The BCP 47 region subtag: alpha-2 for territories, zero-padded 3-digit for areas.

The BCP 47 region subtag: alpha-2 for territories, zero-padded 3-digit for areas.

Attributes

def territory: Option[Territory]