Niezdefiniowana nie jest funkcją, Geolokalizacja Google

Próbuję wyświetlić adres jako znacznik na elemencie mapy google na mojej stronie.

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=my_key&sensor=true&callback=initialize"></script>
<script language="javascript" type="text/javascript">
    navigator.geolocation.getCurrentPosition(foundLocation, noLocation);
    var latitude;
    var longitude;
    var map;
    function foundLocation(position) {
        latitude = position.coords.latitude;
        longitude = position.coords.longitude;
    }
    function noLocation() {
        //Do something here in the case that no location is found, or user denies access
    }
    function initialize() {
        var mapOptions = {
            zoom: 8,
            center: new google.maps.LatLng(latitude, longitude),
            mapTypeId: google.maps.MapTypeId.ROADMAP
        }
        map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
        //setMarkers();
    }
    function addMarker(location) {
        var marker = new google.maps.Marker({
            position: location,
            map: map
        });
        markersArray.push(marker);
    }
</script>


<span id="ctl00_ContentPlaceHolder1_lblGeneratedScript"><script language="javascript"  type="text/javascript">
    var geocoder = new google.maps.Geocoder();
    geocoder.geocode( { 'address': "123 Test Dr."}, function(results, status) {
        if (status == google.maps.GeocoderStatus.OK) {
            addMarker(results[0].geometry.location);
        } else {
            alert("Geocode failed! Reason: " + status);
        }
    });
</script>
</span>

Ale na tej linii

var geocoder = new google.maps.Geocoder();

Otrzymuję nieprzechwycony błąd typu „Niezdefiniowany nie jest funkcją”.

Pominąłem mój klucz API w tym wyborze kodu, a także zmieniłem adres z tego, czego używam do testowania. (mój adres domowy)

Ponadto używam programu ASP.NET do generowania skryptu w znacznikach zakresu.

questionAnswers(1)

yourAnswerToTheQuestion