Self-contained card: charts, script and licence in this repo (no GitHub links)
Browse files- LICENSE +540 -0
- README.md +8 -8
- charts/no-website-by-country.svg +60 -0
- charts/no-website-by-kind.svg +240 -0
- charts/website-vs-phone-by-city.svg +122 -0
- scripts/build.py +329 -0
LICENSE
ADDED
|
@@ -0,0 +1,540 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## ODC Open Database License (ODbL)
|
| 2 |
+
|
| 3 |
+
### Preamble
|
| 4 |
+
|
| 5 |
+
The Open Database License (ODbL) is a license agreement intended to
|
| 6 |
+
allow users to freely share, modify, and use this Database while
|
| 7 |
+
maintaining this same freedom for others. Many databases are covered by
|
| 8 |
+
copyright, and therefore this document licenses these rights. Some
|
| 9 |
+
jurisdictions, mainly in the European Union, have specific rights that
|
| 10 |
+
cover databases, and so the ODbL addresses these rights, too. Finally,
|
| 11 |
+
the ODbL is also an agreement in contract for users of this Database to
|
| 12 |
+
act in certain ways in return for accessing this Database.
|
| 13 |
+
|
| 14 |
+
Databases can contain a wide variety of types of content (images,
|
| 15 |
+
audiovisual material, and sounds all in the same database, for example),
|
| 16 |
+
and so the ODbL only governs the rights over the Database, and not the
|
| 17 |
+
contents of the Database individually. Licensors should use the ODbL
|
| 18 |
+
together with another license for the contents, if the contents have a
|
| 19 |
+
single set of rights that uniformly covers all of the contents. If the
|
| 20 |
+
contents have multiple sets of different rights, Licensors should
|
| 21 |
+
describe what rights govern what contents together in the individual
|
| 22 |
+
record or in some other way that clarifies what rights apply.
|
| 23 |
+
|
| 24 |
+
Sometimes the contents of a database, or the database itself, can be
|
| 25 |
+
covered by other rights not addressed here (such as private contracts,
|
| 26 |
+
trade mark over the name, or privacy rights / data protection rights
|
| 27 |
+
over information in the contents), and so you are advised that you may
|
| 28 |
+
have to consult other documents or clear other rights before doing
|
| 29 |
+
activities not covered by this License.
|
| 30 |
+
|
| 31 |
+
------
|
| 32 |
+
|
| 33 |
+
The Licensor (as defined below)
|
| 34 |
+
|
| 35 |
+
and
|
| 36 |
+
|
| 37 |
+
You (as defined below)
|
| 38 |
+
|
| 39 |
+
agree as follows:
|
| 40 |
+
|
| 41 |
+
### 1.0 Definitions of Capitalised Words
|
| 42 |
+
|
| 43 |
+
"Collective Database" - Means this Database in unmodified form as part
|
| 44 |
+
of a collection of independent databases in themselves that together are
|
| 45 |
+
assembled into a collective whole. A work that constitutes a Collective
|
| 46 |
+
Database will not be considered a Derivative Database.
|
| 47 |
+
|
| 48 |
+
"Convey" - As a verb, means Using the Database, a Derivative Database,
|
| 49 |
+
or the Database as part of a Collective Database in any way that enables
|
| 50 |
+
a Person to make or receive copies of the Database or a Derivative
|
| 51 |
+
Database. Conveying does not include interaction with a user through a
|
| 52 |
+
computer network, or creating and Using a Produced Work, where no
|
| 53 |
+
transfer of a copy of the Database or a Derivative Database occurs.
|
| 54 |
+
"Contents" - The contents of this Database, which includes the
|
| 55 |
+
information, independent works, or other material collected into the
|
| 56 |
+
Database. For example, the contents of the Database could be factual
|
| 57 |
+
data or works such as images, audiovisual material, text, or sounds.
|
| 58 |
+
|
| 59 |
+
"Database" - A collection of material (the Contents) arranged in a
|
| 60 |
+
systematic or methodical way and individually accessible by electronic
|
| 61 |
+
or other means offered under the terms of this License.
|
| 62 |
+
|
| 63 |
+
"Database Directive" - Means Directive 96/9/EC of the European
|
| 64 |
+
Parliament and of the Council of 11 March 1996 on the legal protection
|
| 65 |
+
of databases, as amended or succeeded.
|
| 66 |
+
|
| 67 |
+
"Database Right" - Means rights resulting from the Chapter III ("sui
|
| 68 |
+
generis") rights in the Database Directive (as amended and as transposed
|
| 69 |
+
by member states), which includes the Extraction and Re-utilisation of
|
| 70 |
+
the whole or a Substantial part of the Contents, as well as any similar
|
| 71 |
+
rights available in the relevant jurisdiction under Section 10.4.
|
| 72 |
+
|
| 73 |
+
"Derivative Database" - Means a database based upon the Database, and
|
| 74 |
+
includes any translation, adaptation, arrangement, modification, or any
|
| 75 |
+
other alteration of the Database or of a Substantial part of the
|
| 76 |
+
Contents. This includes, but is not limited to, Extracting or
|
| 77 |
+
Re-utilising the whole or a Substantial part of the Contents in a new
|
| 78 |
+
Database.
|
| 79 |
+
|
| 80 |
+
"Extraction" - Means the permanent or temporary transfer of all or a
|
| 81 |
+
Substantial part of the Contents to another medium by any means or in
|
| 82 |
+
any form.
|
| 83 |
+
|
| 84 |
+
"License" - Means this license agreement and is both a license of rights
|
| 85 |
+
such as copyright and Database Rights and an agreement in contract.
|
| 86 |
+
|
| 87 |
+
"Licensor" - Means the Person that offers the Database under the terms
|
| 88 |
+
of this License.
|
| 89 |
+
|
| 90 |
+
"Person" - Means a natural or legal person or a body of persons
|
| 91 |
+
corporate or incorporate.
|
| 92 |
+
|
| 93 |
+
"Produced Work" - a work (such as an image, audiovisual material, text,
|
| 94 |
+
or sounds) resulting from using the whole or a Substantial part of the
|
| 95 |
+
Contents (via a search or other query) from this Database, a Derivative
|
| 96 |
+
Database, or this Database as part of a Collective Database.
|
| 97 |
+
|
| 98 |
+
"Publicly" - means to Persons other than You or under Your control by
|
| 99 |
+
either more than 50% ownership or by the power to direct their
|
| 100 |
+
activities (such as contracting with an independent consultant).
|
| 101 |
+
|
| 102 |
+
"Re-utilisation" - means any form of making available to the public all
|
| 103 |
+
or a Substantial part of the Contents by the distribution of copies, by
|
| 104 |
+
renting, by online or other forms of transmission.
|
| 105 |
+
|
| 106 |
+
"Substantial" - Means substantial in terms of quantity or quality or a
|
| 107 |
+
combination of both. The repeated and systematic Extraction or
|
| 108 |
+
Re-utilisation of insubstantial parts of the Contents may amount to the
|
| 109 |
+
Extraction or Re-utilisation of a Substantial part of the Contents.
|
| 110 |
+
|
| 111 |
+
"Use" - As a verb, means doing any act that is restricted by copyright
|
| 112 |
+
or Database Rights whether in the original medium or any other; and
|
| 113 |
+
includes without limitation distributing, copying, publicly performing,
|
| 114 |
+
publicly displaying, and preparing derivative works of the Database, as
|
| 115 |
+
well as modifying the Database as may be technically necessary to use it
|
| 116 |
+
in a different mode or format.
|
| 117 |
+
|
| 118 |
+
"You" - Means a Person exercising rights under this License who has not
|
| 119 |
+
previously violated the terms of this License with respect to the
|
| 120 |
+
Database, or who has received express permission from the Licensor to
|
| 121 |
+
exercise rights under this License despite a previous violation.
|
| 122 |
+
|
| 123 |
+
Words in the singular include the plural and vice versa.
|
| 124 |
+
|
| 125 |
+
### 2.0 What this License covers
|
| 126 |
+
|
| 127 |
+
2.1. Legal effect of this document. This License is:
|
| 128 |
+
|
| 129 |
+
a. A license of applicable copyright and neighbouring rights;
|
| 130 |
+
|
| 131 |
+
b. A license of the Database Right; and
|
| 132 |
+
|
| 133 |
+
c. An agreement in contract between You and the Licensor.
|
| 134 |
+
|
| 135 |
+
2.2 Legal rights covered. This License covers the legal rights in the
|
| 136 |
+
Database, including:
|
| 137 |
+
|
| 138 |
+
a. Copyright. Any copyright or neighbouring rights in the Database.
|
| 139 |
+
The copyright licensed includes any individual elements of the
|
| 140 |
+
Database, but does not cover the copyright over the Contents
|
| 141 |
+
independent of this Database. See Section 2.4 for details. Copyright
|
| 142 |
+
law varies between jurisdictions, but is likely to cover: the Database
|
| 143 |
+
model or schema, which is the structure, arrangement, and organisation
|
| 144 |
+
of the Database, and can also include the Database tables and table
|
| 145 |
+
indexes; the data entry and output sheets; and the Field names of
|
| 146 |
+
Contents stored in the Database;
|
| 147 |
+
|
| 148 |
+
b. Database Rights. Database Rights only extend to the Extraction and
|
| 149 |
+
Re-utilisation of the whole or a Substantial part of the Contents.
|
| 150 |
+
Database Rights can apply even when there is no copyright over the
|
| 151 |
+
Database. Database Rights can also apply when the Contents are removed
|
| 152 |
+
from the Database and are selected and arranged in a way that would
|
| 153 |
+
not infringe any applicable copyright; and
|
| 154 |
+
|
| 155 |
+
c. Contract. This is an agreement between You and the Licensor for
|
| 156 |
+
access to the Database. In return you agree to certain conditions of
|
| 157 |
+
use on this access as outlined in this License.
|
| 158 |
+
|
| 159 |
+
2.3 Rights not covered.
|
| 160 |
+
|
| 161 |
+
a. This License does not apply to computer programs used in the making
|
| 162 |
+
or operation of the Database;
|
| 163 |
+
|
| 164 |
+
b. This License does not cover any patents over the Contents or the
|
| 165 |
+
Database; and
|
| 166 |
+
|
| 167 |
+
c. This License does not cover any trademarks associated with the
|
| 168 |
+
Database.
|
| 169 |
+
|
| 170 |
+
2.4 Relationship to Contents in the Database. The individual items of
|
| 171 |
+
the Contents contained in this Database may be covered by other rights,
|
| 172 |
+
including copyright, patent, data protection, privacy, or personality
|
| 173 |
+
rights, and this License does not cover any rights (other than Database
|
| 174 |
+
Rights or in contract) in individual Contents contained in the Database.
|
| 175 |
+
For example, if used on a Database of images (the Contents), this
|
| 176 |
+
License would not apply to copyright over individual images, which could
|
| 177 |
+
have their own separate licenses, or one single license covering all of
|
| 178 |
+
the rights over the images.
|
| 179 |
+
|
| 180 |
+
### 3.0 Rights granted
|
| 181 |
+
|
| 182 |
+
3.1 Subject to the terms and conditions of this License, the Licensor
|
| 183 |
+
grants to You a worldwide, royalty-free, non-exclusive, terminable (but
|
| 184 |
+
only under Section 9) license to Use the Database for the duration of
|
| 185 |
+
any applicable copyright and Database Rights. These rights explicitly
|
| 186 |
+
include commercial use, and do not exclude any field of endeavour. To
|
| 187 |
+
the extent possible in the relevant jurisdiction, these rights may be
|
| 188 |
+
exercised in all media and formats whether now known or created in the
|
| 189 |
+
future.
|
| 190 |
+
|
| 191 |
+
The rights granted cover, for example:
|
| 192 |
+
|
| 193 |
+
a. Extraction and Re-utilisation of the whole or a Substantial part of
|
| 194 |
+
the Contents;
|
| 195 |
+
|
| 196 |
+
b. Creation of Derivative Databases;
|
| 197 |
+
|
| 198 |
+
c. Creation of Collective Databases;
|
| 199 |
+
|
| 200 |
+
d. Creation of temporary or permanent reproductions by any means and
|
| 201 |
+
in any form, in whole or in part, including of any Derivative
|
| 202 |
+
Databases or as a part of Collective Databases; and
|
| 203 |
+
|
| 204 |
+
e. Distribution, communication, display, lending, making available, or
|
| 205 |
+
performance to the public by any means and in any form, in whole or in
|
| 206 |
+
part, including of any Derivative Database or as a part of Collective
|
| 207 |
+
Databases.
|
| 208 |
+
|
| 209 |
+
3.2 Compulsory license schemes. For the avoidance of doubt:
|
| 210 |
+
|
| 211 |
+
a. Non-waivable compulsory license schemes. In those jurisdictions in
|
| 212 |
+
which the right to collect royalties through any statutory or
|
| 213 |
+
compulsory licensing scheme cannot be waived, the Licensor reserves
|
| 214 |
+
the exclusive right to collect such royalties for any exercise by You
|
| 215 |
+
of the rights granted under this License;
|
| 216 |
+
|
| 217 |
+
b. Waivable compulsory license schemes. In those jurisdictions in
|
| 218 |
+
which the right to collect royalties through any statutory or
|
| 219 |
+
compulsory licensing scheme can be waived, the Licensor waives the
|
| 220 |
+
exclusive right to collect such royalties for any exercise by You of
|
| 221 |
+
the rights granted under this License; and,
|
| 222 |
+
|
| 223 |
+
c. Voluntary license schemes. The Licensor waives the right to collect
|
| 224 |
+
royalties, whether individually or, in the event that the Licensor is
|
| 225 |
+
a member of a collecting society that administers voluntary licensing
|
| 226 |
+
schemes, via that society, from any exercise by You of the rights
|
| 227 |
+
granted under this License.
|
| 228 |
+
|
| 229 |
+
3.3 The right to release the Database under different terms, or to stop
|
| 230 |
+
distributing or making available the Database, is reserved. Note that
|
| 231 |
+
this Database may be multiple-licensed, and so You may have the choice
|
| 232 |
+
of using alternative licenses for this Database. Subject to Section
|
| 233 |
+
10.4, all other rights not expressly granted by Licensor are reserved.
|
| 234 |
+
|
| 235 |
+
### 4.0 Conditions of Use
|
| 236 |
+
|
| 237 |
+
4.1 The rights granted in Section 3 above are expressly made subject to
|
| 238 |
+
Your complying with the following conditions of use. These are important
|
| 239 |
+
conditions of this License, and if You fail to follow them, You will be
|
| 240 |
+
in material breach of its terms.
|
| 241 |
+
|
| 242 |
+
4.2 Notices. If You Publicly Convey this Database, any Derivative
|
| 243 |
+
Database, or the Database as part of a Collective Database, then You
|
| 244 |
+
must:
|
| 245 |
+
|
| 246 |
+
a. Do so only under the terms of this License or another license
|
| 247 |
+
permitted under Section 4.4;
|
| 248 |
+
|
| 249 |
+
b. Include a copy of this License (or, as applicable, a license
|
| 250 |
+
permitted under Section 4.4) or its Uniform Resource Identifier (URI)
|
| 251 |
+
with the Database or Derivative Database, including both in the
|
| 252 |
+
Database or Derivative Database and in any relevant documentation; and
|
| 253 |
+
|
| 254 |
+
c. Keep intact any copyright or Database Right notices and notices
|
| 255 |
+
that refer to this License.
|
| 256 |
+
|
| 257 |
+
d. If it is not possible to put the required notices in a particular
|
| 258 |
+
file due to its structure, then You must include the notices in a
|
| 259 |
+
location (such as a relevant directory) where users would be likely to
|
| 260 |
+
look for it.
|
| 261 |
+
|
| 262 |
+
4.3 Notice for using output (Contents). Creating and Using a Produced
|
| 263 |
+
Work does not require the notice in Section 4.2. However, if you
|
| 264 |
+
Publicly Use a Produced Work, You must include a notice associated with
|
| 265 |
+
the Produced Work reasonably calculated to make any Person that uses,
|
| 266 |
+
views, accesses, interacts with, or is otherwise exposed to the Produced
|
| 267 |
+
Work aware that Content was obtained from the Database, Derivative
|
| 268 |
+
Database, or the Database as part of a Collective Database, and that it
|
| 269 |
+
is available under this License.
|
| 270 |
+
|
| 271 |
+
a. Example notice. The following text will satisfy notice under
|
| 272 |
+
Section 4.3:
|
| 273 |
+
|
| 274 |
+
Contains information from DATABASE NAME, which is made available
|
| 275 |
+
here under the Open Database License (ODbL).
|
| 276 |
+
|
| 277 |
+
DATABASE NAME should be replaced with the name of the Database and a
|
| 278 |
+
hyperlink to the URI of the Database. "Open Database License" should
|
| 279 |
+
contain a hyperlink to the URI of the text of this License. If
|
| 280 |
+
hyperlinks are not possible, You should include the plain text of the
|
| 281 |
+
required URI's with the above notice.
|
| 282 |
+
|
| 283 |
+
4.4 Share alike.
|
| 284 |
+
|
| 285 |
+
a. Any Derivative Database that You Publicly Use must be only under
|
| 286 |
+
the terms of:
|
| 287 |
+
|
| 288 |
+
i. This License;
|
| 289 |
+
|
| 290 |
+
ii. A later version of this License similar in spirit to this
|
| 291 |
+
License; or
|
| 292 |
+
|
| 293 |
+
iii. A compatible license.
|
| 294 |
+
|
| 295 |
+
If You license the Derivative Database under one of the licenses
|
| 296 |
+
mentioned in (iii), You must comply with the terms of that license.
|
| 297 |
+
|
| 298 |
+
b. For the avoidance of doubt, Extraction or Re-utilisation of the
|
| 299 |
+
whole or a Substantial part of the Contents into a new database is a
|
| 300 |
+
Derivative Database and must comply with Section 4.4.
|
| 301 |
+
|
| 302 |
+
c. Derivative Databases and Produced Works. A Derivative Database is
|
| 303 |
+
Publicly Used and so must comply with Section 4.4. if a Produced Work
|
| 304 |
+
created from the Derivative Database is Publicly Used.
|
| 305 |
+
|
| 306 |
+
d. Share Alike and additional Contents. For the avoidance of doubt,
|
| 307 |
+
You must not add Contents to Derivative Databases under Section 4.4 a
|
| 308 |
+
that are incompatible with the rights granted under this License.
|
| 309 |
+
|
| 310 |
+
e. Compatible licenses. Licensors may authorise a proxy to determine
|
| 311 |
+
compatible licenses under Section 4.4 a iii. If they do so, the
|
| 312 |
+
authorised proxy's public statement of acceptance of a compatible
|
| 313 |
+
license grants You permission to use the compatible license.
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
4.5 Limits of Share Alike. The requirements of Section 4.4 do not apply
|
| 317 |
+
in the following:
|
| 318 |
+
|
| 319 |
+
a. For the avoidance of doubt, You are not required to license
|
| 320 |
+
Collective Databases under this License if You incorporate this
|
| 321 |
+
Database or a Derivative Database in the collection, but this License
|
| 322 |
+
still applies to this Database or a Derivative Database as a part of
|
| 323 |
+
the Collective Database;
|
| 324 |
+
|
| 325 |
+
b. Using this Database, a Derivative Database, or this Database as
|
| 326 |
+
part of a Collective Database to create a Produced Work does not
|
| 327 |
+
create a Derivative Database for purposes of Section 4.4; and
|
| 328 |
+
|
| 329 |
+
c. Use of a Derivative Database internally within an organisation is
|
| 330 |
+
not to the public and therefore does not fall under the requirements
|
| 331 |
+
of Section 4.4.
|
| 332 |
+
|
| 333 |
+
4.6 Access to Derivative Databases. If You Publicly Use a Derivative
|
| 334 |
+
Database or a Produced Work from a Derivative Database, You must also
|
| 335 |
+
offer to recipients of the Derivative Database or Produced Work a copy
|
| 336 |
+
in a machine readable form of:
|
| 337 |
+
|
| 338 |
+
a. The entire Derivative Database; or
|
| 339 |
+
|
| 340 |
+
b. A file containing all of the alterations made to the Database or
|
| 341 |
+
the method of making the alterations to the Database (such as an
|
| 342 |
+
algorithm), including any additional Contents, that make up all the
|
| 343 |
+
differences between the Database and the Derivative Database.
|
| 344 |
+
|
| 345 |
+
The Derivative Database (under a.) or alteration file (under b.) must be
|
| 346 |
+
available at no more than a reasonable production cost for physical
|
| 347 |
+
distributions and free of charge if distributed over the internet.
|
| 348 |
+
|
| 349 |
+
4.7 Technological measures and additional terms
|
| 350 |
+
|
| 351 |
+
a. This License does not allow You to impose (except subject to
|
| 352 |
+
Section 4.7 b.) any terms or any technological measures on the
|
| 353 |
+
Database, a Derivative Database, or the whole or a Substantial part of
|
| 354 |
+
the Contents that alter or restrict the terms of this License, or any
|
| 355 |
+
rights granted under it, or have the effect or intent of restricting
|
| 356 |
+
the ability of any person to exercise those rights.
|
| 357 |
+
|
| 358 |
+
b. Parallel distribution. You may impose terms or technological
|
| 359 |
+
measures on the Database, a Derivative Database, or the whole or a
|
| 360 |
+
Substantial part of the Contents (a "Restricted Database") in
|
| 361 |
+
contravention of Section 4.7 a. only if You also make a copy of the
|
| 362 |
+
Database or a Derivative Database available to the recipient of the
|
| 363 |
+
Restricted Database:
|
| 364 |
+
|
| 365 |
+
i. That is available without additional fee;
|
| 366 |
+
|
| 367 |
+
ii. That is available in a medium that does not alter or restrict
|
| 368 |
+
the terms of this License, or any rights granted under it, or have
|
| 369 |
+
the effect or intent of restricting the ability of any person to
|
| 370 |
+
exercise those rights (an "Unrestricted Database"); and
|
| 371 |
+
|
| 372 |
+
iii. The Unrestricted Database is at least as accessible to the
|
| 373 |
+
recipient as a practical matter as the Restricted Database.
|
| 374 |
+
|
| 375 |
+
c. For the avoidance of doubt, You may place this Database or a
|
| 376 |
+
Derivative Database in an authenticated environment, behind a
|
| 377 |
+
password, or within a similar access control scheme provided that You
|
| 378 |
+
do not alter or restrict the terms of this License or any rights
|
| 379 |
+
granted under it or have the effect or intent of restricting the
|
| 380 |
+
ability of any person to exercise those rights.
|
| 381 |
+
|
| 382 |
+
4.8 Licensing of others. You may not sublicense the Database. Each time
|
| 383 |
+
You communicate the Database, the whole or Substantial part of the
|
| 384 |
+
Contents, or any Derivative Database to anyone else in any way, the
|
| 385 |
+
Licensor offers to the recipient a license to the Database on the same
|
| 386 |
+
terms and conditions as this License. You are not responsible for
|
| 387 |
+
enforcing compliance by third parties with this License, but You may
|
| 388 |
+
enforce any rights that You have over a Derivative Database. You are
|
| 389 |
+
solely responsible for any modifications of a Derivative Database made
|
| 390 |
+
by You or another Person at Your direction. You may not impose any
|
| 391 |
+
further restrictions on the exercise of the rights granted or affirmed
|
| 392 |
+
under this License.
|
| 393 |
+
|
| 394 |
+
### 5.0 Moral rights
|
| 395 |
+
|
| 396 |
+
5.1 Moral rights. This section covers moral rights, including any rights
|
| 397 |
+
to be identified as the author of the Database or to object to treatment
|
| 398 |
+
that would otherwise prejudice the author's honour and reputation, or
|
| 399 |
+
any other derogatory treatment:
|
| 400 |
+
|
| 401 |
+
a. For jurisdictions allowing waiver of moral rights, Licensor waives
|
| 402 |
+
all moral rights that Licensor may have in the Database to the fullest
|
| 403 |
+
extent possible by the law of the relevant jurisdiction under Section
|
| 404 |
+
10.4;
|
| 405 |
+
|
| 406 |
+
b. If waiver of moral rights under Section 5.1 a in the relevant
|
| 407 |
+
jurisdiction is not possible, Licensor agrees not to assert any moral
|
| 408 |
+
rights over the Database and waives all claims in moral rights to the
|
| 409 |
+
fullest extent possible by the law of the relevant jurisdiction under
|
| 410 |
+
Section 10.4; and
|
| 411 |
+
|
| 412 |
+
c. For jurisdictions not allowing waiver or an agreement not to assert
|
| 413 |
+
moral rights under Section 5.1 a and b, the author may retain their
|
| 414 |
+
moral rights over certain aspects of the Database.
|
| 415 |
+
|
| 416 |
+
Please note that some jurisdictions do not allow for the waiver of moral
|
| 417 |
+
rights, and so moral rights may still subsist over the Database in some
|
| 418 |
+
jurisdictions.
|
| 419 |
+
|
| 420 |
+
### 6.0 Fair dealing, Database exceptions, and other rights not affected
|
| 421 |
+
|
| 422 |
+
6.1 This License does not affect any rights that You or anyone else may
|
| 423 |
+
independently have under any applicable law to make any use of this
|
| 424 |
+
Database, including without limitation:
|
| 425 |
+
|
| 426 |
+
a. Exceptions to the Database Right including: Extraction of Contents
|
| 427 |
+
from non-electronic Databases for private purposes, Extraction for
|
| 428 |
+
purposes of illustration for teaching or scientific research, and
|
| 429 |
+
Extraction or Re-utilisation for public security or an administrative
|
| 430 |
+
or judicial procedure.
|
| 431 |
+
|
| 432 |
+
b. Fair dealing, fair use, or any other legally recognised limitation
|
| 433 |
+
or exception to infringement of copyright or other applicable laws.
|
| 434 |
+
|
| 435 |
+
6.2 This License does not affect any rights of lawful users to Extract
|
| 436 |
+
and Re-utilise insubstantial parts of the Contents, evaluated
|
| 437 |
+
quantitatively or qualitatively, for any purposes whatsoever, including
|
| 438 |
+
creating a Derivative Database (subject to other rights over the
|
| 439 |
+
Contents, see Section 2.4). The repeated and systematic Extraction or
|
| 440 |
+
Re-utilisation of insubstantial parts of the Contents may however amount
|
| 441 |
+
to the Extraction or Re-utilisation of a Substantial part of the
|
| 442 |
+
Contents.
|
| 443 |
+
|
| 444 |
+
### 7.0 Warranties and Disclaimer
|
| 445 |
+
|
| 446 |
+
7.1 The Database is licensed by the Licensor "as is" and without any
|
| 447 |
+
warranty of any kind, either express, implied, or arising by statute,
|
| 448 |
+
custom, course of dealing, or trade usage. Licensor specifically
|
| 449 |
+
disclaims any and all implied warranties or conditions of title,
|
| 450 |
+
non-infringement, accuracy or completeness, the presence or absence of
|
| 451 |
+
errors, fitness for a particular purpose, merchantability, or otherwise.
|
| 452 |
+
Some jurisdictions do not allow the exclusion of implied warranties, so
|
| 453 |
+
this exclusion may not apply to You.
|
| 454 |
+
|
| 455 |
+
### 8.0 Limitation of liability
|
| 456 |
+
|
| 457 |
+
8.1 Subject to any liability that may not be excluded or limited by law,
|
| 458 |
+
the Licensor is not liable for, and expressly excludes, all liability
|
| 459 |
+
for loss or damage however and whenever caused to anyone by any use
|
| 460 |
+
under this License, whether by You or by anyone else, and whether caused
|
| 461 |
+
by any fault on the part of the Licensor or not. This exclusion of
|
| 462 |
+
liability includes, but is not limited to, any special, incidental,
|
| 463 |
+
consequential, punitive, or exemplary damages such as loss of revenue,
|
| 464 |
+
data, anticipated profits, and lost business. This exclusion applies
|
| 465 |
+
even if the Licensor has been advised of the possibility of such
|
| 466 |
+
damages.
|
| 467 |
+
|
| 468 |
+
8.2 If liability may not be excluded by law, it is limited to actual and
|
| 469 |
+
direct financial loss to the extent it is caused by proved negligence on
|
| 470 |
+
the part of the Licensor.
|
| 471 |
+
|
| 472 |
+
### 9.0 Termination of Your rights under this License
|
| 473 |
+
|
| 474 |
+
9.1 Any breach by You of the terms and conditions of this License
|
| 475 |
+
automatically terminates this License with immediate effect and without
|
| 476 |
+
notice to You. For the avoidance of doubt, Persons who have received the
|
| 477 |
+
Database, the whole or a Substantial part of the Contents, Derivative
|
| 478 |
+
Databases, or the Database as part of a Collective Database from You
|
| 479 |
+
under this License will not have their licenses terminated provided
|
| 480 |
+
their use is in full compliance with this License or a license granted
|
| 481 |
+
under Section 4.8 of this License. Sections 1, 2, 7, 8, 9 and 10 will
|
| 482 |
+
survive any termination of this License.
|
| 483 |
+
|
| 484 |
+
9.2 If You are not in breach of the terms of this License, the Licensor
|
| 485 |
+
will not terminate Your rights under it.
|
| 486 |
+
|
| 487 |
+
9.3 Unless terminated under Section 9.1, this License is granted to You
|
| 488 |
+
for the duration of applicable rights in the Database.
|
| 489 |
+
|
| 490 |
+
9.4 Reinstatement of rights. If you cease any breach of the terms and
|
| 491 |
+
conditions of this License, then your full rights under this License
|
| 492 |
+
will be reinstated:
|
| 493 |
+
|
| 494 |
+
a. Provisionally and subject to permanent termination until the 60th
|
| 495 |
+
day after cessation of breach;
|
| 496 |
+
|
| 497 |
+
b. Permanently on the 60th day after cessation of breach unless
|
| 498 |
+
otherwise reasonably notified by the Licensor; or
|
| 499 |
+
|
| 500 |
+
c. Permanently if reasonably notified by the Licensor of the
|
| 501 |
+
violation, this is the first time You have received notice of
|
| 502 |
+
violation of this License from the Licensor, and You cure the
|
| 503 |
+
violation prior to 30 days after your receipt of the notice.
|
| 504 |
+
|
| 505 |
+
Persons subject to permanent termination of rights are not eligible to
|
| 506 |
+
be a recipient and receive a license under Section 4.8.
|
| 507 |
+
|
| 508 |
+
9.5 Notwithstanding the above, Licensor reserves the right to release
|
| 509 |
+
the Database under different license terms or to stop distributing or
|
| 510 |
+
making available the Database. Releasing the Database under different
|
| 511 |
+
license terms or stopping the distribution of the Database will not
|
| 512 |
+
withdraw this License (or any other license that has been, or is
|
| 513 |
+
required to be, granted under the terms of this License), and this
|
| 514 |
+
License will continue in full force and effect unless terminated as
|
| 515 |
+
stated above.
|
| 516 |
+
|
| 517 |
+
### 10.0 General
|
| 518 |
+
|
| 519 |
+
10.1 If any provision of this License is held to be invalid or
|
| 520 |
+
unenforceable, that must not affect the validity or enforceability of
|
| 521 |
+
the remainder of the terms and conditions of this License and each
|
| 522 |
+
remaining provision of this License shall be valid and enforced to the
|
| 523 |
+
fullest extent permitted by law.
|
| 524 |
+
|
| 525 |
+
10.2 This License is the entire agreement between the parties with
|
| 526 |
+
respect to the rights granted here over the Database. It replaces any
|
| 527 |
+
earlier understandings, agreements or representations with respect to
|
| 528 |
+
the Database.
|
| 529 |
+
|
| 530 |
+
10.3 If You are in breach of the terms of this License, You will not be
|
| 531 |
+
entitled to rely on the terms of this License or to complain of any
|
| 532 |
+
breach by the Licensor.
|
| 533 |
+
|
| 534 |
+
10.4 Choice of law. This License takes effect in and will be governed by
|
| 535 |
+
the laws of the relevant jurisdiction in which the License terms are
|
| 536 |
+
sought to be enforced. If the standard suite of rights granted under
|
| 537 |
+
applicable copyright law and Database Rights in the relevant
|
| 538 |
+
jurisdiction includes additional rights not granted under this License,
|
| 539 |
+
these additional rights are granted in this License in order to meet the
|
| 540 |
+
terms of this License.
|
README.md
CHANGED
|
@@ -26,7 +26,7 @@ This repository holds the data behind the study at **[getalistof.com/local-digit
|
|
| 26 |
city and kind of business (4,520 rows), the summary JSON, the charts below and the script that builds them.
|
| 27 |
Last numbers change: 11 November 2026.
|
| 28 |
|
| 29 |
-
; advertising agencies have the fewest gaps
|
| 32 |
(32%). The single largest pile is restaurants in Paris: 5,825 of
|
|
@@ -43,7 +43,7 @@ opening hours closely (r = 0.73). Its link to how many businesses a city has map
|
|
| 43 |
Where mappers fill in contact details, they tend to fill in all of them; where they mostly add a name and a shop
|
| 44 |
type, all three stay blank.
|
| 45 |
|
| 46 |
-
 next to a low one in Seattle, WA (32%) says at least as much about
|
| 49 |
local mapping habits as about local businesses. Compare kinds of business within one city, or cities within one country,
|
|
@@ -52,7 +52,7 @@ page instead of the business's own site.
|
|
| 52 |
|
| 53 |
## By country
|
| 54 |
|
| 55 |
-
 (see [`LICENSE`](https://
|
| 114 |
|
| 115 |
- Credit: **© OpenStreetMap contributors**, and link to the study: https://getalistof.com/local-digital-gap/
|
| 116 |
- Share-alike: if you publish an adapted version of this data, keep it under the ODbL.
|
|
|
|
| 26 |
city and kind of business (4,520 rows), the summary JSON, the charts below and the script that builds them.
|
| 27 |
Last numbers change: 11 November 2026.
|
| 28 |
|
| 29 |
+

|
| 30 |
|
| 31 |
Nail salons and dry cleaners lead the list (87% with no website listed); advertising agencies have the fewest gaps
|
| 32 |
(32%). The single largest pile is restaurants in Paris: 5,825 of
|
|
|
|
| 43 |
Where mappers fill in contact details, they tend to fill in all of them; where they mostly add a name and a shop
|
| 44 |
type, all three stay blank.
|
| 45 |
|
| 46 |
+

|
| 47 |
|
| 48 |
So a high share in Singapore (82%) next to a low one in Seattle, WA (32%) says at least as much about
|
| 49 |
local mapping habits as about local businesses. Compare kinds of business within one city, or cities within one country,
|
|
|
|
| 52 |
|
| 53 |
## By country
|
| 54 |
|
| 55 |
+

|
| 56 |
|
| 57 |
| Country | Cities | Named businesses | No website | No phone | No opening hours |
|
| 58 |
|---|---:|---:|---:|---:|---:|
|
|
|
|
| 89 |
|
| 90 |
| File | What it holds |
|
| 91 |
|---|---|
|
| 92 |
+
| [`data/local-digital-gap.csv`](https://huggingface.co/datasets/getalistof/local-digital-gap/blob/main/data/local-digital-gap.csv) | one row per city and kind of business: `city`, `country`, `kind_of_business`, `group`, `named_places`, `website_listed`, `social_or_directory_page_only`, `no_website_listed`, `no_website_pct`, `phone_listed`, `phone_pct`, `opening_hours_listed`, `opening_hours_pct`, `osm_extract_date`, `list_url`, `licence` |
|
| 93 |
+
| [`data/local-digital-gap.json`](https://huggingface.co/datasets/getalistof/local-digital-gap/blob/main/data/local-digital-gap.json) | the same counts rolled up by kind, city and country, plus the largest and smallest gaps (cells under 20 records are left out of the rankings) |
|
| 94 |
+
| [`charts/`](https://huggingface.co/datasets/getalistof/local-digital-gap/tree/main/charts) | the three charts on this page, as SVG |
|
| 95 |
+
| [`scripts/build.py`](https://huggingface.co/datasets/getalistof/local-digital-gap/blob/main/scripts/build.py) | downloads the current files from the study (`--fetch`) and rebuilds the charts and this README; standard-library Python |
|
| 96 |
|
| 97 |
## Method
|
| 98 |
|
|
|
|
| 110 |
## Licence and credit
|
| 111 |
|
| 112 |
The data is derived from OpenStreetMap and is available under the
|
| 113 |
+
[Open Database License 1.0](https://opendatacommons.org/licenses/odbl/1-0/) (see [`LICENSE`](https://huggingface.co/datasets/getalistof/local-digital-gap/blob/main/LICENSE)).
|
| 114 |
|
| 115 |
- Credit: **© OpenStreetMap contributors**, and link to the study: https://getalistof.com/local-digital-gap/
|
| 116 |
- Share-alike: if you publish an adapted version of this data, keep it under the ODbL.
|
charts/no-website-by-country.svg
ADDED
|
|
charts/no-website-by-kind.svg
ADDED
|
|
charts/website-vs-phone-by-city.svg
ADDED
|
|
scripts/build.py
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Rebuild this repository from the live study at https://getalistof.com/local-digital-gap/.
|
| 2 |
+
|
| 3 |
+
python3 scripts/build.py # charts + README from the files in data/
|
| 4 |
+
python3 scripts/build.py --fetch # download the current CSV + JSON first
|
| 5 |
+
|
| 6 |
+
Standard library only. The numbers in README.md and charts/ are computed from data/, never typed by hand.
|
| 7 |
+
"""
|
| 8 |
+
import csv
|
| 9 |
+
import io
|
| 10 |
+
import json
|
| 11 |
+
import math
|
| 12 |
+
import statistics
|
| 13 |
+
import sys
|
| 14 |
+
import urllib.request
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
|
| 17 |
+
ROOT = Path(__file__).resolve().parent.parent
|
| 18 |
+
DATA = ROOT / "data"
|
| 19 |
+
CHARTS = ROOT / "charts"
|
| 20 |
+
SITE = "https://getalistof.com"
|
| 21 |
+
STUDY = SITE + "/local-digital-gap/"
|
| 22 |
+
FILES = ("local-digital-gap.json", "local-digital-gap.csv")
|
| 23 |
+
|
| 24 |
+
SURFACE, INK, INK2, MUTED, GRID, BAR, BAR2 = "#fcfcfb", "#0b0b0b", "#52514e", "#8a8984", "#e6e5e0", "#2a78d6", "#eb6834"
|
| 25 |
+
FONT = "Helvetica, Arial, sans-serif"
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def fetch():
|
| 29 |
+
DATA.mkdir(exist_ok=True)
|
| 30 |
+
for name in FILES:
|
| 31 |
+
req = urllib.request.Request(f"{SITE}/data/{name}", headers={"User-Agent": "local-digital-gap-repo/1.0"})
|
| 32 |
+
body = urllib.request.urlopen(req, timeout=60).read()
|
| 33 |
+
if name.endswith(".json"):
|
| 34 |
+
json.loads(body) # refuse a broken download
|
| 35 |
+
else:
|
| 36 |
+
rows = list(csv.reader(io.StringIO(body.decode("utf-8-sig"))))
|
| 37 |
+
if len(rows) < 100:
|
| 38 |
+
raise SystemExit(f"{name}: only {len(rows)} rows, refusing")
|
| 39 |
+
(DATA / name).write_bytes(body)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def esc(s):
|
| 43 |
+
return str(s).replace("&", "&").replace("<", "<").replace(">", ">").replace('"', """)
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def text_w(s, size):
|
| 47 |
+
"""Rough rendered width of Helvetica/Arial text (enough to keep labels from colliding)."""
|
| 48 |
+
narrow = sum(1 for ch in s if ch in "il.,:;'|!()[] ")
|
| 49 |
+
wide = sum(1 for ch in s if ch in "MWmw@%")
|
| 50 |
+
return size * (0.56 * (len(s) - narrow - wide) + 0.3 * narrow + 0.85 * wide)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def n(x):
|
| 54 |
+
return f"{x:,}"
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def bar_chart(path, title, subtitle, rows, source, xmax=100):
|
| 58 |
+
"""Horizontal bars, one series, 0-xmax%. rows: (label, pct, note)."""
|
| 59 |
+
label_w = max(text_w(r[0], 13) for r in rows) + 16
|
| 60 |
+
note_w = max(text_w(r[2], 12) for r in rows) + 60
|
| 61 |
+
plot_w = 520
|
| 62 |
+
W = int(24 + label_w + plot_w + note_w + 24)
|
| 63 |
+
row_h, bar_h, top = 24, 16, 96
|
| 64 |
+
H = top + row_h * len(rows) + 64
|
| 65 |
+
x0 = 24 + label_w
|
| 66 |
+
out = [f'<svg xmlns="http://www.w3.org/2000/svg" width="{W}" height="{H}" viewBox="0 0 {W} {H}" font-family="{FONT}">',
|
| 67 |
+
f'<rect width="{W}" height="{H}" fill="{SURFACE}"/>',
|
| 68 |
+
f'<text x="24" y="38" font-size="20" font-weight="700" fill="{INK}">{esc(title)}</text>',
|
| 69 |
+
f'<text x="24" y="62" font-size="13" fill="{INK2}">{esc(subtitle)}</text>']
|
| 70 |
+
step = 25 if xmax > 60 else 10
|
| 71 |
+
for t in range(0, xmax + 1, step):
|
| 72 |
+
x = x0 + plot_w * t / xmax
|
| 73 |
+
out.append(f'<line x1="{x:.1f}" y1="{top - 8}" x2="{x:.1f}" y2="{top + row_h * len(rows)}" stroke="{GRID}" stroke-width="1"/>')
|
| 74 |
+
out.append(f'<text x="{x:.1f}" y="{top - 14}" font-size="11" fill="{MUTED}" text-anchor="middle">{t}%</text>')
|
| 75 |
+
for i, (label, pct, note) in enumerate(rows):
|
| 76 |
+
y = top + i * row_h + (row_h - bar_h) / 2
|
| 77 |
+
w = max(plot_w * min(pct, xmax) / xmax, 2)
|
| 78 |
+
r = min(4, w / 2)
|
| 79 |
+
out.append(f'<text x="{x0 - 10:.1f}" y="{y + bar_h - 4:.1f}" font-size="13" fill="{INK}" text-anchor="end">{esc(label)}</text>')
|
| 80 |
+
# square at the baseline, 4px rounded data end
|
| 81 |
+
out.append(f'<path d="M{x0:.1f},{y:.1f} h{w - r:.1f} a{r},{r} 0 0 1 {r},{r} v{bar_h - 2 * r:.1f} a{r},{r} 0 0 1 -{r},{r} h-{w - r:.1f} z" fill="{BAR}"/>')
|
| 82 |
+
out.append(f'<text x="{x0 + w + 8:.1f}" y="{y + bar_h - 4:.1f}" font-size="13" font-weight="700" fill="{INK}" stroke="{SURFACE}" stroke-width="4" paint-order="stroke">{pct}%</text>')
|
| 83 |
+
out.append(f'<text x="{x0 + w + 46:.1f}" y="{y + bar_h - 4:.1f}" font-size="12" fill="{MUTED}" stroke="{SURFACE}" stroke-width="4" paint-order="stroke">{esc(note)}</text>')
|
| 84 |
+
out.append(f'<text x="24" y="{H - 24}" font-size="11" fill="{MUTED}">{esc(source)}</text>')
|
| 85 |
+
out.append("</svg>")
|
| 86 |
+
path.write_text("\n".join(out) + "\n", encoding="utf-8", newline="\n")
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def scatter(path, title, subtitle, pts, xlab, ylab, source, label_names):
|
| 90 |
+
"""pts: (name, x_pct, y_pct, size). Both axes 0-100; labels only for label_names."""
|
| 91 |
+
W, H, L, R, T, B = 760, 640, 76, 40, 96, 92
|
| 92 |
+
pw, ph = W - L - R, H - T - B
|
| 93 |
+
lo = 20
|
| 94 |
+
|
| 95 |
+
def sx(v):
|
| 96 |
+
return L + pw * (v - lo) / (100 - lo)
|
| 97 |
+
|
| 98 |
+
def sy(v):
|
| 99 |
+
return T + ph * (1 - (v - lo) / (100 - lo))
|
| 100 |
+
out = [f'<svg xmlns="http://www.w3.org/2000/svg" width="{W}" height="{H}" viewBox="0 0 {W} {H}" font-family="{FONT}">',
|
| 101 |
+
f'<rect width="{W}" height="{H}" fill="{SURFACE}"/>',
|
| 102 |
+
f'<text x="24" y="38" font-size="20" font-weight="700" fill="{INK}">{esc(title)}</text>',
|
| 103 |
+
f'<text x="24" y="62" font-size="13" fill="{INK2}">{esc(subtitle)}</text>']
|
| 104 |
+
for t in range(lo, 101, 20):
|
| 105 |
+
out.append(f'<line x1="{sx(t):.1f}" y1="{T}" x2="{sx(t):.1f}" y2="{T + ph}" stroke="{GRID}"/>')
|
| 106 |
+
out.append(f'<line x1="{L}" y1="{sy(t):.1f}" x2="{L + pw}" y2="{sy(t):.1f}" stroke="{GRID}"/>')
|
| 107 |
+
out.append(f'<text x="{sx(t):.1f}" y="{T + ph + 18}" font-size="11" fill="{MUTED}" text-anchor="middle">{t}%</text>')
|
| 108 |
+
out.append(f'<text x="{L - 8}" y="{sy(t) + 4:.1f}" font-size="11" fill="{MUTED}" text-anchor="end">{t}%</text>')
|
| 109 |
+
out.append(f'<text x="{L + pw / 2:.1f}" y="{T + ph + 44}" font-size="13" fill="{INK2}" text-anchor="middle">{esc(xlab)}</text>')
|
| 110 |
+
out.append(f'<text transform="translate(22,{T + ph / 2:.1f}) rotate(-90)" font-size="13" fill="{INK2}" text-anchor="middle">{esc(ylab)}</text>')
|
| 111 |
+
smax = max(p[3] for p in pts)
|
| 112 |
+
for name, x, y, size in sorted(pts, key=lambda p: -p[3]):
|
| 113 |
+
r = 4 + 10 * math.sqrt(size / smax)
|
| 114 |
+
out.append(f'<circle cx="{sx(x):.1f}" cy="{sy(y):.1f}" r="{r:.1f}" fill="{BAR}" fill-opacity="0.55" stroke="{SURFACE}" stroke-width="2"><title>{esc(name)}: {x}% / {y}%</title></circle>')
|
| 115 |
+
placed = [] # label boxes (x0, y0, x1, y1); a label that would touch another one is dropped, never stacked
|
| 116 |
+
for name, x, y, size in sorted(pts, key=lambda p: -p[3]):
|
| 117 |
+
if name not in label_names:
|
| 118 |
+
continue
|
| 119 |
+
r = 4 + 10 * math.sqrt(size / smax)
|
| 120 |
+
w = text_w(name, 12)
|
| 121 |
+
cx, cy = sx(x), sy(y)
|
| 122 |
+
for anchor, tx, ty in (("start", cx + r + 4, cy + 4), ("end", cx - r - 4, cy + 4),
|
| 123 |
+
("middle", cx, cy - r - 5), ("middle", cx, cy + r + 14)):
|
| 124 |
+
x0 = tx if anchor == "start" else tx - w if anchor == "end" else tx - w / 2
|
| 125 |
+
box = (x0 - 2, ty - 12, x0 + w + 2, ty + 3)
|
| 126 |
+
if box[0] > L and box[2] < L + pw and not any(overlap(box, b) for b in placed):
|
| 127 |
+
placed.append(box)
|
| 128 |
+
out.append(f'<text x="{tx:.1f}" y="{ty:.1f}" font-size="12" fill="{INK}" text-anchor="{anchor}">{esc(name)}</text>')
|
| 129 |
+
break
|
| 130 |
+
out.append(f'<text x="24" y="{H - 20}" font-size="11" fill="{MUTED}">{esc(source)}</text>')
|
| 131 |
+
out.append("</svg>")
|
| 132 |
+
path.write_text("\n".join(out) + "\n", encoding="utf-8", newline="\n")
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def overlap(a, b):
|
| 136 |
+
return a[0] < b[2] and b[0] < a[2] and a[1] < b[3] and b[1] < a[3]
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
def gate_text(path):
|
| 140 |
+
"""Build gate: no two text labels in a chart may overlap, and none may leave the canvas."""
|
| 141 |
+
import re
|
| 142 |
+
svg = path.read_text(encoding="utf-8")
|
| 143 |
+
W = float(re.search(r'width="([\d.]+)"', svg).group(1))
|
| 144 |
+
boxes = []
|
| 145 |
+
for m in re.finditer(r'<text x="([\d.-]+)" y="([\d.-]+)" font-size="(\d+)"([^>]*)>([^<]*)</text>', svg):
|
| 146 |
+
x, y, size, txt = float(m[1]), float(m[2]), int(m[3]), m[5]
|
| 147 |
+
a = re.search(r'text-anchor="(\w+)"', m[4])
|
| 148 |
+
anchor = a.group(1) if a else "start"
|
| 149 |
+
w = text_w(txt.replace("&", "&"), size)
|
| 150 |
+
x0 = x if anchor == "start" else x - w if anchor == "end" else x - w / 2
|
| 151 |
+
box = (x0, y - size * 0.8, x0 + w, y + size * 0.2, txt)
|
| 152 |
+
if box[0] < 0 or box[2] > W:
|
| 153 |
+
raise SystemExit(f"{path.name}: label {txt!r} leaves the canvas")
|
| 154 |
+
for b in boxes:
|
| 155 |
+
if overlap(box, b):
|
| 156 |
+
raise SystemExit(f"{path.name}: labels {txt!r} and {b[4]!r} overlap")
|
| 157 |
+
boxes.append(box)
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
def human_date(iso):
|
| 161 |
+
y, m, d = iso.split("-")
|
| 162 |
+
months = "January February March April May June July August September October November December".split()
|
| 163 |
+
return f"{int(d)} {months[int(m) - 1]} {y}"
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
def build():
|
| 167 |
+
d = json.loads((DATA / FILES[0]).read_text(encoding="utf-8"))
|
| 168 |
+
rows = list(csv.DictReader(io.StringIO((DATA / FILES[1]).read_text(encoding="utf-8-sig"))))
|
| 169 |
+
t = d["totals"]
|
| 170 |
+
kinds = sorted(d["byKind"], key=lambda k: (-k["noWebsitePct"], -k["places"]))
|
| 171 |
+
cities = [c for c in d["byCity"] if c["places"] >= 200]
|
| 172 |
+
countries = sorted(d["byCountry"], key=lambda c: -c["noWebsitePct"])
|
| 173 |
+
upd = human_date(d["updated"])
|
| 174 |
+
ext = f"{human_date(d['extractFrom'])} to {human_date(d['extractTo'])}"
|
| 175 |
+
src = f"Source: OpenStreetMap contributors (ODbL), extracts {ext}. getalistof.com/local-digital-gap"
|
| 176 |
+
CHARTS.mkdir(exist_ok=True)
|
| 177 |
+
|
| 178 |
+
bar_chart(CHARTS / "no-website-by-kind.svg",
|
| 179 |
+
"Local businesses on OpenStreetMap with no website on their record",
|
| 180 |
+
f"Share of named records with no website tag, by kind of business. {n(t['places'])} records, {t['cities']} cities, {t['countries']} countries; kinds with 200+ records.",
|
| 181 |
+
[(k["name"], k["noWebsitePct"], f"{n(k['noWebsite'])} of {n(k['places'])}") for k in kinds], src)
|
| 182 |
+
bar_chart(CHARTS / "no-website-by-country.svg",
|
| 183 |
+
"No website on the map record, by country",
|
| 184 |
+
"Share of named business records with no website tag, all kinds together, in the cities covered.",
|
| 185 |
+
[(f"{c['name']} ({c['cities']} {'city' if c['cities'] == 1 else 'cities'})", c["noWebsitePct"], f"{n(c['noWebsite'])} of {n(c['places'])}") for c in countries], src)
|
| 186 |
+
|
| 187 |
+
xs = [c["noWebsitePct"] for c in cities]
|
| 188 |
+
ys = [c["noPhonePct"] for c in cities]
|
| 189 |
+
r_phone = statistics.correlation(xs, ys)
|
| 190 |
+
r_hours = statistics.correlation(xs, [c["noHoursPct"] for c in cities])
|
| 191 |
+
r_size = statistics.correlation(xs, [math.log(c["places"]) for c in cities])
|
| 192 |
+
lo_c = min(cities, key=lambda c: c["noWebsitePct"])
|
| 193 |
+
hi_c = max(cities, key=lambda c: (c["noWebsitePct"], c["places"]))
|
| 194 |
+
def strength(r):
|
| 195 |
+
r = abs(r)
|
| 196 |
+
return "closely" if r >= 0.7 else "clearly" if r >= 0.5 else "loosely" if r >= 0.3 else "barely"
|
| 197 |
+
def link(r):
|
| 198 |
+
r = abs(r)
|
| 199 |
+
return "strong" if r >= 0.7 else "clear" if r >= 0.5 else "weak" if r >= 0.3 else "close to nothing"
|
| 200 |
+
big = sorted(cities, key=lambda c: -c["places"])[:6]
|
| 201 |
+
named = {c["name"] for c in big} | {lo_c["name"], hi_c["name"]} | {c["name"] for c in sorted(cities, key=lambda c: c["noWebsitePct"])[:3]}
|
| 202 |
+
scatter(CHARTS / "website-vs-phone-by-city.svg",
|
| 203 |
+
"Cities whose records lack websites also lack phone numbers",
|
| 204 |
+
f"{len(cities)} cities, one dot each (size = named business records). Pearson r = {r_phone:.2f}.",
|
| 205 |
+
[(c["name"], c["noWebsitePct"], c["noPhonePct"], c["places"]) for c in cities],
|
| 206 |
+
"No website on the record", "No phone on the record", src, named)
|
| 207 |
+
|
| 208 |
+
for svg in CHARTS.glob("*.svg"):
|
| 209 |
+
gate_text(svg)
|
| 210 |
+
top = d["biggestGaps"][:8]
|
| 211 |
+
ctry_rows = "\n".join(f"| {c['name']} | {c['cities']} | {n(c['places'])} | {c['noWebsitePct']}% | {c['noPhonePct']}% | {c['noHoursPct']}% |" for c in countries)
|
| 212 |
+
gap_rows = "\n".join(f"| {g['category']} | {g['city']} | {n(g['noWebsite'])} of {n(g['places'])} | {g['noWebsitePct']}% | [list]({SITE}{g['listPath']}) |" for g in top)
|
| 213 |
+
k_hi, k_lo = kinds[0], kinds[-1]
|
| 214 |
+
social = t["socialOnly"]
|
| 215 |
+
header = list(rows[0].keys())
|
| 216 |
+
readme = f"""# The local digital gap: OpenStreetMap business records in {t['cities']} cities
|
| 217 |
+
|
| 218 |
+
**{n(t['noWebsite'])} of {n(t['places'])} named local businesses on OpenStreetMap have no website on their map record ({t['noWebsitePct']}%).**
|
| 219 |
+
{t['noPhonePct']}% have no phone number and {t['noHoursPct']}% no opening hours. The records cover {t['kinds']} kinds of business
|
| 220 |
+
in {t['cities']} cities across {t['countries']} countries, from OpenStreetMap extracts of {ext}.
|
| 221 |
+
|
| 222 |
+
This repository holds the data behind the study at **[getalistof.com/local-digital-gap]({STUDY})**: one row per
|
| 223 |
+
city and kind of business ({n(len(rows))} rows), the summary JSON, the charts below and the script that builds them.
|
| 224 |
+
Last numbers change: {upd}.
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
|
| 228 |
+
{" and ".join(k['name'] if i == 0 else k['name'].lower() for i, k in enumerate(k for k in kinds if k['noWebsitePct'] == k_hi['noWebsitePct']))} lead the list ({k_hi['noWebsitePct']}% with no website listed); {k_lo['name'].lower()} have the fewest gaps
|
| 229 |
+
({k_lo['noWebsitePct']}%). The single largest pile is {top[0]['category'].lower()} in {top[0]['city']}: {n(top[0]['noWebsite'])} of
|
| 230 |
+
{n(top[0]['places'])} list no website.
|
| 231 |
+
|
| 232 |
+
## Read this before quoting a number
|
| 233 |
+
|
| 234 |
+
"No website listed" means the map record has no `website`, `contact:website` or `url` tag. It does not mean the business
|
| 235 |
+
has no website. A volunteer simply has not added one yet.
|
| 236 |
+
|
| 237 |
+
The city numbers show how much of the gap is about the map itself. Across the {len(cities)} cities, the share of records
|
| 238 |
+
with no website tracks the share with no phone number {strength(r_phone)} (Pearson r = {r_phone:.2f}) and the share with no
|
| 239 |
+
opening hours {strength(r_hours)} (r = {r_hours:.2f}). Its link to how many businesses a city has mapped is {link(r_size)} (r = {r_size:.2f} against the log of the count).
|
| 240 |
+
Where mappers fill in contact details, they tend to fill in all of them; where they mostly add a name and a shop
|
| 241 |
+
type, all three stay blank.
|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
|
| 245 |
+
So a high share in {hi_c['name']} ({hi_c['noWebsitePct']}%) next to a low one in {lo_c['name']} ({lo_c['noWebsitePct']}%) says at least as much about
|
| 246 |
+
local mapping habits as about local businesses. Compare kinds of business within one city, or cities within one country,
|
| 247 |
+
before comparing across countries. Only {n(social)} records ({social / t['places'] * 100:.1f}%) point to a social or directory
|
| 248 |
+
page instead of the business's own site.
|
| 249 |
+
|
| 250 |
+
## By country
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
|
| 254 |
+
| Country | Cities | Named businesses | No website | No phone | No opening hours |
|
| 255 |
+
|---|---:|---:|---:|---:|---:|
|
| 256 |
+
{ctry_rows}
|
| 257 |
+
|
| 258 |
+
## Largest gaps
|
| 259 |
+
|
| 260 |
+
City lists with the most named businesses and no website on their record:
|
| 261 |
+
|
| 262 |
+
| Kind of business | City | No website listed | Share | The list |
|
| 263 |
+
|---|---|---:|---:|---|
|
| 264 |
+
{gap_rows}
|
| 265 |
+
|
| 266 |
+
Every city has its own breakdown at `{STUDY}<city>/`, and each row of the CSV links to the free list it was counted from.
|
| 267 |
+
|
| 268 |
+
## Files
|
| 269 |
+
|
| 270 |
+
| File | What it holds |
|
| 271 |
+
|---|---|
|
| 272 |
+
| [`data/local-digital-gap.csv`](data/local-digital-gap.csv) | one row per city and kind of business: {", ".join(f"`{h}`" for h in header)} |
|
| 273 |
+
| [`data/local-digital-gap.json`](data/local-digital-gap.json) | the same counts rolled up by kind, city and country, plus the largest and smallest gaps (cells under {d['thresholds']['cellMin']} records are left out of the rankings) |
|
| 274 |
+
| [`charts/`](charts) | the three charts on this page, as SVG |
|
| 275 |
+
| [`scripts/build.py`](scripts/build.py) | downloads the current files from the study (`--fetch`) and rebuilds the charts and this README; standard-library Python |
|
| 276 |
+
|
| 277 |
+
## Method
|
| 278 |
+
|
| 279 |
+
- **What counts as a business:** a named OpenStreetMap record inside the city's boundary, tagged as one of {t['kinds']} kinds
|
| 280 |
+
of business. Records without a name are left out. A chain's branches count like any other business.
|
| 281 |
+
- **Website listed:** a `website`, `contact:website` or `url` tag pointing to the business's own site. A record whose only
|
| 282 |
+
link is a Facebook, Instagram, link-in-bio, booking or directory page counts as "social or directory page only".
|
| 283 |
+
- **Phone and opening hours:** a `phone`, `contact:phone` or `contact:mobile` tag, and an `opening_hours` tag.
|
| 284 |
+
- **Boundary:** the one OpenStreetMap holds for the city; some lists cover a metro area, and each list page says which.
|
| 285 |
+
- **Freshness:** each city is rebuilt from a fresh extract about once a month. The study is recomputed with every
|
| 286 |
+
rebuild and this repository follows it; the date above moves only when a number changed.
|
| 287 |
+
|
| 288 |
+
Counts are records on the map, not a census of businesses. Check any single business before you act on it.
|
| 289 |
+
|
| 290 |
+
## Licence and credit
|
| 291 |
+
|
| 292 |
+
The data is derived from OpenStreetMap and is available under the
|
| 293 |
+
[Open Database License 1.0](https://opendatacommons.org/licenses/odbl/1-0/) (see [`LICENSE`](LICENSE)).
|
| 294 |
+
|
| 295 |
+
- Credit: **© OpenStreetMap contributors**, and link to the study: {STUDY}
|
| 296 |
+
- Share-alike: if you publish an adapted version of this data, keep it under the ODbL.
|
| 297 |
+
- The charts and text in this repository may be reused with the same credit.
|
| 298 |
+
|
| 299 |
+
Cite as:
|
| 300 |
+
|
| 301 |
+
> Get a List Of (2026). The local digital gap: websites, phone numbers and opening hours of {n(t['places'])} local businesses
|
| 302 |
+
> on OpenStreetMap, {t['cities']} cities. Updated {upd}. {STUDY}
|
| 303 |
+
|
| 304 |
+
Published by the people behind [getalistof.com]({SITE}), which turns the same OpenStreetMap records into free
|
| 305 |
+
"list of shops in a city" CSVs. Found a mistake in a count? Open an issue. Found a business with a wrong or missing
|
| 306 |
+
website? Fix it on [openstreetmap.org](https://www.openstreetmap.org/), and the next monthly rebuild picks it up.
|
| 307 |
+
"""
|
| 308 |
+
(ROOT / "README.md").write_text(readme, encoding="utf-8", newline="\n")
|
| 309 |
+
cff = f"""cff-version: 1.2.0
|
| 310 |
+
message: "If you use this data, credit OpenStreetMap contributors and cite the study."
|
| 311 |
+
title: "The local digital gap: websites, phone numbers and opening hours of local businesses on OpenStreetMap"
|
| 312 |
+
type: dataset
|
| 313 |
+
authors:
|
| 314 |
+
- name: "Get a List Of"
|
| 315 |
+
website: "{SITE}"
|
| 316 |
+
url: "{STUDY}"
|
| 317 |
+
repository-code: "https://github.com/bolvein-firex/local-digital-gap"
|
| 318 |
+
license: ODbL-1.0
|
| 319 |
+
date-released: "{d['updated']}"
|
| 320 |
+
keywords: [openstreetmap, local businesses, open data, websites, digital divide]
|
| 321 |
+
"""
|
| 322 |
+
(ROOT / "CITATION.cff").write_text(cff, encoding="utf-8", newline="\n")
|
| 323 |
+
print(f"built: {len(rows)} rows, {t['places']} places, updated {d['updated']}, r_phone={r_phone:.2f}")
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
if __name__ == "__main__":
|
| 327 |
+
if "--fetch" in sys.argv:
|
| 328 |
+
fetch()
|
| 329 |
+
build()
|