Find the shortest path through any number of stops — one API call, results in milliseconds. Delivery, field sales, logistics, warehousing — any domain, any scale.
Within 0.13% of LKH-3 · Beats Google OR-Tools on all benchmarks · Built in Rust
Click to drop cities or press R for random
| INSTANCE | CITIES | LKH-3 | LAMBDA-G | GAP |
|---|---|---|---|---|
| kroA100 | 100 | 21,907 | 21,908 | 0.005% |
| pr1002 | 1002 | 259,045 | 261,921 | 1.11% |
| shared_benchmark | 1000 | 23,342 | 23,373 | 0.13% |
# Real-world delivery: use distance matrix (actual road distances) # Get driving distances from Google Maps Distance Matrix API first import httpx result = httpx.post("https://api.bitsabhi.com/optimize", headers={"Authorization": "Bearer YOUR_KEY"}, json={ "matrix": [ [0, 5, 12, 8], # Home → Home, A, B, C [5, 0, 9, 6], # A → Home, A, B, C [12, 9, 0, 4], # B → Home, A, B, C [8, 6, 4, 0] # C → Home, A, B, C ], "time_limit": 10 } ).json() print(result["tour"]) # e.g. [0, 1, 3, 2] = Home → A → C → B print(result["length"]) # total distance in your units
# PCB drilling, CNC, telescopes, warehouses: # straight-line distance is accurate here import httpx result = httpx.post("https://api.bitsabhi.com/optimize", headers={"Authorization": "Bearer YOUR_KEY"}, json={ "points": [[0,0], [100,0], [100,100], [0,100]], "time_limit": 10 } ).json() print(result["tour"]) # [0, 1, 2, 3] print(result["length"]) # 400.0
Same API, same endpoint. The only difference is what you send.
| Use coordinates when... | Use distance matrix when... |
|---|---|
| Movement is physically straight-line | Roads, traffic, or one-ways matter |
| PCB drilling, CNC, laser cutting | Delivery, field service, sales routes |
| Telescope or drone scheduling | Any non-Euclidean distance |
| Warehouse picking (flat floor) | Custom similarity scores (DNA, etc.) |
Depot Stop A Stop B Stop C Depot [ 0, 8km, 14km, 18km ] Stop A [ 8, 0, 11km, 16km ] Stop B [ 14, 11, 0, 7km ] Stop C [ 18, 16, 7, 0 ]
If you need optimal ordering of points, Lambda-G solves it.
Coordinates, CSV, or distance matrix. We handle the rest.
x,y · lat,lng · longitude,latitude · id,x,y (id column ignored).
Max file size 10MB.
Base URL: https://api.bitsabhi.com
Optimize a TSP tour. Send coordinates, a distance matrix, or upload a CSV file.
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| Authorization | required | Bearer YOUR_API_KEY |
| Content-Type | string | application/json or multipart/form-data |
| PARAM | TYPE | DESCRIPTION |
|---|---|---|
| points | array | Array of [x, y] coordinates. Example: [[0,0], [100,0], [100,100]]. Use for straight-line domains. |
| matrix | array | n×n distance matrix. Use for road networks, custom distances, or any non-Euclidean domain. Provide either points or matrix, not both. |
| time_limit | float | Max optimization time in seconds. Default: 25.0 |
| seed | int | Random seed for reproducibility. Default: 137 |
| return_tour | bool | Include tour array in response. Default: true |
| FIELD | TYPE | DESCRIPTION |
|---|---|---|
| csv | required | CSV file with x,y columns |
| time_limit | float | Max optimization time in seconds |
Check API status. No authentication required.
Get your API key usage statistics.
| HEADER | TYPE | DESCRIPTION |
|---|---|---|
| Authorization | required | Bearer YOUR_API_KEY |
| CODE | MEANING | DESCRIPTION |
|---|---|---|
| 200 | Success | Request completed successfully |
| 400 | Bad Request | Invalid JSON, missing points, or less than 3 cities |
| 401 | Unauthorized | Missing or invalid API key |
| 403 | Forbidden | Plan limit exceeded (too many cities) |
| 500 | Server Error | Internal error — contact support |
| 503 | Unavailable | Compute backend temporarily down |
Pay once, use forever. No renewals, no surprises. Your API key works for life.
Last updated: March 2026
Lambda-G ("the Service") is a route optimization API provided by Abhishek Srivastava ("we", "us"). The Service solves Travelling Salesman Problem (TSP) instances via a REST API.
Upon purchase or registration, you receive an API key granting access according to your plan tier. API keys are for your use only and should not be shared. We reserve the right to revoke keys used in violation of these terms.
Paid plans ("Builder", "Pro") grant lifetime access to the Service at the feature level available at purchase. "Lifetime" means the operational lifetime of the Service. We commit to providing at least 12 months notice before discontinuing the Service.
You agree not to: (a) reverse engineer the optimization algorithm, (b) resell API access, (c) use the Service for illegal purposes, (d) attempt to overload or disrupt the Service.
THE SOFTWARE IS PROVIDED "AS-IS" WITHOUT WARRANTY OF ANY KIND. We do not guarantee that the Service will be uninterrupted, error-free, or that results will be optimal for all inputs. Route optimization is computationally complex; results are near-optimal, not guaranteed optimal.
To the maximum extent permitted by law, we shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use of the Service.
We may update these terms. Continued use after changes constitutes acceptance.
These terms are governed by the laws of New South Wales, Australia.
Last updated: March 2026
Email address: We collect your email address when you register for an API key. This is used solely to deliver your API key and important service updates.
Usage data: We log API calls (timestamp, city count, response time) for billing and debugging. We do NOT store your input coordinates or distance matrices after processing.
Your email and API key are stored in Cloudflare D1 (EU/US regions). Usage logs are retained for 90 days. Your optimization inputs (coordinates, matrices) are processed in memory and NOT persisted.
We do NOT sell your data. We may share data only: (a) with service providers (Cloudflare, Razorpay) necessary to operate, (b) if required by law.
You may request deletion of your account and data by emailing bitsabhi@gmail.com. We will comply within 30 days.
This website does not use cookies or tracking scripts.
For privacy concerns: bitsabhi@gmail.com
Last updated: March 2026
Lambda-G API keys are digital products that are delivered and activated instantly upon purchase. Once an API key is generated and delivered, refunds are not provided.
We may consider refunds in exceptional cases:
Contact bitsabhi@gmail.com within 7 days of purchase for exception requests.
The free tier (100 cities) has no payment and therefore no refund considerations.
Lifetime plans have no subscription to cancel. Your access continues indefinitely. If you wish to stop using the Service, simply stop making API calls. No action required.
Email: bitsabhi@gmail.com
We typically respond within 24-48 hours.
For enterprise plans, custom integrations, or partnership inquiries:
Email: bitsabhi@gmail.com
Subject: "Lambda-G Enterprise"
Abhishek Srivastava
Sydney, NSW 2000
Australia
Abhishek Srivastava
ORCID: 0009-0006-7495-5039