/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the location-2020-11-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.LocationService.Model
{
///
/// Contains a search result from a position search query that is run on a place index
/// resource.
///
public partial class SearchForPositionResult
{
private double? _distance;
private Place _place;
private string _placeId;
///
/// Gets and sets the property Distance.
///
/// The distance in meters of a great-circle arc between the query position and the result.
///
///
///
/// A great-circle arc is the shortest path on a sphere, in this case the Earth. This
/// returns the shortest distance between two locations.
///
///
///
[AWSProperty(Required=true, Min=0)]
public double Distance
{
get { return this._distance.GetValueOrDefault(); }
set { this._distance = value; }
}
// Check to see if Distance property is set
internal bool IsSetDistance()
{
return this._distance.HasValue;
}
///
/// Gets and sets the property Place.
///
/// Details about the search result, such as its address and position.
///
///
[AWSProperty(Required=true)]
public Place Place
{
get { return this._place; }
set { this._place = value; }
}
// Check to see if Place property is set
internal bool IsSetPlace()
{
return this._place != null;
}
///
/// Gets and sets the property PlaceId.
///
/// The unique identifier of the place. You can use this with the GetPlace
/// operation to find the place again later.
///
///
///
/// For SearchPlaceIndexForPosition
operations, the PlaceId
/// is returned only by place indexes that use HERE or Grab as a data provider.
///
///
///
public string PlaceId
{
get { return this._placeId; }
set { this._placeId = value; }
}
// Check to see if PlaceId property is set
internal bool IsSetPlaceId()
{
return this._placeId != null;
}
}
}