modified getroutelocation method