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 7189273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:16:00+00:00 2026-05-28T19:16:00+00:00

I have researched this for a long time and have not found an answer.

  • 0

I have researched this for a long time and have not found an answer. I am trying to figure out how to, on google maps, find the closest point from a group of points from any given location or point.

Let’s say there are three Walmarts scattered around the city. I want to know if I can figure out which Walmart is closer, from my position, road wise not as the crow flies.

I don’t know how to do the whole maps API thing; so I hope someone has something like this already. Where I can just enter in addresses. Or maybe can show me step by step way of doing this.

  • 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-05-28T19:16:04+00:00Added an answer on May 28, 2026 at 7:16 pm

    Take a look at the DistanceMatrix service in the v3 API:
    http://code.google.com/apis/maps/documentation/javascript/distancematrix.html

    It returns a table of the driving distance/time from all the origin points to all the distance points.

    You’ll basically want to something like this

    var service = new google.maps.DistanceMatrixService();
    service.getDistanceMatrix({
        origins: [myPosition],
        destinations: [walmart1, walmart2, walmart3],
        travelMode: google.maps.TravelMode.DRIVING,
        avoidHighways: false,
        avoidTolls: false
     }, callback);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Greetings, Apologies in advance that I have not researched this toughly enough to answer
It has been a long time since I have written XSL, I have this
I have researched this question for ages and cannot get it right! I have
I have researched this for a few hours and I am kind of frustrated.
I have researched enough on this topic sans any luck :-( My requirement is
I have researched and haven't found a way to run INTERSECT and MINUS operations
I have researched and researched and I am trying to use jquery to refresh
This is more out of personal curiosity/interest than a specific problem I'm trying to
For a long time now I have been searching through the forum whilst teaching
This is not a question where I don't have any ideas, but instead I

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.