Route(for truck)
The Routing API will show you how to get where you’re going.
With the Routing API, you can:

  • Provide precise instructions to a destination using various transport modes
  • To request directions, call four values : start point, destination, and car type, and waypoint(optional).
get   https://maps.fatos.biz/nostra/api/route/truck?(querystring)

Parameter : Detail

Required Parameter Description
origin start point(13.729139,100.493947) latitute, longitude
destination end point(13.746328,100.512601) latitute, longitude
key auth key
Optional Parameter Description
via waypoint (latitute,longitude),
In the case of multiple waypoints, list them in order in the query string.
(ex. via=13.746328,100.512601&via=13.756015,100.497500&…)
rpoption route options,
Sum of each option value( 1:Fastest / 16:Shortest / 32:Fastest noToll / 256:Shortest noToll )
- ex) rpoption=17 => shortest time, shortest distance
angle degrees (0~359)
height Overall Height(meter*10) for Truck Route
weight total weight on Board(ton * 10) for Truck Route
length Overall Length(meter*10) for Truck Route
uturn Number of lanes required for a U-turn for Truck Route

[ example : Rout for truck ]


Return : JSON type

status OK, FAIL
err error message,
only in case of fail.
rpoption route options,
Sum of each option value(1:Fastest / 16:Shortest / 32:Fastest noToll / 256:Shortest noToll )
bounds Up and down diagonal vertex coordinates for gripping map mbr.
overview_polyline.points Google polyline coordinate information
points_count points_count point count
points points Display lines on a map using the[mapInstance.geometrydecode(points)]function
legs Detailed information of the route corresponding to the route option, and legs may come in plural according to the route option.(rpoption=3 : recommendation1,recommendation2)
start_location The beginning of the current path
end_location End point of current path
distance Total distance traveled in current path
duration Total time of the current route
via_waypoint Waypoint coordinates information on the current route
- Created only when waypoints are included in request information
steps Repeat section information of current route
instructions Name information of each section
roadcategory Road type of each section
roadname Road name of each section
maneuver Rotation information of each section
distance Movement distance of each section
duration Required time for each section

Display of Directions Results
After you receive the requested results, you must decode the result into a geometry code.
Call the Fatos.polyLine() function as the decoded result and display the result on the map.