No lat / lon coordinates in GET vars when searching via location

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 7 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #426990

    Tim
    Free User
    Post count: 1

    All locations in Geodirectory > MultiLocations > Manage Locations have latitude / longitude coordinates. However, when searching and selecting a location based on city these coordinates do not get used. The relevant GET variables are “sgeo_lat=&sgeo_lon=”. As such, searching by city and distance yields no results…sort of. Underneath the map it still shows the number of results that you would get if searching by city alone (which does work), however (with distance applied) 0 results are shown. It shows something along the lines of 1 – 100 of 559, but no results are displayed on the map or below it.

    Searching via zip-code or a street works completely fine.

    Everything I have read leads me to believe that the “Near” search field should grab the lat/lon coordinates from the Locations.

    I am aware that this utilizes advanced search, however I believe the bug to be in core, as following the code through the geodir_advance_search_filters/geodirectory_advanced_search_function.php with case RANGE and case RADIO leads to a comment saying that particular section is handled via geodirectory/geodirectory-functions/listing_filters.php

    #426991

    Tim
    Free User
    Post count: 1
    This reply has been marked as private.
    #427030

    Alex Rollin
    Moderator
    Post count: 27815

    Are you selecting “Naples” from the drop down?
    If you do, that is an “IN” search, searching INSIDE Naples (so it does not need/use latlon because there is a known location ID(which has latlon).

    Here is a “near” search for Naples:
    https://www.thesite.com/?geodir_search=1&stype=gd_place&s=+&snear=naples&sort_by=&sgeo_lat=40.8517746&sgeo_lon=14.268124400000033

    In that case I did not select the autocompleted Naples.

    More about search is doc’d here: https://wpgeodirectory.com/docs/gd-search/

    #427136

    Paolo
    Site Admin
    Post count: 31211

    Hi Tim,

    we don’t provide support to free users with premium add-ons installed. Either you ask for support with the account that purchased the add-ons or you need to renew your membership to get support from us.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount