Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 1.2 KB
Imports Route4MeSDKLibrary.Route4MeSDK
Imports Route4MeSDKLibrary.Route4MeSDK.DataTypes
Imports Route4MeSDKLibrary.Route4MeSDK.QueryTypes
Namespace Route4MeSDKTest.Examples
Partial Public NotInheritable Class Route4MeExamples
Public Sub GetOptimization(optimizationProblemID As String)
' Create the manager with the api key
Dim route4Me As New Route4MeManager(c_ApiKey)
Dim optimizationParameters As New OptimizationParameters() With { _
.OptimizationProblemID = optimizationProblemID _
' Run the query
Dim errorString As String = ""
Dim dataObject As DataObject = route4Me.GetOptimization(optimizationParameters, errorString)
If dataObject IsNot Nothing Then
Console.WriteLine("GetOptimization executed successfully")
Console.WriteLine("Optimization Problem ID: {0}", dataObject.OptimizationProblemId)
Console.WriteLine("State: {0}", dataObject.State)
Console.WriteLine("GetOptimization error: {0}", errorString)
End If
End Sub
End Class
End Namespace