Xroute calculate a route
Posted: Thu Mar 09, 2017 3:48 pm
Hey guys,
I would like to calculate a route with the XRouteServiceReference calculate Route in VB.Net.
I have multiple X and Y coordinates and would like to get all of them into one single route.
I thought it would work if I load all of my coordinates into a PointCollection and then :
route = XRouteClient.calculateRoute(PointCollection,Nothing, Nothing, New ResultListOptions() With {.polygon = True}, New XRouteServiceReference.CallerContext() With {.wrappedProperties = New XRouteServiceReference.CallerContextProperty() {New XRouteServiceReference.CallerContextProperty() With {.key = "CoordFormat",.value = "OG_GEODECIMAL"}})
but it cant convert the PointCollection into WaypointDesc.
The Example on github doesnt help me anything, cause I have a variable amount of Points.
Could anyone help me?
Many thanks,
Benedikt Luz
I would like to calculate a route with the XRouteServiceReference calculate Route in VB.Net.
I have multiple X and Y coordinates and would like to get all of them into one single route.
I thought it would work if I load all of my coordinates into a PointCollection and then :
route = XRouteClient.calculateRoute(PointCollection,Nothing, Nothing, New ResultListOptions() With {.polygon = True}, New XRouteServiceReference.CallerContext() With {.wrappedProperties = New XRouteServiceReference.CallerContextProperty() {New XRouteServiceReference.CallerContextProperty() With {.key = "CoordFormat",.value = "OG_GEODECIMAL"}})
but it cant convert the PointCollection into WaypointDesc.
The Example on github doesnt help me anything, cause I have a variable amount of Points.
Could anyone help me?
Many thanks,
Benedikt Luz