Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enquiry about Position table #1673

Open
a7medma7moud opened this issue Jan 20, 2016 · 9 comments
Open

Enquiry about Position table #1673

a7medma7moud opened this issue Jan 20, 2016 · 9 comments

Comments

@a7medma7moud
Copy link

What course field refer to ?
and Can I add a new fields in the position table that can get their values from other tables for example adding vehicle id that can get its value from vehicles table

@tananaev
Copy link
Member

Course is direction/heading.

You can certainly add such new fields, but you would have to do some code modifications. It's not possible from config file.

@a7medma7moud
Copy link
Author

are there any fields that refer to GPS signal ?

@tananaev
Copy link
Member

Some devices report GPS signal quality whatever it means. Some other report HDOP value.

@a7medma7moud
Copy link
Author

If I want to modify in the code to add a new fields, Which classes that I should to modify ?

@tananaev
Copy link
Member

You can start with position model class:

https://github.com/tananaev/traccar/blob/master/src/org/traccar/model/Position.java

@a7medma7moud
Copy link
Author

Thanks a lot ,
If I want to replace device table with my table that contain the devices and also contain name , unique id and other fields , Is that may cause problems , Can I achieve that from config file or which classes that I have to modify ?

@tananaev
Copy link
Member

You should be able to do it from the config file. I don't expect it cause any issues.

@a7medma7moud
Copy link
Author

In which class you check if the device founded in the device table to add its positions in position table?

@tananaev
Copy link
Member

All database communication is happening in this class:

https://github.com/tananaev/traccar/blob/master/src/org/traccar/database/DataManager.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants