Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #873104

    Dear Support,

    Any idea on how I can create a link–either with the maps widget or with a regular link–that is linked to an address and allows users to open it either in Google Maps or Apple Maps?

    Thanks in advance for the assistance.

    Cheers,

    Tim

    #873971

    Hey hypergolica,

    Thank you for using Enfold.

    Go to google maps, find the address then just copy the url. Use the url as the value of the href attribute.

    <a href="URL HERE" target="_blank">Address</a>
    

    Best regards,
    Ismael

    #874081

    Ismael,
    Hmmmm, I thought I had tried that… but I’ll try again.
    Many thanks!
    Tim

    #874429

    Hi Tim,

    Great, let us know how you get on with it.

    Best regards,
    Rikard

    #874567

    Hi Rikard and Ismael,
    I’ve tested adding the link as suggested and realized that my original question was incomplete: yes, adding the link opens Maps, but, it doesn’t offer directions to that location from the user’s current location. I’ve since investigated on Google’s Maps URL page and, despite adding the parameter “origin=current+location”, I’m getting erroneous results. Some posts on other forums mention a bug in Google Maps, but those date back to May, so it seems strange that the bug would still exist.

    So, if anyone knows how to create a URL that would open an address in Maps with starting point = current location and end point = specific address, I’d be grateful for the help.

    In the meantime, I’ll continue to investigate, and if I find the answer, I’ll report back.

    Cheers,

    Tim

    #875021

    Hi,

    This thread may help.

    // https://stackoverflow.com/questions/15042283/current-location-google-maps-link-to-directions/22330384

    
    //Spaces can be changed to "+" or encoded as "%20".
    
    //Linking to a location (No directions)
    https://www.google.com/maps?q=760+West+Genesee+Street+Syracuse+NY+13204
    
    //No starting point (User input required to generate directions).
    https://www.google.com/maps?daddr=760+West+Genesee+Street+Syracuse+NY+13204
    
    //With a set location as starting point (Automatically generates directions with no user input required).
    https://www.google.com/maps?saddr=760+West+Genesee+Street+Syracuse+NY+13204&daddr=314+Avery+Avenue+Syracuse+NY+13204
    
    //With "My Location" as starting point (Automatically generates directions with no user input required).
    https://www.google.com/maps?saddr=My+Location&daddr=760+West+Genesee+Street+Syracuse+NY+13204
    
    //Current Location to Latitude and Longitude
    https://www.google.com/maps?saddr=My+Location&daddr=43.12345,-76.12345
    
    //Query search of a Latitude and Longitude
    //Also shows setting a default zoom level
    https://www.google.com/maps?ll=43.12345,-76.12345&q=food&z=14
    
    //String search as destination
    https://www.google.com/maps?saddr=My+Location&daddr=Pinckney+Hugo+Group

    Best regards,
    Ismael

    #875722

    Hi Ismael,

    Many thanks. It looks like this is the updated list:

    I’m having success with some of the suggestions, specifically, if I want a current location to a specific address, I’m using this:

    https://www.google.com/maps/dir/Current+Location/760+West+Genesee+Street+Syracuse+NY+13204

    Thanks again!

    Cheers,

    Tim

    #875961

    Hi,

    Glad it helped. Thank you for the link. Please feel free to open a new thread if you need anything else. :)

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Create Link from Maps Widget to Google Maps or Apple Maps on Mobile?’ is closed to new replies.