response.tNearestEdge = new TNearestEdge();
// if no edge is near the position, just send an empty tNearestEdge
if (closestEdge != null) {
response.tNearestEdge.edgePosition = new TEdgePosition();
response.tNearestEdge.edgePosition.edgeID =
closestEdge.getLeft().getId();
response.tNearestEdge.edgePosition.distance =
closestEdge.getRight();
}