Geoip: Add geoip_latitude() and geoip_longitude() natives.

This commit is contained in:
Arkshine
2014-07-30 23:28:04 +02:00
parent b439753ac5
commit 6941e406f4
2 changed files with 88 additions and 19 deletions

View File

@ -132,4 +132,22 @@ native geoip_region_name(const ip[], result[], len);
*
* @return The result length on successful lookup, 0 otherwise.
*/
native geoip_timezone(const ip[], result[], len);
native geoip_timezone(const ip[], result[], len);
/**
* Look up the city's latitude for the given IP address.
*
* @param ip The IP address to look up.
*
* @return The result of the geoip look up, 0 if latitude is not found.
*/
native Float:geoip_latitude(const ip[]);
/**
* Look up the city's longitude for the given IP address.
*
* @param ip The IP address to look up.
*
* @return The result of the geoip look up, 0 if longitude is not found.
*/
native Float:geoip_longitude(const ip[]);