Best Way to make Service using location data
<p>I'm creating an Android application, that makes some logging tags, while user is moving. </p>

<p>I decided to create three Service.
The First service is managing log in internet, geting commands to get location and to write location.</p>

<p>The Second service is managing location data: transforming raw location data from google api ( make some approximation and calculation ), putting it into nolockingqueque and giving last sample from it.</p>

<p>The Third service is something like this: <a href="https://gist.github.com/blackcj/20efe2ac885c7297a676" rel="nofollow">https://gist.github.com/blackcj/20efe2ac885c7297a676</a> . Service, which is getting raw location data and raising broadcast, that location data had been updated. </p>

<p>Broadcast reciever Binds to the Second service, gives him location data.</p>

<p>I'm filling that this way is too hard and it is not the best. 
In fact I need three things in application:
some container with computedLocationInformation
Thread or service which will get Raw Location Data from Google Services
Service which will use computedLocationInformation. </p>

<p>Can you give me better architecture for this issue, please?
Thank you.</p>