A little while ago, I wrote some setup script and web application for a wireless Raspberry Pi bridge.
This package wirelessly connects a Raspberry Pi to available WiFi networks and bridges the connection to an access point.
You will need a Raspberry Pi 3 and an extra WiFi adapter.
More details on the GitHub repository.
from math import sqrt
def get_distance(origin, destination):
'''Distance Between Two Points'''
(o_x, o_y) = origin
(d_x, d_y) = destination
return sqrt((d_x - o_x)**2.0 + (d_y - o_y)**2.0)