GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PandoraFMS::GIS(3) User Contributed Perl Documentation PandoraFMS::GIS(3)

PandoraFMS::GIS - Geographic Information System functions of Pandora FMS

Version 3.1

 use PandoraFMS::GIS;

This module contains the GIS (Geographic Information System) related functions of Pandora FMS

  • "distance_moved"
  • "get_reverse_geoip_sql"
  • "get_reverse_geoip_file"
  • "get_random_close_point"

Measures the distance between the last position and the previous one taking in acount the earth curvature The distance is based on Havesine formula and so far doesn't take on account the altitude

Refferences (Theory): * <http://franchu.net/2007/11/16/gis-calculo-de-distancias-sobre-la-tierra/> * <http://en.wikipedia.org/wiki/Haversine_formula>

References (C implementation): * <http://blog.julien.cayzac.name/2008/10/arc-and-distance-between-two-points-on.html>

Gets the GIS information obtained from the SQL Database:

Returns: undef if there is not information available or a hash with: * country_code * country_code3 * country_name * region * city * postal_code * longitude * latitude * metro_code * area_code

Gets GIS information from the MaxMind GeooIP database on file using the GPL perl API from MaxMindGeoIP

Returns: undef if there is not information available or a hash with: * country_code * country_code3 * country_name * region * city * postal_code * longitude * latitude * metro_code * area_code

Gets the Longitude and the Laitiutde of a random point in the surroundings of the coordintaes received ($center_longitude, $center_latitude).

Returns "($longitude, $laitiutde)"

PandoraFMS::DB, PandoraFMS::Tools (Optional Geo::IP::PurePerl to use file reverse geolocation database that is faster than the SQL)

This is released under the GNU Lesser General Public License.

PandoraFMS::DB, PandoraFMS::Tools

Copyright (c) 2005-2010 Artica Soluciones Tecnologicas S.L
2015-09-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.