stadiamaps


Namestadiamaps JSON
Version 4.0.0 PyPI version JSON
download
home_pagehttps://github.com/stadiamaps/stadiamaps-api-py
SummaryStadia Maps Geospatial APIs
upload_time2024-09-04 07:43:00
maintainerNone
docs_urlNone
authorStadia Maps Support
requires_pythonNone
licenseNone
keywords openapi openapi-generator stadia maps geospatial apis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 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](https://docs.stadiamaps.com)

## Installation & Usage
### pip install

```shell
pip install stadiamaps
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```shell
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](#installation--usage) and then run the following:

```python
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 like so:
# configuration = stadiamaps.Configuration(host="https://api-eu.stadiamaps.com")
# See configuration.py for a list of all supported configuration parameters.
configuration = stadiamaps.Configuration()

# Configure API key authorization. This example assumes it is injected via an environment
# variable.
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)
```
    

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/stadiamaps/stadiamaps-api-py",
    "name": "stadiamaps",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "OpenAPI, OpenAPI-Generator, Stadia Maps Geospatial APIs",
    "author": "Stadia Maps Support",
    "author_email": "support@stadiamaps.com",
    "download_url": "https://files.pythonhosted.org/packages/c2/b8/021a22e9da1df5cb4d9536d54231228957c67cbf7f88b8131297aea75c30/stadiamaps-4.0.0.tar.gz",
    "platform": null,
    "description": "\n# Stadia Maps Python API Client\n\nThe Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n\nFor more information about the API, please visit [https://docs.stadiamaps.com](https://docs.stadiamaps.com)\n\n## Installation & Usage\n### pip install\n\n```shell\npip install stadiamaps\n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```shell\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\n### Tests\n\nExecute `pytest` to run the tests. These are run automatically via CI.\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\nimport os\nimport stadiamaps\nfrom stadiamaps.rest import ApiException\nfrom pprint import pprint\n\n# Defining the host is optional and defaults to https://api.stadiamaps.com\n# You can also use our EU endpoint to keep traffic within the EU like so:\n# configuration = stadiamaps.Configuration(host=\"https://api-eu.stadiamaps.com\")\n# See configuration.py for a list of all supported configuration parameters.\nconfiguration = stadiamaps.Configuration()\n\n# Configure API key authorization. This example assumes it is injected via an environment\n# variable.\nconfiguration.api_key['ApiKeyAuth'] = os.environ[\"API_KEY\"]\n\n# Enter a context with an instance of the API client\nwith stadiamaps.ApiClient(configuration) as api_client:\n    # Create an instance of the API class\n    api_instance = stadiamaps.GeocodingApi(api_client)\n    text = \"P\u00f5hja pst 27a\" # str | The place name (address, venue name, etc.) to search for.\n\n    try:\n        # Search and geocode quickly based on partial input.\n        api_response = api_instance.autocomplete(text)\n        print(\"The response of GeocodingApi->autocomplete:\n\")\n        pprint(api_response)\n    except ApiException as e:\n        print(\"Exception when calling GeocodingApi->autocomplete: %s\n\" % e)\n```\n    \n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Stadia Maps Geospatial APIs",
    "version": "4.0.0",
    "project_urls": {
        "Homepage": "https://github.com/stadiamaps/stadiamaps-api-py"
    },
    "split_keywords": [
        "openapi",
        " openapi-generator",
        " stadia maps geospatial apis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67a0b040640f529e91f4dabb302b682ed0aec7049814c726bb86fbd66bb0ddd5",
                "md5": "7a90eb546cd497d53066c53b70764213",
                "sha256": "2f969470765b28531b2a8dd256f8588ddf45de8fedcb4955806848f3e71bf87e"
            },
            "downloads": -1,
            "filename": "stadiamaps-4.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7a90eb546cd497d53066c53b70764213",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 299954,
            "upload_time": "2024-09-04T07:42:58",
            "upload_time_iso_8601": "2024-09-04T07:42:58.961737Z",
            "url": "https://files.pythonhosted.org/packages/67/a0/b040640f529e91f4dabb302b682ed0aec7049814c726bb86fbd66bb0ddd5/stadiamaps-4.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2b8021a22e9da1df5cb4d9536d54231228957c67cbf7f88b8131297aea75c30",
                "md5": "35c5fd549e9b4aee1eefb0849715a0f6",
                "sha256": "6b3346f93ac6f867b0788d307474e8c9f5f1091cae58d17b97cc5dede717da9c"
            },
            "downloads": -1,
            "filename": "stadiamaps-4.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "35c5fd549e9b4aee1eefb0849715a0f6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 150586,
            "upload_time": "2024-09-04T07:43:00",
            "upload_time_iso_8601": "2024-09-04T07:43:00.614982Z",
            "url": "https://files.pythonhosted.org/packages/c2/b8/021a22e9da1df5cb4d9536d54231228957c67cbf7f88b8131297aea75c30/stadiamaps-4.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-04 07:43:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stadiamaps",
    "github_project": "stadiamaps-api-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "stadiamaps"
}
        
Elapsed time: 0.31306s