Skip to content

open-meteo/geocoding-api

Repository files navigation

Geocoding API

Build

Todo:

Installation on ubuntu 20.04

The standalone geocodingapi binary can run on any 64-bit linux with recent libc. Currently only basic installation instructions for ubuntu 22.04 are available. Later Docker and others can be provided.

api install zip

wget https://github.com/open-meteo/geocoding-api/releases/download/0.1.1/geocoding-api_0.0.6_jammy_amd64.deb
dpkg -i geocoding-api_0.1.1_jammy_amd64.deb

mkdir /var/lib/geocoding-api/data
cd /var/lib/geocoding-api/data
mkdir zip
curl http://download.geonames.org/export/dump/allCountries.zip -o allCountries.zip
curl http://download.geonames.org/export/dump/alternateNames.zip -o alternateNames.zip
curl http://download.geonames.org/export/zip/allCountries.zip -o zip/allCountries.zip
unzip allCountries.zip
unzip alternateNames.zip
cd zip; unzip allCountries.zip; cd ..

systemctl enable geocoding-api.service
systemctl start geocoding-api.service
systemctl status geocoding-api.service

Geonames data are parsed and processed during the first start, which requires some times and memor. At least 6GB RAM is required and it takes about 25 minutes on a CPU with 2 Skylake cores. Database loading takes about 5 minutes after that.

Additionally, nginx proxy should be used.

Terms & Privacy

Open-Meteo APIs are free for open-source developer and non-commercial use. We do not restrict access, but ask for fair use.

If your application exceeds 10'000 requests per day, please contact us. We reserve the right to block applications and IP addresses that misuse our service.

For commercial use of Open-Meteo APIs, please contact us.

All data is provided as is without any warranty.

We do not collect any personal data. We do not share any personal information. We do not integrate any third party analytics, ads, beacons or plugins.

Data License

API data are offered under Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)

You are free to share: copy and redistribute the material in any medium or format and adapt: remix, transform, and build upon the material.

Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

You must include a link next to any location, Open-Meteo data are displayed like:

Weather data by Open-Meteo.com

NonCommercial: You may not use the material for commercial purposes.

Source Code License

Open-Meteo is open-source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can find the license here. Exceptions are third party source-code with individual licensing in each file.