Route4MeSDKLibrary.Framework 1.0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Route4MeSDKLibrary.Framework --version 1.0.1.1                
NuGet\Install-Package Route4MeSDKLibrary.Framework -Version 1.0.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Route4MeSDKLibrary.Framework" Version="1.0.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Route4MeSDKLibrary.Framework --version 1.0.1.1                
#r "nuget: Route4MeSDKLibrary.Framework, 1.0.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Route4MeSDKLibrary.Framework as a Cake Addin
#addin nuget:?package=Route4MeSDKLibrary.Framework&version=1.0.1.1

// Install Route4MeSDKLibrary.Framework as a Cake Tool
#tool nuget:?package=Route4MeSDKLibrary.Framework&version=1.0.1.1                

Route4Me Route Optimization SaaS C# SDK (.net framework)

What does the Route4Me SDK permit me to do?

This SDK makes it easier for you use the Route4Me API, which creates optimally sequenced driving routes for many drivers.

Who can use the Route4Me SDK (and API)?

The service is typically used by organizations who must route many drivers to many destinations. In addition to route optimization for new (future) routes, the API can also be used to analyze historical routes, and to distribute routes to field personnel.

Who is prohibited from using the Route4Me SDK (and API)?

The Route4Me SDK and API cannot be resold or used in a product or system that competes directly with Route4Me. This means that developers cannot resell route optimization services to other businesses or developers. However, developers can integrate our route optimization SDK/API into their software applications. Developers and startups are also permitted to use our software for internal purposes (i.e. a same day delivery startup).

How does the API/SDK Integration Work?

A Route4Me customer, integrator, or partner incorporates the Route4Me SDK or API into their code base. Route4Me permits any paying subscriber to interact with every part of its system using it’s API. The API is RESTful, which means that it’s web based and can be accessed by other programs and machines The API/SDK should be used to automate the route planning process, or to generate many routes with minimal manual intervention

Do optimized routes automatically appear inside my Route4Me account?

Every Route4Me SDK instance needs a unique API key. The API key can be retrieved inside your Route4Me.com account, inside the Settings tab called API. When a route is planned, it appears inside the corresponding Route4Me account. Because Route4Me web and mobile accounts are synchronized, the routes will appear in both environments at the same time.

Can I test the SDK with other addresses without a valid API Key?

No. The sample API key only permits you to optimize routes with the sample address coordinates that are part of this SDK.

Does the SDK have rate limits?

The number of requests you can make per second is limited by your current subscription plan. Typically, there are different rate limits for these core features: Address Geocoding & Address Reverse Geocoding Route Optimization & Management Viewing a Route

There are two typical integration strategies that we recommend. Using this SDK, you can make optimization requests and then the SDK polls the Route4Me API to detect state changes as the optimization progresses. Alternatively, you can provide a webhook/callback url, and the API will notify that callback URL every time there is a state change.

I don't need route management or mobile capabilities. Is there a lower level Route4Me API just for the optimization engine?

Yes. Please contact support@route4me.com to learn about the low-level RESTful API.

How fast is the route Route4Me Optimization Web Service?

Most routes having less than 200 destinations are optimized in 1 second or less.

Can I disable optimization when planning routes?

Yes. You can send routes with optimization disabled if you want to conveniently see them on a map, or distribute them to your drivers in the order you prefer.

Can the API be used for aerial vehicles such as drones or self-driving cars?

Yes. The API can accept lat/lng and an unlimited amount of per-address metadata. The metadata will be preserved as passthrough data by our API, so that the receiving device will have access to critical data when our API invokes a webhook callback to the device.

Are all my optimized routes stored permanently stored in the Route4Me database?

Yes. All routes are permanently stored in the database and are no longer accessible to you after your subscription is terminated.

Can I incorporate your API into my mobile application?

Route4Me’s route planning and optimization technology can only be added into applications that do not directly compete with Route4Me. This means the application’s primary capabilities must be unrelated to route optimization, route planning, or navigation.

Can I pay you to develop a custom algorithm?

Yes

Can I use your API and resell it to my customers?

White-labeling and private-labeling Route4Me is possible but the deal’s licensing terms vary considerably based on customer count, route count, and the level of support that Route4Me should provide to your customers.

Does the API/SDK have TMS or EDI, or EDI translator capabilities?

Route4Me is currently working on these features but they are not currently available for sale.

Can the API/SDK send notifications back to our system using callbacks, notifications, pushes, or webhooks?

Because Route4Me processes all routes asynchronously, Route4Me will conveniently notify the endpoint you specify as the route optimization job progresses through each state of the optimization. Every stage of the route optimization process has a unique stage id.

Does the Route4Me API and SDK work in my country?

Route4Me.com, as well as all of Route4Me’s mobile applications use the Route4Me SDK’s and API. Since Route4Me works globally, this means that all of Route4Me’s capabilities are available using the SDK’s in every country

Will the Route4Me API/SDK work in my program on the Mac, PC, or Linux?

Customers are encouraged to select their preferred operating system environment. The Route4Me API/SDK will function on any operating system that supports the preferred programming language of the customer. At this point in time, almost every supported SDK can run on any operating system.

Does the Route4Me API/SDK require me to buy my own servers?

Route4Me has its own computing infrastructure that you can access using the API and SDKs. Customers typically have to run the SDK code on their own computers and/or servers to access this infrastructure.

Does Route4Me have an on-premise solution?

Route4Me does not currently lease or sell servers, and does not have on-premise appliance solution. This would only be possible in exceptionally unique scenarios.

Does the Route4Me API/SDK require me to have my own programmers?

The time required to integrate the SDK can be as little as 1 hour or may take several weeks, depending on the number of features being incorporated into the customer’s application and how much integration testing will be done by the client. A programmer’s involvement is almost always required to use Route4Me’s technology when accessing it through the API.

Installation and Usage

  1. Add reference to Route4MeSDKLibrary.dll
  2. Use the class Route4MeSDK.Route4MeManager for accessing the Route4ME API
  3. Use methods Route4MeManager.GetRoute(), Route4MeManager.UpdateOptimization() etc. to access the main functionality of Route4Me API.
  4. Use generic methods Route4MeManager.GetStringResponseFromAPI() and Route4MeManager.GetJsonObjectFromAPI<T>() for accessing any Route4Me API functionally via custom defined classes (see example in Route4MeSDKTest.SingleDriverRoundTripGeneric.cs)

Examples and Tests

  1. See project Route4MeSDKTest (class Route4MeSDKTest.Examples) for some examples of using Route4MeSDKLibrary
Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1.11 305 9/1/2021
1.0.1.10 225 8/23/2021
1.0.1.9 204 8/18/2021
1.0.1.8 205 8/10/2021
1.0.1.3 214 3/28/2021
1.0.1.1 233 1/23/2021
1.0.0.5 2,731 5/14/2020
1.0.0.4 569 4/2/2020
1.0.0.3 590 12/17/2019
1.0.0.2 548 11/29/2019
1.0.0.1 545 11/28/2019
1.0.0 556 11/28/2019

Summary of changes made in this release of the package.
ADDDED

The file Utils.cs   
- Methods: ReadSetting, DDHHMM2Seconds

The file DataTypes/RouteParameters.cs  
- Properties: Slowdowns (type SlowdownParams), IgnoreTw(bool?), is_dynamic_start_time(bool), Bundling(AddressBundling), AdvancedConstraints(V5.RouteAdvancedConstraints[]), AddressStopType(string), Group(string)
- Class: SlowdownParams


The file Consts.cs
- Endpoints**: MemberCapabilities, ScheduleCalendar.   
- Class: R4MEInfrastructureSettingsV5

The file DataTypes/Address.cs  
- Properties: BundleCount(int), BundleItems(type BundledItemResponse[]), Tags(string[]), Pickup(string), Dropoff(string), Joint(int?), OrderInventory(V5.OrderInventory[])

The file DataTypes/AddressBundling.cs  
- Classes: AddressBundling, BundledItemResponse

The file DataTypes/Enums.cs  
- Enumerations: AddressBundlingMode, AddressBundlingMergeMode, AddressBundlingFirstItemMode, AddressBundlingAdditionalItemsMode

The file DataTypes/V5/Enums.cs  
- Enumerations: AlgorithmType, TravelMode, DistanceUnit, Avoid, Optimize, Metric, DeviceType, Format, OptimizationState, RoutePathOutput, StatusUpdateType, TerritoryType, AddressBundlingMode, AddressBundlingMergeMode, AddressBundlingFirstItemMode, AddressBundlingAdditionalItemsMode, MemberTypes

The file DataTypes/MemberCapabilities.cs  
- Class: MemberCapabilities

The file DataTypes/Route.cs  
- Properties: BundleItems(type BundledItemResponse[]), RouteWeight(double?), RouteCube(double?), RoutePieces(int?)

The file QueryTypes/RouteParametersQuery.cs
- Properties: BundlingItem(bool?), UnlinkFromMasterOptimization(bool), OrderInventory(bool?), Remaining(bool?)

The file Route4MeManager.cs  
- Methods: GetMemberCapabilities, GetScheduleCalendar, MemberHasCommercialCapability  
- Class: SearchOrdersResponse

The file DataTypes/ScheduleCalendarResponse.cs
- Class: ScheduleCalendarResponse

The file QueryTypes/ScheduleCalendarQuery.cs  
- Class: ScheduleCalendarQuery

The file QueryTypes/MergeRoutesQuery.cs
- Properties: ToRouteId(string), RouteDestinationId(string), RouteDestinationIDs(string)

The file DataTypes/V5/DriverReview.cs  
- Classes (API 5 version): DriverReview, DriverReviewsResponse, SimplePaginationData, TypeQuantity

The file DataTypes/V5/ResultResponse.cs  
- Class (API 5 version): ResultResponse

The file DataTypes/V5/TeamResponse.cs  
- Class (API 5 version): TeamResponse

The file HttpClientExtensions.cs  
- Class: HttpClientExtensions

The file DataTypes/V5/DriverReviewParameters.cs  
- Class (API 5 version): DriverReviewParameters

The file QueryTypes/TeamRequest.cs  
- Class (API 5 version): TeamRequest

The file Route4MeManagerV5.cs  
- Class (API 5 version): Route4MeManagerV5  
- Method (API 5 version): AddSkillsToDriver,

The file DataTypes/V5/RouteAdvancedConstraints.cs  
- Class (API 5 version): RouteAdvancedConstraints

The file DataTypes/Activity.cs  
- Properties: RouteNam(string), NoteId(string), NoteType(string), NoteContents(string), NoteFile(string), Member(ActivityMember), DestinationName(string), DestinationAlias(string)  
- Class: ActivityMember

The file DataTypes/AddressBookContact.cs  
- Property: IsAssigned(string)

The file DataTypes/AddressBookGroup.cs  
- Property: Valid(bool?)

The file DataTypes/DataObject.cs  
- Property: SmartOptimizationId(string)

The file DataTypes/FindAssetResponse.cs  
- Properties: LargeLogoUri2x(string), MobileLogoUri2x(string), HideCovid19Warning(string)

The file DataTypes/MemberResponseV4.cs  
- Property: ApiKey(string)

The file DataTypes/Order.cs  
- Property: VisitedCount(int)

The file DataTypes/TrackingHistory.cs  
- Property: SpeedUnit(string)

The file DataTypes/UserLocation.cs  
- Properties: CalculatedSpeed(string), SpeedAccuracy(string), SpeedUnit(string), Bearing(int?), BearingAccuracy(string), Accuracy(string), RootMemberId(int?)

The file DataTypes/V5/OrderInventory.cs  
- Class (API 5 version): OrderInventory


CHANGED

The file DataTypes/DeviceLocationLeg.cs  
- Type decimal? replaced with double? for the properties: Distance, Duration, Weight.

The file DataTypes/DeviceLocationMatching.cs  
- Type decimal? replaced with double? for the properties: Distance, Duration, Weight.

The file DataTypes/DeviceLocationTracePoint.cs)  
- Type decimal? replaced with double? for the property: Distance.

The file DataTypes/DirectionStep.cs  
- Type decimal? replaced with double? for the property: UduDistance.

The file DataTypes/Route.cs  
- Type decimal? replaced with double? for the properties: UduActualTravelDistance, ActualTravelDistance, PayingMiles.

The file DataTypes/RouteParameters.cs  
- Type decimal? replaced with double? for the properties: RouteTimeMultiplier, RouteServiceTimeMultiplier.  
- Type string replaced with bool? for the property: IsUpload.  
- Type double? replaced with int? for the property: RouteTimeMultiplier.  
- Type double? replaced with int? for the property: RouteServiceTimeMultiplier.

The file DataTypes/RouteResponse.cs  
- Type decimal? replaced with double? for the property: UduActualTravelDistance.

The file DataTypes/UserLocation.cs  
- Type decimal? replaced with double? for the property: Speed.

The file DataTypes/VehicleResponse.cs  
- Type string replaced with bool? for the property: IsOperational.

The file DataTypes/Address.cs  
- Type string replaced with int? for the property: MemberId.

The DataTypes/AddressBookGroupRule.cs  
- Type string replaced with object for the property: Value.

The file Types.cs  
- Enumeration HttpMethodType - added Patch.

The file DataTypes/V5/RouteAdvancedConstraints.cs  
- Type int? replaced with int[] for the property: Route4meMembersId.  
- Type Tuple(int,int)[] replaced with List(int[]) for the property: AvailableTimeWindows.

The file DataTypes/AddressBookGroupRule.cs  
- Type int? replaced with string for the property: SessionId.

The file DataTypes/Enums.cs  
- Enumeration: AlgorithmType - added: OPTIMIZATION_STATE_IN_QUEUE = 7, ADVANCED_CVRP_TW = 9

The file DataTypes/V5/Enums.cs  
- Enumeration: AlgorithmType - added: OPTIMIZATION_STATE_IN_QUEUE = 7, ADVANCED_CVRP_TW = 9  
- Enumeration: OptimizationState - added: InQueue = 7

The file QueryTypes/GPSParameters.cs  
- Type int replaced with int? for the property: MemberId.  
- Type int replaced with string for the property: VehicleId.  
- Type int replaced with int? for the property: Course.  
- Type double replaced with double? for the property: Speed.  
- Type double replaced with double? for the property: Latitude.  
- Type double replaced with double? for the property: Longitude.  
- Type bool replaced with bool? for the property: LastPosition.  
- Type long replaced with long? for the property: StartDate.  
- Type long replaced with long? for the property: EndDate.  
- Type double replaced with double? for the property: Altitude.

The file DataTypes/AddressBookContact.cs  
- Type string replaced with bool? for the property: IsAssigned.