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"}
"state":false,"describe":"Missing 'start'Parameter"}