Improving the Global Position System (GPS) with an on-board devices based localization algorithm