Answer the question
In order to leave comments, you need to log in
How to filter points by regions and cities?
There are cars whose drivers install a mobile application on their smartphones. The application sends its current coordinate to the server once an hour. All cars are displayed on the map. There may be several thousand cars.
Task:
- Filter the output on the map by regions and cities
For example:
- All cars in the Krasnodar Territory
- All cars in Yekaterinburg (possible with some radius)
Answer the question
In order to leave comments, you need to log in
Put arrays of coordinates in the base, get the ones you need on request, collect them in json and send them to object_manager https://yandex.ru/dev/maps/jsbox/2.1/object_manager
by a reverse geocoding request to the OSM database through nominatim
https://nominatim.org/release-docs/develop/api/Reverse/
parse city county state address fields, etc.
https://nominatim.openstreetmap.org/reverse?format...
for speed/closed zone, you can raise the base on your server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question