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

File: searchNear.php

Source Location: /Services_OpenStreetMap-1.0.0RC2/examples/www/searchNear.php

Classes:

Page Details:

Includes:

require_once('Services/OpenStreetMap.php') [line 7]

calculateDistance [line 25]

float calculateDistance( mixed $aLon, mixed $aLat, mixed $bLon, mixed $bLat, [mixed $unit = KILOMETERS])

Given two sets of lat/lon pairs, calculate the distance between them

Distance defaults to being calculated in kilometers.



Parameters

mixed   $aLon  
mixed   $aLat  
mixed   $bLon  
mixed   $bLat  
mixed   $unit  
[ Top ]



sortByDistance [line 42]

function sortByDistance( )

sortByDistance


[ Top ]



Documentation generated on Tue, 28 May 2019 19:19:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.