module Mapbox::HashUtils
Public Instance Methods
xy_from_hash(h = {})
click to toggle source
# File lib/mapbox.rb, line 173 def xy_from_hash h = {} [ h.fetch(:longitude){ h[LONGITUDE_KEY] }, h.fetch(:latitude){ h[LATITUDE_KEY] } ] end