Truck

Search route for truck.

Method
Request
Response

GET

https://maps.mogoscorp.com/api/v2/route

Request

Parameter (Required)
Descripton
Remark

key

Your API Key.

string

origin

Start location

(Longitude, Latitude).

string

destination

Destination location

(Longitude, Latitude).

string

rpoption

Options for search route.

sum each option value when you request.

1: Recommended 1 2: Recommended 2 4: Highway Priority 8: General road Priority 16: Shortest Distance 32: Free road (in the shortest time) 64: Exclude Car-only 256: Free road (in the shortest distance) e.g., rpoption 3 => Recommended 1 + Recommended 2

int

cartype

Type of vehicle. 101: 2 Axles, less than 16 persons 102: 2 Axles, less than 32 persons 103: 2 Axles, less than 33 persons 104: 3 Axles, between 10 to 20 Ton 105: 4 Axles or above (Over 20 Ton) 106: 2 Axles, less than 1000cc 111: Truck with dangerous load 112: Truck 113: Construction Machinery 114: Construction Vehicle 115: Trailer 116: Farm Vehicle

int

reqtype

Type of route request. 0: Initial RP request 1: Retry RP request on route deviation 2: User RP request 3: Periodic RP request 4: Request Route detail (Default: 0)

int

carspeed

Speed of vehicle. range: 0 ~ 255 (Default : 0)

int

angle

Angle of vehicle's direction. range : 0 ~ 359 (Default : 0)

int

unixtime

Time requested for search route

string

gmtoffset

Timezone

string

Parameter (Optional)
Description
Remark

traffic

Apply traffic information or not.

0: Ignore

1: Apply traffic information

(Default: 0)

int

pattern

Apply pattern information or not.

0: Ignore

1: Reflect traffic information

(Default: 0)

int

fueltype

Fuel type of vehicle. 0: Gasoline

1: Diesel

2. NGV

3: LPG

4: Hydrogen

5: Electric (Default : 0)

int

startname

The name of start location.

string

destname

The name of destination location.

string

waypoints

Waypoint location (Longitude, Latitude). For multiple waypoints, list them in order in the query string.

string

Example

https://maps.mogoscorp.com/api/v2/route?key=YOUR_API_KEY&origin=37.483294848898396,126.89654749206602&destination=37.51702306480502,127.0416190159097&angle=-1&rpoption=1&unixtime=1604626833&gmtoffset=32400&cartype=1

Response

Parameter
Description
Remark

Example

The MOGOS Maps API requires an API Key, which can be obtained from the MOGOS Console website or contact [email protected].

Last updated