Source: https://developers.woosmap.com/api-reference/distance-async-api/get-distance-matrix-async-matrix_id/

> For clean Markdown of any page, append `.md` to the page URL.

> For a complete documentation index, see https://developers.woosmap.com/llms.txt

# Get Matrix Calculation Result



# Get Matrix Calculation Result

 GET 
https://api.woosmap.com/distance/matrix/async/{matrix\_id}

Get the results of an asynchronous matrix calculation.

You should confirm using the `/matrix/{matrix_id}/status` endpoint that the calculation is `completed` before calling this endpoint.

**Rate limit** : `20/1s`

**Ratelimit:** 20/1s

### Authorization

[`key`](#authorization-external-api-wrapper-publicapikey)
apiKeyquery

Public key of the project usually starts with `woos-`

[`private_key`](#authorization-external-api-wrapper-privateapikey)
apiKeyquery

Private key with or without write permission.

[`X-Api-Key`](#authorization-external-api-wrapper-privateapikeyheader)
apiKeyheader

Private key with or without write permission.

### Path Parameters

[`matrix_id`](#path-matrix-id)
stringrequired

The ID of the matrix you want to get the result of

### Errors

#303

Redirect to the result of the matrix calculation.

 

`application/json`

No properties defined

#401

Unable to locate credentials.

 

`application/json`

[`detail`](#err-401-detail)
stringrequired

#402

Out of free quota.

 

`application/json`

[`detail`](#err-402-detail)
stringrequired

#403

Credentials found, but not matching.

 

`application/json`

[`detail`](#err-403-detail)
stringrequired

#422

Validation Error

 

`application/json`

[`detail`](#err-422-detail)
object[]

Show 3 propertiesHide 3 properties

detail.[`loc`](#err-422-detail-loc)
any[]required

detail.[`msg`](#err-422-detail-msg)
stringrequired

detail.[`type`](#err-422-detail-type)
stringrequired

#429

Rate limit reached

 

`application/json`

[`details`](#err-429-details)
stringrequired

```shell
curl -L 'https://api.woosmap.com/distance/matrix/async/39585bfc-59cc-478c-9b87-12685c9b880c?private_key=YOUR_PRIVATE_API_KEY' \
-H 'Referer: http://localhost'
```

```javascript
const requestOptions = {
  method: "GET",
  redirect: "follow"
};

fetch("https://api.woosmap.com/distance/matrix/async/39585bfc-59cc-478c-9b87-12685c9b880c?private_key=YOUR_PRIVATE_API_KEY", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
```

```python
import requests

url = "https://api.woosmap.com/distance/matrix/async/39585bfc-59cc-478c-9b87-12685c9b880c?private_key=YOUR_PRIVATE_API_KEY"

payload = {}
headers = {
    'Referer': 'http://localhost'
}

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

print(response.text)
```

```json
{
  "matrixId": "39585bfc-59cc-478c-9b87-12685c9b880c",
  "matrix": {
    "numOrigins": 2,
    "numDestinations": 2,
    "travelTimes": [
      0,
      1001,
      1057,
      0
    ],
    "distances": [
      0,
      15156,
      14345,
      0
    ]
  },
  "regionDefinition": {
    "type": "world"
  }
}
```
