Vanetza
 
Loading...
Searching...
No Matches
position_provider.hpp
1#ifndef POSITION_PROVIDER_HPP_4CZDVALU
2#define POSITION_PROVIDER_HPP_4CZDVALU
3
4#include <vanetza/common/position_fix.hpp>
5
6namespace vanetza
7{
8
9/**
10 * PositionProvider is a generic interface to retrieve positioning data.
11 *
12 * How the data has been gathered is not defined, i.e. it may come from an attached GNSS receiver or
13 * something completely different.
14 */
16{
17public:
18 /**
19 * Get current position fix
20 * \return position with latitude and longitude
21 */
22 virtual const PositionFix& position_fix() = 0;
23
24 virtual ~PositionProvider() = default;
25};
26
27} // namespace vanetza
28
29#endif /* POSITION_PROVIDER_HPP_4CZDVALU */
30
virtual const PositionFix & position_fix()=0