GeoDataController.java 891 Bytes
package com.bsth.controller.geo_data;

import com.bsth.service.geo_data.GeoDataService;
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 2017/12/7.
 */
@RestController
@RequestMapping("/_geo_data")
public class GeoDataController {

    @Autowired
    GeoDataService geoDataService;

    @RequestMapping("findGeoStations")
    public Map<String, Object> findGeoStations(@RequestParam String lineCode){
        return geoDataService.findGeoStations(lineCode);
    }


    @RequestMapping("findGeoRoad")
    public Map<String, Object> findGeoRoad(@RequestParam String lineCode){
        return geoDataService.findGeoRoad(lineCode);
    }
}