Crate nationify

Crate nationify 

Source
Expand description

Nationify is a Rust library designed for querying and managing country-related data. It provides an intuitive interface for retrieving information such as ISO codes, names, regions, languages, and geographical data.

Structs§

Bounds
Geographic bounding box.
Country
Country information.
Geo
Geographic coordinates.
LatLng
Geographic coordinates.
Port
Port information.
PortStatistics
Statistics about the ports database.

Statics§

PORTS
Static array of all ports in the database.

Functions§

all_ports
Return list of all ports.
by_continent
Return list of all countries in a specific continent.
by_country_name
Find a country by its name.
by_country_name_or_code
Find a country by its name or ISO code.
by_country_name_or_code_case_insensitive
Find a country by its name or ISO code, case insensitive.
by_economic_union
Return list of all countries in a specific economic union.
by_iso_code
Find a country by its ISO code - using PHF for fast lookups.
by_languages_official
Return list of all countries with a specific official language.
by_languages_spoken
Return list of all countries with a specific spoken language.
by_region
Return list of all countries in a specific region.
by_region_or_subregion
Return list of all countries in a specific region or subregion.
by_region_or_subregion_case_insensitive
Return list of all countries in a specific region or subregion.
by_subregion
Return list of all countries in a specific subregion.
closest_port
Find the closest port to the given coordinates.
closest_ports
Find the N closest ports to the given coordinates.
continents
Return list of all continents.
country_names
Return list of all country names
economic_unions
Return list of all economic unions.
iso_codes
Return list of all country codes
port_by_code
Find a port by its port code.
port_by_unloc
Find a port by its UNLOC code.
port_cities
Return list of all unique cities with ports.
port_countries
Return list of all unique countries with ports.
port_statistics
Get statistics about ports (total, countries, cities, timezones).
port_timezones
Return list of all unique timezones across all ports.
ports_by_city
Return list of all ports in a specific city.
ports_by_country
Return list of all ports in a specific country.
ports_by_name
Return list of all ports matching a specific name.
ports_by_region
Find all ports serving a specific region.
ports_by_state
Return list of all ports in a specific state/province.
ports_by_timezone
Return list of all ports in a specific timezone.
ports_count
Count the total number of ports.
ports_count_by_country
Count ports by country.
ports_in_bounding_box
Find ports in a bounding box defined by min/max latitude and longitude.
ports_within_radius
Find ports within a radius (in kilometers) of given coordinates.
regions
Return list of all regions.
search_ports
Search ports by query string (searches name, city, code, unlocs).
world_regions
Return list of all world regions.
world_subregions
Return list of all world subregions.