ExpDev07 / coronavirus-tracker-api

🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 320 forks source link

Aggregate pattern 2 #408

Closed seanli66 closed 3 years ago

seanli66 commented 3 years ago

Geoinfo was introduced to embed the country, province and coordinates object into one new class. getter and setter functions are also added to Geoinfo to prevent direct access to the attributes in the class.