If you want to show cities in certain rectangle this is the right tutorial for you. However you need to install PEAR and GeoNames package first since this script relies on GeoNames API.
You set coordinates for rectangle, language and number of cities in the array.