summary接口

URL:

http:// <BusServer-URL> / summary

父资源:

BusServer

[ 服务说明 ]

summary 接口用于根据用户输入的字符串精确搜索公交线路。

[ 参数说明 ]

[ 返回结果参数 ]
参数参数说明
state参数含义:状态,true 表示成功,false 表示失败
total参数含义:站点的数目
stationtotal参数含义:站点总数目
routetotal参数含义:线路总数目

[ 示例 ]

summary请求接口示例:
http://127.0.0.1:8099/newmap/rest/services/公交/changzhibus/BusServer/summary?format=json

[ 返回结果 ]

   summary操作成功时的返回结果示例 :

{"state":true,"stationtotal":905,"routetotal":64}

    summary操作失败时的返回结果示例 :

{
"state":false,"describe":"Missing 'start'Parameter"}