{"templateId":"markdown","versions":[{"version":"v1.0","label":"v1.0","link":"/guides/matrix/v1.0/table-navigation","default":false,"active":false,"folderId":"b4679aaf"},{"version":"latest","label":"Latest","link":"/guides/matrix/table-navigation","default":true,"active":true,"folderId":"b4679aaf"}],"sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Get a Distance Matrix","description":"Digime Map is the groundbreaking API that allows you to search places, navigate between points, highlight street attributes and raster tile.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"get-a-distance-matrix","__idx":0},"children":["Get a Distance Matrix"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can get a distance matrix by sending an HTTP GET request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following example shows the URL of a REST request to the distance matrix:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://dplace-api.themap.world/maps/api/distancematrix/json?origins=[{coordinate}|...]&destinations=[{coordinate}|...]&option=value&key=YOUR_API_KEY"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Include your request options in the query parameters."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example-http-distance-matrix-request","__idx":1},"children":["Example: HTTP distance matrix request"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X GET \\\n--header 'Content-Type: application/json' \\\n'https://dplace-api.themap.world/maps/api/distancematrix/json?origins=10.82587263527185%2C106.72299739871045%7C10.830553365061235%2C106.72882248366415&destinations=10.838966767933428%2C106.7453836166307%7C10.841693331125839%2C106.76390321646471&key=YOUR_API_KEY'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example-http-distance-matrix-response-body","__idx":2},"children":["Example: HTTP distance matrix response body"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"status\": \"OK\",\n    \"rows\": [\n        {\n            \"elements\": [\n                {\n                    \"duration_in_traffic\": {\n                        \"value\": 0,\n                        \"text\": \"\"\n                    },\n                    \"status\": \"OK\",\n                    \"duration\": {\n                        \"value\": 278,\n                        \"text\": \"4 mins 38 seconds\"\n                    },\n                    \"distance\": {\n                        \"value\": 3516,\n                        \"text\": \"4 km\"\n                    }\n                },\n                {\n                    \"duration_in_traffic\": {\n                        \"value\": 0,\n                        \"text\": \"\"\n                    },\n                    \"status\": \"OK\",\n                    \"duration\": {\n                        \"value\": 520,\n                        \"text\": \"8 mins 39 seconds\"\n                    },\n                    \"distance\": {\n                        \"value\": 6431,\n                        \"text\": \"6 km\"\n                    }\n                }\n            ]\n        },\n        {\n            \"elements\": [\n                {\n                    \"duration_in_traffic\": {\n                        \"value\": 0,\n                        \"text\": \"\"\n                    },\n                    \"status\": \"OK\",\n                    \"duration\": {\n                        \"value\": 266,\n                        \"text\": \"4 mins 26 seconds\"\n                    },\n                    \"distance\": {\n                        \"value\": 2835,\n                        \"text\": \"3 km\"\n                    }\n                },\n                {\n                    \"duration_in_traffic\": {\n                        \"value\": 0,\n                        \"text\": \"\"\n                    },\n                    \"status\": \"OK\",\n                    \"duration\": {\n                        \"value\": 508,\n                        \"text\": \"8 mins 28 seconds\"\n                    },\n                    \"distance\": {\n                        \"value\": 5751,\n                        \"text\": \"6 km\"\n                    }\n                }\n            ]\n        }\n    ],\n    \"destination_addresses\": [\n        \"Đường số 36\",\n        \"Đặng Văn Bi\"\n    ],\n    \"origin_addresses\": [\n        \"Đường số 20\",\n        \"Đường Số 3\"\n    ]\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"Get a Distance Matrix","id":"get-a-distance-matrix","depth":2},{"value":"Example: HTTP distance matrix request","id":"example-http-distance-matrix-request","depth":3},{"value":"Example: HTTP distance matrix response body","id":"example-http-distance-matrix-response-body","depth":3}],"frontmatter":{"seo":{"title":"Get a Distance Matrix"}},"lastModified":"2026-09-15T04:15:09.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/matrix/table-navigation","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}