bool Net_Geo(
[string
$applicationName = ""], [string
$alternateServerUrl = ""])
|
|
Constructor Both $applicationName and $alternateServerUrl are for compatibility with the perl and java netgeo classes.
I don't guarantee to use these variables
Parameters:
array getCountry(
string
$target)
|
|
Returns the 2-letter ISO 3166 country code Returns NO_MATCH if the AS number has been looked up but nothing was found in the whois lookups.
Returns NO_COUNTRY if the lookup returned a record but no country could be found. Returns an empty string if nothing was found in the database
Parameters:
double getLat(
$latLongRef, string
$target)
|
|
Included here to make the NetGeo class as similar as possible to the NetGeoClient.java interface.
It's probably just as easy for the user to extract lat and long directly from the array.
Parameters:
array getLatLong(
string
$target)
|
|
Returns an array with keys LAT, LONG, LAT_LONG_GRAN, and STATUS.
Lat/Long will be (0,0) if the target has been looked up but there was no match in the whois lookups, or if no address could be parsed from the whois record, or if the lat/long for the address is unknown. Returns an empty string if nothing was found in the database
Parameters:
double getLong(
$latLongHashRef, string
$target)
|
|
Included here to make the NetGeo class as similar as possible to the NetGeoClient.java interface.
It's probably just as easy for the user to extract lat and long directly from the array
Parameters: