Fieldpine Logo Documentation Home  

address.validate

Provides realtime lookup of addresses as they are being entered, or for complete addresses to extract details. When used as part of an address capture box this API provides dynamic pick lists to speed the user to rapid entry.


Input Specification

Field#NameDescription
3Required value "address.validate"
9Selection predicates
120Input address

Possible Predicates

Field#NameDescription
121-129Input address a line at a time. F121 is the first line through to F129 for the last line.
130Current users Geo location. Supplied as (long,lat) eg "178.65,-41.4". Or long Only with lat in f131
131User Current Geo Position LAT only eg "-41.4"
132User Current Country (can be estimate such as IP geo locate)
133Desired Output Language

Output Specification

The response packet from the server may include the following fields

Field#NameDescription
105LongitudeLongitude of the address.
106LatitudeLatitude of the address.
107LabelAddress label that can be placed on the item. This is a pipe separated list. Where possible this is formatted to the target countries specifications
108PafidA number unique identifying a delivery address. Only present for some countries
200StreetNumber
201StreetAlpha
202UnitType
203UnitIdent
204Floor
205Building
206Street
207StreetType
208StreetDir
209Box
210Lobby
211Suburb
212TownCity
213UnitType
214Rural
215Country

Examples


Validate an address, return response in JSON

http://...server.../gnap/J/buck?3=address.validate&120=123 Queen st


{ "RootType":"ARAY",
  "APPD":[ 
    {"Longitude":null,"Latitude":null,"Label":"123 Queen Street East|Hastings 4122"},
    {"Longitude":null,"Latitude":null,"Label":"Flat 1|123 Queen Street|Northcote Point|Auckland 0627"},
    {"Longitude":null,"Latitude":null,"Label":"Flat 2|123 Queen Street|Northcote Point|Auckland 0627"},
    {"Longitude":null,"Latitude":null,"Label":"123 Queen Street|Pukekohe 2120"},
    {"Longitude":null,"Latitude":null,"Label":"123 Queen Street|Palmerston North 4410"},
    {"Longitude":null,"Latitude":null,"Label":"123 Queen Street|Westport 7825"},
    {"Longitude":null,"Latitude":null,"Label":"Suite 1|123 Queen Street|Palmerston North 4410"}
  ]
}


Validate an address, return response in named XML

http://...server.../gnap/M/buck?3=address.validate&120=box 15232&120=miramar&7=100-230


<ARAY>
  <APPD>
    <MeshBlock/>
    <Longitude/>
    <Latitude/>
    <Label>PO Box 15232|Miramar|Wellington 6243</Label>
    <Pafid>6012269</Pafid>
    <StreetNumber>0</StreetNumber>
    <StreetAlpha>0</StreetAlpha>
    <UnitType/>
    <UnitIdent/>
    <Floor/>
    <Building/>
    <Street/>
    <StreetType/>
    <StreetDir/>
    <Box>15232</Box>
    <Lobby>Miramar</Lobby>
    <Suburb/>
    <TownCity>Wellington</TownCity>
    <UnitType>6243</UnitType>
    <Rural/>
    <Country/>
  </APPD>
</ARAY>