class RestController {

    @RequestMapping(value = INTERSECTION_URI, method = RequestMethod.GET)
    public @ResponseBody Map<String, Object> intersection(@RequestParam String crossStreetOne, @RequestParam String crossStreetTwo,
            @RequestParam String borough, @RequestParam(required = false) String boroughCrossStreetTwo,
            @RequestParam(required = false) String compassDirection)
    {
        logger.debug(
                "intersection[crossStreetOne='{}', crossStreetTwo='{}', borough='{}', boroughCrossStreetTwo='{}', compassDirection='{}']",
                crossStreetOne, crossStreetTwo, borough, boroughCrossStreetTwo, compassDirection);
        Map<String, Object> intersectionMap = new HashMap<String, Object>();
        intersectionMap.put(INTERSECTION_OBJ, this.geosupportService.callFunction2(crossStreetOne, borough,
                crossStreetTwo, boroughCrossStreetTwo, compassDirection));
        return intersectionMap;
    }

}