16th Jun 2013, 10:30 AM | #1 |
Active Warrior Registered Member War Room Member Join Date: 2012 Location: New York
Posts: 81
Thanks: 13
Thanked 16 Times in 12 Posts
|
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 |
17th Jun 2013, 04:09 AM | #2 |
Howdy War Room Member Join Date: 2008 Location: England
Posts: 679
Thanks: 101
Thanked 150 Times in 124 Posts
|
What are your sites coded in. php HTML5 javascript? I dont want to help then find out you want a WP plugin. |
17th Jun 2013, 05:15 AM | #3 |
Active Warrior Registered Member War Room Member Join Date: 2012 Location: New York
Posts: 81
Thanks: 13
Thanked 16 Times in 12 Posts
| |
17th Jun 2013, 11:06 AM | #4 |
Howdy War Room Member Join Date: 2008 Location: England
Posts: 679
Thanks: 101
Thanked 150 Times in 124 Posts
|
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. |
The Following User Says Thank You to Valdor Kiebach For This Useful Post: |
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
|
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 | |
The Following User Says Thank You to mrjosco For This Useful Post: |
18th Jun 2013, 12:54 AM | #6 | |
Active Warrior Registered Member War Room Member Join Date: 2012 Location: New York
Posts: 81
Thanks: 13
Thanked 16 Times in 12 Posts
|
So most mobile sites that offer directions do require a start point from the user then? I mean this isnt bad, somewhat standard? | |
18th Jun 2013, 12:54 AM | #7 | |
Active Warrior Registered Member War Room Member Join Date: 2012 Location: New York
Posts: 81
Thanks: 13
Thanked 16 Times in 12 Posts
|
Thanks ill have a look at that. | |
Bookmarks |
Tags |
map or directions, mobile |
| |