Similar Web Miner v0.1.9 SimilarWebMiner.Geography View Source

Handle geographic info extraction

Link to this section Summary

Functions

Make sure a country code is three digits

Get country name by country code #

Process similar web records of geography repartition

Link to this section Functions

Link to this function

convert_code_to_three_digits(code)

View Source

Make sure a country code is three digits

Examples

iex> SimilarWebMiner.Geography.convert_code_to_three_digits("5") "005"

iex> SimilarWebMiner.Geography.convert_code_to_three_digits("250") "250"

Link to this function

extract_info(geographic_info)

View Source
Link to this function

filter_countries_by(three_digits_code)

View Source
Link to this function

get_country_by_code(country_code)

View Source

Get country name by country code #

Examples

iex> SimilarWebMiner.Geography.get_country_by_code("250") "France"

iex> SimilarWebMiner.Geography.get_country_by_code(250) "France"

iex> SimilarWebMiner.Geography.get_country_by_code("51") "Armenia"

Link to this function

process_result_list(records)

View Source

Process similar web records of geography repartition