Rust challenge 62/100 - find the middle of points
Table of content
What is this
The rules of the game are explained in my original.
62nd Challenge
Challenge
Find the center of multiple co-ordinate points.
Solution
Longatiude and Latitude can be easily averaged by adding the coordinates togehter and dividing by the number of components. I will use a free api to resolve strings to coordinates. The api is called GeoAdmin and is limited to Switzerland. The API requires no authentication so it is well suited for this challenge.
And here it is, the solution
To see the source see github
Maybe I’ll make this into something bigger, not sure yet.