Solved

Launch iPhone Maps App from link on website

Posted on 2011-09-26
2
486 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

688 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