    start_lon = startMarker.getLngLat().lng;
    start_lat = startMarker.getLngLat().lat;
  } else {
    end_lon = endMarker.getLngLat().lng;
    end_lat = endMarker.getLngLat().lat;
  }
  if ((start_set == 'Y') && (end_set == 'Y')) {
    ghRouting.clearPoints();
    ghRouting.addPoint(new GHInput(start_lat, start_lon));
    ghRouting.addPoint(new GHInput(end_lat, end_lon));
    ghRouting.doRequest()
      .then(function(json) {
        console.log(json);
        var mapLayer = map.getLayer('route');
      