Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
thirdparty_map
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
thirdparty_map
Commits
7cba3f05
Commit
7cba3f05
authored
Apr 28, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交ids接口
parent
a317328b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
MapInterface.hpp
include/MapInterface.hpp
+1
-0
MapInterface.cpp
src/MapInterface.cpp
+18
-0
No files found.
include/MapInterface.hpp
View file @
7cba3f05
...
...
@@ -76,6 +76,7 @@ namespace jf {
bool
GetMapData
(
const
Point
&
ptInLoc
,
double
dCarAngle
,
long
&
lOutRaodId
,
std
::
vector
<
long
>&
vctlOutPreRoadId
,
std
::
vector
<
long
>&
vctlOutNxtRoadId
,
int
&
nLaneCnt
,
int
&
nOutLaneNum
,
LaneType
&
nOutLaneType
,
EdgeCrossType
&
nOutLeftEdgeCrossType
,
EdgeCrossType
&
nOutRightEdgeCrossType
,
int
&
nOutSpeedLimit
,
double
&
dOutLaneAngle
,
Point
&
ptOutFoot
);
bool
GetMapIDS
(
const
Point
&
ptInLoc
,
int
&
id
);
};
}
// namespace jf
...
...
src/MapInterface.cpp
View file @
7cba3f05
...
...
@@ -229,5 +229,22 @@ namespace jf {
return
true
;
}
bool
MapInterface
::
GetMapIDS
(
const
Point
&
ptInLoc
,
int
&
id
)
{
id
=
0
;
char
**
vecRoad
=
nullptr
;
int
nSize
=
0
;
auto
result
=
g_map
.
GetAllJunctionRoadIDS
(
ptInLoc
.
dLon
,
ptInLoc
.
dLat
,
vecRoad
,
nSize
);
if
(
result
)
{
if
(
nSize
==
1
)
{
std
::
string
ids
=
vecRoad
[
0
];
id
=
std
::
stol
(
ids
);
}
}
return
true
;
}
}
// namespace jf
\ No newline at end of file
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