P
P
Phantomrus2017-03-23 16:57:01
Python
Phantomrus, 2017-03-23 16:57:01

How to check if the address is included in the delivery area marked on the map (Yandex and Google)?

There is a map in Yandex and Google with a dedicated delivery area.
The client drives in the address and it is required to check whether the address is included in the delivery zone.
What is the best way to accomplish this task?
Unload a map with areas in some format (a la XML) and then check the occurrence of the address coordinates in the polygon? Or does the Google and Yandex API already have methods that will do everything for me? Can someone tell me the best way to describe in Python this communication with the maps API and solving the problem?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor, 2017-03-30
@Phantomrus

There is a Google API containsLocation method: https://developers.google.com/maps/documentation/j...
That is, as a first approximation, it turns out like this:
1. Find out the coordinates of the address (using the same Google api)
2. Check the entry
On the Yandex account I'm not sure, but I think there was something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question