Asmaa AlHammadi
Posts: 0
Joined: Tue May 12, 2015 12:56 pm

directions between two places

Hello,

I found a java script that shows directions on the map

var sourceAddress = Apperyio("from").val();
var destinationAddress = Apperyio("to").val();
displayDirections(sourceAddress, destinationAddress, map);

from this tutorial https://devcenter.appery.io/tutorials...

but I stored the two location in variables by set storage and then set property for the map
two variables for current location ( longitude and latitude) and two for the second location (longitude and latitude)
I want to show the directions between the two places

I changed the code to
var sourceAddress = Apperyio.storage.storageVariable.get("$['temp']['temp2']").val();
var destinationAddress = Apperyio.storage.storageVariable.get("$['markerlat']['markerlng']").val();
displayDirections(sourceAddress, destinationAddress, map);

but it doesnt work with me
can someone help me pls, because I need it for my project

thank you,
asmaa

Asmaa AlHammadi
Posts: 0
Joined: Tue May 12, 2015 12:56 pm

directions between two places

this link is same tutorial https://devcenter.appery.io/tutorials
I need to show directions for data that stored in variables
not for input

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

directions between two places

Asmaa, let's continue in one thread https://getsatisfaction.com/apperyio/...

Asmaa AlHammadi
Posts: 0
Joined: Tue May 12, 2015 12:56 pm

directions between two places

sorry for that
because I need the answer as soon as possible

and thank you

Return to “Issues”