Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit d9940c0

Browse files
committed
Version 1.1.5
See changelog
1 parent b20de9d commit d9940c0

File tree

69 files changed

+4198
-331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4198
-331
lines changed

BingMapsRESTToolkit.sln

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26430.16
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.32228.343
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{EE7ACF1F-56D3-4A01-8262-A49A8B444639}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source", "Source", "{A155C82A-42DC-4206-8DA8-C9C8CC3BFFE2}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{833D0345-46F0-486E-9BEF-5269405683F8}"
1111
ProjectSection(SolutionItems) = preProject
12-
..\..\..\..\Source\Repos\Bing-Maps-V8-TypeScript-Definitions\.gitignore = ..\..\..\..\Source\Repos\Bing-Maps-V8-TypeScript-Definitions\.gitignore
12+
..\..\..\Source\Repos\Bing-Maps-V8-TypeScript-Definitions\.gitignore = ..\..\..\Source\Repos\Bing-Maps-V8-TypeScript-Definitions\.gitignore
1313
CHANGELOG.md = CHANGELOG.md
1414
CONTRIBUTING.md = CONTRIBUTING.md
1515
LICENSE.md = LICENSE.md
@@ -42,6 +42,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{5F797BB6-1
4242
EndProject
4343
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravellingSalesmenRouteSample", "Samples\WPF\TravellingSalesmenRouteSample\TravellingSalesmenRouteSample.csproj", "{5173922A-0160-4EE1-9AD8-F629B23CFE71}"
4444
EndProject
45+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiRouteOptimizationSample", "Samples\WPF\MultiRouteOptimizationSample\MultiRouteOptimizationSample.csproj", "{9AEB32AD-D999-4E5F-8CB7-B6A0727DA12A}"
46+
EndProject
4547
Global
4648
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4749
Debug|Any CPU = Debug|Any CPU
@@ -72,6 +74,10 @@ Global
7274
{5173922A-0160-4EE1-9AD8-F629B23CFE71}.Debug|Any CPU.Build.0 = Debug|Any CPU
7375
{5173922A-0160-4EE1-9AD8-F629B23CFE71}.Release|Any CPU.ActiveCfg = Release|Any CPU
7476
{5173922A-0160-4EE1-9AD8-F629B23CFE71}.Release|Any CPU.Build.0 = Release|Any CPU
77+
{9AEB32AD-D999-4E5F-8CB7-B6A0727DA12A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
78+
{9AEB32AD-D999-4E5F-8CB7-B6A0727DA12A}.Debug|Any CPU.Build.0 = Debug|Any CPU
79+
{9AEB32AD-D999-4E5F-8CB7-B6A0727DA12A}.Release|Any CPU.ActiveCfg = Release|Any CPU
80+
{9AEB32AD-D999-4E5F-8CB7-B6A0727DA12A}.Release|Any CPU.Build.0 = Release|Any CPU
7581
EndGlobalSection
7682
GlobalSection(SolutionProperties) = preSolution
7783
HideSolutionNode = FALSE
@@ -86,6 +92,7 @@ Global
8692
{1BCB3853-DAFE-4B33-9888-23666A1040B9} = {80170A9E-5ACF-483A-8A8E-18CA7B0C9A34}
8793
{5F797BB6-13E8-4A02-BC01-613FC791EB41} = {833D0345-46F0-486E-9BEF-5269405683F8}
8894
{5173922A-0160-4EE1-9AD8-F629B23CFE71} = {26E65B0F-9554-408A-95D4-BDEC52945FC3}
95+
{9AEB32AD-D999-4E5F-8CB7-B6A0727DA12A} = {26E65B0F-9554-408A-95D4-BDEC52945FC3}
8996
EndGlobalSection
9097
GlobalSection(ExtensibilityGlobals) = postSolution
9198
SolutionGuid = {C3DB70BA-969B-47D7-8A77-65B190E2CC81}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## Version 1.1.5 - 3/15/2022
2+
3+
* Added AutoSuggest, LocalSearch, LocalInsights, and OptimizeItineraryRequest APIs. Added samples for each.
4+
* Added a visual sample for OptimizeItineraryRequest.
5+
* Added support for regional travel summary in routes.
6+
* Fixed backlog of issues and updates.
7+
* Add helper methods to existing classes
8+
- SimpleWaypoint and Coordinate classes - static Parse method.
9+
- Resource class - static HasResource and GetFirstResouce methods.
10+
- RoutePath class - method to retrieve route path as an array of coordinates.
11+
112
## Version 1.1.4 - 3/9/2018
213

314
* Async support added to SnapToRoadRequest, thus allowing up to 1,000 points to be snapped in a single request.

Docs/API Reference.md

Lines changed: 140 additions & 3 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
![Bing Maps Logo](https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions/blob/master/images/BingMapsLogoTeal.png)
22

3+
![Local version](https://img.shields.io/badge/Local%20version-1.1.5-green.svg)
34
[![NuGet](https://img.shields.io/badge/NuGet-1.1.4-blue.svg)](https://www.nuget.org/packages/BingMapsRESTToolkit)
45
[![license](https://img.shields.io/badge/license-MIT-yellow.svg)](https://github.com/Microsoft/BingMapsRESTToolkit/blob/master/LICENSE.md)
56

67
# Bing Maps REST Toolkit for .NET
78

89
This is a portable .NET class library which provides a set of tools that make it easy to access the Bing Maps REST services in .NET based apps. Take a look at the [Getting Started documentation](https://github.com/Microsoft/BingMapsRESTToolkit/blob/master/Docs/Getting%20Started.md). The Bing Maps REST Services provides the following functionality:
910

11+
* **Autosuggest**
1012
* **Forward and reverse geocoding**
1113
* **Route calculations** - for driving, walking, transit and truck
1214
* **Distance matricies** - time and distance based matrices between a set of origins and destinations. Optionally retrieve this data over a period of time using predictive traffic data
@@ -15,10 +17,8 @@ This is a portable .NET class library which provides a set of tools that make it
1517
* **Traffic incident data**
1618
* **Elevation data**
1719
* **Static map imagery and metadata**
18-
19-
## What's New
20-
21-
* September 2018: Requests for [Location Recognition](https://msdn.microsoft.com/en-US/library/mt847173.aspx) and the [Time Zone API](https://msdn.microsoft.com/en-us/library/mt829726.aspx), including Data Contracts, are now available.
20+
* **Local search**
21+
* And much more!
2222

2323
## Toolkit Features
2424

@@ -31,6 +31,12 @@ This is a portable .NET class library which provides a set of tools that make it
3131
* **Travelling Salesmen** algorithms that tie into the distance matrix API [documentation](https://github.com/Microsoft/BingMapsRESTToolkit/blob/master/Docs/Getting%20Started.md#TravellingSalesmen).
3232
* **Truck routing based Distance Matricies** - The Bing Maps distance matric API does not support truck routing based matricies. This library adds support for this by wrapping the truck routing API.
3333

34+
## Reference locally
35+
36+
The NuGet package is not updated as frequently as the source code in this repo. You can use the latest version by
37+
downloading the source code and copying the contents of the `Source` folder into your solution folder.
38+
Then in your solution add an "Existing project" and select the "BingMapsRESTToolkit.csproj" file.
39+
3440
## NuGet Package
3541

3642
The Bing Maps REST Services Toolkit is available as a [NuGet package](https://www.nuget.org/packages/BingMapsRESTToolkit). If using Visual Studio, open the nuget package manager, select the Browse tab and search for "Bing Maps REST". This should reduce the list of results enough to find the "BingMapsRESTToolkit" package. The owner of the package is bingmaps and the author is Microsoft.
@@ -82,4 +88,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
8288

8389
MIT
8490

85-
See [License](LICENSE.md) for full license text.
91+
See [License](LICENSE.md) for full license text.

Samples/Console/RESTToolkitTestConsoleApp.NetStandard/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<add key="BingMapsKey" value="YOUR_API_KEY_HERE"/>
55
</appSettings>
66
<startup>
7-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
7+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
88
</startup>
99
</configuration>

Samples/Console/RESTToolkitTestConsoleApp.NetStandard/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ private Resource[] GetResourcesFromRequest(BaseRestRequest rest_request)
5151
public void AutoSuggestTest()
5252
{
5353
Console.WriteLine("Running Autosuggest Test");
54-
CoordWithRadius ul = new CoordWithRadius() { Latitude = 47.668697, Longitude = -122.376373, Radius = 5 };
54+
var ul = new CircularView(47.668697, -122.376373, 5);
5555

5656
var request = new AutosuggestRequest()
5757
{
5858
BingMapsKey = _ApiKey,
5959
Query = "El Bur",
60-
UserLoc = ul
60+
UserLocation = ul,
6161
};
6262
Console.WriteLine(request.GetRequestUrl());
6363
var resources = GetResourcesFromRequest(request);
64-
var entities = (resources[0] as AutosuggestResource);
64+
var entities = (resources[0] as Autosuggest);
6565

6666
foreach (var entity in entities.Value)
6767
Console.Write($"Entity of type {entity.Type} returned.");
@@ -167,7 +167,7 @@ public void LocationRecogTest()
167167

168168
if (r.BusinessAtLocation != null)
169169
{
170-
foreach (LocalBusiness business in r.BusinessAtLocation)
170+
foreach (BusinessAtLocation business in r.BusinessAtLocation)
171171
{
172172
Console.WriteLine($"Business:\n{business.BusinessInfo.EntityName}");
173173
}

Samples/Console/RESTToolkitTestConsoleApp.NetStandard/RESTToolkitTestConsoleApp.NetStandard.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<OutputType>Exe</OutputType>
99
<RootNamespace>RESTToolkitTestConsoleApp.NetStandard</RootNamespace>
1010
<AssemblyName>RESTToolkitTestConsoleApp.NetStandard</AssemblyName>
11-
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1414
<TargetFrameworkProfile />

Samples/Console/RESTToolkitTestConsoleApp/Program.cs

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,32 +48,6 @@ static private Resource[] GetResourcesFromRequest(BaseRestRequest rest_request)
4848
return r.ResourceSets[0].Resources;
4949
}
5050

51-
/*
52-
*
53-
* Pending review.
54-
*
55-
static public void AutoSuggestTest()
56-
{
57-
Console.WriteLine("Running Autosuggest Test");
58-
CoordWithRadius ul = new CoordWithRadius() { Latitude = 47.668697, Longitude = -122.376373, Radius = 5 };
59-
60-
var request = new AutosuggestRequest()
61-
{
62-
BingMapsKey = _ApiKey,
63-
Query = "El Bur",
64-
UserLoc = ul
65-
};
66-
Console.WriteLine(request.GetRequestUrl());
67-
var resources = GetResourcesFromRequest(request);
68-
var entities = (resources[0] as AutosuggestResource);
69-
70-
foreach (var entity in entities.Value)
71-
Console.Write($"Entity of type {entity.Type} returned.");
72-
73-
Console.ReadLine();
74-
}
75-
*/
76-
7751
/// <summary>
7852
/// Convert Time Zone Test
7953
/// https://msdn.microsoft.com/en-us/library/mt829733.aspx
@@ -194,7 +168,7 @@ static public void LocationRecogTest()
194168

195169
if (r.BusinessAtLocation != null)
196170
{
197-
foreach (LocalBusiness business in r.BusinessAtLocation)
171+
foreach (BusinessAtLocation business in r.BusinessAtLocation)
198172
{
199173
Console.WriteLine($"Business:\n{business.BusinessInfo.EntityName}");
200174
}

Samples/Console/RESTToolkitTestConsoleApp/RESTToolkitTestConsoleApp.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
<DebugSymbols>true</DebugSymbols>
5050
</PropertyGroup>
5151
<ItemGroup>
52-
<ProjectReference Include="..\..\..\Source\BingMapsRESTToolkit.csproj" />
5352
<Reference Include="System" />
5453
<Reference Include="System.configuration" />
5554
<Reference Include="System.Core" />
@@ -80,6 +79,12 @@
8079
<Install>false</Install>
8180
</BootstrapperPackage>
8281
</ItemGroup>
82+
<ItemGroup>
83+
<ProjectReference Include="..\..\..\Source\BingMapsRESTToolkit.csproj">
84+
<Project>{ac15ccac-63b7-43eb-a1cb-25925f04398b}</Project>
85+
<Name>BingMapsRESTToolkit</Name>
86+
</ProjectReference>
87+
</ItemGroup>
8388
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8489
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
8590
Other similar extension points exist, see Microsoft.Common.targets.
@@ -88,4 +93,4 @@
8893
<Target Name="AfterBuild">
8994
</Target>
9095
-->
91-
</Project>
96+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Application x:Class="MultiRouteOptimizationSample.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:MultiRouteOptimizationSample"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>

0 commit comments

Comments
 (0)