Skip to content

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

License

Notifications You must be signed in to change notification settings

PandelisZ/Flagmatic5000

Repository files navigation

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."

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages