General Vehicles
Search route for general car such like passenger car.
GET
https://maps.mogoscorp.com/api/v2/route
Request
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.
11 : micro electronic vehicle
121: Bus 122: Taxi 123: Taxi without passenger 124: Cart 125: HOV 126: Emergency
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
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
Example
The MOGOS Maps API requires an API Key, which can be obtained from the MOGOS Console website or contact [email protected].
Last updated