public function isCoordinateOnVertex(LatLng $coord)
    {
        $paths = ArrayHelper::getValue($this->options, 'paths');
        foreach ($paths as $vertex) {
            if ($vertex->lat == $coord->lat && $vertex->lng == $coord->lng) {
                return true;
            }
        }
        return false;
    }