module Ipapi

Overview

Crystal bindings for https://ipapi.co (IP Address Location & Geolocation API)

API Docs : https://ipapi.co/api/

Defined in:

ipapi.cr

Constant Summary

FIELDS = {"ip" => "public (external) IP address (same as URL `ip`)", "city" => "city name", "region" => "region name (administrative division)", "region_code" => "region code", "country" => "country code (2 letter, ISO 3166-1 alpha-2)", "country_name" => "short country name", "continent_code" => "country code (2 letter, ISO 3166-1 alpha-2)", "in_eu" => "whether IP address belongs to a country that is a member of the European Union (EU)", "postal" => "postal code / zip code", "latitude" => "latitude", "longitude" => "longitude", "latlong" => "comma separated latitude and longitude", "timezone" => "timezone (IANA format i.e. “Area/Location”)", "utc_offset" => "UTC offset (with daylight saving time) as `+HHMM` or `-HHMM` (`HH` is hours, `MM` is minutes)", "languages" => "languages spoken (comma separated 2 or 3 letter ISO 639 code with optional hyphen separated country suffix)", "country_calling_code" => "country calling code (dial in code, comma separated)", "currency" => "currency code (ISO 4217)", "asn" => "autonomous system number", "org" => "organization name"}
VERSION = {{ (`shards version /srv/crystaldoc.info/github-geocrystal-ipapi-crystal-v0.3.0/src`).chomp.stringify }}