FATOS Developer
Developer SiteConsole
  • FATOS Developer Introduction
  • FATOS API
    • Map
      • Map control
        • Sources
        • Layers
          • Style Specification
            • Fill
            • Line
            • Symbol
            • Circle
        • Building
        • Bounds
        • Center
        • Heading
        • Flyto
        • Tilt
        • Zoom
        • Marker
          • Instance Members
        • Polyline
        • Polygon
        • Circle
        • On/Off
        • Once
        • Language
        • Theme
        • Cluster
          • Instance Members
      • Button control
      • Utilities
        • Rectangle
        • Distance
        • Area
    • Search
      • Address
      • Geocoding
      • Geofencing
      • Detail
      • Public Transport
        • Bus Route
        • Bus Route Information
        • Bus Stop Information
        • Subway Station Information
        • Subway Station Timetable
        • Public Transit POI within Radius
        • Public Transit POI on Map
        • Subway Station Transfer Information
        • Real-time Bus Location Information
        • Real-time Bus Arrival Information
    • Routing
      • Route
      • Route for truck
      • Route_v2
      • Public Transit Route Search
      • Route Graphic Data
      • Bicycle
      • Pedestrian
    • Analyze
    • Tracking
  • FATOS SDK
    • Authentication
    • Platform
      • Android
        • Start
        • Component
      • iOS
        • Start
        • Component
      • React Native
        • Start
        • Component
  • Get your API Key
  • Release Note
    • FATOS Map API
    • API Server
    • RP Server
  • Troubleshooting
    • FAQ
Powered by GitBook
On this page
  • Parameter
  • Response
  • Response Sample

Was this helpful?

  1. FATOS API
  2. Routing

Route Graphic Data

Returns route path information for an interval.

Method
Request URI
Response Type

GET

https://api.fatos.biz/pubtrans/loadLane

json, xml

Parameter

Parameter
Required
Description
Sample

key

Y

Your API Key

key=xxxxxxxxxxx

lang

N

Select Result Language(Korean: 0, English: 1, Japanese: 2, Chinese (simplified): 3, Chinese (traditional): 4, Vietnamese: 5)

  • For Vietnamese, only in the metropolitan area

default = 0

lang=0

output

N

Output format (json, xml)default = json

output=json

mapObject

Y

Code to look up the path MapOBJ value format that appears during path search BaseX:BaseY@ID:Class:StartIdx:EndIdx@...@ID:Class:StartIdx:EndIdx

BaseX:BaseY : Data datum returns coordinates to value minus value ID: (bus route ID or subway route ID) Class: 1 (bus), 2 (subway) StartIdx : Departure Index EndIdx : Arrival Index

StartIdx and EndIdx are -1 when calling the entire route Example) 126:37@3:2:310:329 (section 310 to 319 of Subway Line 3 in the Seoul metropolitan area) 126:37@2:2:-1:-1 (all metropolitan subway lines 2)

mapObject=0:0@12018:1:-1:-1

Response

Name
Type
Description

result

node

Top node

lane

node

Requested lane list

class

int

1 (bus route), 2 (subway route)

type

int

Route type Refer to the bus route and subway line type below the bottom of the document

section

node

Section List

graphPos

node

Coordinate list

x

double

x-coordinate (longitude)

y

double

y-coordinate (latitude)

boundary

node

The coordinates are rectangular Boundary values for loaded routes

left

double

Left coordinates

top

double

Top coordinates

right

double

Right coordinates

bottom

double

Bottom coordinates

Response Sample

{
    "result": {
        "lane": [
            {
                "class": 2,
                "type": 3,
                "section": [
                    {
                        "graphPos": [
                            {
                                "x": 0.7474405812559723,
                                "y": 0.6761488363820973
                            },
                            {
                                "x": 0.7499409925277831,
                                "y": 0.6750851191326248
                            },
			    …
                            {
                                "x": 0.991840672358677,
                                "y": 0.5716529051326162
                            }
                        ]
                    }
                ]
            }
        ],
        "boundary": {
            "top": 0.6761488363820973,
            "left": 0.7474405812559723,
            "bottom": 0.5716529051326162,
            "right": 0.991840672358677
        }
    }
}

PreviousPublic Transit Route SearchNextBicycle

Last updated 2 years ago

Was this helpful?