remulasce / metroapp

Realtime arrival notification utility for LA Metro
2 stars 0 forks source link

Fail case if location isn't ready #255

Open nighelles opened 9 years ago

nighelles commented 9 years ago

If there isn't a location available, what is the desired fail case for getcurrentdistancetostop?

0? 1000?

remulasce commented 9 years ago

There might be some checks for -1 somewhere. On May 18, 2015 12:05 PM, "Nighelles David" notifications@github.com wrote:

If there isn't a location available, what is the desired fail case for getcurrentdistancetostop?

0? 1000?

— Reply to this email directly or view it on GitHub https://github.com/remulasce/metroapp/issues/255.

nighelles commented 9 years ago

Hmm.

remulasce commented 9 years ago

Yeah, Android location provider returns -1 if the stop or user has no location.