选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

Geocode

聚焦模式
Geocode - Amazon Location Service
此页面尚未翻译为您的语言。 请求翻译
Note

Stored results incur higher Storage pricing. Use the IntendedUse parameter to indicate single-use or storage. Refer to the Places pricing to understand cost implications for stored results.

Geocoding transforms textual addresses or place names into geographic coordinates, along with detailed address components and additional information. This API supports flexible queries, including both free-form text and structured queries with street names, postal codes, and regions. Optional features include time zone data and political view adjustments.

Use cases

  • Add supplementary data to customer addresses: Improve address records by including zip codes, coordinates, and utilizing persistent storage to support informed business and marketing decisions.

  • Address Data Standardization: Apply geocoding in data pipelines or batch processes to standardize address data, utilizing persistent storage for ongoing reference.

  • Determine Time Zones: Identify the time zone for cities or addresses to provide accurate timestamps for applications like travel, scheduling, and invoicing.

Understand the request

The request accepts optional parameters, such as AdditionalFeatures, BiasPosition, and Filter, to refine the search results. Additional options, like Language, MaxResults, and PoliticalView, provide further customization of the response. The required parameter is Query, which can be provided as free-form text or structured as QueryComponents. For more information, refer to the Geocode API Reference.

The request includes the following key parameters:

Authentication

For authentication, the Key parameter is optional if other methods are in use.

  • Key: Optional parameter for authentication.

For more information, see Authenticate with Amazon Location Service

Querying and biasing

Parameters used for querying and geographic biasing of results.

  • QueryText: Free-form text query for searching locations.

  • QueryComponents: Structured components such as address number, country, locality, or postal code for precise searching.

  • BiasPosition: Geographic position to bias search results towards.

For more information, see Querying and biasing

Refining Results

Apply filters to refine the results.

  • Filter: Filter to include specific countries or place types. For more information, see Filtering.

Internationalization and localization

Specify language and apply political view for localized results.

  • Language: Language for the results.

  • PoliticalView: Applies a political view reflecting territorial claims.

For more information, see Localization and internationalization

Additional Features

Request additional information like time zone details.

  • AdditionalFeatures: Option to request additional details such as time zone. For more information, see Additional features.

Understand the response

The response provides ResultItems, which contain detailed location data such as Address, PlaceId, Position, and other relevant attributes. Additional features like TimeZone information or match scores for each query component may also be included. Each ResultItem represents a matched location or geocoding result based on the specified request parameters. For further details, see the Geocode API Reference.

The response includes the following key parameters:

Address and related details

Details about the returned location, including address components.

  • Address: Full address including country, region, postal code, and street details.

  • PostalCodeDetails: Additional information related to postal codes.

  • StreetComponents: Street details including base name and type.

Place types and categories

Information on the type and category of place returned.

  • Categories: List of categories describing the place, for example Restaurants, Schools.

  • PlaceType: Specifies the type of place, such as city, address, or region.

Result analysis

Scores indicating how closely results match the input query.

  • MatchScores: Scores for matching precision.

Additional details

Includes extra location-related information as needed.

  • AccessPoints: Geographic coordinates representing access points.

  • TimeZone: Time zone information for the location.

本页内容

下一主题:

Reverse Geocode

上一主题:

Places APIs
隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。