added autocomplete and calculation for given locations