R
R
researcher11112018-03-24 12:20:03
Python
researcher1111, 2018-03-24 12:20:03

Array of coordinates in python?

Good afternoon.
There are coordinates. It is necessary to build a circle from this point with a radius of 50m and get an array of all the coordinates that are in this circle. How to do it in python?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2018-03-24
@sergiks

geopy :

>>> d = distance.distance
>>> _, wa = g.geocode('Washington, DC')
>>> _, pa = g.geocode('Palo Alto, CA')
>>> print((d(ne, cl) + d(cl, wa) + d(wa, pa)).miles)
3276.157156868931

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question