Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpgeo Laravel Package

mjaschen/phpgeo

PHPGeo is a lightweight geospatial library for PHP. Model geographic coordinates (with ellipsoid support) and compute high‑precision distances and related calculations between points. Compatible with modern PHP versions (8.2+ for latest).

View on GitHub
Deep Wiki
Context7
4.2.1

Changed

  • use proper variable as index for array access
4.2.0

Changed

  • point-to-line distance is calculated iteratively now, fixes #92
  • improved intersection checking for polygon/polygon
4.1.0

This release has no breaking changes.

Thanks, @nilshoerrmann, for contributing!

Added

  • method Bounds::getAsPolygon() which returns a polygon containing the four nodes of the Bounds instance
  • methods Bounds::getNorthEast() and Bounds::getSouthWest()
  • new public methods: CardinalDirection::isStrictlyNorth(), CardinalDirection::isStrictlyEast(), CardinalDirection::isStrictlySouth() and CardinalDirection::isStrictlyWest()
  • new class Direction for checking if one point is north, eat, south or west from another point
  • new Class Intersection for checking if two geometries intersect each other
4.0.0

Changed

  • drop support for PHP 7.2 breaking change
  • add support for PHP 8.1
  • add deprecations for setter methods in DMS and Line classes
3.2.1

Fixed

  • Division by zero in SimplifyBearing if two consecutive points share the same location, fixes #79.
3.2.0

Added

Changed

  • change static to self to prevent accidentally calling the constructor with wrong arguments in child classes (Ellipsoid, Line, Polygon, Polyline)
3.1.0

Added

  • Simplifying polygons is now supported as well, see simplifyGeometry() methods in SimplifyBearing and SimplifyDouglasPeucker classes (fixes #69).
3.0.1

Fixed

  • #68 CoordinateFactory emitted a warning if a coordindates string without arc seconds was passed to the fromString() method
3.0.0

Changed

  • phpgeo requires PHP >= 7.2 now
  • backwards compatibility breaking: fix double space in Ellipsoid Name World␣Geodetic␣System␣␣1984World␣Geodetic␣System␣1984 (#49)
  • updated tests for PHPUnit 8

Added

  • class constant visibiliy modifiers

Removed

  • support for PHP 7.0 and PHP 7.1 from Travis CI config
2.6.0

Added

  • method getIntermediatePoint() to the Line class which calculates an intermediate point on a line by following the Great Circle between the two line ends and dividing the line by the given fraction (0.0 ... 1.0)
2.5.0

Added

  • method getMidpoint() to the Line class which calculates the midpoint of a line by following the Great Circle between the two line ends and dividing the line into two halves.
  • utility class Cartesian which abstracts three-dimensional cartesian coordinates x, y, and z
2.4.1

Changed

  • access modifier for the tolerance attribute is now protected (SimplifyDouglasPeucker)
2.4.0

Added

  • BoundsFactory to create a bounds instance for a center point and a given distance to the bounds' corners. Thanks @sdennler!
2.3.1

Fixed

  • improve precision in PointToLineDistance
2.3.0

Added

  • PointToLineDistance calculates the smallest distance between a point and a line
2.2.0

Added

  • hasSameLocation() checks if two points share the same location (optionally within a distance which defaults to 0.001 m = 1 mm)
  • addUniquePoint adds unique points to a polyline (i.e., points that doesn't already exist in that polyline)
  • getAveragePoint() returns the average value of latitude and longitude values for a polyline

Fixed

  • wrongly placed parenthesis in Polygon::contains()
2.1.0

Added

  • The bounds for a Polyline can now be retrieved in form of a Bound object.

Changed

  • The auto-loader is now PSR-4 compatible; directory structure was flattened by one level.
2.0.5

Changed

  • improvements to the Douglas-Peucker processor. Thanks @iamskey!
2.0.3

Fixed

Changed

  • better floating point number comparisons in Vincenty
  • add exception message in Vincenty
  • type-cast regexp matches before doing calculations in CoordinateFactory
2.0.2

Added

  • Information on how to run checks and tests for developers in the README.

Changed

  • Updated internal stuff like type and return hints after running a static analysis.
  • Updated some PHPDoc blocks after running a static analysis.

Fixed

  • Wrongly typed return value in BearingEllipsoidal::inverseVincenty().
2.0.1

Added

  • new supported format for coordinates parser. Thanks to @petrknap
2.0.0

Changed

  • License: phpgeo is now distributed under the MIT license
  • phpgeo requires at least PHP 7.0

Removed

  • deprecated class Simplify was removed; alternatives: SimplifyBearing or SimplifyDouglasPeucker
  • PHP versions 5.4, 5.5, and 5.6 are no longer supported
1.3.8

Fixed

1.3.7

Fixed

  • GeoJSON output for polygon is now compliant with RFC 7946. Thanks to @arsonik
1.3.5

Added

  • add method for calculating the final bearing for a Line object
1.3.3

Fixed

  • bugifx for a division-by-zero error which occurred when symplifying a polyline with the Douglas-Peucker algorithm.
1.3.2

Added

  • add an utility class to calculate the perpendicular distance between a point and a line; documentation
1.3.1

Added

  • add method to calculate the bearing of a Line instance (point 1 -> point 2)
1.3.0

Added

  • A new SimplifyInterface was introduced and is implemented in two classes: SimplifyDouglasPeucker and SimplifyBearing
  • Added documentation

Deprecated

  • The Simplify processor class is now deprecated and will be removed in the 2.0 release.
1.2.1

Added

  • Added functionality to change the direction of Polygon instances
  • Added documentation
1.2.0

Added

  • Added geofence check for arbitrary geometry objects
  • Extended and updated documentation
1.1.1

Added

  • Added formatter for "Decimal Minutes" format, e.g. 43° 37.386' N, 070° 12.472' W
  • Added documentation for the new formatter
1.1.0

Added

  • Added calculation of the bearing angle between two points (initial and final bearing)
  • Added calculation of the destination point for a given starting point, the bearing angle, and the distance
  • Support for spherical and ellipsoidal algorithms for the described bearing calculations
  • Added documentation for the bearing calculations
1.0.4

Added

  • Added functionality to change the direction of Line/Polyline instances
  • Added documentation
1.0.3

Added

1.0.2

Changed

  • several optimizations in control structures
1.0.0

Added

  • Added license information. phpgeo is now licensed under the GPL 3. (see issue #8)
0.4.0

Deprecated

  • removed support for PHP 5.3; introduced short array syntax
0.3.0

Added

6.0.2

Fixed

  • Incorrect intersection checking for lines in some cases, see #96.
6.0.1

Added

  • Support for PHP 8.5
6.0.0

Warning: Backwards-compatibility-breaking changes (see README for upgrade details)

Added

  • Support for PHP 8.4
  • GeometryLinesInterface for geometries containing lines (Line, Polyline, Polygon)
  • getBounds() method to GeometryInterface

Removed

  • Support for PHP 8.1

Changed

  • Replaced Psalm with PHPStan for static code analysis
5.0.0

Warning: Backwards-compatibility-breaking changes

Removed

  • Support for PHP 7.3, 7.4 and 8.0
  • deprecated methods setPoint1() and setPoint2() from Line

Changed

  • master is now renamed to main
  • GeometryFactoryInterface::fromString() now has GeometryInterface as return type

Deprecated

  • deprecated methods getDestination() and getBearingFinal() from DirectVincentyBearing
  • deprecated methods getDistance(), getBearingInitial() and getBearingFinal() from InverseVincentyBearing
  • deprecated methods getX(), getY() and getZ() from Cartesian
  • deprecated methods getPoint1() and getPoint2() from Line
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor