Field Squared API Services

<back to all web services

ReverseGeocode

Reprsents a DTO for a reverse geocode request/resonse. Usage is /ReverseGeocode?latitude=1.0&longitude=1.0

The following routes are available for this service:
GET/{Workspace}/ReverseGeocode
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>
    ///Reprsents a DTO for a reverse geocode request/resonse.  Usage is /ReverseGeocode?latitude=1.0&longitude=1.0
    ///</summary>
    [<AllowNullLiteral>]
    type ReverseGeocode() = 
        member val Workspace:String = null with get,set
        member val Address:Address = null with get,set

F# ReverseGeocode DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /{Workspace}/ReverseGeocode HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv