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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:29:42+00:00 2026-06-14T11:29:42+00:00

I try to create a WordPress plugin, that will use the Google maps directions

  • 0

I try to create a WordPress plugin, that will use the Google maps directions in combination with bounds.

This is an application for km based charge, that has low cost/km into the bounds and high cost/km outside the bounds.

So the question is:

  1. Is there a way to know what is the distance from within the bounds point to the bounds border
  2. Is there a way to know what is the distance from a point outside the bounds to the bounds borders?

Note that the bounds area will be made with poligons. I have find the way to check if a point in the poligon or outside the poligon.

The problem is what I describe above in the list.

  • 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-14T11:29:43+00:00Added an answer on June 14, 2026 at 11:29 am

    Yes, there’s a function in the API that measures distances between LatLngs.

    It’s called : computeLength() in the geometry library.

    Please read this

    https://developers.google.com/maps/documentation/javascript/geometry

    Distance and Area Functions

    The distance between two points is the length of the shortest path between them. This shortest path is called a geodesic. On a sphere all geodesics are segments of a great circle. To compute this distance, call computeDistanceBetween(), passing it two LatLng objects.

    You may instead use computeLength() to calculate the length of a given path if you have several locations.

    Distance results are expressed in meters.

    To compute the area (in square meters) of a polygonal area, call computeArea(), passing the array of LatLng objects defining a closed loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to create a WordPress TinyMCE plugin, that will use the Thickbox in
I try to create a plugin for WordPress that require in some point of
I try to create my own linux bash script that calls truecrypt for mounting.
Im try to create a spinner dynamically on press of a button. this is
I have a WordPress plugin that loads pages with AJAX and to ensure compatibility
I create (or better try) to create my first WordPress theme with Less. What
I try to create a dropdown menu with CSS for a Wordpress template. When
I'm using wordpress to create a 'download' popup that goes to a file attachment
So, I'm working on a WordPress theme that uses a custom taxonomy to create
I'm developing a basic application that starts the rmiregistry at the server: try {

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.