| GET | /{Workspace}/Geocode |
|---|
namespace Field2Office.API.Model
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type Location() =
member val y:Double = new Double() with get,set
member val x:Double = new Double() with get,set
[<AllowNullLiteral>]
type Address() =
member val Street:String = null with get,set
member val Unit:String = null with get,set
member val City:String = null with get,set
member val State:String = null with get,set
member val Zip:String = null with get,set
member val ContactTitle:String = null with get,set
member val ContactName:String = null with get,set
member val ContactPhone:String = null with get,set
member val ContactEmail:String = null with get,set
member val Location:Location = null with get,set
member val SiteName:String = null with get,set
member val GeocodeFailed:Boolean = new Boolean() with get,set
member val Country:String = null with get,set
///<summary>
///Represents a DTO for a geocode request/response in a workspace. Usage is as follows /Geocode?street=1514 Blake St&city=Denver&state=CO&zip=80209
///</summary>
[<AllowNullLiteral>]
type Geocode() =
member val Workspace:String = null with get,set
member val Addresses:ResizeArray<Address> = new ResizeArray<Address>() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{Workspace}/Geocode HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml