This project is a simple weather forecast map built using HTML, Bootstrap 5, and jQuery AJAX. It integrates three different APIs to provide location-based weather data.
-
OpenStreetMap API:
- This API is used for reverse geocoding, converting geographic coordinates into location names. It does not require an API key and has no limitations as long as data is provided.
-
wft-geo-db API:
- This API provides city name suggestions while searching. You can find this API on RapidAPI.
- API Key Requirement: Yes, you need to log in to RapidAPI and subscribe to the free plan of wft-geo-db to obtain an API key.
- Limitations:
- Up to 10 pages of suggestions.
- A radius limit of 100 KM.
- 100 API calls per day.
- 1 call per second.
-
ai-weather-by-meteosource API:
- This is the main API used to obtain the place ID using coordinates, and then fetch current weather data, a 7-day daily forecast, and a 24-hour hourly forecast.
- API Key Requirement: Yes, you can get a free trial key from RapidAPI.
- Limitations:
- Up to 20 API calls per minute.
- Up to 100 calls per minute.
- You can substitute these APIs with others based on your requirements. If your application doesn’t need hourly and daily forecasts, consider using a different API as
ai-weather-by-meteosourcehas a limited number of calls per month.
- Obtain your API keys for
ai-weather-by-meteosourceandwft-geo-dbfrom RapidAPI (subscribe to their free plans). - Replace
YOUR-API-KEY-HEREin thescript.jsfile with your actual API keys (useCtrl + Hto find and replace all instances).
This content is owned by Anish Ghosh (GitHub Profile) and is meant to be distributed for free. Any individual attempting to sell a copy may face consequences.
