Error in the Distance
This topic contains 4 replies, has 2 voices, and was last updated by Paolo 10 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: distans, Geodirectory
-
AuthorPosts
-
October 30, 2015 at 4:42 pm #58571
hi, I have done several test and there is always one sistematic error in the distance between the ORIGEN CITY and the EVENT CITY (or PLACE CITY). I will do an exemple with EVENT ADDON but there is the same error with PLACES.
In http://www.infocity.website/events I introduce a CITY in the NEAR FIELD (for example REUS) and do click in SEARCH BOTTON.
I will be redirected at the following page:
http://infocity.website/?geodir_search=1&stype=gd_event&s=+&snear=reus&sgeo_lat=41.1498259&sgeo_lon=1.105532100000005
where there are listed all the events near REUS CITY. The last event (PRUEBA MANRESA) is at 87,88 km of distance (this value of distance is shown into the BOX RECORD in the listing page).
If I click in the TITLE OF THE EVENT (PRUEBA MANRESA), I will go into the event.
http://infocity.website/events/spain/catalunya/manresa/province-of-barcelona-events/prueba-manresa/
I I do click in the word MAP
http://infocity.website/events/spain/catalunya/manresa/province-of-barcelona-events/prueba-manresa/#post_map
and enter the ORIGEN CITY in the “ENTER YOUR LOCATION FIELD” (in this exemple REUS), and click in “Get direction botton”, it show that there are 120 km of distance between REUS CITY and MANRESA CITY.
So before were 87.88 (into the BOX RECORD) and now are 120 km. There are 32 km of differens, approximately an error of 25%. This error of 25% is repeated with all the events records.
With the same example
http://infocity.website/?geodir_search=1&stype=gd_event&s=+&snear=reus&sgeo_lat=41.1498259&sgeo_lon=1.105532100000005
the event “PRUEBA LLEIDA” (just before “PRUEBA MANRESA”) in the BOX RECORD show a distance of 65.92 km, but if I go into the event and do click en the map
http://infocity.website/events/spain/catalonia/lleida/province-of-lleida-events/prueba-lleida/#post_map
enter REUS in the “ENTER YOUR LOCATION FIELD” and click in “Get direction botton”, it show that there are 93 km of distance.
So before were 65.92 and now are 93. There are also 26 km of differens, approximately an error of 25%.If I am right, the correct value is the value shown when I go into the event and click in the word “MAP” (in the previous examples the accurate values are 120 and 93 km).
Let me know if it will be possible solve this error.
Thanks very muchOctober 30, 2015 at 8:00 pm #58606Hi,
this is because search calculate distance as a straight line between to point on the map, while the get direction will give precise road distance.
Thanks
October 30, 2015 at 8:02 pm #58608October 31, 2015 at 10:14 am #58643Ok, now I understand…
As Adiministrator/user I think it will be more interesting to show in the BOX RECORD the “ROAD DISTANCE” just like in the m”MAP SECTION”.
This is my suggestion, but we you are the developper… you are who decide… 🙂
Thanks very very much for your accurate answer, and sorry for a lot of TOPICS I have started in the last days… but I am testing all the features and I have a lot of doubts and suggestion to do.
CiaooooOctober 31, 2015 at 4:28 pm #58665Hi,
having to calculate road distance for more than 1 listing at a time, would make the plugin so slow that we would all run out of business.
Thank you
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket