Can I make Apple Maps links for Apple Devices?

Home Forums Calendar Products Events Calendar PRO Can I make Apple Maps links for Apple Devices?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #950170
    Joel
    Participant

    Is there a way to get Apple Maps link formatting for iPhones, iPads and Apple Computers?

    I want my website to be accessed mainly on phones, but if half of them are being accessed on Apple iPhones, and those users don’t have Google Maps installed, then it is complicated.

    The current Event Calendar’s Google Map link clicks to a Google’s website on the iPhone, and even Google has a popup saying “This page would be best viewed in our Google Maps application. Would you like to download it?”

    I would prefer the option for my website visitors, as for now, I am manually entering in the Google Map and Apple Maps links, while disabling The Event Calendar’s built-in Google linking (though I keep the Google map on the listings).

    #950217
    George
    Participant

    Hey Joel,

    This is an interesting question, and I see why you’d want to enable this.

    There’s good news and bad news here – the good news is that this is definitely technically possible to pull off. The bad-ish news is that it would require a decent amount of custom coding, which is outside the scope of the support we can provide here.

    Despite that, we’re happy to help with some ideas and basic starter examples before handing the reins fully over to you.

    For example, one of the easiest ways to do this would be to overwrite the existing Google Maps link completely using our tribe_get_map_link_html() filter. I wrote a filter and function for you demonstrating this in a Gist here → https://gist.github.com/momnt/fa1fff0c0622e947808c

    That should help you get started immensely on this – for further customization here, or filtering of the map links, or to only do this on specific devices, or to simply add this to the existing Google links instead of wholly replacing them, you’ll need to take the reins, but I hope this gives you a great head start!

    Let us know if it helps!

    Cheers,
    George

    #983902
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Can I make Apple Maps links for Apple Devices?’ is closed to new replies.