public async Task<List<SegmentSummary>> Explore(LatLng southWest, LatLng northEast, ActivityType activityType = ActivityType.Ride) { var request = new RestRequest(EndPoint + "/explore", Method.GET); request.AddParameter("bounds", string.Format("{0},{1},{2},{3}", southWest.Latitude.ToString(CultureInfo.InvariantCulture), southWest.Longitude.ToString(CultureInfo.InvariantCulture), northEast.Latitude.ToString(CultureInfo.InvariantCulture), northEast.Longitude.ToString(CultureInfo.InvariantCulture))); var response = await _client.RestClient.Execute<SegmentCollection>(request); return response.Data.Segments; }
public bool Equals(LatLng latLng) { return latLng.Latitude == Latitude && latLng.Longitude == Longitude; }