forked from chadly/Geocoding.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequestOptions.cs
More file actions
46 lines (41 loc) · 1.54 KB
/
RequestOptions.cs
File metadata and controls
46 lines (41 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using Newtonsoft.Json;
namespace Geocoding.MapQuest
{
public class RequestOptions
{
///// <summary>
///// A delimiter is used only when outFormat=csv. The delimiter is the single character used to separate the fields of a character delimited file.
///// The delimiter defaults to a comma(,).
///// The valid choices are ,|:;
///// </summary>
//[JsonProperty("delimiter")]
//public virtual char Delimiter { get; private set; }
[JsonIgnore]
int _maxResults = -1;
/// <summary>
/// The number of results to limit the response to in the case of an ambiguous address.
/// Defaults: -1 (indicates no limit)
/// </summary>
[JsonProperty("maxResults")]
public virtual int MaxResults
{
get { return _maxResults; }
set { _maxResults = value > 0 ? value : -1; }
}
/// <summary>
/// This parameter tells the service whether it should return a URL to a static map thumbnail image for a location being geocoded.
/// </summary>
[JsonProperty("thumbMaps")]
public virtual bool ThumbMap { get; set; }
/// <summary>
/// This option tells the service whether it should fail when given a latitude/longitude pair in an address or batch geocode call, or if it should ignore that and try and geo-code what it can.
/// </summary>
[JsonProperty("ignoreLatLngInput")]
public virtual bool IgnoreLatLngInput { get; set; }
/// <summary>
/// Optional name of JSONP callback method.
/// </summary>
[JsonProperty("callback", NullValueHandling = NullValueHandling.Ignore)]
public virtual string JsonpCallBack { get; set; }
}
}