Busnavi APIs

Usage of open data

ver1.1 Mon Dec 21 2015 18:00:00 GMT+0900 (JST)


/api/route.php

Route

Examples

/api/route.php

Method

URLHTTP Method
/api/route.phpGET

Responses

Type:Array[Object]

FieldTypeDescriptionNotes
idStringRoute ID
nameStringRoute name
colorStringRoute color
imageStringBus iconFetch /bus_img/{filename}

/api/path.php

Route path

Examples

/api/path.php?id=lao1

Method

URLHTTP Method
/api/route.phpGET

Request Parameters

ParameterTypeDescription
idStringRoute ID

Responses

Type:Array[Array[Object]]

FieldTypeDescriptionNotes
latNumberLatitude
lngNumberLongitude
isTunnelBooleanTunnel flag0:false, 1:true

/api/bus.php

Bus

Examples

/api/bus.php

Method

URLHTTP Method
/api/bus.phpGET

Responses

Type:Array[String]

FieldTypeDescriptionNotes
StringBus ID

/api/busstop.php

Bus stop

Examples

/api/busstop.php

Method

URLHTTP Method
/api/busstop.phpGET

Responses

Type:Array[Object]

FieldTypeDescriptionNotes
idStringBus stop ID
nameStringBus stop name
latNumberLatitude
lngNumberLongitude

/api/busstop_order.php

Bus stop order

Examples

/api/busstop_order.php?id=lao1

Method

URLHTTP Method
/api/busstop_order.phpGET

Request Parameters

ParameterTypeDescription
idStringRoute ID

Responses

Type:Array[String]

FieldTypeDescriptionNotes
StringBus stop IDSorted array

©Japan Research Institute for Social Systems. All Rights Reserved