[关闭]
@apis1990 2016-08-24T03:55:46.000000Z 字数 1226 阅读 439

用户学车

根据驾校/教练名搜索


1.URL:/service/api/search_coach.php

测试地址:http://36.33.24.119:8081/api/search_coach.php

2.请求方式:POST

3.请求参数:

参数 类型 是否必须 描述
lng float 经度 默认未获取定位情况下117.201239
lat float 纬度 默认未获取定位情况下31.856717
name string 驾校/教练名
type int 1:驾校 2:教练
city_id int 城市编号 如果定位当前城市不再可约车城市列表中,传递合肥:340100

表单数据:

  1. lng = 117.201239
  2. lat = 31.856717
  3. name = 八一
  4. type = 1
  5. city_id = 340100

4.接口返回结果

  1. {
  2. {
  3. "code": 200,
  4. "data": [
  5. {
  6. "l_coach_id": "1",
  7. "s_coach_name": "庚心",
  8. "s_coach_imgurl": null,
  9. "s_coach_phone": "13003004023",
  10. "i_coach_group_id": "1",
  11. "s_school_name": "八一驾校",
  12. "s_coach_lesson_id": "1,2,3,4",
  13. "s_coach_lisence_id": "1,2",
  14. "s_coach_car_name": "桑塔纳",
  15. "s_coach_car_no": "12345645",
  16. "dc_coach_distance_x": "117.2043",
  17. "dc_coach_distance_y": "31.8546",
  18. "coach_student_distance": "357.0000",
  19. "i_coach_star": "4.0",
  20. "good_coach_star": "3",
  21. "i_service_count": "58",
  22. "i_success_count": "56",
  23. "s_coach_address": "安徽省合肥市蜀山区",
  24. "s_coach_place": "蜀山区八一驾校",
  25. "i_type": "1",
  26. "s_yh_name": null,
  27. "s_yh_zhanghao": null,
  28. "s_yh_huming": null,
  29. "order_receive_status": "1",
  30. "integrated_excellent": "146",
  31. "province_id": "0",
  32. "city_id": "420100",
  33. "area_id": null,
  34. "school_id": "1",
  35. "total_price": "190",
  36. "coach_star_count": "3",
  37. "addtime": "1437840000"
  38. },
  39. ...
参数 类型 描述
code int 状态码:200 --- 成功 其它 --- 异常

需要字段:s_coach_phone、s_school_name、coach_student_distance、total_price、coach_star_count

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注