# Bicycle

| Method |                   Request URI                  | Response Type |
| :----: | :--------------------------------------------: | :-----------: |
|  POST  | <https://api.fatos.biz/mogos/v2/route/bicycle> |    geojson    |

### Parameters

### Rquest

<table><thead><tr><th align="center">Parameter</th><th width="109" align="center">Required</th><th align="center">Description</th><th align="center">Sample</th></tr></thead><tbody><tr><td align="center">key</td><td align="center">Y</td><td align="center">Your API Key</td><td align="center">key : xxxxxxxxxxx</td></tr><tr><td align="center">origin</td><td align="center">Y</td><td align="center">Start point (lat, lng)</td><td align="center">origin:'37.482767, 126.896290' </td></tr><tr><td align="center">destination</td><td align="center">Y</td><td align="center">End point (lat, lng)</td><td align="center">destination:'37.538635, 127.051035'</td></tr><tr><td align="center">lang</td><td align="center">N</td><td align="center"><p>Select Result Language </p><p>(Korean: ko, English: en)</p><p>default = ko</p></td><td align="center">lang:ko</td></tr><tr><td align="center">returntype</td><td align="center">N</td><td align="center"><p>Output format</p><p>default = geojson</p></td><td align="center">returntype:geojson</td></tr></tbody></table>

### Request Sample

```json
{
    "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

```json
{
    "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
            }
        }
    ]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fatos-doc.fatos.biz/fatos-api/routing/bicycle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
