Skip to content

Commit 064555d

Browse files
author
AWS
committed
Amazon Location Service Maps V2 Update: Provide support for vector map styles in the GetStaticMap operation.
1 parent ee01839 commit 064555d

File tree

4 files changed

+86
-18
lines changed

4 files changed

+86
-18
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 Maps V2",
4+
"contributor": "",
5+
"description": "Provide support for vector map styles in the GetStaticMap operation."
6+
}

services/geomaps/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
}
329329
],
330330
"endpoint": {
331-
"url": "https://maps.geo.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2",
331+
"url": "https://maps.geo.{Region}.{PartitionResult#dnsSuffix}/v2",
332332
"properties": {},
333333
"headers": {}
334334
},
@@ -371,7 +371,7 @@
371371
}
372372
],
373373
"endpoint": {
374-
"url": "https://maps.geo-fips.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2",
374+
"url": "https://maps.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2",
375375
"properties": {},
376376
"headers": {}
377377
},
@@ -414,7 +414,7 @@
414414
}
415415
],
416416
"endpoint": {
417-
"url": "https://maps.geo-fips.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2",
417+
"url": "https://maps.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2",
418418
"properties": {},
419419
"headers": {}
420420
},
@@ -457,7 +457,7 @@
457457
}
458458
],
459459
"endpoint": {
460-
"url": "https://maps.geo.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2",
460+
"url": "https://maps.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2",
461461
"properties": {},
462462
"headers": {}
463463
},

services/geomaps/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
142142
"expect": {
143143
"endpoint": {
144-
"url": "https://maps.geo-fips.us-gov-west-1.us-gov.api.aws/v2"
144+
"url": "https://maps.geo-fips.us-gov-west-1.api.aws/v2"
145145
}
146146
},
147147
"params": {
@@ -154,7 +154,7 @@
154154
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
155155
"expect": {
156156
"endpoint": {
157-
"url": "https://maps.geo-fips.us-gov-west-1.us-gov.amazonaws.com/v2"
157+
"url": "https://maps.geo-fips.us-gov-west-1.amazonaws.com/v2"
158158
}
159159
},
160160
"params": {
@@ -167,7 +167,7 @@
167167
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
168168
"expect": {
169169
"endpoint": {
170-
"url": "https://maps.geo.us-gov-west-1.us-gov.api.aws/v2"
170+
"url": "https://maps.geo.us-gov-west-1.api.aws/v2"
171171
}
172172
},
173173
"params": {
@@ -180,7 +180,7 @@
180180
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
181181
"expect": {
182182
"endpoint": {
183-
"url": "https://maps.geo.us-gov-west-1.us-gov.amazonaws.com/v2"
183+
"url": "https://maps.geo.us-gov-west-1.amazonaws.com/v2"
184184
}
185185
},
186186
"params": {

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

Lines changed: 72 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"input":{"shape":"GetGlyphsRequest"},
2424
"output":{"shape":"GetGlyphsResponse"},
25-
"documentation":"<p>Returns the map's glyphs.</p>"
25+
"documentation":"<p> <code>GetGlyphs</code> returns the map's glyphs.</p>"
2626
},
2727
"GetSprites":{
2828
"name":"GetSprites",
@@ -33,7 +33,7 @@
3333
},
3434
"input":{"shape":"GetSpritesRequest"},
3535
"output":{"shape":"GetSpritesResponse"},
36-
"documentation":"<p>Returns the map's sprites.</p>"
36+
"documentation":"<p> <code>GetSprites</code> returns the map's sprites.</p>"
3737
},
3838
"GetStaticMap":{
3939
"name":"GetStaticMap",
@@ -50,7 +50,7 @@
5050
{"shape":"ValidationException"},
5151
{"shape":"ThrottlingException"}
5252
],
53-
"documentation":"<p>Provides high-quality static map images with customizable options. You can modify the map's appearance and overlay additional information. It's an ideal solution for applications requiring tailored static map snapshots.</p>"
53+
"documentation":"<p> <code>GetStaticMap</code> provides high-quality static map images with customizable options. You can modify the map's appearance and overlay additional information. It's an ideal solution for applications requiring tailored static map snapshots.</p>"
5454
},
5555
"GetStyleDescriptor":{
5656
"name":"GetStyleDescriptor",
@@ -61,7 +61,7 @@
6161
},
6262
"input":{"shape":"GetStyleDescriptorRequest"},
6363
"output":{"shape":"GetStyleDescriptorResponse"},
64-
"documentation":"<p>Returns information about the style.</p>"
64+
"documentation":"<p> <code>GetStyleDescriptor</code> returns information about the style.</p>"
6565
},
6666
"GetTile":{
6767
"name":"GetTile",
@@ -78,7 +78,7 @@
7878
{"shape":"ValidationException"},
7979
{"shape":"ThrottlingException"}
8080
],
81-
"documentation":"<p>Returns a tile. 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>"
81+
"documentation":"<p> <code>GetTile</code> returns a tile. 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>"
8282
}
8383
},
8484
"shapes":{
@@ -105,6 +105,10 @@
105105
"sensitive":true
106106
},
107107
"Blob":{"type":"blob"},
108+
"Boolean":{
109+
"type":"boolean",
110+
"box":true
111+
},
108112
"ColorScheme":{
109113
"type":"string",
110114
"enum":[
@@ -284,12 +288,24 @@
284288
"location":"querystring",
285289
"locationName":"center"
286290
},
291+
"ColorScheme":{
292+
"shape":"ColorScheme",
293+
"documentation":"<p>Sets color tone for map, such as dark and light for specific map styles. It only applies to vector map styles, such as Standard.</p> <p>Example: <code>Light</code> </p> <p>Default value: <code>Light</code> </p> <note> <p>Valid values for <code>ColorScheme</code> are case sensitive.</p> </note>",
294+
"location":"querystring",
295+
"locationName":"color-scheme"
296+
},
287297
"CompactOverlay":{
288298
"shape":"CompactOverlay",
289299
"documentation":"<p>Takes in a string to draw geometries on the image. The input is a comma separated format as follows format: <code>[Lon, Lat]</code> </p> <p>Example: <code>line:-122.407653,37.798557,-122.413291,37.802443;color=%23DD0000;width=7;outline-color=#00DD00;outline-width=5yd|point:-122.40572,37.80004;label=Fog Hill Market;size=large;text-color=%23DD0000;color=#EE4B2B</code> </p> <note> <p>Currently it supports the following geometry types: point, line and polygon. It does not support multiPoint , multiLine and multiPolgyon.</p> </note>",
290300
"location":"querystring",
291301
"locationName":"compact-overlay"
292302
},
303+
"CropLabels":{
304+
"shape":"Boolean",
305+
"documentation":"<p>It is a flag that takes in true or false. It prevents the labels that are on the edge of the image from being cut or obscured.</p>",
306+
"location":"querystring",
307+
"locationName":"crop-labels"
308+
},
293309
"GeoJsonOverlay":{
294310
"shape":"GeoJsonOverlay",
295311
"documentation":"<p>Takes in a string to draw geometries on the image. The input is a valid GeoJSON collection object. </p> <p>Example: <code>{\"type\":\"FeatureCollection\",\"features\": [{\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPoint\",\"coordinates\": [[-90.076345,51.504107],[-0.074451,51.506892]]},\"properties\": {\"color\":\"#00DD00\"}}]}</code> </p>",
@@ -308,12 +324,36 @@
308324
"location":"querystring",
309325
"locationName":"key"
310326
},
327+
"LabelSize":{
328+
"shape":"LabelSize",
329+
"documentation":"<p>Overrides the label size auto-calculated by <code>FileName</code>. Takes in one of the values - <code>Small</code> or <code>Large</code>.</p>",
330+
"location":"querystring",
331+
"locationName":"label-size"
332+
},
333+
"Language":{
334+
"shape":"LanguageTag",
335+
"documentation":"<p>Specifies the language on the map labels using the BCP 47 language tag, limited to ISO 639-1 two-letter language codes. If the specified language data isn't available for the map image, the labels will default to the regional primary language.</p> <p>Supported codes:</p> <ul> <li> <p> <code>ar</code> </p> </li> <li> <p> <code>as</code> </p> </li> <li> <p> <code>az</code> </p> </li> <li> <p> <code>be</code> </p> </li> <li> <p> <code>bg</code> </p> </li> <li> <p> <code>bn</code> </p> </li> <li> <p> <code>bs</code> </p> </li> <li> <p> <code>ca</code> </p> </li> <li> <p> <code>cs</code> </p> </li> <li> <p> <code>cy</code> </p> </li> <li> <p> <code>da</code> </p> </li> <li> <p> <code>de</code> </p> </li> <li> <p> <code>el</code> </p> </li> <li> <p> <code>en</code> </p> </li> <li> <p> <code>es</code> </p> </li> <li> <p> <code>et</code> </p> </li> <li> <p> <code>eu</code> </p> </li> <li> <p> <code>fi</code> </p> </li> <li> <p> <code>fo</code> </p> </li> <li> <p> <code>fr</code> </p> </li> <li> <p> <code>ga</code> </p> </li> <li> <p> <code>gl</code> </p> </li> <li> <p> <code>gn</code> </p> </li> <li> <p> <code>gu</code> </p> </li> <li> <p> <code>he</code> </p> </li> <li> <p> <code>hi</code> </p> </li> <li> <p> <code>hr</code> </p> </li> <li> <p> <code>hu</code> </p> </li> <li> <p> <code>hy</code> </p> </li> <li> <p> <code>id</code> </p> </li> <li> <p> <code>is</code> </p> </li> <li> <p> <code>it</code> </p> </li> <li> <p> <code>ja</code> </p> </li> <li> <p> <code>ka</code> </p> </li> <li> <p> <code>kk</code> </p> </li> <li> <p> <code>km</code> </p> </li> <li> <p> <code>kn</code> </p> </li> <li> <p> <code>ko</code> </p> </li> <li> <p> <code>ky</code> </p> </li> <li> <p> <code>lt</code> </p> </li> <li> <p> <code>lv</code> </p> </li> <li> <p> <code>mk</code> </p> </li> <li> <p> <code>ml</code> </p> </li> <li> <p> <code>mr</code> </p> </li> <li> <p> <code>ms</code> </p> </li> <li> <p> <code>mt</code> </p> </li> <li> <p> <code>my</code> </p> </li> <li> <p> <code>nl</code> </p> </li> <li> <p> <code>no</code> </p> </li> <li> <p> <code>or</code> </p> </li> <li> <p> <code>pa</code> </p> </li> <li> <p> <code>pl</code> </p> </li> <li> <p> <code>pt</code> </p> </li> <li> <p> <code>ro</code> </p> </li> <li> <p> <code>ru</code> </p> </li> <li> <p> <code>sk</code> </p> </li> <li> <p> <code>sl</code> </p> </li> <li> <p> <code>sq</code> </p> </li> <li> <p> <code>sr</code> </p> </li> <li> <p> <code>sv</code> </p> </li> <li> <p> <code>ta</code> </p> </li> <li> <p> <code>te</code> </p> </li> <li> <p> <code>th</code> </p> </li> <li> <p> <code>tr</code> </p> </li> <li> <p> <code>uk</code> </p> </li> <li> <p> <code>uz</code> </p> </li> <li> <p> <code>vi</code> </p> </li> <li> <p> <code>zh</code> </p> </li> </ul>",
336+
"location":"querystring",
337+
"locationName":"lang"
338+
},
311339
"Padding":{
312340
"shape":"Integer",
313341
"documentation":"<p>Applies additional space (in pixels) around overlay feature to prevent them from being cut or obscured.</p> <note> <p>Value for max and min is determined by:</p> <p>Min: <code>1</code> </p> <p>Max: <code>min(height, width)/4</code> </p> </note> <p>Example: <code>100</code> </p>",
314342
"location":"querystring",
315343
"locationName":"padding"
316344
},
345+
"PoliticalView":{
346+
"shape":"CountryCode",
347+
"documentation":"<p>Specifies the political view, using ISO 3166-2 or ISO 3166-3 country code format.</p> <p>The following political views are currently supported:</p> <ul> <li> <p> <code>ARG</code>: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands</p> </li> <li> <p> <code>EGY</code>: Egypt's view on Bir Tawil</p> </li> <li> <p> <code>IND</code>: India's view on Gilgit-Baltistan</p> </li> <li> <p> <code>KEN</code>: Kenya's view on the Ilemi Triangle</p> </li> <li> <p> <code>MAR</code>: Morocco's view on Western Sahara</p> </li> <li> <p> <code>RUS</code>: Russia's view on Crimea</p> </li> <li> <p> <code>SDN</code>: Sudan's view on the Halaib Triangle</p> </li> <li> <p> <code>SRB</code>: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands</p> </li> <li> <p> <code>SUR</code>: Suriname's view on the Courantyne Headwaters and Lawa Headwaters</p> </li> <li> <p> <code>SYR</code>: Syria's view on the Golan Heights</p> </li> <li> <p> <code>TUR</code>: Turkey's view on Cyprus and Northern Cyprus</p> </li> <li> <p> <code>TZA</code>: Tanzania's view on Lake Malawi</p> </li> <li> <p> <code>URY</code>: Uruguay's view on Rincon de Artigas</p> </li> <li> <p> <code>VNM</code>: Vietnam's view on the Paracel Islands and Spratly Islands</p> </li> </ul>",
348+
"location":"querystring",
349+
"locationName":"political-view"
350+
},
351+
"PointsOfInterests":{
352+
"shape":"MapFeatureMode",
353+
"documentation":"<p>Determines if the result image will display icons representing points of interest on the map.</p>",
354+
"location":"querystring",
355+
"locationName":"pois"
356+
},
317357
"Radius":{
318358
"shape":"DistanceMeters",
319359
"documentation":"<p>Used with center parameter, it specifies the zoom of the image where you can control it on a granular level. Takes in any value <code>&gt;= 1</code>. </p> <p>Example: <code>1500</code> </p> <note> <p>Cannot be used with <code>Zoom</code>.</p> </note> <p> <b>Unit</b>: <code>Meters</code> </p> <p/>",
@@ -335,7 +375,7 @@
335375
},
336376
"Style":{
337377
"shape":"StaticMapStyle",
338-
"documentation":"<p>Style specifies the desired map style for the <code>Style</code> APIs.</p>",
378+
"documentation":"<p> <code>Style</code> specifies the desired map style.</p>",
339379
"location":"querystring",
340380
"locationName":"style"
341381
},
@@ -428,7 +468,7 @@
428468
},
429469
"PoliticalView":{
430470
"shape":"CountryCode",
431-
"documentation":"<p>Specifies the political view using ISO 3166-2 or ISO 3166-3 country code format.</p> <p>The following political views are currently supported:</p> <ul> <li> <p> <code>ARG</code>: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands</p> </li> <li> <p> <code>EGY</code>: Egypt's view on Bir Tawil</p> </li> <li> <p> <code>IND</code>: India's view on Gilgit-Baltistan</p> </li> <li> <p> <code>KEN</code>: Kenya's view on the Ilemi Triangle</p> </li> <li> <p> <code>MAR</code>: Morocco's view on Western Sahara</p> </li> <li> <p> <code>PAK</code>: Pakistan's view on Jammu and Kashmir and the Junagadh Area</p> </li> <li> <p> <code>RUS</code>: Russia's view on Crimea</p> </li> <li> <p> <code>SDN</code>: Sudan's view on the Halaib Triangle</p> </li> <li> <p> <code>SRB</code>: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands</p> </li> <li> <p> <code>SUR</code>: Suriname's view on the Courantyne Headwaters and Lawa Headwaters</p> </li> <li> <p> <code>SYR</code>: Syria's view on the Golan Heights</p> </li> <li> <p> <code>TUR</code>: Turkey's view on Cyprus and Northern Cyprus</p> </li> <li> <p> <code>TZA</code>: Tanzania's view on Lake Malawi</p> </li> <li> <p> <code>URY</code>: Uruguay's view on Rincon de Artigas</p> </li> <li> <p> <code>VNM</code>: Vietnam's view on the Paracel Islands and Spratly Islands</p> </li> </ul>",
471+
"documentation":"<p>Specifies the political view using ISO 3166-2 or ISO 3166-3 country code format.</p> <p>The following political views are currently supported:</p> <ul> <li> <p> <code>ARG</code>: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands</p> </li> <li> <p> <code>EGY</code>: Egypt's view on Bir Tawil</p> </li> <li> <p> <code>IND</code>: India's view on Gilgit-Baltistan</p> </li> <li> <p> <code>KEN</code>: Kenya's view on the Ilemi Triangle</p> </li> <li> <p> <code>MAR</code>: Morocco's view on Western Sahara</p> </li> <li> <p> <code>RUS</code>: Russia's view on Crimea</p> </li> <li> <p> <code>SDN</code>: Sudan's view on the Halaib Triangle</p> </li> <li> <p> <code>SRB</code>: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands</p> </li> <li> <p> <code>SUR</code>: Suriname's view on the Courantyne Headwaters and Lawa Headwaters</p> </li> <li> <p> <code>SYR</code>: Syria's view on the Golan Heights</p> </li> <li> <p> <code>TUR</code>: Turkey's view on Cyprus and Northern Cyprus</p> </li> <li> <p> <code>TZA</code>: Tanzania's view on Lake Malawi</p> </li> <li> <p> <code>URY</code>: Uruguay's view on Rincon de Artigas</p> </li> <li> <p> <code>VNM</code>: Vietnam's view on the Paracel Islands and Spratly Islands</p> </li> </ul>",
432472
"location":"querystring",
433473
"locationName":"political-view"
434474
},
@@ -527,7 +567,7 @@
527567
"members":{
528568
"Blob":{
529569
"shape":"Blob",
530-
"documentation":"<p>The blob represents a vector tile in <code>mvt</code> format for the <code>GetTile</code> API.</p>"
570+
"documentation":"<p>The blob represents a vector tile in <code>mvt</code> or a raster tile in an image format.</p>"
531571
},
532572
"ContentType":{
533573
"shape":"String",
@@ -575,6 +615,25 @@
575615
"fault":true,
576616
"retryable":{"throttling":false}
577617
},
618+
"LabelSize":{
619+
"type":"string",
620+
"enum":[
621+
"Small",
622+
"Large"
623+
]
624+
},
625+
"LanguageTag":{
626+
"type":"string",
627+
"max":35,
628+
"min":2
629+
},
630+
"MapFeatureMode":{
631+
"type":"string",
632+
"enum":[
633+
"Enabled",
634+
"Disabled"
635+
]
636+
},
578637
"MapStyle":{
579638
"type":"string",
580639
"enum":[
@@ -606,7 +665,10 @@
606665
},
607666
"StaticMapStyle":{
608667
"type":"string",
609-
"enum":["Satellite"]
668+
"enum":[
669+
"Satellite",
670+
"Standard"
671+
]
610672
},
611673
"String":{"type":"string"},
612674
"ThrottlingException":{
@@ -646,7 +708,7 @@
646708
},
647709
"Reason":{
648710
"shape":"ValidationExceptionReason",
649-
"documentation":"<p>The field where thebb invalid entry was detected.</p>",
711+
"documentation":"<p>The field where the invalid entry was detected.</p>",
650712
"locationName":"reason"
651713
},
652714
"FieldList":{

0 commit comments

Comments
 (0)