private Geocoordinates _from;
private List<Geocoordinates> _waypoints = new List<Geocoordinates>();
- internal RouteSearchRequest(MapService service, Geocoordinates from, Geocoordinates to) : this(service, ServiceRequestType.SearchByEndPoint)
+ internal RouteSearchRequest(MapService service, Geocoordinates from, Geocoordinates to) : this(service, ServiceRequestType.SearchRoute)
{
_to = to;
_from = from;
errMessage = $"Failed to get route list for given origin {_from} and destination {_to}";
if (_waypoints?.Count == 0)
{
- _type = ServiceRequestType.SearchByEndPoint;
+ _type = ServiceRequestType.SearchRoute;
errorCode = _service.handle.SearchRoute(_from.handle, _to.handle, _service.Preferences.handle, _routeCallback, IntPtr.Zero, out requestID);
if (errorCode.IsFailed() && errorCode != Interop.ErrorCode.Canceled)
{
}
else
{
- _type = ServiceRequestType.SearchWithWaypoints;
+ _type = ServiceRequestType.SearchRouteWithWaypoints;
var waypoints = GetCoordinateListForWaypoints();
errorCode = _service.handle.SearchRouteWaypoints(waypoints, waypoints.Length, _service.Preferences.handle, _routeCallback, IntPtr.Zero, out requestID);
/// <summary>
/// Service request to query <see cref="Route"/> information from a given origin <see cref="Geocoordinates"/> and destination <see cref="Geocoordinates"/> is allowed
/// </summary>
- SearchByEndPoint = Interop.ServiceType.SearchRoute,
+ SearchRoute = Interop.ServiceType.SearchRoute,
/// <summary>
/// Service request to query <see cref="Route"/> information passing through specified way-points <see cref="GeocoordinatesList"/> is allowed
/// </summary>
- SearchWithWaypoints = Interop.ServiceType.SearchRouteWaypoints,
+ SearchRouteWithWaypoints = Interop.ServiceType.SearchRouteWaypoints,
/// <summary>
/// Map view service is allowed