def distance(lat1, lon1, lat2, lon2):
    return vincenty((lat1, lon1), (lat2, lon2)) * 1000
Validates a Projection.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/util/location.py/distance--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/cloud_datastore_validator.py/_QueryValidator.__validate_projection