AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the Amazon Location Service Places V2 Geocode API operation.

Syntax

Invoke-GEOPGeocode
-QueryText <String>
-AdditionalFeature <String[]>
-QueryComponents_AddressNumber <String>
-BiasPosition <Double[]>
-QueryComponents_Country <String>
-QueryComponents_District <String>
-Filter_IncludeCountry <String[]>
-Filter_IncludePlaceType <String[]>
-IntendedUse <GeocodeIntendedUse>
-Key <String>
-Language <String>
-QueryComponents_Locality <String>
-PoliticalView <String>
-QueryComponents_PostalCode <String>
-QueryComponents_Region <String>
-QueryComponents_Street <String>
-QueryComponents_SubRegion <String>
-MaxResult <Int32>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonGeoPlacesConfig>

Description

Geocode converts a textual address or place into geographic coordinates. You can obtain geographic coordinates, address component, and other related information. It supports flexible queries, including free-form text or structured queries with components like street names, postal codes, and regions. The Geocode API can also provide additional features such as time zone information and the inclusion of political views.

Parameters

-AdditionalFeature <String[]>
A list of optional additional parameters, such as time zone, that can be requested for each result. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAdditionalFeatures
-BiasPosition <Double[]>
The position, in longitude and latitude, that the results should be close to. Typically, place results returned are ranked higher the closer they are to this position. Stored in [lng, lat] and in the WSG84 format.The fields BiasPosition, FilterBoundingBox, and FilterCircle are mutually exclusive. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientConfig <AmazonGeoPlacesConfig>
Amazon.PowerShell.Cmdlets.GEOP.AmazonGeoPlacesClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Filter_IncludeCountry <String[]>
A list of countries that all results must be in. Countries are represented by either their alpha-2 or alpha-3 character codes. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesFilter_IncludeCountries
-Filter_IncludePlaceType <String[]>
The included place types. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesFilter_IncludePlaceTypes
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-IntendedUse <GeocodeIntendedUse>
Indicates if the results will be stored. Defaults to SingleUse, if left empty.Storing the response of an Geocode query is required to comply with service terms, but charged at a higher cost per request. Please review the user agreement and service pricing structure to determine the correct setting for your use case.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Key <String>
Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Language <String>
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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-MaxResult <Int32>
An optional limit for the number of results returned in a single call.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesMaxResults
-PoliticalView <String>
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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryComponents_AddressNumber <String>
The house number or address results should have.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryComponents_Country <String>
The alpha-2 or alpha-3 character code for the country that the results will be present in.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryComponents_District <String>
The district or division of a city the results should be present in.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryComponents_Locality <String>
The city or locality results should be present in. Example: Vancouver.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryComponents_PostalCode <String>
An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code for which the result should possess.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryComponents_Region <String>
The region or state results should be to be present in. Example: North Rhine-Westphalia.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryComponents_Street <String>
The name of the street results should be present in.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryComponents_SubRegion <String>
The sub-region or county for which results should be present in.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryText <String>
The free-form text query to match addresses against. This is usually a partially typed address from an end user in an address box or form.The fields QueryText, and QueryID are mutually exclusive.
Required?False
Position?1
Accept pipeline input?True (ByValue, ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.GeoPlaces.Model.GeocodeResponse). Specifying the name of a property of type Amazon.GeoPlaces.Model.GeocodeResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.GeoPlaces.Model.GeocodeResponse object containing multiple properties.

Supported Version

AWS Tools for PowerShell: 2.x.y.z