ktelep / tilt

Tilt is a Demo app for deployment into CloudFoundry
4 stars 3 forks source link

Add a check if GPS data is null #11

Open cghiorzi opened 9 years ago

cghiorzi commented 9 years ago

Some devices with GPS only report lat. /long and not altitude, such as a Windows Surface tablet. We should check for null data and translate it to zero to avoid query problems in HAWQ.

ktelep commented 9 years ago

We should see if there's a more appropriate value to put in to translate lat and long if it does return null, since a 0 is not necessarily invalid data....

On Thu, Apr 30, 2015 at 8:50 AM, cghiorzi notifications@github.com wrote:

Some devices with GPS only report lat. /long and not altitude, such as a Windows Surface tablet. We should check for null data and translate it to zero to avoid query problems in HAWQ.

— Reply to this email directly or view it on GitHub https://github.com/ktelep/tilt/issues/11.

cghiorzi commented 9 years ago

While it is true that 0 is a valid value for Lat and Long, I think translating to 0 is ok, since Lat 0 Long 0 is in the ocean off the coast of Africa.