From the code developped previously, extract in a selfcontained "SnapToRoad" class everything needed for the snapping to road, so that this class is prepared to be used in another app.
The class should Not contain the parts of the code related to:
- Loading the track from the DB
- Functions related with the user interface: buttons, activities, edit text etc.
- Saving the data in the Realm DB
This class should have a method that recieves a trackPointsList and returns a snappedPointsList with its full data:
latitude,longitude,road_name,max_speed,type,municipality;
If necessary it should have two versions of the Snapping function:
- one that recieves the whole route as a complete list of trackPoints to snap, and returns a snappedPoints list.
- another one that just recives one trackPoint and returns a snappedPoint. It will be called once for every point in the track and do the snapping incrementaly, snapping just the last point recieved using the info of the last N previously snapped points.
The purpose is to snap the points "on the go" as they are being registered from the GPS but accelerating as much as possible the routine by not repeating the snapping of the previous points and only snapping the last TimeStep.
It has to be tested doing a "for to" loop that calls the function with trackpoints one by one and then checking that the result is similar than when calling the function with the complete list of track points.
Of course there should be:
- a onCreate method for initializing everything needed in the class
- a reset method for cleanning up the current track data and getting ready to start snapping a new track
- a onDelete method to clean up when exiting the class
Important: JavaDoc documentantion must be complete and explain throughfully the code, functions, methods and variables and good programming practices should be followed: avoid using global variables, passing everything as parameters, not mixing declarations of variables and functions with the actual code, deleting from the code obsolete and not used parts etc.
Hello
I am Android App Development Expert and have 7+ years of Experience . Please initiate chat so we can discuss in details your requirement of app along with functionality involved and flow of app .
Thank you
Dear sir ,
Hope you are doing well .
I can made the class from the existing project according to your part by part given instruction.
I am a professional android developer and working for more then 5 years .
Hope to discuss more .
Thank you sir
Hi sir,
I read your project description .I can do your project & able to run successfully. I have 6+ years experience for mobile application development & done over 200+ mobile apps by a good team members .
It will be very much pleasure for me, if you give me the opportunity to do your job for minimum cost. Thanks for your consideration .
Thanks with Regards
Eman
Hi, first thank you for the clair project description, I'm a Lead Android developer working currently in France and luckly I work in transportation/environment technologies, we use map provider (Here, google maps,...) a lot, and on top of that I have a solid experience with clean code and decoupling.
Looking forward to discuss the project further with you
Best regards
Hi there
As I have read the project description we have to discuss some more.
I have above many years of experience android application and API and DB
Please share more details.
Thanks