Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

preamble

On this page we, (Paul, Val, Sam) discuss the how the address lookup service should work.

The latest proposed revision is here.

To look up addresses (DEV):
http://209.126.186.37/address/search/dbi?baseNumber=1&streetName=SOUTH%20VAN%20NESS
http://209.126.186.37/address/search/dbi?baseNumber=2655&streetName=Hyde
http://209.126.186.37/address/search/dbi?baseNumber=2655&streetName=Hyde&block=0026T&lot=646A
http://10.1.15.73:8000/address/search/dbi?baseNumber=1516&streetName=PERSHING&streetNameSuffix=DRIVE

Here are all possible parameters:

  • streetName
  • streetNameSuffix (optional)
  • baseNumber
  • baseNumberSuffix (optional)
  • unitNumber (optional)
  • unitNumberSuffix (optional)
  • block (optional)
  • lot (optional)

The street name must be in the DPW form more or less described here:
todo - We need a more definitive example here
http://dbiweb.sfgov.org/Dbipts/sfstreets.aspx
The street name suffix must be in the unabbreviated form as per
http://www.usps.com/ncsc/lookups/abbr_suffix.txt.

Example 1

    <address>
        <key>419709</key>
        <base_number_prefix></base_number_prefix>
        <base_number>1</base_number>
        <base_number_suffix></base_number_suffix>
        <longitude>-122.418876252</longitude>
        <latitude>37.774694542</latitude>
        <street_name>S VAN NESS</street_name>
        <street_name_suffix>AVE</street_name_suffix>
        <unit_number_prefix>XXX</unit_number_prefix>
        <unit_number>300</unit_number>
        <unit_number_suffix>YYY</unit_number_suffix>
        <create_tms>2010-08-13 12:15:43.828000</create_tms>
        <retire_tms>2010-08-13 18:41:16.149255</retire_tms>
        <disposition>provisional</disposition>
        <mailing>True</mailing>
        <block>3506</block>
        <lot>001</lot>
        <apn>3506001</apn>
    </address>

Example 2

    <address>
        <key>419709</key>
        <base_number_prefix></base_number_prefix>
        <base_number>1</base_number>
        <base_number_suffix></base_number_suffix>
        <longitude>-122.418876252</longitude>
        <latitude>37.774694542</latitude>
        <street_name>SOUTH VAN NESS</street_name>
        <street_name_suffix>
            <abbreviated>AVE</abbreviated>
            <unabbreviated>AVENUE</unabbreviated>
        </street_name_suffix>
        <unit_number_prefix>XXX</unit_number_prefix>
        <unit_number>300</unit_number>
        <unit_number_suffix>YYY</unit_number_suffix>
        <create_tms>2010-08-13 12:15:43.828000</create_tms>
        <retire_tms>2010-08-13 18:41:16.149255</retire_tms>
        <disposition>provisional</disposition>
        <mailing>True</mailing>
        <block>3506</block>
        <lot>001</lot>
        <apn>3506001</apn>
    </address>
  • No labels