KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
polyline-encoder
★ 22
Open GitHub ↗
Polyline Encoder / Decoder in PHP
Download README (.md)
Explore Similar Repositories
vbox-service-template
:
init.d script template for running a VirtualBox machine as a service
md-sort
:
Sort multi-dimensional arrays in Pawn. Modifies the array's internal pointers instead of copying around data.
ruby-sample
:
No description available.
node-ws-multi-proxy
:
Many to many WebSocket proxy with pluggable routing logic
paragliding-articles
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
polyline-encoder
?
Download (.md)
# Polyline Encoder Polyline Encoder is a simple PHP class that will help you work with polyline encoding / decoding. For more details about the polyline encoder algorithm, please refer to : https://developers.google.com/maps/documentation/utilities/polylinealgorithm ## License This project is under MIT and GPLv2 Licenses. ## Usage Just insert the following line at the top of your PHP file : ```php #require_once 'PolylineEncoder.php'; ``` ### Encode a polyline To encode a polyline just follow those steps : ```php $polylineEncoder = new PolylineEncoder(); $polylineEncoder->addPoint(30.5,-120.2); $polylineEncoder->addPoint(40.7,-120.95); $polylineEncoder->addPoint(43.252,-126.453); $encodedString = $polylineEncoder->encodedString(); ``` ### Decode a polyline ```php $decodedPoints = PolylineEncoder::decodeValue("_p~iF~ps|U_ulLnnqC_mqNvxq`@"); ``` ### Note Please note that the encoding levels are currently not supported.