SmartyStreets

Advent of Code

You like Advent of Code, you must like puzzles. Introducing the Address Validation puzzle.

The Puzzle: Address Validation

Christmas is fast approaching! Parcels and packages are prepping for postal portage. Are your shipping addresses valid? Or will your correspondence meet an uncertain demise?

  • Scenario 1: A gift for a friend
  • Your friend just moved into a new house in another state and you are not sure if the address is deliverable yet.

  • Scenario 2: 250 Christmas cards
  • You just finished writing your yearly form letter and are ready to send it along with season appropriate cards to all your friends and family. What percentage of your 250 friends and family will actually receive your epic epistle?

  • Scenario 3: 100,000 Holiday discount fliers
  • Hot off the press and ready to hit the hand of your potential customers. How many of your 100k fliers will hit their target?

Our Solution to all of these scenarios:

Throw all those addresses at our US Street API.

  • Scenario 1 Solution:
  • Use our Single Address Validation Tool if you only have an address or two.

    Or try this on the command line:

    curl -v 'https://us-street.api.smartystreets.com/street-address?
    auth-id=YOUR+AUTH-ID+HERE&
    auth-token=YOUR+AUTH-TOKEN+HERE&
    street=1600+amphitheatre+pkwy&
    city=mountain+view&
    state=CA&
    candidates=10'

    (Note: Using the command line requires a free account and authentication keypair [secret keys].)

  • Scenario 2 Solution:
  • Use our Bulk Address Validation Tool to process long lists of addresses.

    Or try this on the command line:

    curl -v 'https://us-street.api.smartystreets.com/street-address?
    auth-id=YOUR+AUTH-ID+HERE&
    auth-token=YOUR+AUTH-TOKEN+HERE'
    -H "Content-Type: application/json; charset=utf-8"
    --data-binary'
    [{"street":"1 Santa Claus","city":"North Pole","state":"AK","candidates":10},
    {"addressee":"Apple Inc","street":"1 infinite loop","city":"cupertino","state":"CA","zipcode":"95014","candidates":10}]'

    (Note: Using the command line requires a free account and authentication keypair [secret keys].)

  • Scenario 3 Solution:
  • Use one of our many SDKs to incorporate address validation into your own custom application.

SmartyStreets: Taking the Puzzle out of Address Validation

2020 Private Leaderboard Competition

Code For Prizes

We give prizes for the top coders on our private leaderboard. Some prizes may include: Amazon Gift Cards, Nintendo Switch, Oculus Quest 2, and more!

How to join our leaderboard:

  • Create a free SmartyStreets account
  • Send an email to adventofcode@smartystreets.com specifying the following:
    • your real name
    • your Advent of Code display name
    • your SmartyStreets account email address

    This way we know who you are when you win and can get your prizes to you. :)

  • Once we verify that you have an account we will send you a leaderboard join code

If you have not already, follow us on Twitter.

The leader in location data intelligence

Ready to get started?