Skip to content
πŸ‡¨πŸ‡Ύ πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡· πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ πŸ‡³πŸ‡΄ Tool to map city locations to country flags
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
flags
.gitignore
LICENSE
README.md
applyflags.go
expert-banner-flags.png
expert-flags.png
experts-empty.png
experts.yml
simplemaps-worldcities-basic.csv

README.md

Flagmatic5000

πŸ‡¨πŸ‡Ύ πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡· πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ πŸ‡³πŸ‡΄ Tool to map city locations to country flags

This tool takes in a yaml list of people and uses the city attribute to determine the country they reside in.

It can find the country by checking the city against the csv of cities in the world. If the city is not in the csv or there is a problem with the way the city is spelt in the csv, the country wont be found.

It then uses the ISO ALPHA-2 to grab the flag and appends it on the image.

Do what you wish with the code.

Building

Make sure you have go installed.

Install dependencies

go get github.com/gocarina/gocsv
go get gopkg.in/yaml.v2

Build it

go build applyflags.go

Run it

./applyflags experts.yml

Licences / Sources

simplemaps-worldcities-basic.csv - MIT

flags/ - 365icon.com "These are free to use for personal and commercial projects."

You can’t perform that action at this time.