def normalize_latlng(arg)
      if arg.kind_of?(Hash)
        lat = arg[:lat] || arg[:latitude] || arg["lat"] || arg["latitude"]
        lng = arg[:lng] || arg[:longitude] || arg["lng"] || arg["longitude"]
        return lat, lng
      elsif arg.kind_of?(Array)
        return arg[0], arg[1]
      end

      raise ArgumentError, "Expected a lat/lng Hash or Array, but got #{arg.class}"
    end
def normalize_latlng(arg)
      if arg.kind_of?(Hash)
        lat = arg[:lat] || arg[:latitude] || arg["lat"] || arg["latitude"]
        lng = arg[:lng] || arg[:longitude] || arg["lng"] || arg["longitude"]
        return lat, lng
      elsif arg.kind_of?(Array)
        return arg[0], arg[1]
      end

      raise ArgumentError, "Expected a lat/lng Hash or Array, but got #{arg.class}"
    end
Take the various lat/lng representations and return a tuple.

 Accepts various representations:

 1. Hash with two entries - `lat` and `lng`
 2. Array or list - e.g. `[-33, 151]`

 @param [Hash, Array] arg The lat/lon hash or array pair.

 @return [Array] Pair of lat and lng array.