GEO SERVICES

The Fast Distance Matrix Calculation API

The routing technology powering our world-class route optimization engine is now available as a separate API to calculate transit ETAs and distances.

Optimal routes in seconds
Easy API integration
Automatic algorithm fine-tuning
Low distance calculation cost
Schedule +10000 orders at a time
Reduce travel costs

Distance matrix calculations are essential for optimizing logistics, delivery routes, and travel times in a variety of industries. By leveraging our distance matrix API, you can determine the most efficient routes between multiple locations, whether for field services, fleet management, last-mile delivery, or ride-sharing services.

FEATURES
Timing

Fast Response

Solvice’s powerful routing engine delivers lightning-fast distance matrix calculations, ensuring optimal efficiency for your operations.

Multiple travel modes

Calculate distance matrices for various transport modes, including trucks, cars, vans, and bicycles, all tailored to your needs.

Automatic algorithm fine-tuning

Huge Matrices

Handle massive datasets effortlessly with Solvice’s engine, capable of processing matrices of 10,000 x 10,000 locations in a single calculation.

key features

Distance Matrix API features

Solvice offers a powerful alternative to the Google distance matrix with smart pricing, faster response times, and support for large-scale datasets. If you’re wondering how to use a distance matrix API, our solution is user-friendly, highly scalable, and adaptable for various travel modes, making it ideal for companies seeking to streamline operations and reduce costs.

  • Compute distance matrices in seconds: 1,000 x 1,000 in 5.6 seconds
  • Precise travel time calculation based on Open Street Maps data
  • Distance Matrix API pricing tailored to your needs
  • Three different driving modes: Trucks, Cars and Bicycles
Distance Matrix API
HOW TO USE A DISTANCE MATRIX API

Easy API integration

1. Request a distance matrix with the asynchronous /table endpoint.
2. After sending the table request to the API, you can follow the progress via the Get table progress endpoint.
3. Get table response gives you the actual matrix results.

Solvice Maps documentation

Customer quote

“Integrating Solvice’s distance matrix API has significantly enhanced our routing capabilities at Suivo. The speed and scalability of their solution have allowed us to handle complex logistics challenges with ease” —

Frederik Van Durme, CEO Suivo
Ole-André Riga-Johansen, CTO of Wanda
Built for developers

Designed for the modern developer’s workflow

Authentication is simple and results are returned in JSON format. Learn about how Solvice Maps works in our documentation.

C#
ObjectiveC
php
PHP
java
Java
Python
Python
javascript
Javascript
Built for developers

Get started using Route Optimization

Authentication is simple and results are returned in JSON format. Learn more about how the OnRoute works in our getting started guide.

Copied to clipboard!

#import 

NSDictionary *headers = @{ @"Accept": @"application/json" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api.solvice.io/jobs/jobId/solution"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
 
Copied to clipboard!

const sdk = require('api')('@solvice/v1.0#1mld74kq6wjdff');

sdk.server('https://api.solvice.io');
sdk.getSolution({jobId: 'jobId'})
  .then(res => console.log(res))
  .catch(err => console.error(err));
 
Copied to clipboard!

OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.solvice.io/jobs/jobId/solution")
  .get()
  .addHeader("Accept", "application/json")
  .build();

Response response = client.newCall(request).execute();
 
Copied to clipboard!

import requests

url = "https://api.solvice.io/jobs/jobId/solution"

headers = {"Accept": "application/json"}

response = requests.request("GET", url, headers=headers)

print(response.text)
 
Copied to clipboard!

const options = {method: 'GET', headers: {Accept: 'application/json'}};

fetch('https://api.solvice.io/jobs/jobId/solution', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
 
We're here to help
Our experts will explain the products' capabilities, help you determine how these can make your product or project successful, and guide you through implementation.  Email us here or fill out the form below.

Find the right route solution for you
Explain options for pricing
Connect you with helpful resources