Clustering API
Introduction
The Clustering API is designed to facilitate the bundling of orders or jobs based on a set of user-defined constraints. The API employs a clustering technique for selecting geo-locations within each cluster in a manner that minimizes the total distance or duration required to service each cluster from a predetermined central location. In situations where a central location is not specified, the API is equipped with an automatic algorithm that identifies an appropriate central location based on the constraints provided in the input problem. This API enables businesses to streamline their logistics operations and optimize their supply chain management processes.
Clustering POST Method
Clustering API uses a POST method to accept an input payload with rules for bundling the jobs together along with their properties and locations. The result is a unique task ID that can be used in the Clustering GET Method to retrieve the clustering result.
Request Parameter
Loading..Request Body
Loading..Response Schema
Loading..Sample Request
Sample Response
Clustering GET Method
The GET method retrieves the result of a clustering task submitted previously using the Clustering POST method. The API returns a response object containing the result of the clustering task, including the optimal clusters and their respective jobs, as well as other metadata related to the task.
Request Parameter
Loading..Response Schema
Loading..Sample Request
Sample Response
API Query Limits
-
The maximum number of location coordinates that can be added to the
location
object is 1000. -
In
routing
andjob
objects:-
The values provided for
id
fields should be non-zero positive integers. -
The values provided for parameters like
quantity
,max_quantity
,min_quantity
,location_index
, andcenter_location_index
should be a non-negative integer.
-
-
Maximum dimensions allowed for
truck_size
are 5000 cm for length, 1000 cm for width, 1000 cm for height. -
Maximum weight allowed for
truck_weight
(including the trailer and shipped goods) is 100,000 kg. -
When using the service to create clusters automatically based on
max_cluster_radius
, the service will not create clusters containing less than 2 jobs. -
NextBillion.ai allows a maximum rate limit of 6000 queries per minute or 100 queries/second for continuous requests. Note: We can increase the quota if needed, on request. Contact [email protected] for more details.