Skip to content

Commit 63a9497

Browse files
author
AWS
committed
Amazon Location Service Update: This release adds place IDs, which are unique identifiers of places, along with a new GetPlace operation, which can be used with place IDs to find a place again later. UnitNumber and UnitType are also added as new properties of places.
1 parent ee3958d commit 63a9497

File tree

2 files changed

+93
-4
lines changed

2 files changed

+93
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Location Service",
4+
"contributor": "",
5+
"description": "This release adds place IDs, which are unique identifiers of places, along with a new GetPlace operation, which can be used with place IDs to find a place again later. UnitNumber and UnitType are also added as new properties of places."
6+
}

services/location/src/main/resources/codegen-resources/service-2.json

Lines changed: 87 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,25 @@
632632
"documentation":"<p>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. </p> <p>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).</p>",
633633
"endpoint":{"hostPrefix":"maps."}
634634
},
635+
"GetPlace":{
636+
"name":"GetPlace",
637+
"http":{
638+
"method":"GET",
639+
"requestUri":"/places/v0/indexes/{IndexName}/places/{PlaceId}",
640+
"responseCode":200
641+
},
642+
"input":{"shape":"GetPlaceRequest"},
643+
"output":{"shape":"GetPlaceResponse"},
644+
"errors":[
645+
{"shape":"InternalServerException"},
646+
{"shape":"ResourceNotFoundException"},
647+
{"shape":"AccessDeniedException"},
648+
{"shape":"ValidationException"},
649+
{"shape":"ThrottlingException"}
650+
],
651+
"documentation":"<p>Finds a place by its unique ID. A <code>PlaceId</code> is returned by other search operations.</p> <note> <p>A PlaceId is valid only if all of the following are the same in the original search request and the call to <code>GetPlace</code>.</p> <ul> <li> <p>Customer AWS account</p> </li> <li> <p>AWS Region</p> </li> <li> <p>Data provider specified in the place index resource</p> </li> </ul> </note>",
652+
"endpoint":{"hostPrefix":"places."}
653+
},
635654
"ListDevicePositions":{
636655
"name":"ListDevicePositions",
637656
"http":{
@@ -1957,7 +1976,7 @@
19571976
"documentation":"<p>The timestamp for when the map resource was created in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format: <code>YYYY-MM-DDThh:mm:ss.sssZ</code>.</p>"
19581977
},
19591978
"MapArn":{
1960-
"shape":"Arn",
1979+
"shape":"GeoArn",
19611980
"documentation":"<p>The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all AWS.</p> <ul> <li> <p>Format example: <code>arn:aws:geo:region:account-id:maps/ExampleMap</code> </p> </li> </ul>"
19621981
},
19631982
"MapName":{
@@ -2336,7 +2355,7 @@
23362355
"documentation":"<p>The optional description for the map resource.</p>"
23372356
},
23382357
"MapArn":{
2339-
"shape":"Arn",
2358+
"shape":"GeoArn",
23402359
"documentation":"<p>The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all AWS.</p> <ul> <li> <p>Format example: <code>arn:aws:geo:region:account-id:maps/ExampleMap</code> </p> </li> </ul>"
23412360
},
23422361
"MapName":{
@@ -2664,6 +2683,12 @@
26642683
"type":"double",
26652684
"box":true
26662685
},
2686+
"GeoArn":{
2687+
"type":"string",
2688+
"max":1600,
2689+
"min":0,
2690+
"pattern":"^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0-9]+)*))(:[0-9]+):((\\*)|([-a-z]+[/][*-._\\w]+))$"
2691+
},
26672692
"GeofenceGeometry":{
26682693
"type":"structure",
26692694
"members":{
@@ -2900,7 +2925,7 @@
29002925
"members":{
29012926
"FileName":{
29022927
"shape":"GetMapSpritesRequestFileNameString",
2903-
"documentation":"<p>The name of the sprite file. Use the following file names for the sprite sheet:</p> <ul> <li> <p> <code>sprites.png</code> </p> </li> <li> <p> <code>[email protected]</code> for high pixel density displays</p> </li> </ul> <p>For the JSON document contain image offsets. Use the following file names:</p> <ul> <li> <p> <code>sprites.json</code> </p> </li> <li> <p> <code>[email protected]</code> for high pixel density displays</p> </li> </ul>",
2928+
"documentation":"<p>The name of the sprite file. Use the following file names for the sprite sheet:</p> <ul> <li> <p> <code>sprites.png</code> </p> </li> <li> <p> <code>[email protected]</code> for high pixel density displays</p> </li> </ul> <p>For the JSON document containing image offsets. Use the following file names:</p> <ul> <li> <p> <code>sprites.json</code> </p> </li> <li> <p> <code>[email protected]</code> for high pixel density displays</p> </li> </ul>",
29042929
"location":"uri",
29052930
"locationName":"FileName"
29062931
},
@@ -3023,6 +3048,43 @@
30233048
},
30243049
"payload":"Blob"
30253050
},
3051+
"GetPlaceRequest":{
3052+
"type":"structure",
3053+
"required":[
3054+
"IndexName",
3055+
"PlaceId"
3056+
],
3057+
"members":{
3058+
"IndexName":{
3059+
"shape":"ResourceName",
3060+
"documentation":"<p>The name of the place index resource that you want to use for the search.</p>",
3061+
"location":"uri",
3062+
"locationName":"IndexName"
3063+
},
3064+
"Language":{
3065+
"shape":"LanguageTag",
3066+
"documentation":"<p>The preferred language used to return results. The value must be a valid <a href=\"https://tools.ietf.org/search/bcp47\">BCP 47</a> language tag, for example, <code>en</code> for English.</p> <p>This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.</p> <p>For an example, we'll use the Greek language. You search for a location around Athens, Greece, with the <code>language</code> parameter set to <code>en</code>. The <code>city</code> in the results will most likely be returned as <code>Athens</code>.</p> <p>If you set the <code>language</code> parameter to <code>el</code>, for Greek, then the <code>city</code> in the results will more likely be returned as <code>Αθήνα</code>.</p> <p>If the data provider does not have a value for Greek, the result will be in a language that the provider does support.</p>",
3067+
"location":"querystring",
3068+
"locationName":"language"
3069+
},
3070+
"PlaceId":{
3071+
"shape":"PlaceId",
3072+
"documentation":"<p>The identifier of the place to find.</p>",
3073+
"location":"uri",
3074+
"locationName":"PlaceId"
3075+
}
3076+
}
3077+
},
3078+
"GetPlaceResponse":{
3079+
"type":"structure",
3080+
"required":["Place"],
3081+
"members":{
3082+
"Place":{
3083+
"shape":"Place",
3084+
"documentation":"<p>Details about the result, such as its address and position.</p>"
3085+
}
3086+
}
3087+
},
30263088
"Id":{
30273089
"type":"string",
30283090
"max":100,
@@ -3801,6 +3863,14 @@
38013863
"TimeZone":{
38023864
"shape":"TimeZone",
38033865
"documentation":"<p>The time zone in which the <code>Place</code> is located. Returned only when using Here as the selected partner.</p>"
3866+
},
3867+
"UnitNumber":{
3868+
"shape":"String",
3869+
"documentation":"<p>For addresses with multiple units, the unit identifier. Can include numbers and letters, for example <code>3B</code> or <code>Unit 123</code>.</p> <note> <p>Returned only for a place index that uses Esri as a data provider. Is not returned for <code>SearchPlaceIndexForPosition</code>.</p> </note>"
3870+
},
3871+
"UnitType":{
3872+
"shape":"String",
3873+
"documentation":"<p>For addresses with a <code>UnitNumber</code>, the type of unit. For example, <code>Apartment</code>.</p>"
38043874
}
38053875
},
38063876
"documentation":"<p>Contains details about addresses or points of interest that match the search criteria.</p> <p>Not all details are included with all responses. Some details may only be returned by specific data partners.</p>"
@@ -3815,6 +3885,7 @@
38153885
},
38163886
"documentation":"<p>Places uses a point geometry to specify a location or a Place.</p>"
38173887
},
3888+
"PlaceId":{"type":"string"},
38183889
"PlaceIndexSearchResultLimit":{
38193890
"type":"integer",
38203891
"max":50,
@@ -4029,6 +4100,10 @@
40294100
"Place":{
40304101
"shape":"Place",
40314102
"documentation":"<p>Details about the search result, such as its address and position.</p>"
4103+
},
4104+
"PlaceId":{
4105+
"shape":"PlaceId",
4106+
"documentation":"<p>The unique identifier of the place. You can use this with the <code>GetPlace</code> operation to find the place again later.</p> <note> <p>For <code>SearchPlaceIndexForPosition</code> operations, the <code>PlaceId</code> is returned only by place indexes that use HERE as a data provider.</p> </note>"
40324107
}
40334108
},
40344109
"documentation":"<p>Contains a search result from a position search query that is run on a place index resource.</p>"
@@ -4046,6 +4121,10 @@
40464121
"type":"structure",
40474122
"required":["Text"],
40484123
"members":{
4124+
"PlaceId":{
4125+
"shape":"PlaceId",
4126+
"documentation":"<p>The unique identifier of the place. You can use this with the <code>GetPlace</code> operation to find the place again later.</p> <note> <p>For <code>SearchPlaceIndexForSuggestions</code> operations, the <code>PlaceId</code> is returned by place indexes that use HERE or Esri as data providers.</p> </note>"
4127+
},
40494128
"Text":{
40504129
"shape":"String",
40514130
"documentation":"<p>The text of the place suggestion, typically formatted as an address string.</p>"
@@ -4069,6 +4148,10 @@
40694148
"shape":"Place",
40704149
"documentation":"<p>Details about the search result, such as its address and position.</p>"
40714150
},
4151+
"PlaceId":{
4152+
"shape":"PlaceId",
4153+
"documentation":"<p>The unique identifier of the place. You can use this with the <code>GetPlace</code> operation to find the place again later.</p> <note> <p>For <code>SearchPlaceIndexForText</code> operations, the <code>PlaceId</code> is returned only by place indexes that use HERE as a data provider.</p> </note>"
4154+
},
40724155
"Relevance":{
40734156
"shape":"SearchForTextResultRelevanceDouble",
40744157
"documentation":"<p>The relative confidence in the match for a result among the results returned. For example, if more fields for an address match (including house number, street, city, country/region, and postal code), the relevance score is closer to 1.</p> <p>Returned only when the partner selected is Esri.</p>"
@@ -4705,7 +4788,7 @@
47054788
],
47064789
"members":{
47074790
"MapArn":{
4708-
"shape":"Arn",
4791+
"shape":"GeoArn",
47094792
"documentation":"<p>The Amazon Resource Name (ARN) of the updated map resource. Used to specify a resource across AWS.</p> <ul> <li> <p>Format example: <code>arn:aws:geo:region:account-id:maps/ExampleMap</code> </p> </li> </ul>"
47104793
},
47114794
"MapName":{

0 commit comments

Comments
 (0)