Support » Plugin: GEO my WordPress » directions going to wrong place

  • Resolved kevin heath


    There is an issue with some directions – particularly to places off the beaten track.

    I assume that the plugin is passing an actual address rather than the lat/long to google for directions. This means that google will take a best guess at where you want to go rather than to the actual place.

    This means you can get directions to places that are miles away and in the wrong direction compared to the place that you have marked.

    I’m going to try and hunt through the code and change what is sent to google directions to pass the actual lat-long co-ordinates but this should be an option in the plugin to help get more accurate results.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Eyal Fitoussi


    You are correct Kevin. The plugin indeed uses the address for getting the directions and you are also correct about being more accurate when using the lat/long instead.

    I will update all the get_directions functions in the coming version of GEO my WP 2.5.

    If you can’t wait for the official release and change it yourself the get_directions function
    should be in geo-my-wp/plugins/posts/includes/gmw-pt-search-functions.php

    Thank you for pointing it out.

    Hi Eyal

    Thanks for the quick reply. And very big thanks for such a good plugin. I’ll definitely be buying some of the add-ons.

    If you are going to include the fix in the next update I shall wait. I still have a lot of building of the site to do before officially going public so I have a bit of time.

    The directions works great for locations in towns and cities or to established locations. Google handles those very well.

    The issue is with some of the sites I am listing such as rock-climbing locations and paragliding launch sites. Because these tend to be in the middle of nowhere Google has a problem understanding where it is unless you use lat-long co-ordinates.

    Thanks again

    Plugin Author Eyal Fitoussi


    You are welcome Kevin.

    And you are definitely right. Off roads and such can be found better when using the coordinated. It does make a lot of sense to modify the functions.

    Geo my WP 2.5 is almost ready. It is in beta ( stable version ) at the moment and while some users are testing it I am updating the add-ons to be compatible with it.

    Once the add-ons are ready I will officially release GEO my WP 2.5.

    If you want, you can read about and download the beta of GEO my WP 2.5 from here. There are new features and improvements.


    did a quick fix until the new version is out.

    I’m using the beta 2.5 version but if anyone else is following this and want to use lat long for directions:

    Go to geo-my-wp > plugins > posts > includes > gmw-pt-shortcodes.php

    and change the input type=”hidden” name=”daddr” value=” (line 121 for 2.5 beta) to:

    $location_directions .= 			'<input type="hidden" name="daddr" value="' . $post_info->lat . ','. $post_info->long .'" />';


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘directions going to wrong place’ is closed to new replies.