Move the Openlayers Geocoder Pointers – Stack Overflow in Spanish

I'm trying to move the pointers created by the geocoder open layers, but I have not been able to do it yet.
The idea is to do like Google maps as you enter two directions and create a trace between the two points (A and B) (until then everything is perfect).
The problem is that I want to move these two points (A and B) afterwards and that I go to the addresses. Could someone give me an example? thank you so much