Net_GeoIP
[ class tree: Net_GeoIP ] [ index: Net_GeoIP ] [ all elements ]

Class: Net_GeoIP_Location

Source Location: /Net_GeoIP-1.0.0RC1/GeoIP/Location.php

Class Overview


This class represents a location record as returned by Net_GeoIP::lookupLocation().


Author(s):

Version:

  • $Revision: 1.1 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 39]
This class represents a location record as returned by Net_GeoIP::lookupLocation().

This class is primarily a collection of values (the public properties of the class), but there is also a distance() method to calculate the km distance between two points.



[ Top ]


Method Detail

distance   [line 57]

float distance( mixed Net_GeoIP_Location$loc, Net_GeoIP_Location $loc)

Calculate the distance in km between two points.
  • Return: The number of km between two points on the globe.

Parameters:

Net_GeoIP_Location   $loc     The other point to which distance will be calculated.

[ Top ]


Documentation generated on Fri, 01 Sep 2006 09:15:06 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.