Index: trunk/extensions/Maps/ParserFunctions/Maps_GeoFunctions.php |
— | — | @@ -51,9 +51,11 @@ |
52 | 52 | * Handler for the #geodistance parser function. |
53 | 53 | * See http://mapping.referata.com/wiki/Geodistance |
54 | 54 | * |
| 55 | + * @since 0.6 |
| 56 | + * |
55 | 57 | * @param Parser $parser |
56 | 58 | */ |
57 | | - function renderGeoDistance( Parser &$parser ) { |
| 59 | + public static function renderGeoDistance( Parser &$parser ) { |
58 | 60 | global $egMapsDistanceUnit, $egMapsDistanceDecimals; |
59 | 61 | |
60 | 62 | $args = func_get_args(); |
— | — | @@ -143,6 +145,8 @@ |
144 | 146 | * Handler for the #finddestination parser function. |
145 | 147 | * See http://mapping.referata.com/wiki/Finddestination |
146 | 148 | * |
| 149 | + * @since 0.6 |
| 150 | + * |
147 | 151 | * @param Parser $parser |
148 | 152 | */ |
149 | 153 | public static function renderFindDestination( Parser &$parser ) { |
— | — | @@ -252,6 +256,8 @@ |
253 | 257 | * Returns the geographical distance between two coordinates. |
254 | 258 | * See http://en.wikipedia.org/wiki/Geographical_distance |
255 | 259 | * |
| 260 | + * @since 0.6 |
| 261 | + * |
256 | 262 | * @param array $start The first coordinates, as non-directional floats in an array with lat and lon keys. |
257 | 263 | * @param array $end The second coordinates, as non-directional floats in an array with lat and lon keys. |
258 | 264 | * |
— | — | @@ -288,6 +294,8 @@ |
289 | 295 | /** |
290 | 296 | * Finds a destination given a starting location, bearing and distance. |
291 | 297 | * |
| 298 | + * @since 0.6 |
| 299 | + * |
292 | 300 | * @param array $startingCoordinates The starting coordinates, as non-directional floats in an array with lat and lon keys. |
293 | 301 | * @param float $bearing The initial bearing in degrees. |
294 | 302 | * @param float $distance The distance to travel in km. |