Google Maps, Location

i need a google maps extension. when i mark the departure location 1 and the destination location 1, when i change the departure location to 2 the location 1 clears itself and gets the location of the location 2.

For example.
Destination 1: United States, Origin 1: India.

after i change destination 1 with :indonesia the US destination will be deleted. and the same goes for starting point 1.

Try this extension :-