Note that there are some explanatory texts on larger screens.

plurals
  1. USJimmy Lee
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COI have further reduce the number of trig station by SQL query to become five in the query. I can put all five markers on Map and calculate the distance for each route in the computeTotalDistance() function (by adding 'alert(total_dist)' at the end of the function. However, i find that the total_dist value could not be passed back to the Submit2() and caluRoute2() functions (checking by adding alert(total_dist) after executing calcRoute2() and computeTotalDistance() function. Are there any probgramming problem in javascript, like Closure problem???
      singulars
    2. COThanks for your advice... I have spent some times on trying to use 'Distance Matrix' by putting one origin and five destinations to find the distance of the routes using the parameter 'results[j].distance.text'. But i find that the funciton is not worked and i suspected that the 'results[j].distance.text' is a text instead of true distance for comparison. Is it true? If yes... this approach is not workable for me as i have to show the route with the shortest distance instead of showing all routes with the distances in the panel.
      singulars
    3. COThanks for your advice. The example is what i want to do... However, i have some problems in looping through all five markers from jQuery AJAX JSON... Maybe i better add a new question based on your suggsted code to elaborate it... Thanks for your help anyway..
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload