how to find the total distance traveled, based on geo points stored in database
问题 Using an android app I am sending latitude and longitude values to database. This is my database Now in webpage I need to show the total distance traveled by K.Prathibha.N I've used Google Maps Direction API to find the distance but it is accepting 'id=2' as origin and 'id=5' as destination. But my motto is to find the total distance travelled i.e., id_2 to id_3 to id_4 to id_5. I am using while loop here. Code snippet: <?php $params_string=""; $pname = $_POST['name']; //name is passed from a