Route as optimized order for delivery
Search the optimal delivery route using motorcycles. Search the most efficient route to pick up at the store and deliver to customers in which order. The service is currently in service in Korea and will be gradually expanded later.
GET
https://maps.mogoscorp.com/api/v2/delivery
JSON
Request
key
Your API Key.
string
origin
Start location
(Longitude, Latitude).
string
origin_name
The name of start loation.
string
destination
Destination location
(Longitude, Latitude).
string
destnation_name
The name of destination location
string
cook_time
The time for cooking (unit: sec)
int
origin_done
fixed at FALSE
false
destination_done
fixed at FASLE
false
Example
[
{
"origin": "37.482729,126.895920",
"origin_name": "current location",
"destination": "0,0",
"destination_name": "",
"cook_time": 0,
"origin_done": false,
"destination_done": false
},
{
"origin": "37.484784,126.895719",
"origin_name": "A",
"destination": "37.484393,126.892950",
"destination_name": "AA",
"cook_time": 200,
"origin_done": false,
"destination_done": false
},
{
"origin": "37.483343,126.892157",
"origin_name": "B",
"destination": "37.480518,126.893664",
"destination_name": "BB",
"cook_time": 180,
"origin_done": false,
"destination_done": false
}
]
Response
name
Feature collection name
string
type
A GeoJson object with type "FeatureCollection" is an feature collection object
string
features
An object of type "FeatureCollection" must have a member with the name "features".
object
features - type
A GeoJSON object with the type "Feature" is a feature object
string
geometry
Geometry has type and coordinates information
object
geometry - type
Type of coordinates
string
coordinates
location
string
property
The property information of point
object
summary
The information of road
string
distance
Total distance (unit: meter)
int
duration
Total duration (unit: sec)
int
origin_name
The name of origin location
string
destination_name
The name of destination location
string
max_lat
The maximum latitude of route's MBR
double
max_lng
The maximum langitude of route's MBR
double
min_lat
The minimum latitude of route's MBR
double
min_lng
The minimum langitude of route's MBR
double
property_type
Type of point (Origin or Destination)
string
property_type
Type of linestring 1: The starting point of the line string of the point feature
3: Origin feature
5: Feature of destination point
int
attr_lane
The number of lanes
int
attr_link_facil
The facility code of link
int
attr_median
The presence of median strip
int
attr_oneway
whether the link is oneway or not
int
attr_road_cate
The type of road
int
attr_turn_code
The turn code
int
lane_guide
The lane guide
int
length
The length of link
int
link_dir
The direction of link
int
link_id
The ID of link
int
link_idx
The index of link
int
remainder_dist
The remainder distance to destination
int
remainder_time
The remainder time to destination
int
service_link_idx
The index of service link
int
string_info
The information of road
string
Example
[
{
"name": "0,rp_info",
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
126.89592003822327,
37.48272897666985
]
},
"properties": {
"summary": "디지털로27길",
"summary_ex": "126.892784,37.482783,160",
"distance": 454,
"duration": 97,
"start_name": "start1",
"end_name": "dest1",
"max_lat": 37.48337641034627,
"max_lng": 126.89584337512667,
"min_lat": 37.48230734143803,
"min_lng": 126.89210115711069,
"type": "출발지"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
126.89215958118439,
37.48334295637852
]
},
"properties": {
"type": "목적지"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89592003822327,
37.48272897666985
],
[
126.89592003822327,
37.48272886382667
]
]
},
"properties": {
"type": 1,
"attr": 0,
"attr_has_hipass": 0,
"attr_has_ic": 0,
"attr_has_jc": 0,
"attr_has_outpath": 0,
"attr_has_sa": 0,
"attr_has_toll": 0,
"attr_lane": 0,
"attr_link_cate": 0,
"attr_link_facil": 0,
"attr_max_speed": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 0,
"attr_string": "0",
"attr_surface": 0,
"attr_traffic": 0,
"attr_turn_code": 0,
"duration": 0,
"lane_guide": "0",
"length": 0,
"link_dir": 0,
"link_id": 0,
"link_idx": 0,
"remainder_dist": 0,
"remainder_time": 0,
"service_link_idx": 0,
"string_info": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89592003822327,
37.48272886382667
],
[
126.89584493637085,
37.48259345201811
]
]
},
"properties": {
"type": 3,
"attr_lane": 0,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 63,
"attr_turn_code": 0,
"duration": 0,
"length": 0,
"link_dir": 0,
"link_id": 0,
"link_idx": 4,
"remainder_dist": 0,
"remainder_time": 0,
"service_link_idx": 0,
"string_info": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89584493637085,
37.48259345201811
],
[
126.89527094364166,
37.4829148293771
]
]
},
"properties": {
"type": 3,
"attr_lane": 3,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 0,
"duration": 21,
"length": 61,
"link_dir": 0,
"link_id": 710795,
"link_idx": 0,
"remainder_dist": 454,
"remainder_time": 97,
"service_link_idx": 0,
"string_info": "|디지털로30길||||||"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89527094364166,
37.4829148293771
],
[
126.8944501876831,
37.483376357957965
]
]
},
"properties": {
"type": 3,
"attr_lane": 4,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 2,
"duration": 30,
"lane_guide": "0|1|0|1|0|2",
"length": 88,
"link_dir": 1,
"link_id": 709427,
"link_idx": 1,
"remainder_dist": 393,
"remainder_time": 76,
"service_link_idx": 0,
"string_info": "|디지털로30길||||||좌회전"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.8944501876831,
37.483376357957965
],
[
126.89397275447845,
37.48280706414612
],
[
126.8937635421753,
37.4825896153502
],
[
126.89346849918365,
37.48230739457251
]
]
},
"properties": {
"type": 3,
"attr_lane": 6,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 3,
"duration": 16,
"its_id": 1160005601,
"lane_guide": "0|0|0|1,2,3|0|3",
"length": 145,
"link_dir": 1,
"link_id": 710347,
"link_idx": 2,
"remainder_dist": 305,
"remainder_time": 46,
"service_link_idx": 0,
"string_info": "|디지털로||||||우회전"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89346849918365,
37.48230739457251
],
[
126.89210057258606,
37.48325911390038
]
]
},
"properties": {
"type": 3,
"attr_lane": 2,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 50,
"duration": 30,
"its_id": 1160005501,
"length": 160,
"link_dir": 0,
"link_id": 710225,
"link_idx": 3,
"remainder_dist": 160,
"remainder_time": 30,
"service_link_idx": 0,
"string_info": "|디지털로27길|남구로역|||||목적지"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89210057258606,
37.48325911390038
],
[
126.89215958118439,
37.48334295637852
]
]
},
"properties": {
"type": 5,
"attr": 0,
"attr_has_hipass": 0,
"attr_has_ic": 0,
"attr_has_jc": 0,
"attr_has_outpath": 0,
"attr_has_sa": 0,
"attr_has_toll": 0,
"attr_lane": 0,
"attr_link_cate": 0,
"attr_link_facil": 0,
"attr_max_speed": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 0,
"attr_string": "0",
"attr_surface": 0,
"attr_traffic": 0,
"attr_turn_code": 0,
"duration": 21,
"lane_guide": "0",
"length": 11,
"link_dir": 0,
"link_id": 0,
"link_idx": 0,
"remainder_dist": 0,
"remainder_time": 0,
"service_link_idx": 0,
"string_info": "|디지털로27길|남구로역|||||목적지"
}
}
]
},
{
"name": "1,rp_info",
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
126.89215958118439,
37.48334295637852
]
},
"properties": {
"summary": "디지털로26길",
"summary_ex": "126.892783,37.481172,143",
"distance": 435,
"duration": 104,
"start_name": "start1",
"end_name": "dest1",
"max_lat": 37.483259108405406,
"max_lng": 126.89370046893862,
"min_lat": 37.48063555036208,
"min_lng": 126.89210115711069,
"type": "start"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
126.89366161823273,
37.48051804036548
]
},
"properties": {
"type": "end"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89215958118439,
37.48334295637852
],
[
126.89215958118439,
37.4833430692217
]
]
},
"properties": {
"type": 1,
"attr": 0,
"attr_has_hipass": 0,
"attr_has_ic": 0,
"attr_has_jc": 0,
"attr_has_outpath": 0,
"attr_has_sa": 0,
"attr_has_toll": 0,
"attr_lane": 0,
"attr_link_cate": 0,
"attr_link_facil": 0,
"attr_max_speed": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 0,
"attr_string": "0",
"attr_surface": 0,
"attr_traffic": 0,
"attr_turn_code": 0,
"duration": 0,
"lane_guide": "0",
"length": 0,
"link_dir": 0,
"link_id": 0,
"link_idx": 0,
"remainder_dist": 0,
"remainder_time": 0,
"service_link_idx": 0,
"string_info": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89215958118439,
37.4833430692217
],
[
126.89210057258606,
37.48325911390038
]
]
},
"properties": {
"type": 3,
"attr_lane": 0,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 63,
"attr_turn_code": 0,
"duration": 0,
"length": 0,
"link_dir": 0,
"link_id": 0,
"link_idx": 4,
"remainder_dist": 0,
"remainder_time": 0,
"service_link_idx": 0,
"string_info": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89210057258606,
37.48325911390038
],
[
126.89346849918365,
37.48230739457251
]
]
},
"properties": {
"type": 3,
"attr_lane": 2,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 3,
"duration": 44,
"its_id": 1160006204,
"length": 160,
"link_dir": 1,
"link_id": 710225,
"link_idx": 0,
"remainder_dist": 435,
"remainder_time": 104,
"service_link_idx": 0,
"string_info": "|디지털로27길||||||우회전"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89346849918365,
37.48230739457251
],
[
126.89242780208588,
37.48144143605673
]
]
},
"properties": {
"type": 3,
"attr_lane": 6,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 2,
"duration": 20,
"its_id": 1160004800,
"lane_guide": "0|1|0|2,3|0|4|0,1",
"length": 132,
"link_dir": 1,
"link_id": 713296,
"link_idx": 1,
"remainder_dist": 275,
"remainder_time": 60,
"service_link_idx": 0,
"string_info": "|디지털로|디지털단지오거리||디지털2/3단지|||좌회전"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89242780208588,
37.48144143605673
],
[
126.89313590526581,
37.48090260990181
]
]
},
"properties": {
"type": 3,
"attr_lane": 4,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 0,
"duration": 30,
"its_id": 1200002104,
"lane_guide": "0|1|0|2|0|2",
"length": 86,
"link_dir": 0,
"link_id": 715320,
"link_idx": 2,
"remainder_dist": 143,
"remainder_time": 40,
"service_link_idx": 0,
"string_info": "|디지털로26길||||||"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89313590526581,
37.48090260990181
],
[
126.89313590526581,
37.48090260990181
],
[
126.89328610897064,
37.48080624183138
],
[
126.89369916915894,
37.480635510109416
]
]
},
"properties": {
"type": 3,
"attr_lane": 2,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 50,
"duration": 10,
"its_id": 1200002104,
"length": 57,
"link_dir": 0,
"link_id": 716480,
"link_idx": 3,
"remainder_dist": 57,
"remainder_time": 10,
"service_link_idx": 0,
"string_info": "|디지털로26길||||||목적지"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89369916915894,
37.480635510109416
],
[
126.89366161823273,
37.48051804036548
]
]
},
"properties": {
"type": 5,
"attr": 0,
"attr_has_hipass": 0,
"attr_has_ic": 0,
"attr_has_jc": 0,
"attr_has_outpath": 0,
"attr_has_sa": 0,
"attr_has_toll": 0,
"attr_lane": 0,
"attr_link_cate": 0,
"attr_link_facil": 0,
"attr_max_speed": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 0,
"attr_string": "0",
"attr_surface": 0,
"attr_traffic": 0,
"attr_turn_code": 0,
"duration": 27,
"lane_guide": "0",
"length": 13,
"link_dir": 0,
"link_id": 0,
"link_idx": 0,
"remainder_dist": 0,
"remainder_time": 0,
"service_link_idx": 0,
"string_info": "|디지털로26길||||||목적지"
}
}
]
},
{
"name": "2,rp_info",
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
126.89366161823273,
37.48051804036548
]
},
"properties": {
"summary": "디지털로",
"summary_ex": "126.894211,37.483092,471",
"distance": 605,
"duration": 159,
"start_name": "start1",
"end_name": "dest1",
"max_lat": 37.484877493719665,
"max_lng": 126.89560114185036,
"min_lat": 37.48066511426589,
"min_lng": 126.89242922107536,
"type": "start"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
126.89572155475616,
37.48478396370801
]
},
"properties": {
"type": "end"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89366161823273,
37.48051804036548
],
[
126.89366161823273,
37.48051826605183
]
]
},
"properties": {
"type": 1,
"attr": 0,
"attr_has_hipass": 0,
"attr_has_ic": 0,
"attr_has_jc": 0,
"attr_has_outpath": 0,
"attr_has_sa": 0,
"attr_has_toll": 0,
"attr_lane": 0,
"attr_link_cate": 0,
"attr_link_facil": 0,
"attr_max_speed": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 0,
"attr_string": "0",
"attr_surface": 0,
"attr_traffic": 0,
"attr_turn_code": 0,
"duration": 0,
"lane_guide": "0",
"length": 0,
"link_dir": 0,
"link_id": 0,
"link_idx": 0,
"remainder_dist": 0,
"remainder_time": 0,
"service_link_idx": 0,
"string_info": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89366161823273,
37.48051826605183
],
[
126.89361333847046,
37.48066507502095
]
]
},
"properties": {
"type": 3,
"attr_lane": 0,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 63,
"attr_turn_code": 0,
"duration": 0,
"length": 0,
"link_dir": 0,
"link_id": 0,
"link_idx": 6,
"remainder_dist": 0,
"remainder_time": 0,
"service_link_idx": 0,
"string_info": ""
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89361333847046,
37.48066507502095
],
[
126.89328610897064,
37.48080624183138
],
[
126.89313590526581,
37.48090260990181
]
]
},
"properties": {
"type": 3,
"attr_lane": 2,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 0,
"duration": 16,
"its_id": 1160004201,
"length": 48,
"link_dir": 1,
"link_id": 716480,
"link_idx": 0,
"remainder_dist": 605,
"remainder_time": 159,
"service_link_idx": 0,
"string_info": "|디지털로26길||||||"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89313590526581,
37.48090260990181
],
[
126.89242780208588,
37.48144143605673
]
]
},
"properties": {
"type": 3,
"attr_lane": 4,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 3,
"duration": 30,
"its_id": 1160004201,
"lane_guide": "0|1|0|2|0|2",
"length": 86,
"link_dir": 1,
"link_id": 715320,
"link_idx": 1,
"remainder_dist": 557,
"remainder_time": 143,
"service_link_idx": 0,
"string_info": "|디지털로26길||||||우회전"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89242780208588,
37.48144143605673
],
[
126.89346849918365,
37.48230739457251
]
]
},
"properties": {
"type": 3,
"attr_lane": 6,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 0,
"duration": 35,
"its_id": 1180007602,
"lane_guide": "1|1|0|2,3|0|0",
"length": 132,
"link_dir": 0,
"link_id": 713296,
"link_idx": 2,
"remainder_dist": 471,
"remainder_time": 113,
"service_link_idx": 0,
"string_info": "|디지털로||||||"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.89346849918365,
37.48230739457251
],
[
126.8937635421753,
37.4825896153502
],
[
126.89397275447845,
37.48280706414612
],
[
126.8944501876831,
37.483376357957965
]
]
},
"properties": {
"type": 3,
"attr_lane": 6,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 0,
"duration": 37,
"its_id": 2080006205,
"lane_guide": "1|1|0|2,3|0|3",
"length": 145,
"link_dir": 0,
"link_id": 710347,
"link_idx": 3,
"remainder_dist": 339,
"remainder_time": 78,
"service_link_idx": 0,
"string_info": "|디지털로|디지털1단지||신풍역|||"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
126.8944501876831,
37.483376357957965
],
[
126.89534068107605,
37.48454462333637
]
]
},
"properties": {
"type": 3,
"attr_lane": 6,
"attr_link_facil": 0,
"attr_median": 0,
"attr_oneway": 0,
"attr_road_cate": 8,
"attr_turn_code": 0,
"duration": 37,
"its_id": 2080006205,
Last updated