... is an expression that means: the distance in a straight line (without thinking about roads or obstacles)
For example: The distance from Toronto to Manila is 8,220 miles (13,228 kilometers) as the crow flies, but a normal flight stops to refuel in Alaska and travels over 10K miles.
"K" is a slang abbreviation for "thousand". It is used in computer programming. It can also mean "kilometer".