Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
map_location
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
map_location
Commits
a1ae57c3
Commit
a1ae57c3
authored
Apr 11, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
09591bc8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
MapLocationBase.h
include/MapLocationBase.h
+1
-1
MapLocation.cpp
src/MapLocation.cpp
+7
-0
MapLocation.h
src/MapLocation.h
+5
-0
MapLocationBase.cpp
src/MapLocationBase.cpp
+2
-2
No files found.
include/MapLocationBase.h
View file @
a1ae57c3
...
...
@@ -20,6 +20,6 @@ namespace JfxLocation
virtual
int
PushLocation
(
Location
&
loc
)
=
0
;
};
MapLocationBase
*
CreateMapLocationBase
();
MapLocationBase
*
CreateMapLocationBase
(
const
std
::
string
&
project
,
const
std
::
string
&
config
);
void
ReleaseMapLocationBase
(
MapLocationBase
*
obj
);
}
src/MapLocation.cpp
View file @
a1ae57c3
...
...
@@ -3,8 +3,15 @@
namespace
JfxLocation
{
MapLocation
::
MapLocation
(
const
std
::
string
&
project
,
const
std
::
string
&
config
)
{
jf
::
HdLib
::
GetInstance
()
->
Init
(
project
,
config
);
//初始化地图
}
int
MapLocation
::
SetMatchingResultCallback
(
MatchingResultCallback
cb
)
{
m_mmMatch
.
init
();
return
0
;
}
int
MapLocation
::
PushGPSFrame
(
GPSFrame
&
gps
)
...
...
src/MapLocation.h
View file @
a1ae57c3
#
pragma
once
#include "MapLocationBase.h"
#include "HdLib.h"
#include "MapMatching.hpp"
namespace
JfxLocation
{
class
MapLocation
:
public
MapLocationBase
{
public
:
MapLocation
(
const
std
::
string
&
project
,
const
std
::
string
&
config
);
virtual
int
SetMatchingResultCallback
(
MatchingResultCallback
cb
);
virtual
int
PushGPSFrame
(
GPSFrame
&
gps
);
...
...
@@ -14,6 +17,8 @@ namespace JfxLocation
virtual
int
PushLocation
(
Location
&
loc
);
public
:
MapMatching
m_mmMatch
;
};
}
src/MapLocationBase.cpp
View file @
a1ae57c3
...
...
@@ -3,9 +3,9 @@
namespace
JfxLocation
{
MapLocationBase
*
CreateMapLocationBase
()
MapLocationBase
*
CreateMapLocationBase
(
const
std
::
string
&
project
,
const
std
::
string
&
config
)
{
return
new
MapLocation
();
return
new
MapLocation
(
project
,
config
);
}
void
ReleaseMapLocationBase
(
MapLocationBase
*
obj
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment