/
configDefaultLocationSearches.js
51 lines (49 loc) · 1.65 KB
/
configDefaultLocationSearches.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { types as sdkTypes } from '../util/sdkLoader';
const { LatLng, LatLngBounds } = sdkTypes;
// An array of locations to show in the LocationAutocompleteInput when
// the input is in focus but the user hasn't typed in any search yet.
//
// Each item in the array should be an object with a unique `id` (String) and a
// `predictionPlace` (util.types.place) properties.
//
// NOTE: these are highly recommended, since they
// 1) help customers to find relevant locations, and
// 2) reduce the cost of using map providers geocoding API
const defaultLocations = [
// {
// id: 'default-helsinki',
// predictionPlace: {
// address: 'Helsinki, Finland',
// bounds: new LatLngBounds(new LatLng(60.29783, 25.25448), new LatLng(59.92248, 24.78287)),
// },
// },
// {
// id: 'default-turku',
// predictionPlace: {
// address: 'Turku, Finland',
// bounds: new LatLngBounds(new LatLng(60.53045, 22.38197), new LatLng(60.33361, 22.06644)),
// },
// },
// {
// id: 'default-tampere',
// predictionPlace: {
// address: 'Tampere, Finland',
// bounds: new LatLngBounds(new LatLng(61.83657, 24.11838), new LatLng(61.42728, 23.5422)),
// },
// },
// {
// id: 'default-oulu',
// predictionPlace: {
// address: 'Oulu, Finland',
// bounds: new LatLngBounds(new LatLng(65.56434, 26.77069), new LatLng(64.8443, 24.11494)),
// },
// },
// {
// id: 'default-ruka',
// predictionPlace: {
// address: 'Ruka, Finland',
// bounds: new LatLngBounds(new LatLng(66.16997, 29.16773), new LatLng(66.16095, 29.13572)),
// },
// },
];
export default defaultLocations;