def url_params # :nodoc:
      raise BuildDataMissing, "Need at least 2 points to create a path!" unless can_build?
      out = 'path='
     
      path_params = OPTIONAL_OPTIONS.inject([]) do |path_params, attribute|
        value = send(attribute)
        path_params << "#{attribute}:#{URI.escape(value.to_s)}" unless value.nil?
        path_params
      end.join('|')

      out += "#{path_params}|" unless path_params.empty?

      out += encoded_url_points if encoding_points?
      out += unencoded_url_points unless encoding_points?
      out
    end
def url_params # :nodoc:
      raise BuildDataMissing, "Need at least 2 points to create a path!" unless can_build?
      out = 'path='
     
      path_params = OPTIONAL_OPTIONS.inject([]) do |path_params, attribute|
        value = send(attribute)
        path_params << "#{attribute}:#{URI.escape(value.to_s)}" unless value.nil?
        path_params
      end.join('|')

      out += "#{path_params}|" unless path_params.empty?

      out += encoded_url_points if encoding_points?
      out += unencoded_url_points unless encoding_points?
      out
    end
Creates a new Path which you can push points on to to make up lines or polygons

 The following options are available, for more information see the
 Google API documentation[http://code.google.com/apis/maps/documentation/staticmaps/#Paths].

 <tt>:weight</tt>::    The weight is the thickness of the line, defaults to 5
 <tt>:color</tt>::     The color of the border can either be a textual representation like red, green, blue, black etc
                       or as a 24-bit (0xAABBCC) or 32-bit hex value (0xAABBCCDD). When 32-bit values are
                       given the two last bits will represent the alpha transparency value.
 <tt>:fillcolor</tt>:: With the fill color set you'll get a polygon in the map. The color value can be the same
                       as described in the <tt>:color</tt>. When used, the static map will automatically create
                       a closed shape.
 <tt>:points</tt>::    An array of points. You can mix objects responding to lng and lat, and a Hash with lng and lat keys.
 <tt>:encode_points::  A flag which tells us if we should encode the points in this path or not. Defaults to <tt>true</tt>


 Returns a string representation of this Path
 Used by the Map when building the URL