get_map_tile
¶
get_map_tile(
map_name: ResourceName,
z: SensitiveString,
x: SensitiveString,
y: SensitiveString,
*,
config_overrides: Optional[LocationClientConfig] = None,
key: Optional[ApiKey] = None,
) -> GetMapTileResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to The version 2 If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under Since Start your version 2 API journey with the Maps V2 API Reference or the Developer Guide.GetTile unless you require Grab data.
GetMapTile is part of a previous Amazon Location Service Maps API (version 1) which has been superseded by a more intuitive, powerful, and complete API (version 2).GetTile operation gives a better user experience and is compatible with the remainder of the V2 Maps API.geo-maps or geo_maps, not under location.Grab is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using Grab.
Retrieves a vector data tile from the map resource. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.
The origin (0, 0) is the top left of the map. Increasing the zoom level by 1 doubles both the X and Y dimensions, so a tile containing data for the entire world at (0/0/0) will be split into 4 tiles at zoom 1 (1/0/0, 1/0/1, 1/1/0, 1/1/1).
Parameters:
-
map_name(ResourceName) –The map resource to retrieve the map tiles from.
-
z(SensitiveString) –The zoom value for the map tile.
-
x(SensitiveString) –The X axis value for the map tile.
-
y(SensitiveString) –The Y axis value for the map tile.
-
key(Optional[ApiKey], default:None) –The optional API key to authorize the request.
Raises:
-
AccessDeniedException–The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
-
InternalServerException–The request has failed to process because of an unknown server error, exception, or failure.
-
ResourceNotFoundException–The resource that you've entered was not found in your AWS account.
-
ThrottlingException–The request was denied because of request throttling.
-
ValidationException–The input failed to meet the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_location/_services/location.py
2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 | |