RealMapController.java 1.05 KB
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();
    }
}