Stadia Maps Geospatial APIs
Project description
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
# Defining the host is optional and defaults to https://api.stadiamaps.com
# You can also use our EU endpoint to keep traffic within the EU by setting
# host to https://api-eu.stadiamaps.com.
# See configuration.py for a list of all supported configuration parameters.
configuration = stadiamaps.Configuration()
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization. This example assumes it is injected via an environment
# variable, but you can provide it in other ways as well.
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Enter a context with an instance of the API client
with stadiamaps.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = stadiamaps.GeocodingApi(api_client)
text = 'Põhja pst 27a' # str | The place name (address, venue name, etc.) to search for.
try:
# Search and geocode quickly based on partial input.
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stadiamaps-1.0.0.tar.gz
(108.9 kB
view hashes)
Built Distribution
stadiamaps-1.0.0-py3-none-any.whl
(206.8 kB
view hashes)
Close
Hashes for stadiamaps-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e63d310c971d5edd34d941dcd91376d11d907a16dc8c223ceedb41362819cab |
|
MD5 | ace915f5efc9b187259a8c529f697778 |
|
BLAKE2b-256 | 51b9bab87d684ac32a50ff7b48e07b93c7e6a941d29638b0d33d24c9cbe2683f |