Comments (3)
Thanks for checking!
I have updated the release version to 1.0.1 that should now include distanceToLine()
method.
Regards
from geometry-library.
Thanks @contreras2004 !
The distanceToLine()
method is still there.
Try with backslash (\) as per below:
/**
* no backslash -> GeometryLibrary\PolyUtil::distanceToLine
* with backslash - > \GeometryLibrary\PolyUtil::distanceToLine
*/
$response = \GeometryLibrary\PolyUtil::distanceToLine(
['lat' => 61.387002, 'lng' => 23.890636], // point array [lat, lng]
['lat' => 61.487002, 'lng' => 23.790636], // line startpoint array [lat, lng]
['lat' => 60.48047, 'lng' => 22.052754] // line endpoint array [lat, lng]
);
echo $response; // 12325.124046196 in meters
from geometry-library.
Nop, its not there. Please try to install the library with composer. I had to download the library using the zip File and add it manually to the PolyUtil class
from geometry-library.
Related Issues (12)
- Uninitialized string offset HOT 4
- Update HOT 1
- Issue with PolyUtil::distanceToLine function
- PHP 7.4 Depreciated Syntax HOT 1
- tolerance in meters or degrees HOT 1
- Errors with isLocationOnPath HOT 1
- Intersection of two direction given start points and bearings HOT 1
- Call the function isLocationOnEdge with parameter $ geodesic = false HOT 1
- How do I include into a php file? HOT 1
- Perpendicular of a line in PHP HOT 1
- isLocationOnPath issue, HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geometry-library.