Bicycle

Returns the bicycle directions information.

Method
Request URI
Response Type

POST

https://api.fatos.biz/mogos/v2/route/bicycle

geojson

Parameters

Rquest

Parameter
Required
Description
Sample

key

Y

Your API Key

key : xxxxxxxxxxx

origin

Y

Start point (lat, lng)

origin:'37.482767, 126.896290'

destination

Y

End point (lat, lng)

destination:'37.538635, 127.051035'

lang

N

Select Result Language

(Korean: ko, English: en)

default = ko

lang:ko

returntype

N

Output format

default = geojson

returntype:geojson

Request Sample

{
    "key": "Your API Key",
    "origin": "37.4756, 126.9664",
    "destination": "37.4732, 126.9958",
    "lang":"ko",
    "returntype":"json"
}

Response

Name
Type
Description

type

string

A GeoJSON object with the type "FeatureCollection" is a feature collection object

features

node

An object of type "FeatureCollection" must have a member with the name "features".

type

string

A GeoJSON object with the type "Feature" is a feature object

geometry

object

Geometry has type and coordinates information

coordinates

array<double>

position

properties

object

Property information

summary

string

road information

distance

int

Total or link distance / m

duration

int

Total or link duration /sec

start_name

string

start name

end_name

string

end name

max_lat

double

Maximum latitude

max_lng

double

Maximum longitude

min_lat

double

Minimum latittude

min_lng

double

Minimum longitude

length

int

link length

remainder_dist

int

remainder distance

remainder_time

int

remainder time

attr_turn_code

int

turn code

attr_road_cate

int

road type code

attr_link_facil

int

Facility code

attr_oneway

int

a one-way street

attr_lane

int

the number of lanes

attr_median

int

Presence of median strip

Response Sample

{
    "name": "0,rp_info",
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    126.96639776229858,
                    37.47559877075629
                ]
            },
            "properties": {
                "summary": "남부순환로|남부순환로",
                "summary_ex": "126.971267,37.475497,927|126.984558,37.475989,978",
                "distance": 3099,
                "duration": 592,
                "start_name": "start1",
                "end_name": "dest1",
                "max_lat": 37.47651949201423,
                "max_lng": 126.99577890670031,
                "min_lat": 37.47320833478909,
                "min_lng": 126.96559892929616
            }
        },
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    126.99580013751984,
                    37.473197927176464
                ]
            },
            "properties": {}
        },
        {
            "type": "Feature",
            "geometry": {
                "type": "LineString",
                "coordinates": [
                    [
                        126.96639776229858,
                        37.47559877075629
                    ],
                    [
                        126.96632266044617,
                        37.47539870045797
                    ]
                ]
            },
            "properties": {
                "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,
                "remainder_dist": 0,
                "remainder_time": 0
            }
        },
        {
            "type": "Feature",
            "geometry": {
                "type": "LineString",
                "coordinates": [
                    [
                        126.96632266044617,
                        37.47539870045797
                    ],
                    [
                        126.96623146533966,
                        37.47524971193795
                    ]
                ]
            },
            "properties": {
                "attr_lane": 1,
                "attr_link_facil": 0,
                "attr_median": 0,
                "attr_oneway": 0,
                "attr_road_cate": 11,
                "attr_turn_code": 3,
                "duration": 14,
                "length": 18,
                "remainder_dist": 3099,
                "remainder_time": 592,
            }
        },

        {
            "type": "Feature",
            "geometry": {
                "type": "LineString",
                "coordinates": [
                    [
                        126.99577867984772,
                        37.47346184969765
                    ],
                    [
                        126.99574112892151,
                        37.47320644080618
                    ]
                ]
            },
            "properties": {
                "attr_lane": 1,
                "attr_link_cate": 13,
                "attr_median": 0,
                "attr_oneway": 0,
                "attr_road_cate": 11,
                "attr_turn_code": 50,
                "duration": 15,
                "length": 28,
                "remainder_dist": 28,
                "remainder_time": 15
            }
        }
    ]
}

Last updated