Skip to content

Commit 7e1a82c

Browse files
committed
Fixed source issues with new PHP version
1 parent 9dd3aec commit 7e1a82c

File tree

10 files changed

+17685
-17615
lines changed

10 files changed

+17685
-17615
lines changed

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ MAPCODE PHP LIBRARY
44

55
PHP library ported by Pieter Geelen from JavaScript version.
66

7-
Copyright (C) 2014-2015 Stichting Mapcode Foundation (http://www.mapcode.com)
7+
Copyright (C) 2014-2020 Stichting Mapcode Foundation (http://www.mapcode.com)

README.md

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mapcode Library for PHP
22

3-
Copyright (C) 2014-2015 Stichting Mapcode Foundation (http://www.mapcode.com)
3+
Copyright (C) 2014-2020 Stichting Mapcode Foundation (http://www.mapcode.com)
44

55
----
66

@@ -9,7 +9,7 @@ and to decode mapcodes back to latitude/longitude pairs.
99

1010
**Online documentation can be found at: http://mapcode-foundation.github.io/mapcode-php/**
1111

12-
# License
12+
## License
1313

1414
Licensed under the Apache License, Version 2.0 (the "License");
1515
you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2323
See the License for the specific language governing permissions and
2424
limitations under the License.
2525

26-
# PHP Files for Mapcode Support
26+
## PHP Files for Mapcode Support
2727

2828
mapcode_data.php - Data table for mapcode support
2929
mapcode_func.php - Key routines for mapcode support
@@ -35,50 +35,55 @@ limitations under the License.
3535

3636
unittest\unittest.php - Unit test for mapcode library
3737

38-
# Documentation
38+
## Documentation
3939

4040
mapcode_library_php.doc - Manual: how to use the PHP Mapcode Library
4141
LICENSE - Apache License, Version 2.0
4242
NOTICE - About this package
4343
README.md - This document
4444

45-
# Version History
45+
## Version History
4646

47-
* 2.2
47+
### 2.2.2
4848

49-
Solved 1-microdegree gap in a few spots on Earth, noticable now extreme precision is possible
49+
* Fixed PHP errors for new version of PHP.
5050

51-
* 2.1.5
51+
* Cleaned up/reformatted source code.
5252

53-
Reworked high-precision to pure integer math;
53+
### 2.2.0 - 2.2.1
5454

55-
Enforce encode(decode(m))=m except at territory borders;
55+
* Solved 1-microdegree gap in a few spots on Earth, noticable now extreme precision is possible.
5656

57-
Added maxErrorinMeters to API;
57+
### 2.1.5
5858

59-
* 2.1.1
59+
* Reworked high-precision to pure integer math.
6060

61-
Added DistanceInMeters to API
61+
* Enforce encode(decode(m))=m except at territory borders.
62+
* Added maxErrorinMeters to API.
6263

63-
* 2.1.0
64+
### 2.1.1
6465

65-
Rewrote fraction floating points to integer arithmetic;
66+
* Added DistanceInMeters to API.
6667

67-
Several fixes; extended unit tests;
68+
### 2.1.0
6869

69-
* 2.0.3
70+
* Rewrote fraction floating points to integer arithmetic.
7071

71-
Added unittest.php, which verifies that the library works as expected;
72+
* Several fixes; extended unit tests.
7273

73-
* 2.0.2
74+
### 2.0.3
7475

75-
Ported fast_encode from C library (4x faster global encoding);
76+
* Added unittest.php, which verifies that the library works as expected.
7677

77-
Minor improvements (stricter tests);
78+
### 2.0.2
7879

79-
* 2.0.0
80+
* Ported fast_encode from C library (4x faster global encoding).
8081

81-
Initial open source release. (The release starts at 2.0.0 because the
82-
mapcode algorithms match the 2.0.x releases in Java, C/C++, and other
83-
languages.)
82+
* Minor improvements (stricter tests).
83+
84+
### 2.0.0
85+
86+
* Initial open source release. (The release starts at 2.0.0 because the
87+
mapcode algorithms match the 2.0.x releases in Java, C/C++, and other
88+
languages.)
8489

0 commit comments

Comments
 (0)