It may more sense to me to create a separate component for the geolocation. This means creating a directory components/geolocation, and GeolocationModule.js and GeolocationDirective.js files.