I am building application where i am getting the user\'s latitude
and longitude
using the below code
Considering that a latitude and longitude is a specific point, you cannot convert this directly to kilometers, which is a distance i.e. the length separating two points.
But you can get the distance between two coordinates (lat+long) with a math formula. I am not really good at math, but you could find such formula with a simple search on Google: here is the first result
You may also find something useful on this topic: How to convert latitude or longitude to meters?