Logo Search packages:      
Sourcecode: d-rats version File versions  Download package

Public Member Functions | Public Attributes | Static Public Attributes

d_rats::geopy::distance::GreatCircleDistance Class Reference

Inheritance diagram for d_rats::geopy::distance::GreatCircleDistance:
Inheritance graph
Collaboration diagram for d_rats::geopy::distance::GreatCircleDistance:
Collaboration graph

List of all members.

Public Member Functions

def __add__
def __div__
def __mul__
def __nonzero__
def __sub__
def calculate
def feet
def ft
def kilometers
def km
def mi
def miles
def nautical
def nm

Public Attributes


Static Public Attributes


Detailed Description

Use spherical geometry to calculate the surface distance between two
geodesic points. This formula can be written many different ways, including
just the use of the spherical law of cosines or the haversine formula.

The class member ``RADIUS`` indicates which radius of the earth to use,
in kilometers. The default is to use the module constant ``EARTH_RADIUS``,
which uses the average great-circle radius.

Definition at line 195 of file distance.py.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index