Skip to content

shortest distance from a polygon to some point on map #1201

Description

@sabres207

Is your feature request related to a problem? Please describe 🙏

I need a way to tell the shortest distance of a point to a polygon.
it seems to be much harder than I thought, and I found out that there you can do that using google earth engine, by:
ee.Geometry.Polygon.distance(point)

Describe the solution you'd like 🤔

Option to use earth engine api from within the library,
or any other way to calculate the distance of a polygon from a point on a map.

Describe alternatives you've considered ✨

I considered having function that calculate it myself, but then I realised it won't necessary be correct on a sphere.
I also tried to investigate google maps functions, but failed to find what I need.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions