Method: Mapbox::Matrix.assemble_params
- Defined in:
- lib/mapbox/matrix.rb
.assemble_params(options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mapbox/matrix.rb', line 6 def self.assemble_params(={}) opts = .dup self.joinArrayParam(opts, :destinations) self.joinArrayParam(opts, :annotations, ',') self.joinArrayParam(opts, :approaches) self.joinArrayParam(opts, :sources) return "?#{URI.encode_www_form(opts)}" end |