LocationServiceMapsV2Client#
Index > LocationServiceMapsV2 > LocationServiceMapsV2Client
Auto-generated documentation for LocationServiceMapsV2 type annotations stubs module types-boto3-geo-maps.
LocationServiceMapsV2Client#
Type annotations and code completion for boto3.client("geo-maps").
 boto3 documentation
# LocationServiceMapsV2Client usage example
from boto3.session import Session
from types_boto3_geo_maps.client import LocationServiceMapsV2Client
def get_geo-maps_client() -> LocationServiceMapsV2Client:
    return Session().client("geo-maps")Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("geo-maps").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("geo-maps")
try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_geo_maps.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...Methods#
can_paginate#
Type annotations and code completion for boto3.client("geo-maps").can_paginate method.
 boto3 documentation
# can_paginate method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...generate_presigned_url#
Type annotations and code completion for boto3.client("geo-maps").generate_presigned_url method.
 boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...get_glyphs#
GetGlyphs returns the map's glyphs.
Type annotations and code completion for boto3.client("geo-maps").get_glyphs method.
 boto3 documentation
# get_glyphs method definition
def get_glyphs(
    self,
    *,
    FontStack: str,
    FontUnicodeRange: str,
) -> GetGlyphsResponseTypeDef:  # (1)
    ...# get_glyphs method usage example with argument unpacking
kwargs: GetGlyphsRequestTypeDef = {  # (1)
    "FontStack": ...,
    "FontUnicodeRange": ...,
}
parent.get_glyphs(**kwargs)get_sprites#
GetSprites returns the map's sprites.
Type annotations and code completion for boto3.client("geo-maps").get_sprites method.
 boto3 documentation
# get_sprites method definition
def get_sprites(
    self,
    *,
    FileName: str,
    Style: MapStyleType,  # (1)
    ColorScheme: ColorSchemeType,  # (2)
    Variant: VariantType,  # (3)
) -> GetSpritesResponseTypeDef:  # (4)
    ...- See MapStyleType
- See ColorSchemeType
- See VariantType
- See GetSpritesResponseTypeDef
# get_sprites method usage example with argument unpacking
kwargs: GetSpritesRequestTypeDef = {  # (1)
    "FileName": ...,
    "Style": ...,
    "ColorScheme": ...,
    "Variant": ...,
}
parent.get_sprites(**kwargs)get_static_map#
GetStaticMap provides high-quality static map images with
customizable options.
Type annotations and code completion for boto3.client("geo-maps").get_static_map method.
 boto3 documentation
# get_static_map method definition
def get_static_map(
    self,
    *,
    Height: int,
    FileName: str,
    Width: int,
    BoundingBox: str = ...,
    BoundedPositions: str = ...,
    Center: str = ...,
    ColorScheme: ColorSchemeType = ...,  # (1)
    CompactOverlay: str = ...,
    CropLabels: bool = ...,
    GeoJsonOverlay: str = ...,
    Key: str = ...,
    LabelSize: LabelSizeType = ...,  # (2)
    Language: str = ...,
    Padding: int = ...,
    PoliticalView: str = ...,
    PointsOfInterests: MapFeatureModeType = ...,  # (3)
    Radius: int = ...,
    ScaleBarUnit: ScaleBarUnitType = ...,  # (4)
    Style: StaticMapStyleType = ...,  # (5)
    Zoom: float = ...,
) -> GetStaticMapResponseTypeDef:  # (6)
    ...- See ColorSchemeType
- See LabelSizeType
- See MapFeatureModeType
- See ScaleBarUnitType
- See StaticMapStyleType
- See GetStaticMapResponseTypeDef
# get_static_map method usage example with argument unpacking
kwargs: GetStaticMapRequestTypeDef = {  # (1)
    "Height": ...,
    "FileName": ...,
    "Width": ...,
}
parent.get_static_map(**kwargs)get_style_descriptor#
GetStyleDescriptor returns information about the style.
Type annotations and code completion for boto3.client("geo-maps").get_style_descriptor method.
 boto3 documentation
# get_style_descriptor method definition
def get_style_descriptor(
    self,
    *,
    Style: MapStyleType,  # (1)
    ColorScheme: ColorSchemeType = ...,  # (2)
    PoliticalView: str = ...,
    Terrain: TerrainType = ...,  # (3)
    ContourDensity: ContourDensityType = ...,  # (4)
    Traffic: TrafficType = ...,  # (5)
    TravelModes: Sequence[TravelModeType] = ...,  # (6)
    Key: str = ...,
) -> GetStyleDescriptorResponseTypeDef:  # (7)
    ...- See MapStyleType
- See ColorSchemeType
- See TerrainType
- See ContourDensityType
- See TrafficType
- See Sequence[TravelModeType]
- See GetStyleDescriptorResponseTypeDef
# get_style_descriptor method usage example with argument unpacking
kwargs: GetStyleDescriptorRequestTypeDef = {  # (1)
    "Style": ...,
}
parent.get_style_descriptor(**kwargs)get_tile#
GetTile returns a tile.
Type annotations and code completion for boto3.client("geo-maps").get_tile method.
 boto3 documentation
# get_tile method definition
def get_tile(
    self,
    *,
    Tileset: str,
    Z: str,
    X: str,
    Y: str,
    AdditionalFeatures: Sequence[TileAdditionalFeatureType] = ...,  # (1)
    Key: str = ...,
) -> GetTileResponseTypeDef:  # (2)
    ...- See Sequence[TileAdditionalFeatureType]
- See GetTileResponseTypeDef
# get_tile method usage example with argument unpacking
kwargs: GetTileRequestTypeDef = {  # (1)
    "Tileset": ...,
    "Z": ...,
    "X": ...,
    "Y": ...,
}
parent.get_tile(**kwargs)