Location
A location like a country, state, city, etc.
Properties
@type
Inherited from Entity.@type
- Type:
string
(external doc) - Proto-Index: 1
@id
Inherited from RefEntity.@id
- Type:
string
(external doc) - Proto-Index: 2
name
Inherited from RefEntity.name
- Type:
string
(external doc) - Proto-Index: 3
description
Inherited from RefEntity.description
- Type:
string
(external doc) - Proto-Index: 4
category
Inherited from RootEntity.category
- Type:
string
(external doc) - Proto-Index: 5
lastChange
Inherited from RootEntity.lastChange
- Type:
dateTime
(external doc) - Proto-Index: 6
tags
Inherited from RootEntity.tags
- Type:
List
ofstring
(external doc) - Proto-Index: 7
version
Inherited from RootEntity.version
- Type:
string
(external doc) - Proto-Index: 8
library
Inherited from RootEntity.library
- Type:
string
(external doc) - Proto-Index: 9
code
The code of the location (e.g. an ISO 2-letter country code).
- Type:
string
(external doc) - Proto-Index: 10
latitude
The average latitude of the location.
- Type:
optional
double
(external doc) - Proto-Index: 11
longitude
The average longitude of the location.
- Type:
optional
double
(external doc) - Proto-Index: 12
geometry
A GeoJSON object.
- Type:
GeoJSON
(external doc) - Proto-Index: 13
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
library: str
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
}