Solved

Launch iPhone Maps App from link on website

Posted on 2011-09-26
2
468 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

831 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