stadiamaps


Namestadiamaps JSON
Version 3.0.0 PyPI version JSON
download
home_pagehttps://github.com/stadiamaps/stadiamaps-api-py
SummaryStadia Maps Geospatial APIs
upload_time2024-04-30 07:05:05
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/03/45/06f5a1bee598fa839ab394a8d4be101810b15793e9a20f263104513c6d8c/stadiamaps-3.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": "3.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": "167262cc489f0bbec2f6d62f14ba5e49b9b92a9a1ed1ef8f8f06ed797fce4d23",
                "md5": "e94429e300196e55f95368b30070f3c4",
                "sha256": "168299b1e02fae4da49f7b1b8a2dd0084deac91c7a023355af2bda4af79edaee"
            },
            "downloads": -1,
            "filename": "stadiamaps-3.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e94429e300196e55f95368b30070f3c4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 241161,
            "upload_time": "2024-04-30T07:05:03",
            "upload_time_iso_8601": "2024-04-30T07:05:03.484172Z",
            "url": "https://files.pythonhosted.org/packages/16/72/62cc489f0bbec2f6d62f14ba5e49b9b92a9a1ed1ef8f8f06ed797fce4d23/stadiamaps-3.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "034506f5a1bee598fa839ab394a8d4be101810b15793e9a20f263104513c6d8c",
                "md5": "a151bc67fd912fbf7325273d47a01039",
                "sha256": "e948d420b3d7157a9156721e05c96e17e2c3af3d39ea45e342f9ddabbe49f216"
            },
            "downloads": -1,
            "filename": "stadiamaps-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a151bc67fd912fbf7325273d47a01039",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 122205,
            "upload_time": "2024-04-30T07:05:05",
            "upload_time_iso_8601": "2024-04-30T07:05:05.643463Z",
            "url": "https://files.pythonhosted.org/packages/03/45/06f5a1bee598fa839ab394a8d4be101810b15793e9a20f263104513c6d8c/stadiamaps-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-30 07:05:05",
    "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.25334s