Download OpenAPI specification:Download
For the latitude and longitude points of the requested origin and destination (up to 50 points), we perform a route matrix with the road network for automobiles and return a list of required times and distances.
For the requested origin and destination lists, provide the following:
The following uses are anticipated:
status_code=400 のリクエストエラーとなることがあります。 distance、time は null となります。costing=truck の場合、大型貨物自動車向けの交通規制を回避する経路探索を行う都合上、costing=auto と比較してAPIの応答時間が長くなる場合があります。distance 、time が null となる場合もカウント対象です。| x-api-key required | string Authentication is performed using an API key. |
| content-type required | string Please set the following for content-type. |
required | Array of objects[ items [ 1 .. 50 ] ] List of latitude and longitude of the departure location to enterFormat
Input example
| ||||||
required | Array of objects[ items [ 1 .. 50 ] ] List of latitude and longitude of destinations to enterFormat
Input example
| ||||||
| costing required | string Vehicles targeted for route search
Format
Input example
| ||||||
object Route search optionsFormat
Input example
|
{- "sources": [
- {
- "lon": 139.70336,
- "lat": 35.69363
}, - {
- "lon": 139.699163,
- "lat": 35.68907
}
], - "targets": [
- {
- "lon": 139.70346,
- "lat": 35.69368
}, - {
- "lon": 139.702295,
- "lat": 35.69072
}
], - "costing": "truck",
- "costing_options": {
- "auto": {
- "use_ferry": 0.5,
- "use_tolls": 0.5,
- "height": 0,
- "width": 0
}, - "truck": {
- "use_ferry": 1,
- "use_tolls": 0,
- "height": 2.1,
- "width": 1.9,
- "weight": 10.7,
- "hazmat": true
}
}
}{- "sources_to_targets": [
- [
- {
- "from_index": 0,
- "to_index": 0,
- "distance": 0.431,
- "time": 31
}, - {
- "from_index": 0,
- "to_index": 1,
- "distance": 0.676,
- "time": 61
}, - {
- "from_index": 0,
- "to_index": 2,
- "distance": 0.842,
- "time": 61
}
], - [
- {
- "from_index": 1,
- "to_index": 0,
- "distance": 0.695,
- "time": 76
}, - {
- "from_index": 1,
- "to_index": 1,
- "distance": 0.418,
- "time": 46
}, - {
- "from_index": 1,
- "to_index": 2,
- "distance": 1.106,
- "time": 97
}
]
]
}| Date | Content |
|---|---|
| 2025年8月28日 | ・costing_option に以下のリクエストインターフェースを追加・ height(車高)・ width(車幅)・ weight(車重) ※truckのみ・ hazmat(Whether or not hazardous materials are on board) *truckのみ・ costingの車種に応じた車幅(auto: 1.6m、truck: 2.6m)未満の車幅制限がある道路を通行しない制限事項を削除・ status_code=400 のリクエストエラーとなるケースに「周囲に道路が無い出発地または目的地が含まれる場合」を追加 |