Distance

This topic contains 3 replies, has 2 voices, and was last updated by  Stiofan O’Connor 7 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #390210

    Markus Boettcher
    Expired Member
    Post count: 8

    Hello,

    It appears to me that the distance calculation on search result page has a bug.

    If I enter the coordinates of a certain hotel in Singapore as the city centre in MultiLocations / ManageLocations (e.g. 1.2835627/103.8606872 for the Marina Bay Sands Hotel in Singapore) the result page searches for different coordinates (in this case &sgeo_lat=1.352083&sgeo_lon=103.81983600000001) and shows me a couple of km distance (in this case 8.87 km)

    If I manually enter in the search url the right coordinates (in this case sgeo_lat=1.2835627&sgeo_lon=103.8606872) then the distance of the Marina Bay Sands Hotel is rightly displayed (in this case 0 meters).

    I would assume that geodir_calculateDistanceFromLatLong is taking the coordinates from wp_geodir_post_locations but this appears not to be the case. From where is geodir_calculateDistanceFromLatLong taking the coordinates?

    Why can it be that a hotel which is certainly in the very centre of Singapore is reported 9km from the city centre considering that 9km brings you pretty much into the suburbs in that small city of Singapore?

    Can you confirm that geodir_calculateDistanceFromLatLong has a bug and I should better not show the distance on search result page until the bug is corrected?

    Best, Markus

    #390280

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #390668

    Markus Boettcher
    Expired Member
    Post count: 8

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #390698

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

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