Andres Tame
Posts: 0
Joined: Sat Sep 07, 2013 11:46 pm

How do I make an app that gives me directions from my location and takes me to a unchangeable location

I am using the tutorial on how to make a directions app but I need it to use my current location and take me to my business.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How do I make an app that gives me directions from my location and takes me to a unchangeable location

Hello - for create such an app, you will need:

ul
lito use a Geolocation service/li

  • get current coordinates and save them;

  • define the destination adress (there are several approaches for a static adress: you can store this data in a database or define it as a local storage);

    lithen you need to pass these coordinates (current and destination) to the Google Directions service -- as variables for sourceAddress and destinationAddress in this part/li

    /ul

Andres Tame
Posts: 0
Joined: Sat Sep 07, 2013 11:46 pm

How do I make an app that gives me directions from my location and takes me to a unchangeable location

Yes. I know that but how do I, using the code:

var sourceAddress = Appery("inputSource").val();
var destinationAddress = Appery("inputDestination").val();
var map = Appery("directionsMap").gmap;
displayDirections(sourceAddress, destinationAddress, map);

get the Latitude and Longitude from the storage variables? Meaning, what do I replace the "var sourceAddress = Appery("inputSource").val();" with to
read the local variable and what do I replace the "var destinationAddress = Appery("inputDestination").val();" with to use a set destination? Does it read the address as a String and pass that to google or what?

Grant Smith
Posts: 0
Joined: Fri Jan 03, 2014 11:13 am

How do I make an app that gives me directions from my location and takes me to a unchangeable location

I have the same question and the answers given don't really help.

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

How do I make an app that gives me directions from my location and takes me to a unchangeable location

Hi Grant.
I believe Illya gives you good direction on how to build your application. What specific question do you have?

MobiCycle UK
Posts: 0
Joined: Wed Jan 22, 2014 3:02 pm

How do I make an app that gives me directions from my location and takes me to a unchangeable location

Can you please answer the question with detailed step by step instructions?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How do I make an app that gives me directions from my location and takes me to a unchangeable location

Hello! Could you clarify what is specific question you have?

MobiCycle UK
Posts: 0
Joined: Wed Jan 22, 2014 3:02 pm

How do I make an app that gives me directions from my location and takes me to a unchangeable location

What are the step by step instruction for making an app that gives directions from a given location to a unchangeable location?

Return to “Issues”