## Compute Routes Overview

### Introduction

Compute Routes is a method in the Routes API service that accepts an HTTPS request and returns the ideal route between two locations. Provide directions with real-time traffic for car, motorcycle, bicycle, or foot between multiple locations.

### Why use Compute Routes

With Compute Routes, with a wide range of route details you can route your vehicles or packages according to your preferences while optimizing for cost and quality.

### What you can do with Compute Routes?

With the Routes API `Compute Routes` method, you can do the following things:

- **Get directions for different ways to travel**, and for a single or multiple destinations.


### How Compute Routes works

The Routes API ComputeRoutes method accepts an HTTP GET request with query parameters that contains the request details.

> Example:


```bash
curl -X GET \
-H 'Content-Type: application/json' \
'https://dplace-api.themap.world/maps/api/directions/json?origin=21.02593%2C105.846535&destination=21.021002%2C105.85399&waypoints=21.023544%2C105.848985&alternatives=true&mode=driving&key=YOUR_API_KEY'
```

The service then calculates the requested route, and returns the fields you've requested.