Discussion Forums  >  Maps, Device Location, Tracking

Replies: 6    Views: 97

Nodderz
Aspiring developer
Profile
Posts: 38
Reg: Dec 02, 2012
Adelaide
2,230
03/08/13 04:07 PM (11 years ago)

Adding Driving Directions without re-entering data on BT?

Hey guys, I think that in order to finally pass my review for my app I need to add Driving directions. Is there a way this can be done by implementing code without having remove and re-add over 500 locations on BT? thanks for your help!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/08/13 04:28 PM (11 years ago)
What I would do for this one time app is... (and it will require some fooling around and testing) is to snoop around line 568 of BT_screen_map.m and see if you can't just 'force' the app to provide directions, as if each and every entry had requested it. It's either that, or search/replace your BT Database for every location and change the string. Cheers! -- Smug
 
Nodderz
Aspiring developer
Profile
Posts: 38
Reg: Dec 02, 2012
Adelaide
2,230
like
03/08/13 05:12 PM (11 years ago)
Ew that doesnt sound fun ahaha. Ahwell, rejected twice gotta push through!! Thanks as always smug
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/08/13 05:27 PM (11 years ago)
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
03/08/13 05:27 PM (11 years ago)
Just do what Smug said, I would recommend. Code seems like a daunting horror decending from the dark days of the warewolves, and complex coding is like this. However, to cherry pick out bits of code is not difficult and it makes a lot of sense!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/08/13 06:03 PM (11 years ago)
Hmm... thought I had it... Cheers! -- Smug
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
03/08/13 09:08 PM (11 years ago)
Another thing you could try is to copy all your locations (from your config.txt). And paste them into a text editor. Use the find/replace function of the text editor (I use text wrangler) to change all the JSON you want quickly. Then take the resulting text document and use it to feed the map by either using a JSON Snippet plugin, or using a dataURL for the map screen. If you need elaboration, let me know. -Chris
 

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.