GEO-PLACES

Autocomplete

enum_AutocompleteAdditionalFeature := [ "Core" ]
enum_AutocompleteFilterPlaceType := [ "Locality", "PostalCode" ]
enum_AutocompleteIntendedUse := [ "SingleUse" ]
enum_PostalCodeMode := [ "MergeAllSpannedLocalities", "EnumerateSpannedLocalities" ]

valid {
    input.Body.QueryText == STRING
    input.Body.MaxResults == INTEGER
    input.Body.BiasPosition[_] == DOUBLE
    input.Body.Filter.BoundingBox[_] == DOUBLE
    input.Body.Filter.Circle.Center[_] == DOUBLE
    input.Body.Filter.Circle.Radius == LONG
    input.Body.Filter.IncludeCountries[_] == STRING
    input.Body.Filter.IncludePlaceTypes[_] == enum_AutocompleteFilterPlaceType[_]
    input.Body.PostalCodeMode == enum_PostalCodeMode[_]
    input.Body.AdditionalFeatures[_] == enum_AutocompleteAdditionalFeature[_]
    input.Body.Language == STRING
    input.Body.PoliticalView == STRING
    input.Body.IntendedUse == enum_AutocompleteIntendedUse[_]
    input.Qs.key == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

Geocode

enum_GeocodeAdditionalFeature := [ "TimeZone", "Access" ]
enum_GeocodeFilterPlaceType := [ "Locality", "PostalCode", "Intersection", "Street", "PointAddress", "InterpolatedAddress" ]
enum_GeocodeIntendedUse := [ "SingleUse", "Storage" ]

valid {
    input.Body.QueryText == STRING
    input.Body.QueryComponents.Country == STRING
    input.Body.QueryComponents.Region == STRING
    input.Body.QueryComponents.SubRegion == STRING
    input.Body.QueryComponents.Locality == STRING
    input.Body.QueryComponents.District == STRING
    input.Body.QueryComponents.Street == STRING
    input.Body.QueryComponents.AddressNumber == STRING
    input.Body.QueryComponents.PostalCode == STRING
    input.Body.MaxResults == INTEGER
    input.Body.BiasPosition[_] == DOUBLE
    input.Body.Filter.IncludeCountries[_] == STRING
    input.Body.Filter.IncludePlaceTypes[_] == enum_GeocodeFilterPlaceType[_]
    input.Body.AdditionalFeatures[_] == enum_GeocodeAdditionalFeature[_]
    input.Body.Language == STRING
    input.Body.PoliticalView == STRING
    input.Body.IntendedUse == enum_GeocodeIntendedUse[_]
    input.Qs.key == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetPlace

enum_GetPlaceAdditionalFeature := [ "TimeZone", "Phonemes", "Access", "Contact" ]
enum_GetPlaceIntendedUse := [ "SingleUse", "Storage" ]

valid {
    input.ReqMap.PlaceId == STRING
    input.Qs.additional-features[_] == enum_GetPlaceAdditionalFeature[_]
    input.Qs.language == STRING
    input.Qs.political-view == STRING
    input.Qs.intended-use == enum_GetPlaceIntendedUse[_]
    input.Qs.key == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ReverseGeocode

enum_ReverseGeocodeAdditionalFeature := [ "TimeZone", "Access" ]
enum_ReverseGeocodeFilterPlaceType := [ "Locality", "Intersection", "Street", "PointAddress", "InterpolatedAddress" ]
enum_ReverseGeocodeIntendedUse := [ "SingleUse", "Storage" ]

valid {
    input.Body.QueryPosition[_] == DOUBLE
    input.Body.QueryRadius == LONG
    input.Body.MaxResults == INTEGER
    input.Body.Filter.IncludePlaceTypes[_] == enum_ReverseGeocodeFilterPlaceType[_]
    input.Body.AdditionalFeatures[_] == enum_ReverseGeocodeAdditionalFeature[_]
    input.Body.Language == STRING
    input.Body.PoliticalView == STRING
    input.Body.IntendedUse == enum_ReverseGeocodeIntendedUse[_]
    input.Qs.key == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

SearchNearby

enum_SearchNearbyAdditionalFeature := [ "TimeZone", "Phonemes", "Access", "Contact" ]
enum_SearchNearbyIntendedUse := [ "SingleUse", "Storage" ]

valid {
    input.Body.QueryPosition[_] == DOUBLE
    input.Body.QueryRadius == LONG
    input.Body.MaxResults == INTEGER
    input.Body.Filter.BoundingBox[_] == DOUBLE
    input.Body.Filter.IncludeCountries[_] == STRING
    input.Body.Filter.IncludeCategories[_] == STRING
    input.Body.Filter.ExcludeCategories[_] == STRING
    input.Body.Filter.IncludeBusinessChains[_] == STRING
    input.Body.Filter.ExcludeBusinessChains[_] == STRING
    input.Body.Filter.IncludeFoodTypes[_] == STRING
    input.Body.Filter.ExcludeFoodTypes[_] == STRING
    input.Body.AdditionalFeatures[_] == enum_SearchNearbyAdditionalFeature[_]
    input.Body.Language == STRING
    input.Body.PoliticalView == STRING
    input.Body.IntendedUse == enum_SearchNearbyIntendedUse[_]
    input.Body.NextToken == STRING
    input.Qs.key == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

SearchText

enum_SearchTextAdditionalFeature := [ "TimeZone", "Phonemes", "Access", "Contact" ]
enum_SearchTextIntendedUse := [ "SingleUse", "Storage" ]

valid {
    input.Body.QueryText == STRING
    input.Body.QueryId == STRING
    input.Body.MaxResults == INTEGER
    input.Body.BiasPosition[_] == DOUBLE
    input.Body.Filter.BoundingBox[_] == DOUBLE
    input.Body.Filter.Circle.Center[_] == DOUBLE
    input.Body.Filter.Circle.Radius == LONG
    input.Body.Filter.IncludeCountries[_] == STRING
    input.Body.AdditionalFeatures[_] == enum_SearchTextAdditionalFeature[_]
    input.Body.Language == STRING
    input.Body.PoliticalView == STRING
    input.Body.IntendedUse == enum_SearchTextIntendedUse[_]
    input.Body.NextToken == STRING
    input.Qs.key == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

Suggest

enum_SuggestAdditionalFeature := [ "Core", "TimeZone", "Phonemes", "Access" ]
enum_SuggestIntendedUse := [ "SingleUse" ]

valid {
    input.Body.QueryText == STRING
    input.Body.MaxResults == INTEGER
    input.Body.MaxQueryRefinements == INTEGER
    input.Body.BiasPosition[_] == DOUBLE
    input.Body.Filter.BoundingBox[_] == DOUBLE
    input.Body.Filter.Circle.Center[_] == DOUBLE
    input.Body.Filter.Circle.Radius == LONG
    input.Body.Filter.IncludeCountries[_] == STRING
    input.Body.AdditionalFeatures[_] == enum_SuggestAdditionalFeature[_]
    input.Body.Language == STRING
    input.Body.PoliticalView == STRING
    input.Body.IntendedUse == enum_SuggestIntendedUse[_]
    input.Qs.key == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}