the miles charged will also depend on with which system (Apollo, Amadeus, others?) = with which Star-carrier you will finally ticket.
Example: LH (Amadeus) will calculate miles from town to town (distances to/from any New York City airport: JFK, EWR, LGA) will be the same, with UA the different NYC-airports will show different miles.