Add in unit test of getCoordinates Address action and update TestProvider to be like...
[civicrm-core.git] / settings / Map.setting.php
CommitLineData
3784888f
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
3784888f 5 | |
6b7eb9df
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
3784888f
TO
9 +--------------------------------------------------------------------+
10 */
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
3784888f
TO
16 * Settings metadata file
17 */
dfe1f88a
CW
18return [
19 'geoAPIKey' => [
3784888f 20 'add' => '4.7',
3784888f
TO
21 'help_text' => NULL,
22 'is_domain' => 1,
23 'is_contact' => 0,
24 'group_name' => 'Map Preferences',
25 'group' => 'map',
26 'name' => 'geoAPIKey',
27 'type' => 'String',
28 'quick_form_type' => 'Element',
29 'html_type' => 'text',
dfe1f88a 30 'html_attributes' => [
3784888f
TO
31 'size' => '32',
32 'maxlength' => '64',
dfe1f88a 33 ],
3784888f 34 'default' => NULL,
4540d6d3 35 'title' => ts('Geo Provider Key'),
36 'description' => ts('Enter the API key or Application ID associated with your geocoding provider.'),
dfe1f88a
CW
37 ],
38 'geoProvider' => [
3784888f 39 'add' => '4.7',
3784888f
TO
40 'help_text' => NULL,
41 'is_domain' => 1,
42 'is_contact' => 0,
43 'group_name' => 'Map Preferences',
44 'group' => 'map',
45 'name' => 'geoProvider',
46 'type' => 'String',
1ec598f3 47 'quick_form_type' => 'Select',
3784888f 48 'html_type' => 'Select',
dfe1f88a 49 'html_attributes' => [
1ec598f3 50 'class' => 'crm-select2',
dfe1f88a
CW
51 ],
52 'pseudoconstant' => [
3784888f 53 'callback' => 'CRM_Core_SelectValues::geoProvider',
dfe1f88a 54 ],
623a6eb7
SL
55 'on_change' => [
56 'CRM_Utils_GeocodeProvider::reset',
57 ],
3784888f 58 'default' => NULL,
4540d6d3 59 'title' => ts('Geocoding Provider'),
60 'description' => ts('This can be the same or different from the mapping provider selected.'),
dfe1f88a
CW
61 ],
62 'mapAPIKey' => [
3784888f 63 'add' => '4.7',
3784888f
TO
64 'help_text' => NULL,
65 'is_domain' => 1,
66 'is_contact' => 0,
67 'group_name' => 'Map Preferences',
68 'group' => 'map',
69 'name' => 'mapAPIKey',
70 'type' => 'String',
71 'quick_form_type' => 'Element',
72 'html_type' => 'text',
dfe1f88a 73 'html_attributes' => [
3784888f
TO
74 'size' => '32',
75 'maxlength' => '64',
dfe1f88a 76 ],
3784888f 77 'default' => NULL,
4540d6d3 78 'title' => ts('Map Provider Key'),
79 'description' => ts('Enter your API Key or Application ID. An API Key is required for the Google Maps API. Refer to developers.google.com for the latest information.'),
dfe1f88a
CW
80 ],
81 'mapProvider' => [
3784888f 82 'add' => '4.7',
3784888f
TO
83 'help_text' => NULL,
84 'is_domain' => 1,
85 'is_contact' => 0,
86 'group_name' => 'Map Preferences',
87 'group' => 'map',
88 'name' => 'mapProvider',
89 'type' => 'String',
1ec598f3
TO
90 'quick_form_type' => 'Select',
91 'html_type' => 'Select',
dfe1f88a 92 'html_attributes' => [
1ec598f3 93 'class' => 'crm-select2',
dfe1f88a
CW
94 ],
95 'pseudoconstant' => [
3784888f 96 'callback' => 'CRM_Core_SelectValues::mapProvider',
dfe1f88a 97 ],
3784888f 98 'default' => NULL,
4540d6d3 99 'title' => ts('Mapping Provider'),
100 'description' => ts('Choose the mapping provider that has the best coverage for the majority of your contact addresses.'),
dfe1f88a
CW
101 ],
102];