get_place
async
¶
get_place(
place_id: SensitiveString,
*,
config_overrides: Optional[AsyncGeoPlacesClientConfig] = None,
additional_features: Optional[GetPlaceAdditionalFeatureList] = None,
language: Optional[LanguageTag] = None,
political_view: Optional[CountryCode] = None,
intended_use: Optional[GetPlaceIntendedUse] = None,
key: Optional[ApiKey] = None,
address_names_mode: Optional[GetPlaceAddressNamesMode] = None,
) -> GetPlaceResponse
GetPlace finds a place by its unique ID. A PlaceId is returned by other place operations.
For more information, see GetPlace in the Amazon Location Service Developer Guide.
Parameters:
-
place_id(SensitiveString) –The
PlaceIdof the place you wish to receive the information for. -
additional_features(Optional[GetPlaceAdditionalFeatureList], default:None) –A list of optional additional parameters such as time zone that can be requested for each result. For GrabMaps customers,
ap-southeast-1andap-southeast-5regions support only theTimeZonevalue. -
language(Optional[LanguageTag], default:None) –A list of BCP 47 compliant language codes for the results to be rendered in. If there is no data for the result in the requested language, data will be returned in the default language for the entry. For GrabMaps customers,
ap-southeast-1andap-southeast-5regions support only the following codes:en, id, km, lo, ms, my, pt, th, tl, vi, zh -
political_view(Optional[CountryCode], default:None) –The alpha-2 or alpha-3 character code for the political view of a country. The political view applies to the results of the request to represent unresolved territorial claims through the point of view of the specified country. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers. -
intended_use(Optional[GetPlaceIntendedUse], default:None) –Indicates if the query results will be persisted in customer infrastructure. Defaults to
SingleUse(not stored). Not supported inap-southeast-1andap-southeast-5regions for GrabMaps customers.When storing
GetPlaceresponses, you must set this field toStorageto comply with the terms of service. These requests will be charged at a higher rate. Please review the user agreement and service pricing structure to determine the correct setting for your use case. -
key(Optional[ApiKey], default:None) –Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
-
address_names_mode(Optional[GetPlaceAddressNamesMode], default:None) –Specifies how address names are returned. When set to
Administrative, the service returns the official administrative names for address components.Administrativecurrently applies only to addresses in the United States.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_geo_places/_services/async_geo_places.py
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 | |