RealMapController.java
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.bsth.controller.realcontrol;
import com.bsth.service.realcontrol.RealMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
* 线调 地图监控相关
* Created by panzhao on 2016/11/23.
*/
@RestController
@RequestMapping("realMap")
public class RealMapController {
@Autowired
RealMapService realMapService;
/**
* 根据线路获取站点路由及空间数据
*/
@RequestMapping(value = "/stationSpatialData")
public Map<String, Object> stationSpatialData(@RequestParam String idx){
return realMapService.stationSpatialData(idx);
}
/**
* 停车场
* @return
*/
@RequestMapping(value = "/carParkSpatialData")
public Map<String, Object> carParkSpatialData(){
return realMapService.carParkSpatialData();
}
}