BackendLocationModel::getCoordinates() function added to remove duplicate code

* This removes duplicate code.
* Adds a function that can be used by everyone in every other module.
@WouterSioen Removed.