Last time I reviewed the lat/long to km calculation it was accurate per the methodology prescribed by many mapping systems for doing so.
Can you provide two points (search address / location address), the current km distance returned and the expected km distance.
Have you checked the two points on another map?
BTW, Google Maps returns slightly different geographic coordinates (lat/long) for the same exact address than the maps API. It is documented deep in the Google API notes but they don’t clearly explain WHY it does this. That can cause some difference in distance calculations (miles or kilometers).