-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #2
- Loading branch information
Showing
10 changed files
with
146 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
51 changes: 20 additions & 31 deletions
51
api.mapserv.utah.gov/Models/RequestOptions/GeocodingOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
using api.mapserv.utah.gov.Models.Constants; | ||
using System.ComponentModel; | ||
using api.mapserv.utah.gov.Models.Constants; | ||
|
||
namespace api.mapserv.utah.gov.Models.RequestOptions | ||
{ | ||
public class OptionBase | ||
{ | ||
public OptionBase() | ||
{ | ||
Format = JsonFormat.None; | ||
} | ||
public class OptionBase | ||
{ | ||
public OptionBase() | ||
{ | ||
Format = JsonFormat.None; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the json format for the geometry response. | ||
/// </summary> | ||
/// <value> | ||
/// The json format. | ||
/// </value> | ||
public JsonFormat Format { get; set; } | ||
} | ||
/// <summary> | ||
/// The format of the resulting address. esri json will easily parse into an esri.Graphic for display on a map and geojson will easily parse into a feature for use in many open source projects. If this value is omitted, the default json will be returned. | ||
/// </summary> | ||
[DefaultValue(JsonFormat.None)] | ||
public JsonFormat Format { get; set; } | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
api.mapserv.utah.gov/Models/RequestOptions/ProjectableOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.ComponentModel; | ||
|
||
namespace api.mapserv.utah.gov.Models.RequestOptions | ||
{ | ||
public class ProjectableOptions : OptionBase | ||
{ | ||
/// <summary> | ||
/// The spatial reference for the output and input geometries. | ||
/// Choose any of the <abbr title = "Well-known Id">wkid</abbr>'s from the <a href= "http://resources.arcgis.com/en/help/main/10.1/018z/pdf/geographic_coordinate_systems.pdf"> Geographic Coordinate System wkid reference</a> or <a href="http://resources.arcgis.com/en/help/main/10.1/018z/pdf/projected_coordinate_systems.pdf"> Projected Coordinate System wkid reference</a>. | ||
/// Default: 26912 | ||
/// </summary> | ||
[DefaultValue(26912)] | ||
public int SpatialReference { get; set; } = 26912; | ||
|
||
} | ||
} |
21 changes: 7 additions & 14 deletions
21
api.mapserv.utah.gov/Models/RequestOptions/ReverseGeocodingOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
namespace api.mapserv.utah.gov.Models.RequestOptions | ||
using System.ComponentModel; | ||
|
||
namespace api.mapserv.utah.gov.Models.RequestOptions | ||
{ | ||
public class ReverseGeocodingOptions : OptionBase | ||
public class ReverseGeocodingOptions : ProjectableOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the distance in meters from the point to find an address. | ||
/// The distance in meters from the input location to look for an address. | ||
/// Default: 5 | ||
/// </summary> | ||
/// <value> | ||
/// The distance in meters. | ||
/// </value> | ||
[DefaultValue(5)] | ||
public double Distance { get; set; } = 5; | ||
|
||
/// <summary> | ||
/// Gets or sets the spatial reference well known id for the input coordinates. | ||
/// </summary> | ||
/// <value> | ||
/// The wkid. | ||
/// </value> | ||
public int SpatialReference { get; set; } = 26912; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters