stadiamaps 0.3.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.5.0.dist-info/METADATA +84 -0
- {stadiamaps-0.3.0.dist-info → stadiamaps-0.5.0.dist-info}/RECORD +11 -11
- stadiamaps-0.3.0.dist-info/METADATA +0 -244
- {stadiamaps-0.3.0.dist-info → stadiamaps-0.5.0.dist-info}/LICENSE.txt +0 -0
- {stadiamaps-0.3.0.dist-info → stadiamaps-0.5.0.dist-info}/WHEEL +0 -0
- {stadiamaps-0.3.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:
|
@@ -0,0 +1,84 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: stadiamaps
|
3
|
+
Version: 0.5.0
|
4
|
+
Summary: Stadia Maps Geospatial APIs
|
5
|
+
Home-page: https://docs.stadiamaps.com/
|
6
|
+
Author: Stadia Maps Support
|
7
|
+
Author-email: support@stadiamaps.com
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,Stadia Maps Geospatial APIs
|
9
|
+
Description-Content-Type: text/markdown
|
10
|
+
License-File: LICENSE.txt
|
11
|
+
Requires-Dist: urllib3 (>=1.25.3)
|
12
|
+
Requires-Dist: python-dateutil
|
13
|
+
Requires-Dist: pydantic (<2,>=1.10.5)
|
14
|
+
Requires-Dist: aenum
|
15
|
+
|
16
|
+
|
17
|
+
# Stadia Maps Python API Client
|
18
|
+
|
19
|
+
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
20
|
+
|
21
|
+
For more information about the API, please visit [https://docs.stadiamaps.com](https://docs.stadiamaps.com)
|
22
|
+
|
23
|
+
## Installation & Usage
|
24
|
+
### pip install
|
25
|
+
|
26
|
+
```shell
|
27
|
+
pip install stadiamaps
|
28
|
+
```
|
29
|
+
|
30
|
+
### Setuptools
|
31
|
+
|
32
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
33
|
+
|
34
|
+
```shell
|
35
|
+
python setup.py install --user
|
36
|
+
```
|
37
|
+
(or `sudo python setup.py install` to install the package for all users)
|
38
|
+
|
39
|
+
### Tests
|
40
|
+
|
41
|
+
Execute `pytest` to run the tests. These are run automatically via CI.
|
42
|
+
|
43
|
+
## Getting Started
|
44
|
+
|
45
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
46
|
+
|
47
|
+
```python
|
48
|
+
import os
|
49
|
+
import stadiamaps
|
50
|
+
from stadiamaps.rest import ApiException
|
51
|
+
from pprint import pprint
|
52
|
+
|
53
|
+
# Defining the host is optional and defaults to https://api.stadiamaps.com
|
54
|
+
# You can also use our EU endpoint to keep traffic within the EU by setting
|
55
|
+
# host to https://api-eu.stadiamaps.com.
|
56
|
+
# See configuration.py for a list of all supported configuration parameters.
|
57
|
+
configuration = stadiamaps.Configuration()
|
58
|
+
|
59
|
+
# The client must configure the authentication and authorization parameters
|
60
|
+
# in accordance with the API server security policy.
|
61
|
+
# Examples for each auth method are provided below, use the example that
|
62
|
+
# satisfies your auth use case.
|
63
|
+
|
64
|
+
# Configure API key authorization. This example assumes it is injected via an environment
|
65
|
+
# variable, but you can provide it in other ways as well.
|
66
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
67
|
+
|
68
|
+
# Enter a context with an instance of the API client
|
69
|
+
with stadiamaps.ApiClient(configuration) as api_client:
|
70
|
+
# Create an instance of the API class
|
71
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
72
|
+
text = 'Põhja pst 27a' # str | The place name (address, venue name, etc.) to search for.
|
73
|
+
|
74
|
+
try:
|
75
|
+
# Search and geocode quickly based on partial input.
|
76
|
+
api_response = api_instance.autocomplete(text)
|
77
|
+
print("The response of GeocodingApi->autocomplete:
|
78
|
+
")
|
79
|
+
pprint(api_response)
|
80
|
+
except ApiException as e:
|
81
|
+
print("Exception when calling GeocodingApi->autocomplete: %s
|
82
|
+
" % e)
|
83
|
+
```
|
84
|
+
|
@@ -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,,
|
@@ -1,244 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: stadiamaps
|
3
|
-
Version: 0.3.0
|
4
|
-
Summary: Stadia Maps Geospatial APIs
|
5
|
-
Home-page: https://docs.stadiamaps.com/
|
6
|
-
Author: Stadia Maps Support
|
7
|
-
Author-email: support@stadiamaps.com
|
8
|
-
Keywords: OpenAPI,OpenAPI-Generator,Stadia Maps Geospatial APIs
|
9
|
-
Description-Content-Type: text/markdown
|
10
|
-
License-File: LICENSE.txt
|
11
|
-
Requires-Dist: urllib3 (>=1.25.3)
|
12
|
-
Requires-Dist: python-dateutil
|
13
|
-
Requires-Dist: pydantic (<2,>=1.10.5)
|
14
|
-
Requires-Dist: aenum
|
15
|
-
|
16
|
-
# Stadia Maps Python API Client
|
17
|
-
|
18
|
-
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
19
|
-
|
20
|
-
For more information about the API, please visit [https://docs.stadiamaps.com](https://docs.stadiamaps.com)
|
21
|
-
|
22
|
-
## Installation & Usage
|
23
|
-
### pip install
|
24
|
-
|
25
|
-
```shell
|
26
|
-
pip install stadiamaps
|
27
|
-
```
|
28
|
-
|
29
|
-
### Setuptools
|
30
|
-
|
31
|
-
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
32
|
-
|
33
|
-
```shell
|
34
|
-
python setup.py install --user
|
35
|
-
```
|
36
|
-
(or `sudo python setup.py install` to install the package for all users)
|
37
|
-
|
38
|
-
### Tests
|
39
|
-
|
40
|
-
Execute `pytest` to run the tests. These are run automatically via CI.
|
41
|
-
|
42
|
-
## Getting Started
|
43
|
-
|
44
|
-
Please follow the [installation procedure](#installation--usage) and then run the following:
|
45
|
-
|
46
|
-
```python
|
47
|
-
import os
|
48
|
-
import stadiamaps
|
49
|
-
from stadiamaps.rest import ApiException
|
50
|
-
from pprint import pprint
|
51
|
-
|
52
|
-
# Defining the host is optional and defaults to https://api.stadiamaps.com
|
53
|
-
# You can also use our EU endpoint to keep traffic within the EU by setting
|
54
|
-
# host to https://api-eu.stadiamaps.com.
|
55
|
-
# See configuration.py for a list of all supported configuration parameters.
|
56
|
-
configuration = stadiamaps.Configuration()
|
57
|
-
|
58
|
-
# The client must configure the authentication and authorization parameters
|
59
|
-
# in accordance with the API server security policy.
|
60
|
-
# Examples for each auth method are provided below, use the example that
|
61
|
-
# satisfies your auth use case.
|
62
|
-
|
63
|
-
# Configure API key authorization. This example assumes it is injected via an environment
|
64
|
-
# variable, but you can provide it in other ways as well.
|
65
|
-
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
66
|
-
|
67
|
-
# Enter a context with an instance of the API client
|
68
|
-
with stadiamaps.ApiClient(configuration) as api_client:
|
69
|
-
# Create an instance of the API class
|
70
|
-
api_instance = stadiamaps.GeocodingApi(api_client)
|
71
|
-
text = 'Põhja pst 27a' # str | The place name (address, venue name, etc.) to search for.
|
72
|
-
|
73
|
-
try:
|
74
|
-
# Search and geocode quickly based on partial input.
|
75
|
-
api_response = api_instance.autocomplete(text)
|
76
|
-
print("The response of GeocodingApi->autocomplete:\n")
|
77
|
-
pprint(api_response)
|
78
|
-
except ApiException as e:
|
79
|
-
print("Exception when calling GeocodingApi->autocomplete: %s\n" % e)
|
80
|
-
```
|
81
|
-
|
82
|
-
## Documentation for API Endpoints
|
83
|
-
|
84
|
-
All URIs are relative to *https://api.stadiamaps.com*
|
85
|
-
|
86
|
-
Class | Method | HTTP request | Description
|
87
|
-
------------ | ------------- | ------------- | -------------
|
88
|
-
*GeocodingApi* | [**autocomplete**](docs/GeocodingApi.md#autocomplete) | **GET** /geocoding/v1/autocomplete | Search and geocode quickly based on partial input.
|
89
|
-
*GeocodingApi* | [**place**](docs/GeocodingApi.md#place) | **GET** /geocoding/v1/place | Retrieve details of a place using its GID.
|
90
|
-
*GeocodingApi* | [**reverse**](docs/GeocodingApi.md#reverse) | **GET** /geocoding/v1/reverse | Find places and addresses near geographic coordinates (reverse geocoding).
|
91
|
-
*GeocodingApi* | [**search**](docs/GeocodingApi.md#search) | **GET** /geocoding/v1/search | Search for location and other info using a place name or address (forward geocoding).
|
92
|
-
*GeocodingApi* | [**search_structured**](docs/GeocodingApi.md#search_structured) | **GET** /geocoding/v1/search/structured | Find locations matching components (structured forward geocoding).
|
93
|
-
*GeospatialApi* | [**elevation**](docs/GeospatialApi.md#elevation) | **POST** /elevation/v1 | Get the elevation profile along a polyline or at a point.
|
94
|
-
*GeospatialApi* | [**tz_lookup**](docs/GeospatialApi.md#tz_lookup) | **GET** /tz/lookup/v1 | Get the current time zone information for any point on earth.
|
95
|
-
*RoutingApi* | [**isochrone**](docs/RoutingApi.md#isochrone) | **POST** /isochrone/v1 | Calculate areas of equal travel time from a location.
|
96
|
-
*RoutingApi* | [**map_match**](docs/RoutingApi.md#map_match) | **POST** /map_match/v1 | Match a recorded route to the road network.
|
97
|
-
*RoutingApi* | [**nearest_roads**](docs/RoutingApi.md#nearest_roads) | **POST** /nearest_roads/v1 | Find the nearest roads to the set of input locations.
|
98
|
-
*RoutingApi* | [**optimized_route**](docs/RoutingApi.md#optimized_route) | **POST** /optimized_route/v1 | Calculate an optimized route between a known start and end point.
|
99
|
-
*RoutingApi* | [**route**](docs/RoutingApi.md#route) | **POST** /route/v1 | Get turn by turn routing instructions between two or more locations.
|
100
|
-
*RoutingApi* | [**time_distance_matrix**](docs/RoutingApi.md#time_distance_matrix) | **POST** /matrix/v1 | Calculate a time distance matrix for a grid of start and end points.
|
101
|
-
*RoutingApi* | [**trace_attributes**](docs/RoutingApi.md#trace_attributes) | **POST** /trace_attributes/v1 | Trace the attributes of roads visited on a route.
|
102
|
-
|
103
|
-
|
104
|
-
## Documentation For Models
|
105
|
-
|
106
|
-
- [Access](docs/Access.md)
|
107
|
-
- [AdminRegion](docs/AdminRegion.md)
|
108
|
-
- [Administrative](docs/Administrative.md)
|
109
|
-
- [AutoCostingOptions](docs/AutoCostingOptions.md)
|
110
|
-
- [AutoCostingOptionsAllOf](docs/AutoCostingOptionsAllOf.md)
|
111
|
-
- [BaseCostingOptions](docs/BaseCostingOptions.md)
|
112
|
-
- [BaseTraceRequest](docs/BaseTraceRequest.md)
|
113
|
-
- [BicycleCostingOptions](docs/BicycleCostingOptions.md)
|
114
|
-
- [BicycleCostingOptionsAllOf](docs/BicycleCostingOptionsAllOf.md)
|
115
|
-
- [BikeNetwork](docs/BikeNetwork.md)
|
116
|
-
- [Contour](docs/Contour.md)
|
117
|
-
- [Coordinate](docs/Coordinate.md)
|
118
|
-
- [CostingModel](docs/CostingModel.md)
|
119
|
-
- [CostingOptions](docs/CostingOptions.md)
|
120
|
-
- [DirectionsOptions](docs/DirectionsOptions.md)
|
121
|
-
- [DistanceUnit](docs/DistanceUnit.md)
|
122
|
-
- [EdgeSign](docs/EdgeSign.md)
|
123
|
-
- [EdgeUse](docs/EdgeUse.md)
|
124
|
-
- [EndNode](docs/EndNode.md)
|
125
|
-
- [GeoAttributes](docs/GeoAttributes.md)
|
126
|
-
- [GeoJSONGeometry](docs/GeoJSONGeometry.md)
|
127
|
-
- [GeoJSONGeometryBase](docs/GeoJSONGeometryBase.md)
|
128
|
-
- [GeoJSONLineString](docs/GeoJSONLineString.md)
|
129
|
-
- [GeoJSONLineStringAllOf](docs/GeoJSONLineStringAllOf.md)
|
130
|
-
- [GeoJSONPoint](docs/GeoJSONPoint.md)
|
131
|
-
- [GeoJSONPointAllOf](docs/GeoJSONPointAllOf.md)
|
132
|
-
- [GeoJSONPolygon](docs/GeoJSONPolygon.md)
|
133
|
-
- [GeoJSONPolygonAllOf](docs/GeoJSONPolygonAllOf.md)
|
134
|
-
- [GeocodingObject](docs/GeocodingObject.md)
|
135
|
-
- [HeightRequest](docs/HeightRequest.md)
|
136
|
-
- [HeightResponse](docs/HeightResponse.md)
|
137
|
-
- [HighwayClassification](docs/HighwayClassification.md)
|
138
|
-
- [IntersectingEdge](docs/IntersectingEdge.md)
|
139
|
-
- [IsochroneCostingModel](docs/IsochroneCostingModel.md)
|
140
|
-
- [IsochroneFeature](docs/IsochroneFeature.md)
|
141
|
-
- [IsochroneProperties](docs/IsochroneProperties.md)
|
142
|
-
- [IsochroneRequest](docs/IsochroneRequest.md)
|
143
|
-
- [IsochroneResponse](docs/IsochroneResponse.md)
|
144
|
-
- [LocateDetailedEdge](docs/LocateDetailedEdge.md)
|
145
|
-
- [LocateEdge](docs/LocateEdge.md)
|
146
|
-
- [LocateEdgeInfo](docs/LocateEdgeInfo.md)
|
147
|
-
- [LocateNode](docs/LocateNode.md)
|
148
|
-
- [LocateNodeAllOf](docs/LocateNodeAllOf.md)
|
149
|
-
- [LocateObject](docs/LocateObject.md)
|
150
|
-
- [ManeuverSign](docs/ManeuverSign.md)
|
151
|
-
- [ManeuverSignElement](docs/ManeuverSignElement.md)
|
152
|
-
- [MapMatchCostingModel](docs/MapMatchCostingModel.md)
|
153
|
-
- [MapMatchRequest](docs/MapMatchRequest.md)
|
154
|
-
- [MapMatchRequestAllOf](docs/MapMatchRequestAllOf.md)
|
155
|
-
- [MapMatchRouteResponse](docs/MapMatchRouteResponse.md)
|
156
|
-
- [MapMatchRouteResponseAllOf](docs/MapMatchRouteResponseAllOf.md)
|
157
|
-
- [MapMatchTraceOptions](docs/MapMatchTraceOptions.md)
|
158
|
-
- [MapMatchWaypoint](docs/MapMatchWaypoint.md)
|
159
|
-
- [MapMatchWaypointAllOf](docs/MapMatchWaypointAllOf.md)
|
160
|
-
- [MatchedPoint](docs/MatchedPoint.md)
|
161
|
-
- [MatrixCostingModel](docs/MatrixCostingModel.md)
|
162
|
-
- [MatrixDistance](docs/MatrixDistance.md)
|
163
|
-
- [MatrixRequest](docs/MatrixRequest.md)
|
164
|
-
- [MatrixResponse](docs/MatrixResponse.md)
|
165
|
-
- [MotorScooterCostingOptions](docs/MotorScooterCostingOptions.md)
|
166
|
-
- [MotorScooterCostingOptionsAllOf](docs/MotorScooterCostingOptionsAllOf.md)
|
167
|
-
- [MotorcycleCostingOptions](docs/MotorcycleCostingOptions.md)
|
168
|
-
- [MotorcycleCostingOptionsAllOf](docs/MotorcycleCostingOptionsAllOf.md)
|
169
|
-
- [NearestRoadsRequest](docs/NearestRoadsRequest.md)
|
170
|
-
- [NodeId](docs/NodeId.md)
|
171
|
-
- [NodeType](docs/NodeType.md)
|
172
|
-
- [OptimizedRouteRequest](docs/OptimizedRouteRequest.md)
|
173
|
-
- [PedestrianCostingOptions](docs/PedestrianCostingOptions.md)
|
174
|
-
- [PeliasGeoJSONFeature](docs/PeliasGeoJSONFeature.md)
|
175
|
-
- [PeliasGeoJSONProperties](docs/PeliasGeoJSONProperties.md)
|
176
|
-
- [PeliasGeoJSONPropertiesAddendum](docs/PeliasGeoJSONPropertiesAddendum.md)
|
177
|
-
- [PeliasGeoJSONPropertiesAddendumOsm](docs/PeliasGeoJSONPropertiesAddendumOsm.md)
|
178
|
-
- [PeliasLayer](docs/PeliasLayer.md)
|
179
|
-
- [PeliasResponse](docs/PeliasResponse.md)
|
180
|
-
- [PeliasResponseGeocoding](docs/PeliasResponseGeocoding.md)
|
181
|
-
- [PeliasSource](docs/PeliasSource.md)
|
182
|
-
- [Restrictions](docs/Restrictions.md)
|
183
|
-
- [RoadClass](docs/RoadClass.md)
|
184
|
-
- [RouteLeg](docs/RouteLeg.md)
|
185
|
-
- [RouteManeuver](docs/RouteManeuver.md)
|
186
|
-
- [RouteRequest](docs/RouteRequest.md)
|
187
|
-
- [RouteResponse](docs/RouteResponse.md)
|
188
|
-
- [RouteResponseTrip](docs/RouteResponseTrip.md)
|
189
|
-
- [RouteSummary](docs/RouteSummary.md)
|
190
|
-
- [RoutingResponseWaypoint](docs/RoutingResponseWaypoint.md)
|
191
|
-
- [RoutingResponseWaypointAllOf](docs/RoutingResponseWaypointAllOf.md)
|
192
|
-
- [RoutingWaypoint](docs/RoutingWaypoint.md)
|
193
|
-
- [RoutingWaypointAllOf](docs/RoutingWaypointAllOf.md)
|
194
|
-
- [RoutingWaypointAllOfSearchFilter](docs/RoutingWaypointAllOfSearchFilter.md)
|
195
|
-
- [SimpleRoutingWaypoint](docs/SimpleRoutingWaypoint.md)
|
196
|
-
- [SimpleRoutingWaypointAllOf](docs/SimpleRoutingWaypointAllOf.md)
|
197
|
-
- [Speeds](docs/Speeds.md)
|
198
|
-
- [TraceAttributeFilterOptions](docs/TraceAttributeFilterOptions.md)
|
199
|
-
- [TraceAttributeKey](docs/TraceAttributeKey.md)
|
200
|
-
- [TraceAttributesBaseResponse](docs/TraceAttributesBaseResponse.md)
|
201
|
-
- [TraceAttributesRequest](docs/TraceAttributesRequest.md)
|
202
|
-
- [TraceAttributesRequestAllOf](docs/TraceAttributesRequestAllOf.md)
|
203
|
-
- [TraceAttributesRequestAllOfFilters](docs/TraceAttributesRequestAllOfFilters.md)
|
204
|
-
- [TraceAttributesResponse](docs/TraceAttributesResponse.md)
|
205
|
-
- [TraceAttributesResponseAllOf](docs/TraceAttributesResponseAllOf.md)
|
206
|
-
- [TraceEdge](docs/TraceEdge.md)
|
207
|
-
- [TravelMode](docs/TravelMode.md)
|
208
|
-
- [Traversability](docs/Traversability.md)
|
209
|
-
- [TruckCostingOptions](docs/TruckCostingOptions.md)
|
210
|
-
- [TruckCostingOptionsAllOf](docs/TruckCostingOptionsAllOf.md)
|
211
|
-
- [TzResponse](docs/TzResponse.md)
|
212
|
-
- [ValhallaLanguages](docs/ValhallaLanguages.md)
|
213
|
-
- [ValhallaLongUnits](docs/ValhallaLongUnits.md)
|
214
|
-
- [Warning](docs/Warning.md)
|
215
|
-
|
216
|
-
|
217
|
-
<a id="documentation-for-authorization"></a>
|
218
|
-
## Documentation For Authorization
|
219
|
-
|
220
|
-
|
221
|
-
Authentication schemes defined for the API:
|
222
|
-
<a id="ApiKeyAuth"></a>
|
223
|
-
### ApiKeyAuth
|
224
|
-
|
225
|
-
- **Type**: API key
|
226
|
-
- **API key parameter name**: api_key
|
227
|
-
- **Location**: URL query string
|
228
|
-
|
229
|
-
## Development
|
230
|
-
|
231
|
-
This Python package is automatically generated by [OpenAPI Generator](https://openapi-generator.tech).
|
232
|
-
To regenerate the package with an updated API spec, run the following command (make sure to replace
|
233
|
-
`X.Y.Z` with the new version number!):
|
234
|
-
|
235
|
-
```shell
|
236
|
-
openapi-generator generate -i https://api.stadiamaps.com/openapi.yaml -g python-nextgen --strict-spec=true -o . -p disallowAdditionalPropertiesIfNotPresent=false -p packageName=stadiamaps -p packageUrl=https://docs.stadiamaps.com/ -p packageVersion=X.Y.Z
|
237
|
-
```
|
238
|
-
|
239
|
-
### Caveats
|
240
|
-
|
241
|
-
The current release (6.6.0) of the generator's `python` generator is broken, but `python-nextgen` works.
|
242
|
-
The next release is scheduled to rename `python-nextgen` to `python`.
|
243
|
-
|
244
|
-
The auto-generated code (as of generator 6.6.0) does not pass flake8, so we have disabled the checks.
|
File without changes
|
File without changes
|
File without changes
|