Solved

Launch iPhone Maps App from link on website

Posted on 2011-09-26
2
445 Views
Last Modified: 2012-05-12
I am creating a webpage that contains several street addresses. If a viewer wants to get driving directions, they'll click on the link and will be directed to either Google Maps, Mapquest, or Rand McNally's website.

Two things I need is that when they click on the link and takes them to the driving directions page, the driving directions page contains the specific address.  

The second is at the same time, if a user is viewing the page from an iPhone or iPad, how do I automatically launch the Maps App, from the same link, that it too will contain the specific address?  Can this be done, and if so, how?

Thank you for your suggestions and assistance.
0
Comment
Question by:arendt73
2 Comments
 
LVL 4

Expert Comment

by:mustang83
ID: 36600780
I'd say you cannot create a link to google maps which populated just the travel to location.

what you could do on your website is create a form which asks for there postcode. Then will a little bit of JavaScript you can generate the correct URL which populates the travel from location with their postcode.

to get the location URL go to google maps and go through the process of generating the directions, once there generated copy the URL. you should see where your JavaScript should place the postcode.

in regards to the iPad/iPhone link to maps app, it does it automatically. you cannot do anything in HTML that tells a device to open maps app.

hope this helps,
0
 
LVL 3

Accepted Solution

by:
anjos earned 500 total points
ID: 36601726
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
using web browser with BING 40 86
Library to convert HTML to PDF. 8 45
contractual requirements for app hosting 3 26
Birthdays 3 0
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Read about why website design really matters in today's demanding market.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now