Discussion Forums  >  Maps, Device Location, Tracking

Replies: 14    Views: 66

Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
09/29/12 12:08 AM (11 years ago)

Driving directions reversed

Probably an easy solution for this. I have enabled driving directions on a map in my app but when Clicked it shows point A as start point and point B (which is current location of device) as destination point so the directions are running in reverse. Anyone had this problem? I can't understand as i have done this in another app and it works fine Thanks in advance
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
09/29/12 01:43 AM (11 years ago)
Hey mate how did you enable them..?
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
09/29/12 01:47 AM (11 years ago)
I follow Fred's guide at myskylla.com Fairly easy to do. Will probably rebuild and try again, just wish I noticed before i published it to Google Play.
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
09/29/12 01:49 AM (11 years ago)
ok...thankz..!
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/29/12 02:17 AM (11 years ago)
Yes Mr stuck you need to test the apps thoroughly before putting it on play store. I take no chances after i did once put one of my apps without testing. BTW i think you might have put the longitude in place of latitude and vice versa thats why you might be getting that error.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/29/12 02:21 AM (11 years ago)
Alan you can always unpublish the app to take it off the market and then again publish it when you add the new corrected version.
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
09/29/12 04:37 AM (11 years ago)
Hi. Thanks for response. When changing the code i did not change the latitude etc. I simply added the "tappedLocation.get" part to the code. I feel it may be something to do with Google maps update as it worked fine before in another app but after updating maps it also has same problem. Strange
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
09/30/12 02:26 AM (11 years ago)
Think i may have found the problem. I read the guide again and it appears there are 2 tmp.Latitude and tmp.Longitude in that line of code. I may have changed the wrong ones. Will try again when i get home from work.
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
09/30/12 02:26 AM (11 years ago)
Think i may have found the problem. I read the guide again and it appears there are 2 tmp.Latitude and tmp.Longitude in that line of code. I may have changed the wrong ones. Will try again when i get home from work.
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
09/30/12 02:27 AM (11 years ago)
Oops sorry for double post
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/30/12 02:28 AM (11 years ago)
Well keep us posted with how it goes. This bit of information will be really helpful for others.
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
09/30/12 02:45 AM (11 years ago)
Will update once i check. @Sandeep can you help with html problem?
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/30/12 04:18 AM (11 years ago)
What sort of html problem are you having? I can dont know much about it but i can give it a try.
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
10/05/12 10:09 AM (11 years ago)
Hi. Just to update. I have indeed changed the wrong set if tmp.Lattitude etc. I have changed the first rather than the 2nd ones. I have not recompiled yet but would assume that's what's causing reverse directions.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/05/12 10:44 AM (11 years ago)
So i was correct about that. Thanks for informing.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.