forked from stevage/which-geocoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresults.pug.js
84 lines (74 loc) · 4.97 KB
/
results.pug.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
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
module.exports = `
#results
.row
// mr-1.
.col-sm-3.mb-3.border-secondary.border.rounded(v-for="plan in plans")
// h4.card-title {{ plan.name }}
// h6.mb-3.card-subtitle.text-muted {{ plan.group }}
h4.card-title {{ plan.group }}
h6.mb-3.card-subtitle.text-muted {{ plan.name }}
.plan-details
.plan-details-inner
div(v-if="!plan.custom")
b {{ plan.dollarsMonthly | money(plan.currencySymbol) }}
span(v-if="plan.includedRequestsMonthly !== undefined")
span for
b {{ plan.includedRequestsMonthly | integer }}
span /mo.
span(v-else-if="plan.includedRequestsDaily")
span for
b {{ plan.includedRequestsDaily | integer }}
span /day ({{ plan.includedRequestsDaily * MONTH | integer}} /mo.)
.extra(v-if="plan.extra")
p {{ plan.extra }}
// p {{ plan.bonuses }}
p(v-if="plan.maxRequestsDaily")
span {{ plan.maxRequestsDaily | integer}} requests per day max.
div(v-else)
p Custom plan by negotiation.
div(v-if="plan.requestsPerSecond")
p Rate limit: {{ plan.requestsPerSecond }} per sec
ul.details
li(v-if="plan.openData") ℹ Based on open data
li(v-if="plan.permanent === true") ✅ Storing geocodes ok
li(v-if="typeof plan.permanent === 'string'") 🚫 Storing geocodes: {{ plan.permanent }}
li(v-if="!plan.permanent") 🚫 Must not store geocodes.
li(v-if="plan.thirdParty") ✅ Third-party basemaps ok
li(v-else) 🚫 Must not combine with third-party basemaps
li(v-if="plan.humanOnly") 🚫 No scripted queries
li(v-if="plan.freeRequired") <del>$</del> Free apps only
li(v-if="plan.publicRequired") App must be public
li.con(v-for="con in plan.provider.cons") 👎 {{ con }}
li(v-if="plan.provider.quality") {{ plan.provider.quality }}
li(v-if="plan.autocompleteMultiplier !== undefined") 1 autocomplete = {{ plan.autocompleteMultiplier }} transactions.
li(v-if="plan.termsUrl")
a(:href="plan.termsUrl") Terms and conditions
div
a(v-if="plan.provider.api.docs" :href="plan.provider.api.docs") API
span(v-else) API
ul.api
li(v-if="plan.provider.api.autocomplete") ✓ Auto-complete
a(v-if="typeof plan.provider.api.autocomplete === 'string'" :href="plan.provider.api.autocomplete") ℹ
li(v-if="plan.provider.api.autocomplete === undefined") ? Auto-complete unknown
li(v-if="plan.provider.api.autocomplete === false") 𐄂 No auto-complete
li(v-if="plan.provider.api.reverse") ✓ Reverse-geocode
a(v-if="typeof plan.provider.api.reverse === 'string'" :href="plan.provider.api.reverse") ℹ
li(v-if="plan.provider.api.reverse === undefined") ? Reverse-geocode unknown
li(v-if="plan.provider.api.reverse === false") 𐄂 No reverse-geocode
li(v-if="plan.provider.api.locationWeighting") ✓ Location-weighting
a(v-if="typeof plan.provider.api.locationWeighting === 'string'" :href="plan.provider.api.locationWeighting") ℹ
li(v-if="plan.provider.api.locationWeighting === undefined") ? Location-weighting unknown
li(v-if="plan.provider.api.locationWeighting === false") 𐄂 No location-weighting
li(v-if="plan.provider.playUrl")
a(:href="plan.provider.playUrl") Test area
ul.bonuses.alert.alert-success(v-if="plan.bonuses")
li(v-for="bonus in plan.bonuses") {{ bonus }}
ul.conditions.alert.alert-warning(v-if="plan.conditions")
li(v-for="condition in plan.conditions") {{ condition }}
p.spacer
// p.more-info(v-if="plan.url")
// p.alert.alert-info Annual: {{ plan._annualCost | money(plan.currencySymbol) }}
h5
a(v-bind:href="plan.url")
.annual-price {{ plan._annualCost | money(plan.currencySymbol) }}<small>/yr</small>
`;