G
G
goodw842020-12-01 06:30:34
Google Maps
goodw84, 2020-12-01 06:30:34

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

2 answer(s)
A
Artem Zolin, 2020-12-01
@artzolin

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

P
pfg21, 2020-12-01
@pfg21

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 question

Ask a Question

731 491 924 answers to any question