Split: "Get Directions" button to Open Google Maps Link
This topic contains 46 replies, has 3 voices, and was last updated by Giri 8 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
July 31, 2016 at 11:38 am #237531
cool addon
but found lil problem with iton some locations it dont show directions
al the time it goes to one location if he dont find
but it still shows the pinsee image
it seems to do this when he cant find the name in maps, however it should follow adress and coordinates and not the name
July 31, 2016 at 12:22 pm #237534ok i did some testing with the coding and i found the problem
on the basic get location button it seems to only go to the location of the latest added listing
the button from this addon works good if you use the first one with only the coordinates
if you add the name, and the name does not exist in google maps then it wont work
it will not go to the coordinatesonly things that google can find will work
like address for example
function geodirectory_detail_page_google_map_link() { global $post, $preview; if ( !$preview && !empty( $post->post_latitude ) && !empty( $post->post_longitude ) ) { if (isset($post->post_address) && $post->post_address) { $sd_address .= $post->post_address; } if (isset($post->post_city) && $post->post_city) { $sd_address .= '+ ' . $post->post_city; } if (isset($post->post_region) && $post->post_region) { $sd_address .= '+ ' . $post->post_region; } if (isset($post->post_country) && $post->post_country) { $sd_address .= '+ ' . $post->post_country; } $maps_url = add_query_arg( array( 'q' => $sd_address, 'sll' => $post->post_latitude . ',' . $post->post_longitude, ), 'http://maps.google.com/' );
July 31, 2016 at 1:08 pm #237566ok i put the 2 last listings on concept and then the directions goes to the adress 2 down
so i realy think something is wrong here
please help me to fix thisAugust 1, 2016 at 10:00 am #238061sylvester vader,
I’m not sure what you are trying to achieve. But you seems like messing with the code.
That Get directions link is created for the map pinpoint on the detail page.
Its NOT created for get direction A to B type map points.
August 1, 2016 at 2:06 pm #238223i know thats the problem
i did not touch the code but somehow when i click on get directions it doesnt show directions to the map pinpoint
instead it goes to the pinpoint location of the latest listing that i havethis happend after an listing import i did
but all the rest works fine
only directions not
🙁
August 1, 2016 at 2:08 pm #238225Post your wp admin login details in a private reply. I’ll take a look.
Also post the listing url where you have the problem
August 2, 2016 at 11:36 am #239000This reply has been marked as private.August 2, 2016 at 12:36 pm #239014i found out that it only gives wrong direction in the netherlands
my listings in other countries work goodatm im checking if i can find any difrence between the netherland listings and for example spain
i will find it
if it works in spain then it should also work in the netherlands
last week i also had something like this
then it did not show any listings in the map
reason was that one of the listings had 52.783.070 in coordinates in stead of 52.783070
the extra point made it not work for the complete mapim hoping its something like this again
August 2, 2016 at 12:42 pm #239052Could you provide correct admin login details?
August 2, 2016 at 1:25 pm #239070This reply has been marked as private.August 3, 2016 at 9:18 am #239662you found something?
can one of you tell me where the script part is for the get direction button
then i can see what info it searches and maybe find out why it dont work for meAugust 3, 2016 at 9:23 am #239663Hi there, I have missed this thread yesterday. Let me check on that issue now. Sorry for the delay
August 3, 2016 at 9:24 am #239664I’m still unable to login to your site. You might have Geo IP restrictions
August 3, 2016 at 10:14 am #239697This reply has been marked as private.August 3, 2016 at 10:20 am #239703Hi there, please test the login credentials before posting here.
Me and Kc tried to login. Your login credentials not working for both of us.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket