Location 3.0 and later provide a location_api_variant() function to aid in allowing add-on modules to support multiple releases, even if there are incompatible changes.
Start of API tracking. Based on Location 3.0.
location_diff() renamed to location_calc_difference() because diff.module was trying to invoke it as a hook.
Before: Call location_diff().
Now: Call location_calc_difference().