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