Opened 11 years ago

Last modified 11 years ago

#222 new enhancement

Ignore liblocation "center of the country" info

Reported by: int_ua Owned by: Martin Kolman
Priority: major Milestone:
Component: gps Version:
Keywords: Cc:…


On Maemo 5 liblocation tries to provide a country with network positioning enabled when it has nothing more to provide. I cannot imagine any worst-case scenario where you would critically need to know the country you are in before GPS cold-starts and you know the location much more precisely. And in normal life it creates huge discomfort while using any location service on N900. In Ukraine the center is hundreds of kilometers away from all the major cities and if you are starting modrana while under ground it throws you there so you need to scroll back every time. However liblocation also provides huge horizontal accuracy value to distinguish such situations. AFAIU the subject is easily achievable by checking the accuracy in modules/device_modules/ , something like this:

  • if fix[1] & location.GPS_DEVICE_LATLONG_SET:

+ if fix[1] & location.GPS_DEVICE_LATLONG_SET and fix[6] < 68000000.0:

68000000 is value for Ukraine, not sure what number should we actually use.

Change History (1)

Note: See TracTickets for help on using tickets.