-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathURL.js.develop
108 lines (103 loc) · 2.88 KB
/
URL.js.develop
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import { APP_STAGES } from "./App"
// for Internet Explorer:
if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
}
const API_VERSION = 'v0';
const OFDB_API_LINK = (() => {
switch (__STAGE__){
case APP_STAGES.LOCAL:
return "https://nightly.ofdb.io/";
case APP_STAGES.NIGHTLY:
return "https://nightly.ofdb.io/";
default:
// production
return "https://kartevonmorgen.org/api/";
}
})() + API_VERSION;
module.exports = {
CC_LICENSE: {
by: {
name: "creativecommons.org/publicdomain/zero/1.0/deed.be",
link: "https://creativecommons.org/publicdomain/zero/1.0/deed.be"
},
en: {
name: "creativecommons.org/publicdomain/zero/1.0/deed.en",
link: "https://creativecommons.org/publicdomain/zero/1.0/deed.en"
}
},
ODBL_LICENSE: {
name: "opendatacommons.org/licenses/odbl/summary/",
link: "https://opendatacommons.org/licenses/odbl/summary/"
},
APP: {
name: "kartevonmorgen.org",
link: "https://mapa.falanster.by"
},
PROTOTYPE: {
name: "prototyp.kartevonmorgen.org",
link: "https://prototyp.kartevonmorgen.org"
},
REPOSITORY: {
name: "https://github.com/diglabby/mapa",
link: "https://github.com/diglabby/mapa"
},
VK: {
name: "https://vk.com/falanster_by",
link: "https://vk.com/falanster_by"
},
TELEGRAM: {
name: "https://t.me/hackmapagithub",
link: "https://t.me/hackmapagithub"
},
FACEBOOK: {
name: "facebook.com/falanster",
link: "https://www.facebook.com/falanster.by"
},
MAIL: {
name: "[email protected]",
link: "mailto:[email protected]"
},
OSM_ATTR: {
name: "OpenStreetMap",
link: "https://osm.org/copyright"
},
TILE_SERVER: {
link: "https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}{r}.png"
},
TILE_SERVER_ATTR: {
name: "Wikimedia",
link: "https://wikimediafoundation.org/wiki/Maps_Terms_of_Use"
},
OFDB_API: {
link: "https://" + "api.ofdb.io/v0"
},
TH_GEOCODER: {
link: "https://geocoder.tilehosting.com/q/<query>.js?key=<key>"
},
NOMINATIM: {
link: "https://nominatim.openstreetmap.org"
},
ROUTEPLANNERS: {
default: {
name: "Graphhopper Maps",
link: "https://graphhopper.com/maps/?point=&point={addr}&locale=de-DE&vehicle=bike&weighting=fastest&elevation=false&use_miles=false&layer=Omniscale"
},
apple: {
name: "Apple Maps",
link: "http://maps.apple.com/?daddr={addr}&dirflg=w"
},
android: {
name: "GeoURI",
link: "geo:{lat},{lng}"
}
},
DONATE: {
name: "www.betterplace.org/de/projects/36213",
link: "https://www.betterplace.org/de/projects/36213"
},
JOB_ADS: {
name: "www.betterplace.org/de/organisations/vonmorgen",
link: "https://www.betterplace.org/de/organisations/vonmorgen"
}
};