locate service: allow customisation

Fixes #2961
Merge pull request #2963 from Fuuzetsu/locate

locate service: allow customisation