Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 16th Jun 2013, 10:30 AM   #1
Active Warrior
Registered Member
War Room Member
 
webss's Avatar
 
Join Date: 2012
Location: New York
Posts: 81
Thanks: 13
Thanked 16 Times in 12 Posts
Default
Map/Directions Help for Mobile
Share on: 
fb share twitter share gplus share more share

Need a little insight on this guys. Im a bit lost with maps and mobile and wanting to know if im doing it correct or is there a more advanced way that's easier for the user.

Currently on my mobile sites I have directions, which pulls up a map of the biz. User enters their starting location, either address or zip code and then get turn by turn directions using maps.

Thats all well and good, but what happens if they dont know their location?
Maybe im missing something. To me it seems if they want directions then their current location is automatically entered as start point for them and it would go to a map with directions.

So being a bit confused and lost I was looking for something to do this and just got more lost. I saw a few scripts being used that did use user location for stuff, nothing exactly what I wanted though.
Then I read something about doing so and privacy issues. So now im lost.

Bottom line. What is the best way, the current standard when a user clicks for directions on my mobile site to get them to me?

Thanks for any help
webss is offline  
Unread 17th Jun 2013, 04:09 AM   #2
Howdy
War Room Member
 
Valdor Kiebach's Avatar
 
Join Date: 2008
Location: England
Posts: 679
Thanks: 101
Thanked 150 Times in 124 Posts
Default
Re: Map/Directions Help for Mobile
Share on: 
fb share twitter share gplus share more share

What are your sites coded in. php HTML5 javascript?

I dont want to help then find out you want a WP plugin.
Valdor Kiebach is offline  
Unread 17th Jun 2013, 05:15 AM   #3
Active Warrior
Registered Member
War Room Member
 
webss's Avatar
 
Join Date: 2012
Location: New York
Posts: 81
Thanks: 13
Thanked 16 Times in 12 Posts
Default
Re: Map/Directions Help for Mobile
Share on: 
fb share twitter share gplus share more share

Originally Posted by Valdor Kiebach View Post

What are your sites coded in. php HTML5 javascript?
Yes.
Not wp.

Thanks for any insight on it
webss is offline  
Unread 17th Jun 2013, 11:06 AM   #4
Howdy
War Room Member
 
Valdor Kiebach's Avatar
 
Join Date: 2008
Location: England
Posts: 679
Thanks: 101
Thanked 150 Times in 124 Posts
Default
Re: Map/Directions Help for Mobile
Share on: 
fb share twitter share gplus share more share

I am not sure how you would get a users address or zip code if they are standing in a street and any geolocation will depend on the users device capabilities.

This might help anyway:
Visitor’s zip code using HTML5 geolocation & Google Maps API | Petar Strinic

Then just store the result in a variable and use this for the start location for your directions routine.
Valdor Kiebach is offline  
The Following User Says Thank You to Valdor Kiebach For This Useful Post:
Unread 17th Jun 2013, 01:55 PM   #5
HyperActive Warrior
War Room Member
 
Join Date: 2011
Location: USA
Posts: 209
Thanks: 106
Thanked 99 Times in 49 Posts
Default
Re: Map/Directions Help for Mobile
Share on: 
fb share twitter share gplus share more share

When you use the form where they enter their location, it just prefills that into the google URL. Instead, replace that form data with "my+location" (that portion of the code in the link should read "saddr=my+location"

This will open a google maps app (If they have it) or it will open google directions. They will get a prompt asking if they want to share their location. If they say yes, then it will find their location with GPS and give them turn by turn navigation.

I have used this on multiple sites and tested it on various different phones. No issues to date.

Vintage and Retro Shirts from Vinretro
mrjosco is offline  
The Following User Says Thank You to mrjosco For This Useful Post:
Unread 18th Jun 2013, 12:54 AM   #6
Active Warrior
Registered Member
War Room Member
 
webss's Avatar
 
Join Date: 2012
Location: New York
Posts: 81
Thanks: 13
Thanked 16 Times in 12 Posts
Default
Re: Map/Directions Help for Mobile
Share on: 
fb share twitter share gplus share more share

Originally Posted by mrjosco View Post

When you use the form where they enter their location, it just prefills that into the google URL. Instead, replace that form data with "my+location" (that portion of the code in the link should read "saddr=my+location"

This will open a google maps app (If they have it) or it will open google directions. They will get a prompt asking if they want to share their location. If they say yes, then it will find their location with GPS and give them turn by turn navigation.

I have used this on multiple sites and tested it on various different phones. No issues to date.
Thank you. I will try this and see how it goes. Just trying to make it easier for the users. Im sure most do know there starting point and some can figure it out but figured some may be lost or need it real easy to do.

So most mobile sites that offer directions do require a start point from the user then? I mean this isnt bad, somewhat standard?
webss is offline  
Unread 18th Jun 2013, 12:54 AM   #7
Active Warrior
Registered Member
War Room Member
 
webss's Avatar
 
Join Date: 2012
Location: New York
Posts: 81
Thanks: 13
Thanked 16 Times in 12 Posts
Default
Re: Map/Directions Help for Mobile
Share on: 
fb share twitter share gplus share more share

Originally Posted by Valdor Kiebach View Post

I am not sure how you would get a users address or zip code if they are standing in a street and any geolocation will depend on the users device capabilities.

This might help anyway:
Visitor’s zip code using HTML5 geolocation & Google Maps API | Petar Strinic

Then just store the result in a variable and use this for the start location for your directions routine.

Thanks ill have a look at that.
webss is offline  
Closed Thread


Bookmarks

Tags
map or directions, mobile


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 07:00 PM.