Skip to content

Commit a12bb4c

Browse files
author
AWS
committed
Amazon Location Service Maps V2 Update: Added support for optional style parameters in maps, including Terrain, ContourDensity, Traffic, and TravelModes.
1 parent 4c110bc commit a12bb4c

File tree

3 files changed

+71
-13
lines changed

3 files changed

+71
-13
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": "Added support for optional style parameters in maps, including Terrain, ContourDensity, Traffic, and TravelModes."
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
@@ -6,26 +6,26 @@
66
"required": true,
77
"default": false,
88
"documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
9-
"type": "Boolean"
9+
"type": "boolean"
1010
},
1111
"UseFIPS": {
1212
"builtIn": "AWS::UseFIPS",
1313
"required": true,
1414
"default": false,
1515
"documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
16-
"type": "Boolean"
16+
"type": "boolean"
1717
},
1818
"Endpoint": {
1919
"builtIn": "SDK::Endpoint",
2020
"required": false,
2121
"documentation": "Override the endpoint used to send this request",
22-
"type": "String"
22+
"type": "string"
2323
},
2424
"Region": {
2525
"builtIn": "AWS::Region",
2626
"required": false,
2727
"documentation": "The AWS region used to dispatch the request.",
28-
"type": "String"
28+
"type": "string"
2929
}
3030
},
3131
"rules": [

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

Lines changed: 61 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
},
2323
"input":{"shape":"GetGlyphsRequest"},
2424
"output":{"shape":"GetGlyphsResponse"},
25-
"documentation":"<p> <code>GetGlyphs</code> returns the map's glyphs.</p>"
25+
"documentation":"<p> <code>GetGlyphs</code> returns the map's glyphs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/styling-labels-with-glyphs.html\">Style labels with glyphs</a> in the <i>Amazon Location Service Developer Guide</i>.</p>",
26+
"readonly":true
2627
},
2728
"GetSprites":{
2829
"name":"GetSprites",
@@ -33,7 +34,8 @@
3334
},
3435
"input":{"shape":"GetSpritesRequest"},
3536
"output":{"shape":"GetSpritesResponse"},
36-
"documentation":"<p> <code>GetSprites</code> returns the map's sprites.</p>"
37+
"documentation":"<p> <code>GetSprites</code> returns the map's sprites.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/styling-iconography-with-sprites.html\">Style iconography with sprites</a> in the <i>Amazon Location Service Developer Guide</i>.</p>",
38+
"readonly":true
3739
},
3840
"GetStaticMap":{
3941
"name":"GetStaticMap",
@@ -50,7 +52,8 @@
5052
{"shape":"ValidationException"},
5153
{"shape":"ThrottlingException"}
5254
],
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>"
55+
"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> <p>For more information, see the following topics in the <i>Amazon Location Service Developer Guide</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/static-maps.html\">Static maps</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/customizing-static-maps.html\">Customize static maps</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/overlaying-static-map.html\">Overlay on the static map</a> </p> </li> </ul>",
56+
"readonly":true
5457
},
5558
"GetStyleDescriptor":{
5659
"name":"GetStyleDescriptor",
@@ -61,7 +64,8 @@
6164
},
6265
"input":{"shape":"GetStyleDescriptorRequest"},
6366
"output":{"shape":"GetStyleDescriptorResponse"},
64-
"documentation":"<p> <code>GetStyleDescriptor</code> returns information about the style.</p>"
67+
"documentation":"<p> <code>GetStyleDescriptor</code> returns information about the style.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/styling-dynamic-maps.html\">Style dynamic maps</a> in the <i>Amazon Location Service Developer Guide</i>.</p>",
68+
"readonly":true
6569
},
6670
"GetTile":{
6771
"name":"GetTile",
@@ -79,7 +83,8 @@
7983
{"shape":"ValidationException"},
8084
{"shape":"ThrottlingException"}
8185
],
82-
"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>"
86+
"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> <p>For more information, see <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/tiles.html\">Tiles</a> in the <i>Amazon Location Service Developer Guide</i>.</p>",
87+
"readonly":true
8388
}
8489
},
8590
"shapes":{
@@ -123,6 +128,10 @@
123128
"min":1,
124129
"sensitive":true
125130
},
131+
"ContourDensity":{
132+
"type":"string",
133+
"enum":["Medium"]
134+
},
126135
"CountryCode":{
127136
"type":"string",
128137
"max":3,
@@ -157,7 +166,7 @@
157166
},
158167
"FontUnicodeRange":{
159168
"shape":"GetGlyphsRequestFontUnicodeRangeString",
160-
"documentation":"<p>A Unicode range of characters to download glyphs for. This must be aligned to multiples of 256. </p> <p>Example: <code>0-255.pdf</code> </p>",
169+
"documentation":"<p>A Unicode range of characters to download glyphs for. This must be aligned to multiples of 256. </p> <p>Example: <code>0-255.pbf</code> </p>",
161170
"location":"uri",
162171
"locationName":"FontUnicodeRange"
163172
}
@@ -277,19 +286,19 @@
277286
"members":{
278287
"BoundingBox":{
279288
"shape":"PositionListString",
280-
"documentation":"<p>Takes in two pairs of coordinates, [Lon, Lat], denoting south-westerly and north-easterly edges of the image. The underlying area becomes the view of the image. </p> <p>Example: -123.17075,49.26959,-123.08125,49.31429</p>",
289+
"documentation":"<p>Takes in two pairs of coordinates in World Geodetic System (WGS 84) format: [longitude, latitude], denoting south-westerly and north-easterly edges of the image. The underlying area becomes the view of the image. </p> <p>Example: -123.17075,49.26959,-123.08125,49.31429</p>",
281290
"location":"querystring",
282291
"locationName":"bounding-box"
283292
},
284293
"BoundedPositions":{
285294
"shape":"PositionListString",
286-
"documentation":"<p>Takes in two or more pair of coordinates, [Lon, Lat], with each coordinate separated by a comma. The API will generate an image to encompass all of the provided coordinates. </p> <note> <p>Cannot be used with <code>Zoom</code> and or <code>Radius</code> </p> </note> <p>Example: 97.170451,78.039098,99.045536,27.176178</p>",
295+
"documentation":"<p>Takes in two or more pair of coordinates in World Geodetic System (WGS 84) format: [longitude, latitude], with each coordinate separated by a comma. The API will generate an image to encompass all of the provided coordinates. </p> <note> <p>Cannot be used with <code>Zoom</code> and or <code>Radius</code> </p> </note> <p>Example: 97.170451,78.039098,99.045536,27.176178</p>",
287296
"location":"querystring",
288297
"locationName":"bounded-positions"
289298
},
290299
"Center":{
291300
"shape":"PositionString",
292-
"documentation":"<p>Takes in a pair of coordinates, [Lon, Lat], which becomes the center point of the image. This parameter requires that either zoom or radius is set.</p> <note> <p>Cannot be used with <code>Zoom</code> and or <code>Radius</code> </p> </note> <p>Example: 49.295,-123.108</p>",
301+
"documentation":"<p>Takes in a pair of coordinates in World Geodetic System (WGS 84) format: [longitude, latitude], which becomes the center point of the image. This parameter requires that either zoom or radius is set.</p> <note> <p>Cannot be used with <code>Zoom</code> and or <code>Radius</code> </p> </note> <p>Example: 49.295,-123.108</p>",
293302
"location":"querystring",
294303
"locationName":"center"
295304
},
@@ -480,6 +489,30 @@
480489
"location":"querystring",
481490
"locationName":"political-view"
482491
},
492+
"Terrain":{
493+
"shape":"Terrain",
494+
"documentation":"<p>Adjusts how physical terrain details are rendered on the map.</p> <p>The following terrain styles are currently supported:</p> <ul> <li> <p> <code>Hillshade</code>: Displays the physical terrain details through shading and highlighting of elevation change and geographic features.</p> </li> </ul> <p>This parameter is valid only for the <code>Standard</code> map style.</p>",
495+
"location":"querystring",
496+
"locationName":"terrain"
497+
},
498+
"ContourDensity":{
499+
"shape":"ContourDensity",
500+
"documentation":"<p>Displays the shape and steepness of terrain features using elevation lines. The density value controls how densely the available contour line information is rendered on the map.</p> <p>This parameter is valid only for the <code>Standard</code> map style.</p>",
501+
"location":"querystring",
502+
"locationName":"contour-density"
503+
},
504+
"Traffic":{
505+
"shape":"Traffic",
506+
"documentation":"<p>Displays real-time traffic information overlay on map, such as incident events and flow events.</p> <p>This parameter is valid only for the <code>Standard</code> map style.</p>",
507+
"location":"querystring",
508+
"locationName":"traffic"
509+
},
510+
"TravelModes":{
511+
"shape":"TravelModeList",
512+
"documentation":"<p>Renders additional map information relevant to selected travel modes. Information for multiple travel modes can be displayed simultaneously, although this increases the overall information density rendered on the map.</p> <p>This parameter is valid only for the <code>Standard</code> map style.</p>",
513+
"location":"querystring",
514+
"locationName":"travel-modes"
515+
},
483516
"Key":{
484517
"shape":"ApiKey",
485518
"documentation":"<p>Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request. </p>",
@@ -701,6 +734,10 @@
701734
]
702735
},
703736
"String":{"type":"string"},
737+
"Terrain":{
738+
"type":"string",
739+
"enum":["Hillshade"]
740+
},
704741
"ThrottlingException":{
705742
"type":"structure",
706743
"required":["Message"],
@@ -724,6 +761,21 @@
724761
"min":1,
725762
"pattern":"[-.\\w]+"
726763
},
764+
"Traffic":{
765+
"type":"string",
766+
"enum":["All"]
767+
},
768+
"TravelMode":{
769+
"type":"string",
770+
"enum":[
771+
"Transit",
772+
"Truck"
773+
]
774+
},
775+
"TravelModeList":{
776+
"type":"list",
777+
"member":{"shape":"TravelMode"}
778+
},
727779
"ValidationException":{
728780
"type":"structure",
729781
"required":[

0 commit comments

Comments
 (0)