Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of MM Developer  >  GPS Coordinates Distance  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example usage of class.
Class: GPS Coordinates Distance
Calculate distance between geographic coordinates
Author: By
Last change:
Date: 2007-06-14 18:35
Size: 407 bytes
 

Contents

Class file image Download
<?php

require_once ("gps_class.php");

//$distance = new calcMiles (Latitude coordinate of 1st position, Longitude coordinate of 1st position, Latitude coordinate of 2nd position, Longitude coordinate of 2nd position);
$distance = new calcMiles (89.9832121.95127489.4486522.65947"miles");

$numericalDistance $distance->lastResult;
$formattedResult $distance->lastResultFormatted;

?>