-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The OptimizeWaypoints API now supports 50 waypoints per request (20 w…
…ith constraints like AccessHours or AppointmentTime). It adds waypoint clustering via Clustering and ClusteringIndex for better optimization. Also, total distance validation is removed for greater flexibility.
- Loading branch information
1 parent
754c7c7
commit 14e55b0
Showing
51 changed files
with
834 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 77 additions & 52 deletions
129
generator/ServiceModels/geo-routes/geo-routes-2020-11-19.docs.json
Large diffs are not rendered by default.
Oops, something went wrong.
154 changes: 101 additions & 53 deletions
154
generator/ServiceModels/geo-routes/geo-routes-2020-11-19.normal.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
...Model/Internal/MarshallTransformations/WaypointOptimizationClusteringOptionsMarshaller.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
/* | ||
* Do not modify this file. This file is generated from the geo-routes-2020-11-19.normal.json service model. | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.IO; | ||
using System.Text; | ||
using System.Xml.Serialization; | ||
|
||
using Amazon.GeoRoutes.Model; | ||
using Amazon.Runtime; | ||
using Amazon.Runtime.Internal; | ||
using Amazon.Runtime.Internal.Transform; | ||
using Amazon.Runtime.Internal.Util; | ||
using ThirdParty.Json.LitJson; | ||
|
||
#pragma warning disable CS0612,CS0618 | ||
namespace Amazon.GeoRoutes.Model.Internal.MarshallTransformations | ||
{ | ||
/// <summary> | ||
/// WaypointOptimizationClusteringOptions Marshaller | ||
/// </summary> | ||
public class WaypointOptimizationClusteringOptionsMarshaller : IRequestMarshaller<WaypointOptimizationClusteringOptions, JsonMarshallerContext> | ||
{ | ||
/// <summary> | ||
/// Unmarshaller the response from the service to the response class. | ||
/// </summary> | ||
/// <param name="requestObject"></param> | ||
/// <param name="context"></param> | ||
/// <returns></returns> | ||
public void Marshall(WaypointOptimizationClusteringOptions requestObject, JsonMarshallerContext context) | ||
{ | ||
if(requestObject == null) | ||
return; | ||
if(requestObject.IsSetAlgorithm()) | ||
{ | ||
context.Writer.WritePropertyName("Algorithm"); | ||
context.Writer.Write(requestObject.Algorithm); | ||
} | ||
|
||
if(requestObject.IsSetDrivingDistanceOptions()) | ||
{ | ||
context.Writer.WritePropertyName("DrivingDistanceOptions"); | ||
context.Writer.WriteObjectStart(); | ||
|
||
var marshaller = WaypointOptimizationDrivingDistanceOptionsMarshaller.Instance; | ||
marshaller.Marshall(requestObject.DrivingDistanceOptions, context); | ||
|
||
context.Writer.WriteObjectEnd(); | ||
} | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Singleton Marshaller. | ||
/// </summary> | ||
public readonly static WaypointOptimizationClusteringOptionsMarshaller Instance = new WaypointOptimizationClusteringOptionsMarshaller(); | ||
|
||
} | ||
} |
Oops, something went wrong.