Please find below line of codes to solve your problem of getting address field populated with address by moving map and also if fill any address in address field it should reflect on map. You will get same functionality as displayed in screenshot.
Now in below image all of your required code are given for your reference.