Skip to content

WebKudu/kaxmedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-codetest

To Set Up

cd to new directory and git clone git@github.com:WebKudu/kaxmedia.git .

composer install

Point Apache or Nginx to /public directory

Description

KaxMedia Dev Code Test

We have a shortlist of affiliate contact records in a text file (affiliates.txt) -- one affiliate per line, JSON-encoded. We want to invite any affiliate that lives within 100km of our Dublin office for some food and drinks. Write a program that will read the full list of affiliates and output the name and affiliate ids of matching affiliates (within 100km), sorted by Affiliate ID (ascending).

You can use the first formula from this Wikipedia article to calculate distance. Don't forget, you'll need to convert degrees to radians.

The GPS coordinates for our Dublin office are 53.3340285, -6.2535495.

You can find the affiliate list in this repository called affiliates.txt.

Please don’t forget, your code should be production ready, clean and tested!

About

KaxMedia Dev Code Test

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages