S
S
sergeev_ev2018-12-06 11:01:05
Yandex maps
sergeev_ev, 2018-12-06 11:01:05

How to find the nearest objects within a radius of 1 km in Yandex Maps?

There is a map of Russia on which 3 thousand objects are displayed using the ObjectManager.
There is a feedback form in which a person selects a point on the map to indicate the location of an event.
I need to check that there are no other points in the place where he put a dot next to it, so that there are no duplicates.
Well, or just from the point that the user set to show points within a radius of 1 km
Tell me which way to look?
Thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2018-12-06
@402d

Yandex maps do not apply to your problem.
a question from the field of geometry, how to find the distance between two points by coordinates.
More specifically, you need to check if your database table has an object (s) within a given
radius from the specified coordinates.
bit.ly/2E5EOo7

F
freeExec, 2018-12-06
@freeExec

From any implementation where there is a spatial index and a search for the nearest one.
You can start gaining knowledge from here - https://blog.mapbox.com/a-dive-into-spatial-search...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question