tribe_get_map_link() returning an invalid Google Map URL

Home Forums Calendar Products Events Calendar PRO tribe_get_map_link() returning an invalid Google Map URL

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1271115
    Xavier
    Guest

    Hi,

    I’m Using the free version of The Event Calendar version 4.4.4 and when I use the function tribe_get_map_link, it’s always returning a GMap link with my address but containing extra parameters. Those extra parameters make it impossible to find the address. Example with the MoMa address :

    tribe_get_map_link() returns https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=11+W+53rd+St+New+York+NY+10019 and it’s not finding the address

    But when I use only the q parameter in the URL : https://maps.google.com/maps?q=11+W+53rd+St+New+York+NY+10019 it’s working.

    I found the code that add the extra parameters, in /src/Tribe/Main.php l.2653, it’s static.

    I don’t know why it’s there, maybe for a previous google maps version with correct URL?
    Anyway, I just wanted to know if I’m doing something wrong using this function, or maybe I should use another one to retrieve the Google Map link?

    Thanks.

    #1271118
    Xavier
    Guest

    Nevermind, it’s working, I was just dumping my function value so the parameters weren’t correct

    #1271324
    Cliff
    Member

    Hi, Xavier.

    I’m glad it’s working again for you. Have a great rest of your week.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_get_map_link() returning an invalid Google Map URL’ is closed to new replies.