Skip to content

LocationService module

Index > LocationService

Auto-generated documentation for LocationService type annotations stubs module types-aiobotocore-location.

How to install

From PyPI with pip

Install types-aioboto3 for LocationService service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[location]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aioboto3-lite[location]'


# standalone installation
python -m pip install types-aiobotocore-location

How to uninstall

python -m pip uninstall -y types-aiobotocore-location

Usage

Code samples can be found in Examples.

LocationServiceClient

Type annotations and code completion for session.client("location") as LocationServiceClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_location.client import LocationServiceClient


session = Session()
async with session.client("location") as client:
    client: LocationServiceClient

Paginators

Type annotations and code completion for paginators from session.client("location").get_paginator("...").

Usage example
from types_aiobotocore_location.paginator import GetDevicePositionHistoryPaginator

def get_get_device_position_history_paginator() -> GetDevicePositionHistoryPaginator:
    return client.get_paginator("get_device_position_history"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_location.literals import BatchItemErrorCodeType

def get_value() -> BatchItemErrorCodeType:
    return "AccessDeniedError"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_location.type_defs import AssociateTrackerConsumerRequestRequestTypeDef

def get_value() -> AssociateTrackerConsumerRequestRequestTypeDef:
    return {
        "ConsumerArn": ...,
        "TrackerName": ...,
    }