WIP - Extract location finding from map view

so it can be used in the instance selector