Objects

class pywarsaw.objects.AirData(ijp: pywarsaw.objects.Ijp, param_name: str, param_code: str, value: float, time: str, unit: str)

Bases: pywarsaw.objects.DTO

Measurements for AirQuality DTO.

ijp: pywarsaw.objects.Ijp
param_code: str
param_name: str
time: Optional[datetime.date]
unit: str
value: float
class pywarsaw.objects.AirQuality(ijp: pywarsaw.objects.Ijp, data_source: str, name: str, station_type: str, lon: float, lat: float, owner: str, station: str, address: pywarsaw.objects.AirStationAddress, data: pywarsaw.objects.AirData)

Bases: pywarsaw.objects.DTO

Air quality.

The following information is available:
  • ijp: overall air quality index calculated according to the Polish Air Quality Index
    • name: verbal summary of the overall air quality index

    • recommendations: recommendation

  • data_source: measurement source

  • name: id of the station

  • station_type: type of station

  • lon: geographical longitude

  • lat: geographical latitude

  • owner: owner of the station

  • station: name of the station

  • address: station address
    • city: city

    • street: street

    • zip_code: postal code

    • district: district

    • commune: commune

  • data: measurements
    • ijp: air quality index for the measurement
      • name (optional): verbal air quality index for the measurement

    • param_name: name of the pollutant

    • param_code: code of the pollutant

    • value: value of the measurement

    • time: time of the measurement

    • unit: unit of measurement”

address: pywarsaw.objects.AirStationAddress
data: pywarsaw.objects.AirData
data_source: str
ijp: pywarsaw.objects.Ijp
lat: float
lon: float
name: str
owner: str
station: str
station_type: str
class pywarsaw.objects.AirStationAddress(city: str, street: str, zip_code: str, district: str, commune: str)

Bases: pywarsaw.objects.DTO

Station object for AirQuality DTO.

city: str
commune: str
district: str
street: str
zip_code: str
class pywarsaw.objects.ComputerPurpose(school_number: str, school_type: str, school_name: str, total_teaching: [<class 'int'>, None], teaching_with_internet_access: [<class 'int'>, None], portable_teaching: [<class 'int'>, None], total_teaching_in_library: [<class 'int'>, None], total_with_internet_access_in_library: [<class 'int'>, None], teaching_portable_in_library: [<class 'int'>, None], total_teaching_available_for_students: [<class 'int'>, None], total_with_internet_access_available_for_students: [<class 'int'>, None], teaching_portable_available_for_students: [<class 'int'>, None], other_total: [<class 'int'>, None], other_with_internet_access: [<class 'int'>, None], other_portable: [<class 'int'>, None], province: str, county: str, munincipality: str, location: str, street: str, house_number: str, apartment_number: str, postal_code: str, post_office: str, phone: str, email: str, governing_body_type: str, audience: str, student_category: str, school_specificity: str, institution_type: str)

Bases: pywarsaw.objects.DTO

The purpose of computer.

The following information is available:
  • school_number - number of the institution in the Register of Schools and Educational Institutions

  • school_type - e.g. junior high school, adult education center, boarding school

  • school_name - full name, e.g. Non-public Junior High School No. 1 named after Irena Sendler

  • total_teaching

  • teaching_with_internet_access

  • portable_teaching

  • total_teaching_in_library

  • teaching_with_internet_access_in_library

  • teaching_portable_in_library

  • total_teaching_available_for_students

  • teaching_with_internet_access_available_for_studens

  • teaching_portable_available_for_students

  • other_total

  • other_with_internet_access

  • other_portable

  • province

  • county

  • municipality

  • location

  • street

  • house_number

  • apartment_number

  • postal_code

  • post_office

  • phone

  • email

  • governing_body_type - municipality, city with county rights, foundation, association, physical person, non-public higher education institution, commercial company, religious organization,

  • audience - public/non-public

  • student_category - children or youth, adults, without category

  • school_specificity - special/no specificity

  • institution_type - independent/composite unit

apartment_number: str
audience: str
county: str
email: str
governing_body_type: str
house_number: str
institution_type: str
location: str
munincipality: str
other_portable: [<class 'int'>, None]
other_total: [<class 'int'>, None]
other_with_internet_access: [<class 'int'>, None]
phone: str
portable_teaching: [<class 'int'>, None]
post_office: str
postal_code: str
province: str
school_name: str
school_number: str
school_specificity: str
school_type: str
street: str
student_category: str
teaching_portable_available_for_students: [<class 'int'>, None]
teaching_portable_in_library: [<class 'int'>, None]
teaching_with_internet_access: [<class 'int'>, None]
total_teaching: [<class 'int'>, None]
total_teaching_available_for_students: [<class 'int'>, None]
total_teaching_in_library: [<class 'int'>, None]
total_with_internet_access_available_for_students: [<class 'int'>, None]
total_with_internet_access_in_library: [<class 'int'>, None]
class pywarsaw.objects.CycleStation(racks, update_date: str, object_id: str, location: str, bikes, station_number: str)

Bases: pywarsaw.objects.DTO

The bicycle station.

The following information is available:
  • racks: count of the racks

  • update_date: date of the data update

  • object_id: id of the object

  • location: location

  • bikes: count of the bikes

  • station_number: station number

bikes: int
location: str
object_id: str
racks: int
station_number: str
update_date: datetime.datetime
class pywarsaw.objects.CycleTrack(location: str, route_type: str, district: str, object_id: str, surface_type: str)

Bases: pywarsaw.objects.DTO

The bicycle track.

The following information is available:
  • location: location of the cycle track

  • route_type: type of the route

  • district: district

  • object_id: id of the object

  • surface_type: type of the surface

district: str
location: str
object_id: str
route_type: str
surface_type: str
class pywarsaw.objects.DTO

Bases: object

Parent class for all DTOs

to_dict() dict

Convert object to a dictionary

to_flat_dict() dict

Convert object to a flat dictionary

to_json() str

Convert object to a json string

to_tuple() tuple

Convert object to a tuple

class pywarsaw.objects.Defibrillator(geometry: pywarsaw.objects.DefibrillatorGeometry, properties: pywarsaw.objects.DefibrillatorProperties)

Bases: pywarsaw.objects.DTO

Availability of defibrillators.

The following information is available:
  • geometry:
    • map_type: type of object on the map

    • coordinates: defibrillator’s coordinates

  • properties:
    • defibrillator_id: identifier of the defibrillator

    • device_access_description: description of device availability

    • device_availability: information if the device is available 24/7

    • device_location: location of the device

    • device_manufacturer: name of the device manufacturer

    • device_public_access: information about public access to the device

    • location_building: location building number

    • location_city: location city

    • location_description: location description

    • location_object_name: location place

    • location_postcode: location postal code

    • location_street: location street

    • attachment: photo of the defibrillator encoded in Base64

      (only available when defibrillator_id is provided in the query)

geometry: pywarsaw.objects.DefibrillatorGeometry
properties: pywarsaw.objects.DefibrillatorProperties
class pywarsaw.objects.DefibrillatorGeometry(map_type: str, coordinates: list[str])

Bases: pywarsaw.objects.DTO

Geometry information for Defibrillator DTO.

coordinates: list[str]
map_type: str
class pywarsaw.objects.DefibrillatorProperties(device_manufacturer: str, device_public_access: str, location_building: str, location_city: str, location_description: str, location_object_name: str, location_postcode: str, location_street: str, attachment: Optional[str] = None)

Bases: pywarsaw.objects.DTO

Properties for Defibrillator DTO.

attachment: Optional[str]
device_manufacturer: str
device_public_access: str
location_building: str
location_city: str
location_description: str
location_object_name: str
location_postcode: str
location_street: str
class pywarsaw.objects.Forest(x_wgs84: Union[int, float], y_wgs84: Union[int, float], x_pl2000: Union[int, float], y_pl2000: Union[int, float], identifier: int, partid: int, district: str, forest_district: str, estate: str, unit_number: str, sub_unit_number: str, area: str, habitat_type: str, ecosystem_layer: str, dominant_spacies: str, surface_share: str, age: int, bonitation: str, woodlot: str, density: str, mixing: str, sapling: str, underbrush: str, plan_type: str, plan: str, plan_duration: str, shape_area: Union[int, float], shape_len: Union[int, float])

Bases: pywarsaw.objects.DTO

Forest.

The following information is available:
  • x_wgs84 - the x coordinate in WGS84 (EPSG:4326)

  • y_wgs84 - the y coordinate in WGS84 (EPSG:4326)

  • x_pl2000 - the x coordinate in PUWG2000 (EPSG:2178)

  • y_pl2000 - the y coordinate in PUWG2000 (EPSG:2178)

  • identifier - area identifier

  • partid - part identifier

  • district - name of the city district

  • forest_district - name of the forest district

  • estate - residential area in the city

  • unit_number - number of the forest division

  • sub_unit_number - number of the forest sub-division

  • area - area of the division

  • habitat_type - type of forest habitat

  • ecosystem_layer - layer of the forest ecosystem

  • dominant_spacies - dominant tree species

  • surface_share - share of the species’ area

  • age - age in years

  • bonitation - indicator of the habitat’s productive capacity

  • woodlot - indicator of the coverage of the area with forest vegetation for the tree stand

  • density - degree of forest density

  • mixing - degree of forest mixing

  • sapling - characteristic of the shrub layer

  • underbrush - layer of shrubs and trees not belonging to the upper floor of the tree stand

  • plan_type - type of forest management plan

  • plan - description of the forest management plan

  • plan_duration - period of validity of the plan

  • shape_area - shape of the area of the forest division

  • shape_len - length of the area of the forest division

age: int
area: float
bonitation: str
density: str
district: str
dominant_spacies: str
ecosystem_layer: str
estate: str
forest_district: str
habitat_type: str
identifier: int
mixing: str
partid: int
plan: str
plan_duration: str
plan_type: str
sapling: str
shape_area: Union[int, float]
shape_len: Union[int, float]
sub_unit_number: str
surface_share: Union[float, str]
underbrush: str
unit_number: str
woodlot: Union[float, str]
x_pl2000: Union[int, float]
x_wgs84: Union[int, float]
y_pl2000: Union[int, float]
y_wgs84: Union[int, float]
class pywarsaw.objects.Ijp(name: Optional[str] = None, recommendations: Optional[str] = None)

Bases: pywarsaw.objects.DTO

Air Quality Index object for AirQuality DTO.

name: Optional[str]
recommendations: Optional[str]
class pywarsaw.objects.InternetAccess(school_number: str, school_type: str, school_name: str, telephone_link_up_to_1: [<class 'int'>, None], telephone_link_up_to_2: [<class 'int'>, None], telephone_link_up_to_10: [<class 'int'>, None], telephone_link_above_10: [<class 'int'>, None], tv_link_up_to_1: [<class 'int'>, None], tv_link_up_to_2: [<class 'int'>, None], tv_link_up_to_10: [<class 'int'>, None], tv_link_above_10: [<class 'int'>, None], fiber_optics_up_to_1: [<class 'int'>, None], fiber_optics_up_to_2: [<class 'int'>, None], fiber_optics_up_to_10: [<class 'int'>, None], fiber_optics_above_10: [<class 'int'>, None], sat_link_up_to_1: [<class 'int'>, None], sat_link_up_to_2: [<class 'int'>, None], sat_link_up_to_10: [<class 'int'>, None], sat_link_above_10: [<class 'int'>, None], radio_link_up_to_1: [<class 'int'>, None], radio_link_up_to_2: [<class 'int'>, None], radio_link_up_to_10: [<class 'int'>, None], radio_link_above_10: [<class 'int'>, None], mobile_phone_link_up_to_1: [<class 'int'>, None], mobile_phone_link_up_to_2: [<class 'int'>, None], mobile_phone_link_up_to_10: [<class 'int'>, None], mobile_phone_link_above_10: [<class 'int'>, None], province: str, county: str, munincipality: str, location: str, street: str, house_number: str, apartment_number: str, postal_code: str, post_office: str, phone: str, email: str, governing_body_type: str, audience: str, student_category: str, school_specificity: str, institution_type: str)

Bases: pywarsaw.objects.DTO

The internet access.

The following information is available:
  • school_number - number of establishments in the Register of Schools and Educational Institutions

  • school_type - e.g. junior high school, adult education center, boarding school

  • school_name - full name, e.g. Non-Public Junior High School No. 1 named after Irena Sendlerowa

  • telephone_link_up_to_1 - up to 1 Mbit - flag (0 - no, 1 - yes)

  • telephone_link_up_to_2 - up to 2 Mbit - flag (0 - no, 1 - yes)

  • telephone_link_up_to_10 - up to 10 Mbit - flag (0 - no, 1 - yes)

  • telephone_link_above_10 - above 10 Mbit - flag (0 - no, 1 - yes)

  • tv_link_up_to_1 - up to 1 Mbit - flag (0 - no, 1 - yes)

  • tv_link_up_to_2 - up to 2 Mbit - flag (0 - no, 1 - yes)

  • tv_link_up_to_10 - up to 10 Mbit - flag (0 - no, 1 - yes)

  • tv_link_above_10 - above 10 Mbit - flag (0 - no, 1 - yes)

  • fiber_optics_up_to_1 - up to 1 Mbit - flag (0 - no, 1 - yes)

  • fiber_optics_up_to_2 - up to 2 Mbit - flag (0 - no, 1 - yes)

  • fiber_optics_up_to_10 - up to 10 Mbit - flag (0 - no, 1 - yes)

  • fiber_optics_above_10 - above 10 Mbit - flag (0 - no, 1 - yes)

  • sat_link_up_to_1 - up to 1 Mbit - flag (0 - no, 1 - yes)

  • sat_link_up_to_2 - up to 2 Mbit - flag (0 - no, 1 - yes)

  • sat_link_up_to_10 - up to 10 Mbit - flag (0 - no, 1 - yes)

  • sat_link_above_10 - above 10 Mbit - flag (0 - no, 1 - yes)

  • radio_link_up_to_1 - up to 1 Mbit - flag (0 - no, 1 - yes)

  • radio_link_up_to_2 - up to 2 Mbit - flag (0 - no, 1 - yes)

  • radio_link_up_to_10 - up to 10 Mbit - flag (0 - no, 1 - yes)

  • radio_link_above_10 - above 10 Mbit - flag (0 - no, 1 - yes)

  • mobile_phone_link_up_to_1 - up to 1 Mbit - flag (0 - no, 1 - yes)

  • mobile_phone_link_up_to_2 - up to 2 Mbit - flag (0 - no, 1 - yes)

  • mobile_phone_link_up_to_10 - up to 10 Mbit - flag (0 - no, 1 - yes)

  • mobile_phone_link_above_10 - above 10 Mbit - flag (0 - no, 1 - yes)

  • province

  • county

  • municipality

  • location

  • street

  • house_number

  • apartment_number

  • postal_code

  • post_office

  • phone

  • email

  • governing_body_type - municipality, city with the rights of a county, foundation, association, individual, non-public higher education institution, commercial company, religious organization

  • audience - public/non-public

  • student_category - children or youth, adults, without category

  • school_specificity - special/no specificity

  • institution_type - independent/composite unit

apartment_number: str
audience: str
county: str
email: str
fiber_optics_above_10: [<class 'int'>, None]
fiber_optics_up_to_1: [<class 'int'>, None]
fiber_optics_up_to_10: [<class 'int'>, None]
fiber_optics_up_to_2: [<class 'int'>, None]
governing_body_type: str
house_number: str
institution_type: str
location: str
munincipality: str
phone: str
post_office: str
postal_code: str
province: str
school_name: str
school_number: str
school_specificity: str
school_type: str
street: str
student_category: str
class pywarsaw.objects.JSONEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)

Bases: json.encoder.JSONEncoder

Custom json encoder to deal with dates, times and DTOs

default(obj)

Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError).

For example, to support arbitrary iterators, you could implement default like this:

def default(self, o):
    try:
        iterable = iter(o)
    except TypeError:
        pass
    else:
        return list(iterable)
    # Let the base class default method raise the TypeError
    return JSONEncoder.default(self, o)
class pywarsaw.objects.LineTimetable(brigade: str, direction: str, route: str, time: str, symbol_1: Optional[str] = None, symbol_2: Optional[str] = None)

Bases: pywarsaw.objects.DTO

The timetable for a public transport line.

The following information is available:
  • brigade: vehicle brigade number

  • direction: direction

  • route: route

  • time: time of the arrival

  • symbol_1: unknown

  • symbol_2: unknown

brigade: str
direction: str
route: str
symbol_1: Optional[str]
symbol_2: Optional[str]
time: datetime.time
class pywarsaw.objects.MunincipalWaste(identifier: int, name: str, synonym: str, waste_type: str, description: str, yes: str, no: str)

Bases: pywarsaw.objects.DTO

Munincipal waste.

The following information is available:
  • identifier: verification identifier (unique numerical value)

  • name: waste name (string of characters)

  • synonym: synonym of waste name (string of characters, synonyms separated by commas)

  • waste_type: waste classification (string of characters)”

  • description - waste description

  • yes: an example of thing in this type

  • no: an example of thing not in this type

description: str
identifier: int
name: str
no: str
synonym: str
waste_type: str
yes: str
class pywarsaw.objects.ParkingLot(disabled_parking_places, motorcycle_places, car_places, description: str, object_id: str, name: str, update_date: str)

Bases: pywarsaw.objects.DTO

The car parking.

The following information is available:
  • disabled_parking_places: number of places for the handicapped people

  • motorcycle_places: number of places for the motorcycles

  • car_places: number of places for the cars

  • description: description

  • object_id: id of the object

  • name: name

  • update_date: date of the data update

car_places: int
description: str
disabled_parking_places: int
motorcycle_places: int
name: str
object_id: str
update_date: str
class pywarsaw.objects.RoadWorksCategory(identifier: str, parent_id: Optional[str], name: str, special_mode_code: Optional[str])

Bases: pywarsaw.objects.DTO

The road constructuction works category.

The following information is available:
  • identifier

  • parent_id - parent category id

  • name

  • special_mode_code - type

identifier: str
name: str
parent_id: Optional[str]
special_mode_code: Optional[str]
class pywarsaw.objects.RoadWorksCompany(name: str, code: str)

Bases: pywarsaw.objects.DTO

Company performing road construction works.

The following information is available:
  • name

  • code

code: str
name: str
class pywarsaw.objects.RoadWorksDistrict(name: str, code: str)

Bases: pywarsaw.objects.DTO

The district.

The following information is available:
  • name

  • code

code: str
name: str
class pywarsaw.objects.RoadWorksInvestment(identifier: str, name: str, street: str, start_date: str, end_date: str, last_modify_date: str)

Bases: pywarsaw.objects.DTO

The investments.

The following information is available:
  • identifier

  • name

  • street

  • start_date

  • end_date

  • last_modify_date

end_date: datetime.datetime
identifier: str
last_modify_date: datetime.datetime
name: str
start_date: datetime.datetime
street: str
class pywarsaw.objects.Shrub(x_wgs84: Union[int, float], y_wgs84: Union[int, float], x_pl2000: Union[int, float], y_pl2000: Union[int, float], inventory_number: str, district: str, administrative_unit: str, city: str, address: str, location: str, spacies_polish: str, spacies_latin: str, measurement_date: int, age: int, health: str)

Bases: pywarsaw.objects.DTO

Individual shrub.

The following information is available:
  • x_wgs84: x coordinate in WGS84 (EPSG:4326) coordinate system

  • y_wgs84: y coordinate in WGS84 (EPSG:4326) coordinate system

  • x_pl2000: x coordinate in PUWG2000 (EPSG: 2178) coordinate system

  • y_pl2000: y coordinate in PUWG2000 (EPSG: 2178) coordinate system

  • inventory_number: inventory number

  • district: district

  • administrative_unit: administrative unit

  • city: city

  • address: address

  • location: location

  • spacies_polish: species description in Polish

  • spacies_latin: species description in Latin

  • measurement_date: measurement date

  • age: plant age in days

  • health: plant condition

address: str
administrative_unit: str
age: int
city: str
district: str
health: str
inventory_number: str
location: str
measurement_date: Optional[datetime.date]
spacies_latin: str
spacies_polish: str
x_pl2000: Union[int, float]
x_wgs84: Union[int, float]
y_pl2000: Union[int, float]
y_wgs84: Union[int, float]
class pywarsaw.objects.ShrubsGroup(x_wgs84: Union[int, float], y_wgs84: Union[int, float], x_pl2000: Union[int, float], y_pl2000: Union[int, float], outline_id: int, outline_partid: int, inventory_number: str, district: str, administrative_unit: str, city: str, address: str, location: str, spacies: str, measurement_date: int, age: int, area: str, height: str, health: str)

Bases: pywarsaw.objects.DTO

Group of shrubs.

The following information is available:
  • x_wgs84: x coordinate of the outline point in WGS84 (EPSG:4326) coordinate system

  • y_wgs84: y coordinate of the outline point in WGS84 (EPSG:4326) coordinate system

  • x_pl2000: x coordinate of the outline point in PUWG2000 (EPSG: 2178) coordinate system

  • y_pl2000: y coordinate of the outline point in PUWG2000 (EPSG: 2178) coordinate system

  • outline_id: outline identifier

  • outline_partid: outline part identifier

  • inventory_number: inventory number

  • district: district

  • administrative_unit: administrative unit

  • city: city

  • adres: address

  • location: location

  • spacies: species description in Polish and Latin

  • measurement_date: measurement date

  • age: plant age in days

  • area: occupied area in square meters

  • height: height of a group of bushes in meters

  • health: plant condition (good, average, bad)

address: str
administrative_unit: str
age: int
area: Union[float, str]
city: str
district: str
health: str
height: float
inventory_number: str
location: str
measurement_date: Optional[datetime.date]
outline_id: int
outline_partid: int
spacies: str
x_pl2000: Union[int, float]
x_wgs84: Union[int, float]
y_pl2000: Union[int, float]
y_wgs84: Union[int, float]
class pywarsaw.objects.StopInfo(set_number: str, bar: str, set_name: str, street_id: str, lat, lon, direction: str, valid_from: str)

Bases: pywarsaw.objects.DTO

The information about public transport stop

The following information is available:
  • set_number: number of the set

  • bar: number of the bar

  • set_name: name of the set

  • street_id: id of the street

  • lat: latitude

  • lon: longitude

  • direction: direction

  • valid_from: effective date

bar: str
direction: str
lat: float
lon: float
set_name: str
set_number: str
street_id: str
valid_from: datetime.datetime
class pywarsaw.objects.StopLine(line_number: str)

Bases: pywarsaw.objects.DTO

The line number.

line_number: str
class pywarsaw.objects.StopSet(stop_name: str, set_number: str)

Bases: pywarsaw.objects.DTO

Bus/tram stop set.

The following information is available:
  • stop_name: name of the bus/tram stop

  • set_number: number of the bus/tram stop set

set_number: str
stop_name: str
class pywarsaw.objects.SubwayEntrance(object_id: str)

Bases: pywarsaw.objects.DTO

The subway entrance.

The following information is available:
  • object_id: id of the object

object_id: str
class pywarsaw.objects.Theater(phone_number_or_fax: str, administrative_unit: str, update_date: str, object_id: str, number: str, postcode: str, description: str, street: str, district: str, website: Optional[str] = None, mail: Optional[str] = None)

Bases: pywarsaw.objects.DTO

The theater.

The following information is available:
  • phone_number_or_fax: phone number or fax

  • website: website

  • administrative_unit: administrative_unit

  • update date: the date of data updateDzielnice

  • object_id: id of the object

  • number: street number

  • postcode: postcode

  • description: description

  • street: street

  • district: district

  • mail: email

administrative_unit: str
description: str
district: str
mail: Optional[str]
number: str
object_id: str
phone_number_or_fax: str
postcode: str
street: str
update_date: str
website: Optional[str]
class pywarsaw.objects.Tree(x_wgs84: Union[int, float], y_wgs84: Union[int, float], x_pl2000: Union[int, float], y_pl2000: Union[int, float], inventory_number: str, district: str, administrative_unit: str, city: str, address: str, house_number: str, location: str, spacies_polish: str, spacies_latin: str, measurement_date: int, age: int, height: str, trunk_circumference: str, crown_diameter: str, health: str)

Bases: pywarsaw.objects.DTO

Invidual tree.

The following information is available:
  • x_wgs84: x coordinate in WGS84 (EPSG:4326) coordinate system

  • y_wgs84: y coordinate in WGS84 (EPSG:4326) coordinate system

  • x_pl2000: x coordinate in PUWG2000 (EPSG: 2178) coordinate system

  • y_pl2000: y coordinate in PUWG2000 (EPSG: 2178) coordinate system

  • inventory_number: inventory number

  • district: district

  • administrative_unit: administrative unit

  • city: city

  • address: address

  • house_number: house number

  • location: location

  • spacies_polish: species description in Polish

  • spacies_latin: species description in Latin

  • measurement_date: measurement date

  • age: plant age in days

  • height: height in meters

  • trunk_circumference: trunk circumference

  • crown_diameter: crown diameter

  • health: plant condition

address: str
administrative_unit: str
age: int
city: str
crown_diameter: float
district: str
health: str
height: float
house_number: str
inventory_number: str
location: str
measurement_date: Optional[datetime.date]
spacies_latin: str
spacies_polish: str
trunk_circumference: float
x_pl2000: Union[int, float]
x_wgs84: Union[int, float]
y_pl2000: Union[int, float]
y_wgs84: Union[int, float]
class pywarsaw.objects.TreesGroup(x_wgs84: Union[int, float], y_wgs84: Union[int, float], x_pl2000: Union[int, float], y_pl2000: Union[int, float], inventory_number: str, outline_id: int, outline_partid: int, district: str, administrative_unit: str, city: str, address: str, location: str, spacies: str, measurement_date: int, health: str)

Bases: pywarsaw.objects.DTO

Group of trees.

The following information is available:
  • x_wgs84: x coordinate of the outline point in WGS84 (EPSG:4326) coordinate system

  • y_wgs84: y coordinate of the outline point in WGS84 (EPSG:4326) coordinate system

  • x_pl2000: x coordinate of the outline point in PUWG2000 (EPSG: 2178) coordinate system

  • y_pl2000: y coordinate of the outline point in PUWG2000 (EPSG: 2178) coordinate system

  • outline_id: outline identifier

  • outline_partid: outline part identifier

  • inventory_number: inventory number

  • district: district

  • administrative_unit: administrative unit

  • city: city

  • address: address

  • location: location

  • spacies: species description in Polish and Latin

  • measurement_date: measurement date

  • health: plant condition

address: str
administrative_unit: str
city: str
district: str
health: str
inventory_number: str
location: str
measurement_date: Optional[datetime.date]
outline_id: int
outline_partid: int
spacies: str
x_pl2000: Union[int, float]
x_wgs84: Union[int, float]
y_pl2000: Union[int, float]
y_wgs84: Union[int, float]
class pywarsaw.objects.VehicleLocation(lat: float, lon: float, time: str, lines: str, brigade: str, vehicle_number: str)

Bases: pywarsaw.objects.DTO

The current location of public transport vehicle.

The following information is available:
  • lat: latitude in WGS84 (EPSG: 4326) coordinate system

  • lon: longtitude in WGS84 (EPSG: 4326) coordinate system

  • time: GPS signal transmission time

  • lines: bus or tram line number

  • brigade: vehicle brigade number

  • vehicle_number: vehicle number

brigade: str
lat: float
lines: str
lon: float
time: datetime.datetime
vehicle_number: str

Exceptions

exception pywarsaw.exceptions.UnauthorizedAccess

Bases: Exception

Raised when API key is not provided.

exception pywarsaw.exceptions.WrongAPIKey

Bases: Exception

Raised when provided API key is wrong.

exception pywarsaw.exceptions.WrongDirectory

Bases: Exception

Raised when the directory for cache does not exist.

exception pywarsaw.exceptions.WrongQueryParameters

Bases: Exception

Raised when the query parameters are wrong.