Jump to content

How can I make my website to use native GPS or Google Maps for directions on a m


simplysandeep

Recommended Posts

Hi

 

I have a website that is optimized for mobile.

 

Now I would like to have a function/feature that can use the phone's GPS or google maps and give directions to my business place from the users current location.

 

Other thing is: when users go to contact page, they will see some phone numbers. When user touches a phone number I want the phone dialer to open with the number, & ready to be dialed.

 

Can some one give me suggestions or references...

 

TYI.

Link to comment
Share on other sites

Now I would like to have a function/feature that can use the phone's GPS or google maps and give directions to my business place from the users current location.

Use the geolocation API. Works in most browsers.

That can give you a latitude/longitude pair you can do whatever you want with.

 

Other thing is: when users go to contact page, they will see some phone numbers. When user touches a phone number I want the phone dialer to open with the number, & ready to be dialed.

Most smartphones already do that, but you can use the proposed tel: URI scheme.

123-456-7890

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.