PAMP:s60 position
From OpenSource
Position API for PHP. In order to use this, Location Acquisition Daemon (LAD) needs to be running on the system.
NOTE Currently LAD is not included in the PAMP installation.
Contents |
[edit] Example Usage
<?php $pos = s60_loc_position(); print_r($pos); ?>
[edit] Functions
[edit] s60_loc_available
s60_loc_available() -> nothing
Used to test if this extension is enabled.
[edit] s60_loc_position
s60_loc_position() -> array containing position data
Retrieves positional data from Location Acquisition Daemon. This data can be used with s60_loc_speed().
[edit] s60_loc_speed
s60_loc_speed(Position pos1,Position pos2) -> double
Calculate speed using two positions acquired from s60_loc_position.
[edit] s60_loc_extract_position_data
s60_loc_extract_position_data(string data) -> array containing position data
This works like s60_loc_position() but you must provide raw position data by yourself.
