Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8034501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:02:12+00:00 2026-06-05T02:02:12+00:00

I am saving gps sigal every 5-7 sec to database. How can I see

  • 0

I am saving gps sigal every 5-7 sec to database. How can I see how much distance I have traveled so far when I “sum” all the lat and lng values from database. And how can i see this resoults on daily basis?

For example. When I am tracking car on live preview I want to have a distance to be suming as live data from that day. And when I am looking for example a month kilometers for certain truck?

I was looking at THIS link, but I dont know how to make it dynamically to fill data as they have data already in the array.

Can you give me some ideas and examples if you implemented the same thing already.

Why to make the wheel if it is already made 🙂

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:02:13+00:00Added an answer on June 5, 2026 at 2:02 am

    Alternately, you could use the Geometry Library of the Google Maps API to do the same thing:

    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=geometry&sensor=false"></script>
    <script type="text/javascript">
    
      function initialize() {
        var myLatLng = new google.maps.LatLng(0, -180);
        var myOptions = {
          zoom: 3,
          center: myLatLng,
          mapTypeId: google.maps.MapTypeId.TERRAIN
        };
    
        var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    
        var coordinates = [
            new google.maps.LatLng(37.772323, -122.214897),
            new google.maps.LatLng(21.291982, -157.821856),
            new google.maps.LatLng(-18.142599, 178.431),
            new google.maps.LatLng(-27.46758, 153.027892)
        ];
        console.log(google.maps.geometry.spherical.computeLength(coordinates));
    
    
      }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have GPS Tracking application main goal is saving GPS coordinate to backed database
While saving a collection with all the changes, how can i ensure that blank
I am having trouble saving my entities to the database using EntityFramework. I have
When saving a new entity something strange happens... I have a data grid with
I am saving all the words from a file like so: sentence = fileName
Iam trying to saving an UIImage in PDF file. How can i do this?
I'm struggling with this Looper in Android. I have a timer that runs every
After saving some values into the database, I am finding it difficult to print
I have a problem saving the list after edit the listview with drag and
i want to build an app for windows mobile that can get GPS locations(longitude

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.