Geoip: Add geoip_latitude() and geoip_longitude() natives.
This commit is contained in:
1 parent
b439753ac5
commit
6941e406f4
2 files changed
+88
-19
No files matched your search
@@ -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[]);
|
||||
Reference in new issue
Block a user