Skip to content

Latest commit

 

History

History
executable file
·
46 lines (33 loc) · 1.56 KB

encoded_polyline.md

File metadata and controls

executable file
·
46 lines (33 loc) · 1.56 KB

Encoded Polyline

The Encoded Polyline class defines a Polyline which has been encoded using the algorithm described here.

Build your encoded polyline

By configuration file

By default, the bundle doesn't need any configuration. Most of the service have a default configuration which allows you to use the given objects like they are. The fungio_google_map.encoded_polyline service is. The configuration describes below is this default configuration.

# app/config/config.yml

fungio_google_map
    encoded_polyline:
        # Your own encoded polyline class
        class: "My\Fucking\EncodedPolyline"

        # Your own encoded polyline helper class
        helper_class: "My\Fucking\EncodedPolylineHelper"

        # Prefix used for the generation of the encoded polyline javascript variable
        prefix_javascript_variable: "encoded_polyline_"

        # Custom encoded polyline options
        # All polyline options are available
        # By default, there is no options
        options:
            geodesic: true
            strokeColor: "#ffffff"
<?php

// Requests the fungio google map encoded polyline service
$encodedPolyline = $this->get('fungio_google_map.encoded_polyline');

By coding

If you want to learn more, you can read this documentation.