Having trouble locating Japan -- Please help

Discussion in 'Google API' started by JC007, Aug 3, 2006.

  1. #1
    Hi I have this code below, it works for every country, but not Japan..
    does any one knows why?

    Thanks

    var map = null;
    var geocoder = null;

    function load() {
    if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map"));
    //map.setCenter(new GLatLng(37.4419, -122.1419), 2);
    geocoder = new GClientGeocoder();
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    }
    }

    function showAddress(address) {
    if (geocoder) {
    geocoder.getLatLng(
    address,
    function(point) {
    if (!point) {
    alert(address + " not found");
    } else {
    map.setCenter(point, 2);
    var marker = new GMarker(point);
    map.addOverlay(marker);
    marker.openInfoWindowHtml(address);
    }
    }
    );
    }
    }
    //]]>
    </script>
    </head>

    <body onload="load()" onunload="GUnload()">
    <form action="#" onsubmit="showAddress(this.address.value); return false">
    <p>
    <input type="text" size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" />
    <input type="submit" value="Go!" />
    </p>
    <div id="map" style="width: 1200px; height: 700px"></div>
    </form>
    </body>
    </html>
     
    JC007, Aug 3, 2006 IP
  2. Farkas

    Farkas Well-Known Member

    Messages:
    389
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Japan isn't yet supported (geocoder).
    Probably because of the japanese letters.

    Don't know if if it would work using "tokyo, japan" in japanase letters.
     
    Farkas, Aug 13, 2006 IP
  3. JC007

    JC007 Active Member

    Messages:
    1,066
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Well, that still does not work :(
     
    JC007, Aug 17, 2006 IP