stadiamaps 0.4.0__py3-none-any.whl → 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stadiamaps/__init__.py +1 -1
- stadiamaps/api_client.py +1 -1
- stadiamaps/configuration.py +1 -1
- stadiamaps/models/isochrone_feature.py +2 -2
- stadiamaps/models/matrix_response.py +3 -3
- stadiamaps/models/pelias_layer.py +8 -1
- {stadiamaps-0.4.0.dist-info → stadiamaps-0.5.0.dist-info}/METADATA +1 -1
- {stadiamaps-0.4.0.dist-info → stadiamaps-0.5.0.dist-info}/RECORD +11 -11
- {stadiamaps-0.4.0.dist-info → stadiamaps-0.5.0.dist-info}/LICENSE.txt +0 -0
- {stadiamaps-0.4.0.dist-info → stadiamaps-0.5.0.dist-info}/WHEEL +0 -0
- {stadiamaps-0.4.0.dist-info → stadiamaps-0.5.0.dist-info}/top_level.txt +0 -0
stadiamaps/__init__.py
CHANGED
stadiamaps/api_client.py
CHANGED
@@ -77,7 +77,7 @@ class ApiClient(object):
|
|
77
77
|
self.default_headers[header_name] = header_value
|
78
78
|
self.cookie = cookie
|
79
79
|
# Set default User-Agent.
|
80
|
-
self.user_agent = 'OpenAPI-Generator/0.
|
80
|
+
self.user_agent = 'OpenAPI-Generator/0.5.0/python'
|
81
81
|
self.client_side_validation = configuration.client_side_validation
|
82
82
|
|
83
83
|
def __enter__(self):
|
stadiamaps/configuration.py
CHANGED
@@ -398,7 +398,7 @@ conf = stadiamaps.Configuration(
|
|
398
398
|
"OS: {env}\n"\
|
399
399
|
"Python Version: {pyversion}\n"\
|
400
400
|
"Version of the API: 5.0.1\n"\
|
401
|
-
"SDK Package Version: 0.
|
401
|
+
"SDK Package Version: 0.5.0".\
|
402
402
|
format(env=sys.platform, pyversion=sys.version)
|
403
403
|
|
404
404
|
def get_host_settings(self):
|
@@ -39,8 +39,8 @@ class IsochroneFeature(BaseModel):
|
|
39
39
|
if value is None:
|
40
40
|
return value
|
41
41
|
|
42
|
-
if value not in ('
|
43
|
-
raise ValueError("must be one of enum values ('
|
42
|
+
if value not in ('Feature'):
|
43
|
+
raise ValueError("must be one of enum values ('Feature')")
|
44
44
|
return value
|
45
45
|
|
46
46
|
class Config:
|
@@ -110,9 +110,9 @@ class MatrixResponse(BaseModel):
|
|
110
110
|
|
111
111
|
_obj = MatrixResponse.parse_obj({
|
112
112
|
"id": obj.get("id"),
|
113
|
-
"sources": [
|
114
|
-
"targets": [
|
115
|
-
"sources_to_targets": [
|
113
|
+
"sources": [[Coordinate.from_dict(_item) for _item in _items] for _items in obj.get("sources")] if obj.get("sources") is not None else None,
|
114
|
+
"targets": [[Coordinate.from_dict(_item) for _item in _items] for _items in obj.get("targets")] if obj.get("targets") is not None else None,
|
115
|
+
"sources_to_targets": [[MatrixDistance.from_dict(_item) for _item in _items] for _items in obj.get("sources_to_targets")] if obj.get("sources_to_targets") is not None else None,
|
116
116
|
"warnings": [Warning.from_dict(_item) for _item in obj.get("warnings")] if obj.get("warnings") is not None else None,
|
117
117
|
"units": obj.get("units")
|
118
118
|
})
|
@@ -24,7 +24,7 @@ from aenum import Enum, no_arg
|
|
24
24
|
|
25
25
|
class PeliasLayer(str, Enum):
|
26
26
|
"""
|
27
|
-
Our database is organized into several layers (in the GIS sense of the term) as follows: - `venue`: Points of interest, businesses, and things with walls - `address`: Places with a street address - `street`: Streets, roads, highways - `county`: Places that issue passports, nations, nation-states - `macroregion`: A related group of regions (mostly in Europe) - `region`: The first administrative division within a country (usually states and provinces) - `macrocounty`: A related group of counties (mostly in Europe) - `county`: Official governmental areas; usually bigger than a locality, but almost always smaller than a region - `locality`: Towns, hamlets, cities, etc. - `localadmin`: Local administrative boundaries - `borough`: Local administrative boundaries within cities (not widely used, but present in places such as NYC and Mexico City) - `neighbourhood`: Social communities and neighborhoods (note the British spelling in the API!) - `postalcode`: Postal codes used by mail services (note: not used for reverse geocoding) - `coarse`: An alias for simultaneously using all administrative layers (everything except `venue` and `address`)
|
27
|
+
Our database is organized into several layers (in the GIS sense of the term) as follows: - `venue`: Points of interest, businesses, and things with walls - `address`: Places with a street address - `street`: Streets, roads, highways - `county`: Places that issue passports, nations, nation-states - `macroregion`: A related group of regions (mostly in Europe) - `region`: The first administrative division within a country (usually states and provinces) - `macrocounty`: A related group of counties (mostly in Europe) - `county`: Official governmental areas; usually bigger than a locality, but almost always smaller than a region - `locality`: Towns, hamlets, cities, etc. - `localadmin`: Local administrative boundaries - `borough`: Local administrative boundaries within cities (not widely used, but present in places such as NYC and Mexico City) - `neighbourhood`: Social communities and neighborhoods (note the British spelling in the API!) - `postalcode`: Postal codes used by mail services (note: not used for reverse geocoding) - `coarse`: An alias for simultaneously using all administrative layers (everything except `venue` and `address`) - `marinearea`: Places with fishes and boats. - `ocean`: A really big marine area.
|
28
28
|
"""
|
29
29
|
|
30
30
|
"""
|
@@ -44,6 +44,13 @@ class PeliasLayer(str, Enum):
|
|
44
44
|
NEIGHBOURHOOD = 'neighbourhood'
|
45
45
|
POSTALCODE = 'postalcode'
|
46
46
|
COARSE = 'coarse'
|
47
|
+
DEPENDENCY = 'dependency'
|
48
|
+
MACROHOOD = 'macrohood'
|
49
|
+
MARINEAREA = 'marinearea'
|
50
|
+
DISPUTED = 'disputed'
|
51
|
+
EMPIRE = 'empire'
|
52
|
+
CONTINENT = 'continent'
|
53
|
+
OCEAN = 'ocean'
|
47
54
|
|
48
55
|
@classmethod
|
49
56
|
def from_json(cls, json_str: str) -> PeliasLayer:
|
@@ -1,7 +1,7 @@
|
|
1
|
-
stadiamaps/__init__.py,sha256=
|
2
|
-
stadiamaps/api_client.py,sha256=
|
1
|
+
stadiamaps/__init__.py,sha256=3KZZdwCga_0r8kPvGcUB83-9mGL3x4XHjCg6bq0ATJM,8524
|
2
|
+
stadiamaps/api_client.py,sha256=sNALgcMgB2g5piNo230Z4KB4qMhw-QnVjc8Fs0_RRMw,30069
|
3
3
|
stadiamaps/api_response.py,sha256=PVUEilYSo_CCiR5NaxyzzyJAlKL1xkNoWvtkfk7r528,844
|
4
|
-
stadiamaps/configuration.py,sha256=
|
4
|
+
stadiamaps/configuration.py,sha256=MTBAiLuLhW-Y7eoihkpsK5F3GQheqDQYdzqN5dv4tl4,15506
|
5
5
|
stadiamaps/exceptions.py,sha256=BgV9AjOR9eqiTBbolKoeE5GzdKEdQHCU_rTlQMSIo7A,5207
|
6
6
|
stadiamaps/rest.py,sha256=AhuDtGb754eAo5JzaEHS9BNIP-fl16DQyZYAB7pCXX0,12849
|
7
7
|
stadiamaps/api/__init__.py,sha256=NRdfWLDRL2TYgITiS6K4OX8lmmVVmf9-_yyMe2_6hTs,208
|
@@ -43,7 +43,7 @@ stadiamaps/models/height_response.py,sha256=6k4WbVCOPwTXa0qM7asjO_QuKjAAvzO343gH
|
|
43
43
|
stadiamaps/models/highway_classification.py,sha256=6sLz8Xs0hDw0q57L8MhqiVDSYJYNsSYfnR9ga8iWNGo,5512
|
44
44
|
stadiamaps/models/intersecting_edge.py,sha256=gj8qpq_zDGe89VMZ9zw9A0uM_90IabzXOKdMcDDiVVo,3928
|
45
45
|
stadiamaps/models/isochrone_costing_model.py,sha256=ltwJvyvRKWd4C9_zLtsc-dDTnwkuezddwCEavoDGLXs,866
|
46
|
-
stadiamaps/models/isochrone_feature.py,sha256=
|
46
|
+
stadiamaps/models/isochrone_feature.py,sha256=ofK3PcYsDhMQp-7MuUIGm-GIgiG91N4ZM6Tul_Tro6o,3338
|
47
47
|
stadiamaps/models/isochrone_properties.py,sha256=Qzir1Sum8iFp2nnnYxjcIcJyhs1yqTjHZlRxNkr66CI,3560
|
48
48
|
stadiamaps/models/isochrone_request.py,sha256=Fj3edDyCo4z4BRQZpHrzW4zn93PcNNPze1e8JZ0d08M,6005
|
49
49
|
stadiamaps/models/isochrone_response.py,sha256=FfqM3Hm60ylzLziah_5JQfaETbrwTRPEL1Ts-2irQ4Q,3093
|
@@ -67,7 +67,7 @@ stadiamaps/models/matched_point.py,sha256=WNcWrt4VlTG979KLnMqKrp8a7ENSQbKxdvHBJE
|
|
67
67
|
stadiamaps/models/matrix_costing_model.py,sha256=OZZ-0KFYe9_dyynsPxtxoUMC3ZbJZlBu7t7b136txVg,1015
|
68
68
|
stadiamaps/models/matrix_distance.py,sha256=8GcHyejlLkR1Ne5X1WHrRW7Nu7_cZ-I9a-g2J_ZOonc,3215
|
69
69
|
stadiamaps/models/matrix_request.py,sha256=-RXRLwOLdBSEcne64b3-E3a7yJSC9bJ_hlAGEiKWKKE,5338
|
70
|
-
stadiamaps/models/matrix_response.py,sha256=
|
70
|
+
stadiamaps/models/matrix_response.py,sha256=37Qps5NzZ2XUdE47Y8H_qeFShNAhYvCzTRIaaFhNp4c,5542
|
71
71
|
stadiamaps/models/motor_scooter_costing_options.py,sha256=xJPU2lK5qqqj-lMWlD4nYWM-ZGThSAT5E4Xd2AoAJFo,11494
|
72
72
|
stadiamaps/models/motor_scooter_costing_options_all_of.py,sha256=YUG8sKMtlJAbipVxsAfvnoBJi0hqQnnXxmbiQ8Mu1KQ,3525
|
73
73
|
stadiamaps/models/motorcycle_costing_options.py,sha256=fc-kXzN2ZV1JHhiTA4nNnCpC-vSeYS4BnDsVj3TG3C4,10980
|
@@ -81,7 +81,7 @@ stadiamaps/models/pelias_geo_json_feature.py,sha256=_spDefeUtm52xGe_ADB1CIOlyHVc
|
|
81
81
|
stadiamaps/models/pelias_geo_json_properties.py,sha256=21NjxkDc14zECaP7RqNujJEqDsGdlaj8-HKvaRl_G3U,7800
|
82
82
|
stadiamaps/models/pelias_geo_json_properties_addendum.py,sha256=ityxf7xLTAe8hTlFo4LGfHMh56dAFB3LBzL7CStbDfE,3122
|
83
83
|
stadiamaps/models/pelias_geo_json_properties_addendum_osm.py,sha256=2ngCjSBqi_fITNZvQYsob26xBMI8Oc4wA9t_TGveduU,2935
|
84
|
-
stadiamaps/models/pelias_layer.py,sha256=
|
84
|
+
stadiamaps/models/pelias_layer.py,sha256=q8hvx_7C6jF9o2ytPGOUeuhwsPEoi2kdoPbi5fyWsTs,2517
|
85
85
|
stadiamaps/models/pelias_response.py,sha256=sL6oq0iDtLjh-gjGmAUmpeOszvl4ZfTEiVFL8RvA6Gw,3737
|
86
86
|
stadiamaps/models/pelias_response_geocoding.py,sha256=lf9mEY43dgsVuV2qs9jgFv7Wn0Xv8GOZ_VkgLag2qMw,3621
|
87
87
|
stadiamaps/models/pelias_source.py,sha256=-s5odAwDR94bctthMiDEr2Uzbd__CVXSmLKrl3PVDMc,1020
|
@@ -118,8 +118,8 @@ stadiamaps/models/tz_response.py,sha256=Bmm9clV29hdIV9L7E86mUUVB5rB0rK963WvWdXV7
|
|
118
118
|
stadiamaps/models/valhalla_languages.py,sha256=wWocUsh4x5a84LBi8GnpyWk8pHYtPzGuKj7LXkAB3oo,1558
|
119
119
|
stadiamaps/models/valhalla_long_units.py,sha256=9c3xmmcp20ORPjRTKL6vmu3SneuMolVh3eFV3ojBFQ8,824
|
120
120
|
stadiamaps/models/warning.py,sha256=t_cqoorCFyDfRuh8wxfP_UP66OEGQmXIpv4CrS8ekMo,2514
|
121
|
-
stadiamaps-0.
|
122
|
-
stadiamaps-0.
|
123
|
-
stadiamaps-0.
|
124
|
-
stadiamaps-0.
|
125
|
-
stadiamaps-0.
|
121
|
+
stadiamaps-0.5.0.dist-info/LICENSE.txt,sha256=vs0H95Mi3Rf1pSskD7rv4KbXLYCSYZ6cqZcFmek0hOg,1518
|
122
|
+
stadiamaps-0.5.0.dist-info/METADATA,sha256=EXoDD-gLtXgZTK19PrqRDZyO1fTteDGnhxnMlKFSf2E,2664
|
123
|
+
stadiamaps-0.5.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
124
|
+
stadiamaps-0.5.0.dist-info/top_level.txt,sha256=dFHpcPo1v2Ajmc74F29BleqU5u8MLB0fgTnNYJIatx0,11
|
125
|
+
stadiamaps-0.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|