Have you ever wondered where you’d land if you dug a hole to the other side of the world? The Other Side will give you the answer.
AS a curious explorer
WHEN I use the OtherSide
I WANT to know what the opposite side of the world from my current location looks like because of the lack of overseas travel in the moment.
antLat = x * -1;
if (lon >= 0) {
antLon = y - 180;
} else if (lon < 0) {
antLon = y + 180;
}
Search any location on Earth and find the antipodal location
If you land in an unavailable location, you will be redirected to Disney World
When you open the app, you’ll be given the option of using your current geolocation or searching for a specific location. After choosing where to start, a map hosted by Google Maps will be generated on the screen as well as general information such as the time, the temperature, the name of the country of your current location, the flag of the country, the capital city, the primary currency, the language spoken in that country, the population number and the other countries bordering the country searched. Afterwards you are shown a button to show you the Other Side. When clicked, this button will take to the antipodal coordinates, or the exact diametrically opposite of the searched coordinates. We had to use specific mathematical equations in order to calculate the latitude and longitude for the antipodal location. You are provided the same type of information as the searched country as well.
API keys are temporarily available. In the future, you will need to clone the repo and install your own API keys in the config.js file. For the time being, the application will run and the config file will include temporary keys for use. In the future, the config file will be formatted for the user to replace the keys with their own. Links to API documentation will be available within the config file.
Upon opening the repository, you will find index.html, readme.md and a folder named assets.
- assets
- css
- style.css for mobile
- 768.css for tablet
- 992.css for desktop
- js
- script.js
- config.js
- images
- images used in app
- readme
- images and gifs used in readme.md
- css
- Google Maps JavaScript API
- Google Geocoding Service
- onWater API
- Rest Countries API
- Timezonedb API
- Open Weather Map API
- Materialize CSS Framework
- Materialize Icons
Copyright (c) [2021] [Jonathan David, Sabrina Sharmin, Taylor Leong, Xiaotong (Grace) Yang]