package ip2location

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type meta_data = {
  1. fs : in_channel;
  2. db_type : int;
  3. db_column : int;
  4. db_year : int;
  5. db_month : int;
  6. db_day : int;
  7. ipv4_db_count : Stdint.uint32;
  8. ipv4_base_addr : Stdint.uint32;
  9. ipv6_db_count : Stdint.uint32;
  10. ipv6_base_addr : Stdint.uint32;
  11. ipv4_index_base_addr : Stdint.uint32;
  12. ipv6_index_base_addr : Stdint.uint32;
  13. ipv4_column_size : Stdint.uint32;
  14. ipv6_column_size : Stdint.uint32;
}
type ip2location_record = {
  1. country_short : string;
  2. country_long : string;
  3. region : string;
  4. city : string;
  5. isp : string;
  6. latitude : float;
  7. longitude : float;
  8. domain : string;
  9. zip_code : string;
  10. time_zone : string;
  11. net_speed : string;
  12. idd_code : string;
  13. area_code : string;
  14. weather_station_code : string;
  15. weather_station_name : string;
  16. mcc : string;
  17. mnc : string;
  18. mobile_brand : string;
  19. elevation : float;
  20. usage_type : string;
  21. address_type : string;
  22. category : string;
  23. district : string;
  24. asn : string;
  25. asys : string;
}
exception Ip2location_exception of string
val get_api_version : string
val open_db : string -> meta_data
val close_db : meta_data -> unit
val query : meta_data -> string -> ip2location_record
OCaml

Innovation. Community. Security.