| GET | /{Workspace}/Geocode |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Geocoding
Imports Field2Office.API.Model
Namespace Global
Namespace Field2Office.API.Model
Public Partial Class Address
Public Overridable Property Street As String
Public Overridable Property Unit As String
Public Overridable Property City As String
Public Overridable Property State As String
Public Overridable Property Zip As String
Public Overridable Property ContactTitle As String
Public Overridable Property ContactName As String
Public Overridable Property ContactPhone As String
Public Overridable Property ContactEmail As String
Public Overridable Property Location As Location
Public Overridable Property SiteName As String
Public Overridable Property GeocodeFailed As Boolean
Public Overridable Property Country As String
End Class
Public Partial Class Location
Public Overridable Property y As Double
Public Overridable Property x As Double
End Class
End Namespace
Namespace Field2Office.API.Model.Geocoding
'''<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>
Public Partial Class Geocode
Public Sub New()
Addresses = New List(Of Address)
End Sub
Public Overridable Property Workspace As String
Public Overridable Property Addresses As List(Of Address)
End Class
End Namespace
End Namespace
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