If you’re interested in visualizing users by their location on your Moodle site, here’s a cool way to showcase user location on any Moodle course or even the front page. Similar to the online users block which shows who is active more recently,
this block uses the geographical information from users profiles to display the locations of online users on an OpenStreetMap or Google map
The block was recently updated for Moodle 2.5, is created and maintained by Alex Little, and is available from the addon database at https://moodle.org/plugins/view.php?plugin=block_online_users_map.