Skip to content

Instantly share code, notes, and snippets.

@thomascristanis
Created October 7, 2015 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomascristanis/d8e06e978f9fab890968 to your computer and use it in GitHub Desktop.
Save thomascristanis/d8e06e978f9fab890968 to your computer and use it in GitHub Desktop.
Proton Distance
public static void main(String[] args) throws Exception {
Object retorno;
Object[] operands = new Object[4];
//Cin
operands[0] = -8.055602; // lat x
operands[1] = -34.951265; // lon x
//Casa
operands[2] = -8.039507; // lat y
operands[3] = 34.949606; // lon y
AbstractNumericOperator geo = new GeographicDistance();
geo.setOperands(operands);
retorno = geo.getValue();
System.out.println("O retorno é: " + retorno);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment