. user enters destination and source of travel points- train and bus
2. he gets alarm on reaching destination
3. alarm notifies him when he reaches destination and
4. 5 km before the destination or
[url removed, login to view] saving- it pre-calculates min time from point where he starts app , to reach destination. sleeps till that time, wakes up at that time to calculate the time remaining. There it again precalculates time and sleeps.
[url removed, login to view] network issues-when it wakes up it checks network, if it does not find network, it polls again and again for network in each [url removed, login to view] no network is found for 1 hour, it should alarm,your destination is near message.
[url removed, login to view] battery life 12 hour at any time before the traveller reaches the point before destination, the phone is shutdown and restarted when poll is needed or destination is reached and user confirmation is needed before shuting down. If reboot is not possible, it prompts user to shutdown and restart at a time.
8. the app can be updated later with different latest version, there will be updates later.
[url removed, login to view] costs 10 rs at time of installation.
[url removed, login to view] is yearly charge of 10 rs starting from second year of use .
1.I need developers who have worked on maps before. Specially relating to bus/train route apis. If you can convince me that you have better chances.
2. let me know how you will reboot phone after say 20 hours?If this is not possible, I will think about alternatives
[url removed, login to view] there any way to sleep application if no network is there and restart when network is available?
flow of code
1>find current location make it source and display it on screen
2>allow to change source
4>If no network, wait for network , polling every 3 minutes
5>calculate distance from source to destination
6> If short route assume speed 60 km/hr(developer can change this speed, but it will be constant for the app)
7>if long route ,speed =150 km/hr(developer can change this speed, but it will be constant for the app)
8> calculate battery life
9> calculate time it will take to drain battery life to 12 hours, if phone used fully
10> calculate time it will take to reach destination
11>sleep the app till time in 9,10(whichever is smaller), i.e. 12 hours battery is remaining
12>If application wakes of due to drained battery life(12 hours battery life remaining), check battery life.
If battery life is much more than 12 hours repeat steps 7-11.
Else prompt user, battery is low shutdown phone and restart at time xyz. Where xyz is time 12 hours before reaching destination
13>If application wakes up because destination is near, if no network check for network every 3 minutes for an [url removed, login to view] play voice message with vibration “there is no network but your destination is near” and wait for network. When net comes, calculate distance from source to destination, If greater than 5 kms (for short route) or 10 kms(for long route) , play voice message “network restored, your destination is x kms away”repeat steps 4-13
14>If destination is less than or equal to 2 kms (for short route) or 5kms (for long routes), play message with vibrations”get ready, your destination is x kms”
15>poll distance every minute, notify when destination is 200 meters
If some part of the project are not feasible- we can discuss