DrivingDirection does not show path for locations in India

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

DrivingDirection does not show path for locations in India

Postby brijeshthakur » Wed Jul 23, 2008 1:06 pm

[font=Times New Roman] [/font]
Hello..

I have downloaded the application "DrivingDirection".It works fine for USA locations.I am trying to get the path between two points for locations in India. But it is giving me the value of route is null. :( .

In The Code.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.   for (MapPoint current : route) // Here it is not going inside the Loop.Because route is null
  2.  
  3.   {
  4.  
  5.                                        
  6.  
  7. /* Transform current MapPoint's Lat/Lng
  8.  
  9.    * into corresponding point on canvas
  10.  
  11.    * using the pixelCalculator. */
  12.  
  13.                                        
  14.  
  15. if(current != null)
  16.  
  17. {
  18.  
  19.                                        
  20.  
  21.        
  22.  
  23.         MapPointToScreenCoords(current, screenCoords, pxC);
  24.  
  25.         /* Add point to path. */
  26.  
  27.         thePath.lineTo(screenCoords[0], screenCoords[1]);
  28.  
  29. }
  30.  
  31.  
Parsed in 0.030 seconds, using GeSHi 1.0.8.4



Can anybody please help me out.
Thanks in Advance.
brijeshthakur
Junior Developer
Junior Developer
 
Posts: 12
Joined: Wed Jul 23, 2008 12:36 pm
Location: Banglore,India

Top

Postby plusminus » Wed Jul 23, 2008 7:31 pm

Hello brijeshthakur,

1.) Check if GoogleMaps supports DrivingDirection in India at all: http://maps.google.com
2.) Did you try my implementation of the DrivingDirections :?: :
:arrow: http://www.anddev.org/route_-_improved_ ... t1892.html

It works fine in US and in Germany.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby brijeshthakur » Thu Jul 24, 2008 10:00 am

Hi PlusMinus

Thanks for your quick response.

I just came to know that Google MAP API is not supporting for india :( .

anyway thanks a lot.
And regarding your modified DrivingDirection application giving me "Operation time-out error".

I have checked the Log. it couldn't be connected to

INFO/Connecting...(611):
Connecting to.."http://maps.google.com/maps/nav?hl=US&gl=US&output=js&oe=utf8&q=from%3A37.788081%2C-122.415847+to%3A39.766325%2C+-104.989471+to%3A40.751418%2C-74.009399&key=ABQIAAAAQQcZviIzmIqVxEaMT12eqxT4XTUArVw0hfaJt-dPnDdoJ_2yihSOjsppgL4ku_kEd5DDd3kEV_K2AQ"



by the way. I got Google APPID from http://code.google.com/apis/maps/signup.html.

by giving "http://maps.google.com/map/nav" in the URL textbox.

Do Let me know where I am wrong.

Thanks in Advance.

Regards,
Brijesh.
brijeshthakur
Junior Developer
Junior Developer
 
Posts: 12
Joined: Wed Jul 23, 2008 12:36 pm
Location: Banglore,India

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest