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


Manual Reference Pages  -  PANDORAFMS::GIS (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

Version 3.1

SYNOPSIS



 use PandoraFMS::GIS;



DESCRIPTION

This module contains the <B>GISB> (Geographic Information System) related functions of <B>Pandora FMSB>

    Interface Exported Functions:

o distance_moved
o get_reverse_geoip_sql
o get_reverse_geoip_file
o get_random_close_point

METHODS

CWdistance_moved (CI$pa_configCW, CI$last_longitudeCW, CI$last_latitudeCW, CI$last_altitudeCW, CI$longitudeCW, CI$latitudeCW, CI$altitudeCW)

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

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

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

CWget_revesrse_geoip_sql (CI$pa_configCW, CI$ip_addrCW, CI$dbhCW)

Gets the GIS information obtained from the <B>SQLB> Database:

<B>ReturnsB>: undef if there is not information available or a <B>hashB> with:
* country_code
* country_code3
* country_name
* region
* city
* postal_code
* longitude
* latitude
* metro_code
* area_code

CWget_reverse_geoip_file (CI$pa_configCW, CI$ip_addrCW)

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

<B>ReturnsB>: undef if there is not information available or a <B>hashB> with:
* country_code
* country_code3
* country_name
* region
* city
* postal_code
* longitude
* latitude
* metro_code
* area_code

CWget_random_close_point(CI$pa_configCW, CI$center_longitudeCW, CI$center_latitudeCW)

Gets the <B>LongitudeB> and the <B>LaitiutdeB> of a random point in the surroundings of the coordintaes received ($center_longitude, $center_latitude).

Returns ($longitude, $laitiutde)

DEPENDENCIES

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

LICENSE

This is released under the GNU Lesser General Public License.

SEE ALSO

PandoraFMS::DB, PandoraFMS::Tools

COPYRIGHT

Copyright (c) 2005-2010 Artica Soluciones Tecnologicas S.L
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PANDORAFMS::GIS (3) 2015-09-08

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