Motorbike

Search route for motorbike.

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 16: Shortest Distance e.g., rpoption 3 => Recommended 1 + Shortest Distance

int

cartype

Type of vehicle. 127: Motorbike 128: 3 Wheel Motorbike

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