Add api method to get locations