The "personal information" tab of user profiles on the community site include optional fields that allow geo-information to be stored and communicated: "latitude" and "longitude".
The site offers geo-nick, a simplistic API to obtain this information coupled with the optional IRC nick field, to allow any developer to create mashups showing community PHP-GTK developers, as identified by nickname (no actual name information is made available through this API) on a map.
See the service parameters.
If you were to invoke the service today as:
gtkphpnet.geo_nick('b', 3), here are the results
you should be receiving:
Array
(
[basago13] => Array
(
[0] =>
[1] =>
)
[bb7] => Array
(
[0] => +47.227
[1] => +8.819
)
[ben-fr] => Array
(
[0] => +43.30097
[1] => -0.371754
)
)
Take note of the fact that the data are not checked for validity when users input them, so they may be incomplete (no + sign, for instance), or in an invalid format: it is up to you, as the data user, to check them before you use them.
The next page shows a minimal example demonstrating how to use the service from a PHP-GTK2 client application.
See a map ? Go to the next page.
Commenti recenti
22 settimane 5 giorni fa
2 anni 20 settimane fa
2 anni 42 settimane fa
2 anni 43 settimane fa
2 anni 44 settimane fa
2 anni 44 settimane fa
2 anni 44 settimane fa
2 anni 44 settimane fa
2 anni 44 settimane fa
2 anni 45 settimane fa