Hi pamela- thanks for your anwser. If I visit the web "http://maps.google.com/maps?hl=en&tab=wl",then enter Tokyo and Osaka,press the button 'Get Derections',it can obtain driving directions results and display them on a map. And from the URL you give me,driving directions are not supported in China too.
I have a demo for China. When the API key was generated,it give me a code. "<script src="http://maps.google.com/maps? file=api&v=2.x&key=ABQIAAAANOXahGRY5YPnq8m_KUt5XBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTD7V1tmCs1jZ-0KVMQ1B6CvFigEQ" type="text/javascript"></script>" I just only alter "maps.google.com" to "ditu.google.cn",then I can use the function"GDirections.load(query)" and get the correct result if I input the name of the city in China. whether it has a similar way just like 'China' to solve the problem in Japan? thank you! On 10月23日, 下午5时06分, "pamela (Google Employee)" <[EMAIL PROTECTED]> wrote: > Hi Genimihe- > > Currently driving directions are not supported in Japan, as the only > mode of travel for directions in Japan on Google Maps is transit, and > transit directions are not yet available in the API. You can see more > info on per-country coverage > here:http://gmaps-samples.googlecode.com/svn/trunk/mapcoverage_filtered.html > > If you're a Japanese developer, you may feel more comfortable posting > questions in Japanese in the Google Maps API Japan forum. > > - pamela > > On Oct 23, 4:15 pm, genimihe <[EMAIL PROTECTED]> wrote: > > > > > 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_ufC3CFXhHIE1Nvw > > kxTD7V1tmCs1jZ-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 -~----------~----~----~----~------~----~------~--~---
