Location

A location like a country, state, city, etc.

Properties

@type

Inherited from Entity.@type

@id

Inherited from RefEntity.@id

name

Inherited from RefEntity.name

description

Inherited from RefEntity.description

category

Inherited from RootEntity.category

lastChange

Inherited from RootEntity.lastChange

tags

Inherited from RootEntity.tags

version

Inherited from RootEntity.version

code

The code of the location (e.g. an ISO 2-letter country code).

latitude

The average latitude of the location.

longitude

The average longitude of the location.

geometry

A GeoJSON object.

Python class stub

The snippet below shows the names of the properties of the corresponding Python class of the olca-schema package. Note that this is not the full class definition but just shows the names of the class and its properties.


@dataclass
class Location:
  id: str
  category: str
  code: str
  description: str
  geometry: Dict[str, Any]
  last_change: str
  latitude: float
  longitude: float
  name: str
  tags: List[str]
  version: str

JSON example

{
  "@type": "Location",
  "@id": "28840420-4e3d-3522-a930-8317344a285d",
  "name": "Poland",
  "description": "reference location, sources: ISO 3166-1, ecoinvent 3, ILCD, GaBi",
  "code": "PL",
  "latitude": 52.125,
  "longitude": 19.401
}