Method PostUtilitiesSearchAddress

Summary

Search for Address

Remarks

Search for an address in the land file. Does not require account number. Used for signing up for a new service.

Requires

Input Parameters

NameTypeLengthDescription
streetName System.String 25 [Required] Street name to search on
streetNumber numeric 7 House or building number to search on
streetDir System.String 2 Street direction. Ex. N, S, E, W, NE, NW, etc.
streetSuffix System.String 4 Street suffix code Ex. AVE=Avenue, BLVD=Boulevard, CIR=Circle, CT=Court, DR=Drive, LN=Lane
maxRows numeric 3 Max records to return - defaults to 999

Example

POST http://localhost/FusionServices/v2/Naviline/Utilities/Search/Address

Return Values

NameDescription
Location The location number for the address from teh land file.
StreetNumber The street number portion of the address
StreetDirection The street direction portion of the address
StreetName The street name portion of the address
Apartment Aparment identifier of the address
ZipCode Zip Code. Can be 5 digit zip or zip+4
CourierRoute Courier Route identifier of the address
OwnerName Name of person or company that owns the address
OwnerType Owner Type
OwnerAddress2 Owner Address line 2
OwnerAddress3 Owner Address line 3
OwnerZipCode Owner zip code
OwnerCourierRoute Owner Carrier Route
OwnerAreaCode Owner phone area code
OwnerPhone Owner phone number
ParcelNo1 Parcel Numbers 1 - 10
ParcelType Parcel Type
TaxNumber Tax Number
PreQualifier Pre-Qualifier for street address
Acreage property acreage
PropertyCode property usage code
UndividedInterestPercent Undivided Interest Percent
Township Township code
InsideOutsideCode In Town / Outside Town code
CommissionerDistrict Commissioner District
LocationAddress Formatted address for location
PostQualifier Post-Qualifier for street address
StreetSuffix Street suffix for street address
PostStreetDirection Post street direction for street address. Ex. 'NE' in 101 MAIN NE
PreQualifier2 Pre-Qualifier for street address
DeliveryPoint Delivery Point for street address
OwnerDeliveryPoint Owner Delivery Point for street address
GeneralLocation General Location code
RTPARSTS
AddressType Address Type
EffectiveDate Effective Date
PlatBook Plat Book identifier
UserZoneCode User Zone Code
FireZoneCode Fire Zone Code
VarianceCode Variance Code
InspectionArea Inspection Area Code
RTSUB1
RTSUB2
LongitudeD2 Longitude 2 decimals
LatitudeD2 Latitude 2 decimals
DateOfBirth Date Of Birth
ExtraAddress Extra Address instructions
RTFFAD
RTRELID
ParcelAddressStatus Parcel Address Status. Blank=Active, I=Inactive
ParcelEffectiveDate Parcel Address Effective Date
IntersectionStreetName Street name of nearest intersection
IntersectionStreetDir Street direction of nearest intersection
IntersectionStreetSuffix Street suffix of nearest intersection
RTCENTRT
ParcelProcessingCode Parcel Processing Code. COMB=Combined, SPLIT=Split
LongitudeD6 Longitude 6 decimals
LatitudeD6 Latitude 6 decimals
RTLMOWA4
MapX Max X coordinate
MapY Map Y coordinate
CensusTract Census Tract indicator
City City
State State

Sample Responses

Sample Code

using System.Net;
using Newtonsoft.Json.Linq;

public void MethodName(parms)
{
   string uri = "http://localhost/FusionServices/v2/Naviline/Utilities/Search/Address";
   System.Collections.Specialized.NameValueCollection postParms = 
     new System.Collections.Specialized.NameValueCollection(); 
   // Set paramater values
   postParms.Add("streetName",System.Web.HttpUtility.UrlEncode("MAIN"));

   WebClient req = new WebClient();
   wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
   wc.Headers.Set("X-APPID", "YOURID");
   wc.Headers.Set("X-APPKEY", "YOURKEY");

   byte[] responseBytes = wc.UploadValues(new Uri(uri), "POST", postParms);
   string stringResult = Encoding.UTF8.GetString(responseBytes); 
   JObject response = JObject.Parse(stringResult);
   string error = response["OutputParms"]["ErrorCode"].ToString();
   if (error == "0000")
   {
        JArray jRows = (JArray)response["Rows"];
        foreach (JObject row in jRows)
        {
             string LocationID = row["LocationID"].ToString();
             string StreetNumber = row["StreetNumber"].ToString();
             string StreetDirection = row["StreetDirection"].ToString();
             string StreetName = row["StreetName"].ToString();
             string Apartment = row["Apartment"].ToString();
             string ZipCode = row["ZipCode"].ToString();
             string CourierRoute = row["CourierRoute"].ToString();
             string OwnerName = row["OwnerName"].ToString();
             string OwnerType = row["OwnerType"].ToString();
             string OwnerAddress2 = row["OwnerAddress2"].ToString();
             string OwnerAddress3 = row["OwnerAddress3"].ToString();
             string OwnerZipCode = row["OwnerZipCode"].ToString();
             string OwnerCourierRoute = row["OwnerCourierRoute"].ToString();
             string OwnerAreaCode = row["OwnerAreaCode"].ToString();
             string OwnerPhone = row["OwnerPhone"].ToString();
             string ParcelNo1 = row["ParcelNo1"].ToString();
             string ParcelNo2 = row["ParcelNo2"].ToString();
             string ParcelNo3 = row["ParcelNo3"].ToString();
             string ParcelNo4 = row["ParcelNo4"].ToString();
             string ParcelNo5 = row["ParcelNo5"].ToString();
             string ParcelNo6 = row["ParcelNo6"].ToString();
             string ParcelNo7 = row["ParcelNo7"].ToString();
             string ParcelNo8 = row["ParcelNo8"].ToString();
             string ParcelNo9 = row["ParcelNo9"].ToString();
             string ParcelNo10 = row["ParcelNo10"].ToString();
             string ParcelType = row["ParcelType"].ToString();
             string TaxNumber = row["TaxNumber"].ToString();
             string PreQualifier = row["PreQualifier"].ToString();
             string Acreage = row["Acreage"].ToString();
             string PropertyCode = row["PropertyCode"].ToString();
             string UndividedInterestPercent = row["UndividedInterestPercent"].ToString();
             string Township = row["Township"].ToString();
             string InsideOutsideCode = row["InsideOutsideCode"].ToString();
             string CommissionerDistrict = row["CommissionerDistrict"].ToString();
             string LocationAddress = row["LocationAddress"].ToString();
             string PostQualifier = row["PostQualifier"].ToString();
             string StreetSuffix = row["StreetSuffix"].ToString();
             string PostStreetDirection = row["PostStreetDirection"].ToString();
             string PreQualifier2 = row["PreQualifier2"].ToString();
             string DeliveryPoint = row["DeliveryPoint"].ToString();
             string OwnerDeliveryPoint = row["OwnerDeliveryPoint"].ToString();
             string GeneralLocation = row["GeneralLocation"].ToString();
             string RTPARSTS = row["RTPARSTS"].ToString();
             string AddressType = row["AddressType"].ToString();
             string EffectiveDate = row["EffectiveDate"].ToString();
             string PlatBook = row["PlatBook"].ToString();
             string UserZoneCode = row["UserZoneCode"].ToString();
             string FireZoneCode = row["FireZoneCode"].ToString();
             string VarianceCode = row["VarianceCode"].ToString();
             string InspectionArea = row["InspectionArea"].ToString();
             string RTSUB1 = row["RTSUB1"].ToString();
             string RTSUB2 = row["RTSUB2"].ToString();
             string LongitudeD2 = row["LongitudeD2"].ToString();
             string LatitudeD2 = row["LatitudeD2"].ToString();
             string DateOfBirth = row["DateOfBirth"].ToString();
             string ExtraAddress = row["ExtraAddress"].ToString();
             string RTFFAD = row["RTFFAD"].ToString();
             string RTRELID = row["RTRELID"].ToString();
             string ParcelAddressStatus = row["ParcelAddressStatus"].ToString();
             string ParcelEffectiveDate = row["ParcelEffectiveDate"].ToString();
             string IntersectionStreetName = row["IntersectionStreetName"].ToString();
             string IntersectionStreetDir = row["IntersectionStreetDir"].ToString();
             string IntersectionStreetSuffix = row["IntersectionStreetSuffix"].ToString();
             string RTCENTRT = row["RTCENTRT"].ToString();
             string ParcelProcessingCode = row["ParcelProcessingCode"].ToString();
             string LongitudeD6 = row["LongitudeD6"].ToString();
             string LatitudeD6 = row["LatitudeD6"].ToString();
             string RTLMOWA4 = row["RTLMOWA4"].ToString();
             string MapX = row["MapX"].ToString();
             string MapY = row["MapY"].ToString();
             string CensusTract = row["CensusTract"].ToString();
             string City = row["City"].ToString();
             string State = row["State"].ToString();
             // TODO - YOUR CODE HERE
        }
   }
}

C# Razor MVC Sample Code

using System;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Collections.Specialized;
using FusionServiceHelper.Models;

// NOTE: Use the namespace generated when you add the class, so that it is correct.
namespace FusionRazor.Models
{
   public class PostUtilitiesSearchAddress
   {
       // Add property for each input param in order to map a field to it
       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string streetName{get; set;}

       [RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
       public string streetNumber{get; set;}

       [RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
       public string streetDir{get; set;}

       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string streetSuffix{get; set;}

       [RegularExpression("[0-9]{0,3}", ErrorMessage = "Numeric values only. Must be 3 digits or less. ")]
       public string maxRows{get; set;}

       public PostUtilitiesSearchAddress()
       {
           //Set any defaults here
       }
   }
}
@* NOTE: Use Add->View to add the View. *@
@* NOTE: Check the 'Create strongly-typed view checkbox, and select the PostUtilitiesSearchAddress class. *@
@* NOTE: Select Edit as the Scaffold template. *@
@* NOTE: Use the @model line that is generated at the top.  Replace the rest with the lines below.
@model FusionRazor.Models.PostUtilitiesSearchAddress

@{
   ViewBag.Title = "PostUtilitiesSearchAddress";
}

<h2>PostUtilitiesSearchAddress</h2>
@using (Html.BeginForm()) {
   @Html.AntiForgeryToken()
   @Html.ValidationSummary(true)
   <fieldset>
   <legend>PostUtilitiesSearchAddress</legend>
       <div class="editor-label">
           @Html.LabelFor(model => model.streetName)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.streetName)
           @Html.ValidationMessageFor(model => model.streetName)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.streetNumber)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.streetNumber)
           @Html.ValidationMessageFor(model => model.streetNumber)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.streetDir)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.streetDir)
           @Html.ValidationMessageFor(model => model.streetDir)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.streetSuffix)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.streetSuffix)
           @Html.ValidationMessageFor(model => model.streetSuffix)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.maxRows)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.maxRows)
           @Html.ValidationMessageFor(model => model.maxRows)
       </div>
       <p>
       <input type="submit" value="Submit"/>
       </p>
   </fieldset>

}

@section Scripts {
   @Scripts.Render("~/bundles/jqueryval")
}
using System;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FusionServiceHelper.Models;

// NOTE: Replace 'MyController' with the name of your controller.

// 
// GET: /MyController/PostUtilitiesSearchAddress
public ActionResult PostUtilitiesSearchAddress()
{
   // Create a new instance of the model to pick up any default values.
   PostUtilitiesSearchAddress model =  new PostUtilitiesSearchAddress();

   // pass model to set to default values
   // NOTE: Change 'MyFolderPath' to the path to the .cshtml file.
   return View("~/Views/MyFolderPath/PostUtilitiesSearchAddress.cshtml", model);
}

// 
// POST: /MyController/PostUtilitiesSearchAddress
[HttpPost]
public ActionResult PostUtilitiesSearchAddress(FormCollection collection)
{
   string url = "v2/Naviline/Utilities/Search/Address";
   // Get the value from each input field
   NameValueCollection inputParms = new NameValueCollection();
   inputParms.Add("streetName", collection["streetName"]);
   inputParms.Add("streetNumber", collection["streetNumber"]);
   inputParms.Add("streetDir", collection["streetDir"]);
   inputParms.Add("streetSuffix", collection["streetSuffix"]);
   inputParms.Add("maxRows", collection["maxRows"]);

   try
   {
       // Send the request
       FusionServiceRequest request = new FusionServiceRequest();
       FusionServiceResult result = request.Post(url, inputParms);

       return View("Result", result);
   }
   catch(Exception e)
   {
       HandleErrorInfo info = new HandleErrorInfo(e, "MyController", "PostUtilitiesSearchAddress");
       return View("Error", info);
   }
}