Skip to content

Commit 6167bac

Browse files
authored
Merge pull request google#140 from jsoref/spelling
Spelling
2 parents 68ba7ed + 3f5fc33 commit 6167bac

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

docs/olc_definition.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ two key functions:
279279
- It allows us to recognise shortened code fragments such as MQPX+9G. Because
280280
we know that the "+" is after the eighth digit, we know that there are four
281281
digits to be recovered for this code.
282-
- It allows us to distinguise four or six digit codes from postal codes.
282+
- It allows us to distinguish four or six digit codes from postal codes.
283283

284284
But this means that we have a problem if we want to represent the 1x1 degree
285285
area 6GCR. The solution here is to use zero, as a padding symbol, giving us

java/com/google/openlocationcode/OpenLocationCode.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Recover the nearest match (if the code was a short code):
3838
* code.recover(27.176, 78.05)
3939
*
40-
* Or decode a code into it's coordinates, returning a CodeArea object.
40+
* Or decode a code into its coordinates, returning a CodeArea object.
4141
* code.decode()
4242
*
4343
* @author Jiri Semecky
@@ -65,7 +65,7 @@ public final class OpenLocationCode {
6565

6666
// Note: The double type can't be used because of the rounding arithmetic due to floating point
6767
// implementation. Eg. "8.95 - 8" can give result 0.9499999999999 instead of 0.95 which
68-
// incorrectly classify the points on the border of a cell. Therefore all the calcuation is done
68+
// incorrectly classify the points on the border of a cell. Therefore all the calculation is done
6969
// using BigDecimal.
7070

7171
// The base to use to convert numbers to/from.
@@ -77,7 +77,7 @@ public final class OpenLocationCode {
7777
// The maximum value for longitude in degrees.
7878
private static final BigDecimal LONGITUDE_MAX = new BigDecimal(180);
7979

80-
// Maxiumum code length using just lat/lng pair encoding.
80+
// Maximum code length using just lat/lng pair encoding.
8181
private static final int PAIR_CODE_LENGTH = 10;
8282

8383
// Number of columns in the grid refinement method.

js/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Open Location Code Javascript API
2-
This is the Javascript implementation of the Open Location Code API.
1+
# Open Location Code JavaScript API
2+
This is the JavaScript implementation of the Open Location Code API.
33

44
The library file is in `src/openlocationcode.js`. There is also a minified version, and both are also available using the following CDNs:
55

js/closure/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can use it in Closure projects like this:
1313

1414
## Building and Testing
1515

16-
Included is a `BUILD` file that uses the [Bazel](https://bazel.build/) build system to produce a Javascript library and to run tests. You will need to install Bazel on your system to run the tests.
16+
Included is a `BUILD` file that uses the [Bazel](https://bazel.build/) build system to produce a JavaScript library and to run tests. You will need to install Bazel on your system to run the tests.
1717

1818
The tests use the [Closure Rules for Basel](https://github.com/bazelbuild/rules_closure) project although this is retrieved automatically and you don't have to install anything.
1919

js/closure/openlocationcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ var LATITUDE_MAX = 90;
8080
// The maximum value for longitude in degrees.
8181
var LONGITUDE_MAX = 180;
8282

83-
// Maxiumum code length using lat/lng pair encoding. The area of such a
83+
// Maximum code length using lat/lng pair encoding. The area of such a
8484
// code is approximately 13x13 meters (at the equator), and should be suitable
8585
// for identifying buildings. This excludes prefix and separator characters.
8686
var PAIR_CODE_LENGTH = 10;

js/contrib/olc_grid_overlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
});
4141
} else if (typeof module === 'object' && module.exports) {
4242
// Node. Does not work with strict CommonJS, but
43-
// only CommonJS-like enviroments that support module.exports,
43+
// only CommonJS-like environments that support module.exports,
4444
// like Node.
4545
module.exports = factory(require('b'));
4646
} else {

js/src/openlocationcode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
});
6666
} else if (typeof module === 'object' && module.exports) {
6767
// Node. Does not work with strict CommonJS, but
68-
// only CommonJS-like enviroments that support module.exports,
68+
// only CommonJS-like environments that support module.exports,
6969
// like Node.
7070
module.exports = factory(require('b'));
7171
} else {
@@ -108,7 +108,7 @@
108108
// The maximum value for longitude in degrees.
109109
var LONGITUDE_MAX_ = 180;
110110

111-
// Maxiumum code length using lat/lng pair encoding. The area of such a
111+
// Maximum code length using lat/lng pair encoding. The area of such a
112112
// code is approximately 13x13 meters (at the equator), and should be suitable
113113
// for identifying buildings. This excludes prefix and separator characters.
114114
var PAIR_CODE_LENGTH_ = 10;

js/test/test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<!DOCTYPE HTML>
1717
<html>
1818
<head>
19-
<title>Open Location Code Javascript Unit Tests</title>
19+
<title>Open Location Code JavaScript Unit Tests</title>
2020
<link rel="stylesheet" href="qunit-2.0.1.css"></link>
2121
</head>
2222
<body>

python/openlocationcode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
#The maximum value for longitude in degrees.
8282
LONGITUDE_MAX_ = 180
8383

84-
#Maxiumum code length using lat/lng pair encoding. The area of such a
84+
#Maximum code length using lat/lng pair encoding. The area of such a
8585
#code is approximately 13x13 meters (at the equator), and should be suitable
8686
#for identifying buildings. This excludes prefix and separator characters.
8787
PAIR_CODE_LENGTH_ = 10
@@ -216,7 +216,7 @@ def encode(latitude, longitude, codeLength=PAIR_CODE_LENGTH_):
216216
# Latitude 90 needs to be adjusted to be just less, so the returned code
217217
# can also be decoded.
218218
if latitude == 90:
219-
latitude = latitude - computeLatitutePrecision(codeLength)
219+
latitude = latitude - computeLatitudePrecision(codeLength)
220220
code = encodePairs(latitude, longitude, min(codeLength, PAIR_CODE_LENGTH_))
221221
# If the requested length indicates we want grid refined codes.
222222
if codeLength > PAIR_CODE_LENGTH_:
@@ -379,7 +379,7 @@ def clipLatitude(latitude):
379379
have different precisions due to the grid method having fewer columns than
380380
rows.
381381
"""
382-
def computeLatitutePrecision(codeLength):
382+
def computeLatitudePrecision(codeLength):
383383
if codeLength <= 10:
384384
return pow(20, math.floor((codeLength / -2) + 2))
385385
return pow(20, -3) / pow(GRID_ROWS_, codeLength - 10)

ruby/lib/plus_codes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module PlusCodes
99
# The max number of characters can be placed before the separator.
1010
SEPARATOR_POSITION = 8
1111

12-
# Maxiumum code length using lat/lng pair encoding. The area of such a
12+
# Maximum code length using lat/lng pair encoding. The area of such a
1313
# code is approximately 13x13 meters (at the equator), and should be suitable
1414
# for identifying buildings. This excludes prefix and separator characters.
1515
PAIR_CODE_LENGTH = 10

0 commit comments

Comments
 (0)