Commit a1ae57c3 authored by oscar's avatar oscar

提交更新

parent 09591bc8
......@@ -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);
}
......@@ -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)
......
#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;
};
}
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment