With the following code you can embed a live google map of where your listeners are located in your own website. A very cool feature.
See Demo Here
There are a couple of things that need to modified in the code below to enable this to work :
1. Google Maps API Key.
Register for a google maps API key from here : Sign Up for the Google Maps API - Google Maps API - Google Code
Replace the key= field in the html with your key otherwise it wont work.
2. Server URL
You must replace the server url (listed below as shoutcast.internet-radio.com) with your particular servers URL (found in the welcome email).
3. Replace the USERNAMEHERE with your username.
4. Modify the 'style="width: 1030px; height: 680px"' dimensions to fit your page.
This should enable you to have a smart looking map of your live listeners on your website. The accuracy of the map is to city level too. 8)
The previous Google Maps API v2 keys are now no longer available.
You can however obtain an API key here:
https://developers.google.com/maps/documentation/javascript/tutorial#api_key
See Demo Here
There are a couple of things that need to modified in the code below to enable this to work :
1. Google Maps API Key.
Register for a google maps API key from here : Sign Up for the Google Maps API - Google Maps API - Google Code
Replace the key= field in the html with your key otherwise it wont work.
2. Server URL
You must replace the server url (listed below as shoutcast.internet-radio.com) with your particular servers URL (found in the welcome email).
3. Replace the USERNAMEHERE with your username.
4. Modify the 'style="width: 1030px; height: 680px"' dimensions to fit your page.
HTML:
<html>
<head>
</head>
<body>
<div id="cc_google_maps" style="width: 1030px; height: 680px"></div>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA879TPvre-L5Fh_lmVFINJxT-4l_MyznJ06qBtn-fiJT7vPkvpRQhTEpvNYfckzp-A-2Fux6cd4NlLw" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="http://shoutcast.internet-radio.com/system/googlemaps.js"></script>
<script language="javascript" type="text/javascript" src="http://shoutcast.internet-radio.com/js.php/USERNAMEHERE/googlemaps/rnd0"></script>
<script type="text/javascript">
if (!window.onload) window.onload = cc_googlemaps_initialize;
</script>
</body>
</html>
UPDATE MAY 2014
The previous Google Maps API v2 keys are now no longer available.
You can however obtain an API key here:
https://developers.google.com/maps/documentation/javascript/tutorial#api_key