This commit is contained in:
Ricky Brundritt 2016-12-13 16:01:28 +00:00
Родитель e1d5704fb5
Коммит 35731552fb
9 изменённых файлов: 26 добавлений и 12 удалений

Просмотреть файл

@ -6,8 +6,10 @@
<title>Bing Maps REST Services Toolkit</title>
<authors>Microsoft</authors>
<owners>microsoft bingmaps</owners>
<licenseUrl>https://github.com/Microsoft/BingMapsRESTToolkit/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/Microsoft/BingMapsRESTToolkit</projectUrl>
<iconUrl>https://www.bing.com/sa/simg/bing_p_rr_teal_min.ico</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>This is a portable class library which makes it easy to access the Bing Maps REST services from .NET.</description>
<summary>This is a portable class library which makes it easy to access the Bing Maps REST services from .NET.</summary>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>

Просмотреть файл

@ -35,17 +35,17 @@ namespace BingMapsRESTToolkit
None,
/// <summary>
/// High confience match.
/// High confidence match.
/// </summary>
High,
/// <summary>
/// Medium confience match.
/// Medium confidence match.
/// </summary>
Medium,
/// <summary>
/// Low confience match.
/// Low confidence match.
/// </summary>
Low
}

Просмотреть файл

@ -35,12 +35,12 @@ namespace BingMapsRESTToolkit
Distance,
/// <summary>
/// Optimizes route for shortst travel time.
/// Optimizes route for shortest travel time.
/// </summary>
Time,
/// <summary>
/// Optimizes route for shortst travel time with respect to current traffic conditions.
/// Optimizes route for shortest travel time with respect to current traffic conditions.
/// </summary>
TimeWithTraffic,

Просмотреть файл

@ -207,7 +207,7 @@ namespace BingMapsRESTToolkit
}
/// <summary>
/// Returns the Point information as a formated string. Only the first 1024 points will be used.
/// Returns the Point information as a formatted string. Only the first 1024 points will be used.
/// </summary>
/// <returns>A formatted string of point data.</returns>
public string GetPointsAsString()

Просмотреть файл

@ -27,7 +27,7 @@ using System;
namespace BingMapsRESTToolkit
{
/// <summary>
/// Geocodes a query to it's coordinates.
/// Geocodes a query to its coordinates.
/// </summary>
public class GeocodeRequest : BaseRestRequest
{
@ -78,7 +78,7 @@ namespace BingMapsRESTToolkit
#region Public Methods
/// <summary>
/// Gets the request URL. If both a Query and Address are specified the Query value will be used. Throws an exception if a Query or Address value is not specified.
/// Gets the request URL. If both a Query and Address are specified, the Query value will be used. Throws an exception if a Query or Address value is not specified.
/// </summary>
/// <returns>Geocode request URL for GET request.</returns>
public override string GetRequestUrl()

Просмотреть файл

@ -196,7 +196,7 @@ namespace BingMapsRESTToolkit
#region Public Methods
/// <summary>
/// Gets the request URL. If both a Query and Address are specified the Query value will be used.
/// Gets the request URL. If both a Query and Address are specified, the Query value will be used.
/// Throws an exception if a Query or Address value is not specified.
/// </summary>
/// <returns>Geocode request URL for GET request.</returns>
@ -318,7 +318,7 @@ namespace BingMapsRESTToolkit
}
/// <summary>
/// Returns the Pushpin information as a formated string.
/// Returns the Pushpin information as a formatted string.
/// </summary>
/// <returns>A formatted string of pushpin data.</returns>
public string GetPushpinsAsString()

Просмотреть файл

@ -35,7 +35,7 @@ namespace BingMapsRESTToolkit
#region Public Properties
/// <summary>
/// A centeral coordinate to perform the nearby search.
/// A central coordinate to perform the nearby search.
/// </summary>
public Coordinate Point { get; set; }
@ -58,6 +58,10 @@ namespace BingMapsRESTToolkit
#region Public Methods
/// <summary>
/// Gets the request URL to perform a reverse geocode query.
/// </summary>
/// <returns>A request URL to perform a reverse geocode query.</returns>
public override string GetRequestUrl()
{
string url = string.Format("https://dev.virtualearth.net/REST/v1/Locations/{0:0.#####},{1:0.#####}?",

Просмотреть файл

@ -60,6 +60,10 @@ namespace BingMapsRESTToolkit
#region Public Methods
/// <summary>
/// Gets the request URL to perform a query for routes using major roads.
/// </summary>
/// <returns>A request URL to perform a query for routes using major roads.</returns>
public override string GetRequestUrl()
{
//https://dev.virtualearth.net/REST/v1/Routes/FromMajorRoads?destination=destination&exclude=routes&rpo=routePathOutput&du=distanceUnit&key=BingMapsKey

Просмотреть файл

@ -52,6 +52,10 @@ namespace BingMapsRESTToolkit
#region Public Methods
/// <summary>
/// Gets the request URL to perform a query for route directions.
/// </summary>
/// <returns>A request URL to perform a query for route directions.</returns>
public override string GetRequestUrl()
{
//https://dev.virtualearth.net/REST/v1/Routes?wayPoint.1=wayPoint1&viaWaypoint.2=viaWaypoint2&waypoint.3=wayPoint3&wayPoint.n=wayPointn&heading=heading&optimize=optimize&avoid=avoidOptions&distanceBeforeFirstTurn=distanceBeforeFirstTurn&routeAttributes=routeAttributes&maxSolutions=maxSolutions&tolerances=tolerance1,tolerance2,tolerancen&distanceUnit=distanceUnit&mfa=mfa&key=BingMapsKey