I am trying to build malicious ATM activity detection I have a function that takes 4 parameters( old_latitude,old_longitude,new_latitude,new_longitude) and it returns distance between two points and I have two time stamps one having latest time stamps and the other having a timestamp just happened.I am trying to detect that it is possible to access ATM machine. So I am thinking of dividing distance(km) by speed of flight(km) and compare time if the result is different from time it is long. how am i supposed to write a code in python?
I Worte a code
time_diff=new_time_stamp-old_time_stamp,
time_speed=(time_diff/3600)*1000
if distance <= time_speed:
print "no malicious activity"
else:
print "malicious activity detected"