Click anywhere on the Map to find out which of the five Markers is the nearest to that spot. You can also drag and drop any Marker to a new position.

Code

Examples demonstrates how to calculate distance between two geo points and employs simple marker drag and drop implementation.