Baidu.Yingyan 1.1.0-alpha2

This is a prerelease version of Baidu.Yingyan.
There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Baidu.Yingyan -Version 1.1.0-alpha2
dotnet add package Baidu.Yingyan --version 1.1.0-alpha2
<PackageReference Include="Baidu.Yingyan" Version="1.1.0-alpha2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Baidu.Yingyan --version 1.1.0-alpha2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Baidu.Yingyan, 1.1.0-alpha2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Baidu.Yingyan as a Cake Addin
#addin nuget:?package=Baidu.Yingyan&version=1.1.0-alpha2&prerelease

// Install Baidu.Yingyan as a Cake Tool
#tool nuget:?package=Baidu.Yingyan&version=1.1.0-alpha2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Baidu.Yingyan

百度 鹰眼轨迹服务 C# 版本 SDK,基于 鹰眼 Web服务 API v3.0 实现。

已实现接口

NuGet

https://www.nuget.org/packages/Baidu.Yingyan/1.1.0-alpha2

PM> Install-Package Baidu.Yingyan -Version 1.1.0-alpha2

使用

var ak = "YOUR_AK";
var service_id = "YOUR_SERVICE_ID";
// 初始化api
var api = new YingyanApi(ak, service_id);
// entity name
var name = "name001";
// 新增一个 entity
var r1 = await api.entity.add(name, "测试");
// 添加一个位置点
var r2 = await api.track.addpoint(new TrackPoint()
{
    latitude = 11.111,
    longitude = 22.333,
    coord_type_input = CoordTypeEnums.bd09ll,
    entity_name = name,
    loc_time = DateTime.Now,
});
// 查询轨迹
var r3 = await api.track.gettrack(new TrackHistoryGetTrackParam() {
    entity_name = name, 
    start_time = DateTime.Now.AddDays(-1), 
    end_time = DateTime.Now 
});

最近更新

  • 2017/12/30

    • 增加sn验证,官方的sn计算算法的示例代码是个坑!
    • 将参数集合类型从 NameValueCollection 改为 Dictionary
  • 2017/12/27

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0-alpha3 3,026 3/21/2018
1.1.0-alpha2 655 12/30/2017
1.1.0-alpha 615 12/27/2017
1.0.4 685 9/19/2017
1.0.3 719 1/11/2017
1.0.2 731 1/11/2017
1.0.1 620 1/4/2017
1.0.0 613 1/4/2017