use /getpos or use f3 to bring up coords either work. /getpos is whole numbers only which makes it easier.
If its a town already made do /rg I (town name) and at the end of the town info, the cords will be there