xref: /webtrees/app/Module/MapGeoLocationNominatim.php (revision 2bcd31b392b0420599af17af8f32329019b8d05b)
1c9c6f2ecSGreg Roach<?php
2c9c6f2ecSGreg Roach
3c9c6f2ecSGreg Roach/**
4c9c6f2ecSGreg Roach * webtrees: online genealogy
5c9c6f2ecSGreg Roach * Copyright (C) 2021 webtrees development team
6c9c6f2ecSGreg Roach * This program is free software: you can redistribute it and/or modify
7c9c6f2ecSGreg Roach * it under the terms of the GNU General Public License as published by
8c9c6f2ecSGreg Roach * the Free Software Foundation, either version 3 of the License, or
9c9c6f2ecSGreg Roach * (at your option) any later version.
10c9c6f2ecSGreg Roach * This program is distributed in the hope that it will be useful,
11c9c6f2ecSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12c9c6f2ecSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13c9c6f2ecSGreg Roach * GNU General Public License for more details.
14c9c6f2ecSGreg Roach * You should have received a copy of the GNU General Public License
15c9c6f2ecSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
16c9c6f2ecSGreg Roach */
17c9c6f2ecSGreg Roach
18c9c6f2ecSGreg Roachdeclare(strict_types=1);
19c9c6f2ecSGreg Roach
20c9c6f2ecSGreg Roachnamespace Fisharebest\Webtrees\Module;
21c9c6f2ecSGreg Roach
22c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\I18N;
23c9c6f2ecSGreg Roach
24c9c6f2ecSGreg Roach/**
25c9c6f2ecSGreg Roach * Class MapLocationNominatim - use geonames to find locations
26c9c6f2ecSGreg Roach */
27*2bcd31b3SGreg Roachclass MapGeoLocationNominatim extends AbstractModule implements ModuleMapGeoLocationInterface
28c9c6f2ecSGreg Roach{
29c9c6f2ecSGreg Roach    use ModuleConfigTrait;
30c9c6f2ecSGreg Roach    use ModuleMapGeoLocationTrait;
31c9c6f2ecSGreg Roach
32c9c6f2ecSGreg Roach    /**
33c9c6f2ecSGreg Roach     * Name of the map provider.
34c9c6f2ecSGreg Roach     *
35c9c6f2ecSGreg Roach     * @return string
36c9c6f2ecSGreg Roach     */
37c9c6f2ecSGreg Roach    public function title(): string
38c9c6f2ecSGreg Roach    {
39c9c6f2ecSGreg Roach        return /* I18N: https://nominatim.org */ I18N::translate('Nominatim');
40c9c6f2ecSGreg Roach    }
41*2bcd31b3SGreg Roach
42*2bcd31b3SGreg Roach    /**
43*2bcd31b3SGreg Roach     * Should this module be enabled when it is first installed?
44*2bcd31b3SGreg Roach     *
45*2bcd31b3SGreg Roach     * @return bool
46*2bcd31b3SGreg Roach     */
47*2bcd31b3SGreg Roach    public function isEnabledByDefault(): bool
48*2bcd31b3SGreg Roach    {
49*2bcd31b3SGreg Roach        return false;
50*2bcd31b3SGreg Roach    }
51c9c6f2ecSGreg Roach}
52