Stadia Maps Python API Client
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
For more information about the API, please visit https://docs.stadiamaps.com
Installation & Usage
pip install
pip install stadiamaps
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Tests
Execute pytest
to run the tests. These are run automatically via CI.
Getting Started
Please follow the installation procedure and then run the following:
import os
import stadiamaps
from stadiamaps.rest import ApiException
from pprint import pprint
configuration = stadiamaps.Configuration()
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
with stadiamaps.ApiClient(configuration) as api_client:
api_instance = stadiamaps.GeocodingApi(api_client)
text = "Põhja pst 27a"
try:
api_response = api_instance.autocomplete(text)
print("The response of GeocodingApi->autocomplete:
")
pprint(api_response)
except ApiException as e:
print("Exception when calling GeocodingApi->autocomplete: %s
" % e)