GMap.NET.Core/GMap.NET/GDirections.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


namespace GMap.NET
{
   using System.Collections.Generic;

   public class GDirections
   {
      /// <summary>
      /// contains a short textual description for the route, suitable for naming and disambiguating the route from alternatives.
      /// </summary>
      public string Summary;

      /// <summary>
      /// contains a human-readable representation of the duration.
      /// </summary>
      public string Duration;

      /// <summary>
      /// contains a human-readable representation of the distance, displayed in units as used at the origin
      /// (or as overridden within the units parameter in the request), in the language specified in the request.
      /// (For example, miles and feet will be used for any origin within the United States.)
      /// </summary>
      public string Distance;

      /// <summary>
      /// contains the latitude/longitude coordinates of the origin of this leg. Because the Directions API
      /// calculates directions between locations by using the nearest transportation option (usually a road)
      /// at the start and end points, start_location may be different than the provided origin of this leg if,
      /// for example, a road is not near the origin.
      /// </summary>
      public PointLatLng StartLocation;

      /// <summary>
      /// contains the latitude/longitude coordinates of the given destination of this leg. Because the Directions
      /// API calculates directions between locations by using the nearest transportation option (usually a road)
      /// at the start and end points, end_location may be different than the provided destination of this leg if,
      /// for example, a road is not near the destination.
      /// </summary>
      public PointLatLng EndLocation;

      /// <summary>
      /// contains the human-readable address (typically a street address) reflecting the start_location of this leg.
      /// </summary>
      public string StartAddress;

      /// <summary>
      /// contains the human-readable address (typically a street address) reflecting the end_location of this leg.
      /// </summary>
      public string EndAddress;

      /// <summary>
      /// contains the copyrights text to be displayed for this route. You must handle and display this information yourself.
      /// </summary>
      public string Copyrights;

      /// <summary>
      /// contains an array of steps denoting information about each separate step of the leg of the journey.
      /// </summary>
      public List<GDirectionStep> Steps;

后面还有 51 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。