I'm sorry for my poor English.
In Japan,I want to obtain driving directions results and display them
on a map in my web.
In example,I know I can use the function"GDirections.load(query)".So,I
maked a demo.
if the address what I query is in America it can be correct to get the
result.but if the address is in Japan,it can't get the result.

I know googlemap include the data of Japan.
How can I complete the issue?
Can I use other Class to complete the issue?

Thank you!

this is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";  xmlns:v="urn:schemas-
microsoft-com:vml">
  <head>
    <title>Google Maps JavaScript API Example: Simple Directions</
title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/
>
    <script src="http://maps.google.com/maps?
file=api&v=2.x&key=ABQIAAAANOXahGRY5YPnq8m_KUt5XBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTD7V1tmCs1jZ-0KVMQ1B6CvFigEQ"
      type="text/javascript"></script>
    <script type="text/javascript">
        // Create a directions object and register a map and DIV to hold the
    // resulting computed directions

    var map;
    var directionsPanel;
    var directions;

    function initialize() {
      map = new GMap2(document.getElementById("map_canvas"));
      map.addControl(new GSmallMapControl());
      directionsPanel = document.getElementById("route");
      directions = new GDirections(map, directionsPanel);
      directions.load("from: Tokyo to: Osaka");
//    directions.load("from: 東京 to: 大阪");
//    directions.load("from: 35.668554,139.824316 to:
34.686297,135.519661");
    }
    </script>
  </head>

  <body onload="initialize()">
    <div id="map_canvas" style="width: 70%; height: 480px; float:left;
border: 1px solid black;"></div>
    <div id="route" style="width: 25%; height:480px; float:right;
border; 1px solid black;"></div>
    <br/>
  </body>
</html>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to