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

Class: Net_GeoIP_Location

Source Location: /Net_GeoIP-0.9.0alpha1/GeoIP/Location.php

Class Overview


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


Author(s):

Version:

  • $Revision: 1.1 $

Variables

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 ]


Class Variables

$areaCode =

[line 49]

  • Access: public

Type:   mixed


[ Top ]

$city =

[line 45]

  • Access: public

Type:   mixed


[ Top ]

$countryCode =

[line 42]

  • Access: public

Type:   mixed


[ Top ]

$countryName =

[line 43]

  • Access: public

Type:   mixed


[ Top ]

$dmaCode =

[line 50]

  • Access: public

Type:   mixed


[ Top ]

$latitude =

[line 47]

  • Access: public

Type:   mixed


[ Top ]

$longitude =

[line 48]

  • Access: public

Type:   mixed


[ Top ]

$postalCode =

[line 46]

  • Access: public

Type:   mixed


[ Top ]

$region =

[line 44]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

distance   [line 57]

float distance( Net_GeoIP_Location $loc)

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

Parameters:

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

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:20:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.