Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I work for SmartyStreets, an address verification API provider. Our <a href="http://smartystreets.com/products/liveaddress-api" rel="nofollow">LiveAddress API</a> does just what you need. An account is free to setup and it comes with 250 lookups per month. Here's some <a href="https://github.com/smartystreets/LiveAddressSamples/blob/master/php/get.php" rel="nofollow">sample PHP code</a>:</p> <pre><code>&lt;?php // Customize this (get ID/token values in your SmartyStreets account) $authId = urlencode("raw ID here"); $authToken = urlencode("raw token here"); // Address input $input1 = urlencode("3785 s las vegs av."); $input2 = urlencode("los vegas,"); $input3 = urlencode("nevada"); // Build the URL $req = "https://api.smartystreets.com/street-address/?street={$input1}&amp;city={$input2}&amp;state={$input3}&amp;auth-id={$authId}&amp;auth-token={$authToken}"; // GET request and turn into associative array $result = json_decode(file_get_contents($req),true); echo "&lt;pre&gt;"; print_r($result); echo "&lt;/pre&gt;"; ?&gt; </code></pre> <p>What comes out looks like this:</p> <pre><code>{ "input_index": 0, "candidate_index": 0, "delivery_line_1": "3785 Las Vegas Blvd S", "last_line": "Las Vegas NV 89109-4333", "delivery_point_barcode": "891094333992", "components": { "primary_number": "3785", "street_name": "Las Vegas", "street_postdirection": "S", "street_suffix": "Blvd", "city_name": "Las Vegas", "state_abbreviation": "NV", "zipcode": "89109", "plus4_code": "4333", "delivery_point": "99", "delivery_point_check_digit": "2" }, "metadata": { "record_type": "H", "zip_type": "Standard", "county_fips": "32003", "county_name": "Clark", "carrier_route": "C024", "congressional_district": "01", "building_default_indicator": "Y", "rdi": "Commercial", "elot_sequence": "0119", "elot_sort": "A", "latitude": 36.10357, "longitude": -115.17295, "precision": "Zip9" }, "analysis": { "dpv_match_code": "D", "dpv_footnotes": "AAN1", "dpv_cmra": "N", "dpv_vacant": "N", "active": "Y", "footnotes": "B#H#L#M#" } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload