You can use a timer that ticks every second and increases a counter. Every time that you get a location input you should reset the counter. If the counter reaches 10(?) then you can say that there is no valid location.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.