def set_location(latitude: nil, longitude: nil)
      unless latitude
        raise ArgumentError, "Expected latitude to be a number, not '#{latitude.class}'"
      end

      unless longitude
        raise ArgumentError, "Expected longitude to be a number, not '#{longitude.class}'"
      end

      Calabash::Internal.with_current_target {|target| target.set_location(latitude: latitude, longitude: longitude)}
    end
def set_location(latitude: nil, longitude: nil)
      unless latitude
        raise ArgumentError, "Expected latitude to be a number, not '#{latitude.class}'"
      end

      unless longitude
        raise ArgumentError, "Expected longitude to be a number, not '#{longitude.class}'"
      end

      Calabash::Internal.with_current_target {|target| target.set_location(latitude: latitude, longitude: longitude)}
    end
Simulates gps location of the device/simulator.

 @example
  cal.set_location(latitude: 48.8567, longitude: 2.3508)

 @example
  cal.set_location(coordinates_for_place('The little mermaid, Copenhagen'))

 @param [Number] latitude The latitude of the location to simulate.
 @param [Number] longitude The longitude of the location to simulate.
 @raise [ArgumentError] If not given a latitude or longitude key.