| GET | /{Workspace}/ReverseGeocode |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
/**
* Reprsents a DTO for a reverse geocode request/resonse. Usage is /ReverseGeocode?latitude=1.0&longitude=1.0
*/
open class ReverseGeocode
{
var Workspace:String? = null
var Address:Address? = null
}
open class Address
{
var Street:String? = null
var Unit:String? = null
var City:String? = null
var State:String? = null
var Zip:String? = null
var ContactTitle:String? = null
var ContactName:String? = null
var ContactPhone:String? = null
var ContactEmail:String? = null
var Location:Location? = null
var SiteName:String? = null
var GeocodeFailed:Boolean? = null
var Country:String? = null
}
open class Location
{
var y:Double? = null
var x:Double? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json