[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTP API - two step communications.



   Chuck,

   no the service has expired now because of the TS parameter.

   What I did was to open Firefox with Firebug active - there I could se
   what was transmitted

   in the request .

   If I enters this url

   [1]http://factfinder2.census.gov/rest/addressSearch/search?street=207%
   20E%20Lincoln%20Avenue&zip=53207&city=Milwaukee&state=Wisconsin&&_ts=3
   36394476325

   I get this JSON object in return:

   {"AllRecords":{ "SearchRecords":{"Results":
   {
   "rowsPerPageOptions":[25,50,75],
   "sort":"",
   "dir":"",
   "callingurlparams":"",
   "TotalNumRecsAvailable": 0,
   "TotalResultsReturned":10,
   "CurrentPage":1,
   "NumPages":1,
   "StartRecNum":"",
   "EndingRecNum":"",
   "DisplayProperties":"p_record_canonical_name:Geography
   Name,p_geography_summary_level_name:Geography
   Type,info:About,p_geography_summary_level_code:Geography Summary Level
   Code,p_geography_summary_level_code:Geography Summary Level
   Code,d_geography_year:Geographic
   Vintage,d_geography_pseudo_geography_ind:Pseudo Geography
   Indicator,p_geography_year_state:Geography Year State",
   "GeoMessage":"",
   "FipscodeSearchInterface":"",
   "FipsclasscodeSearchInterface":"",
   "AnsicodeSearchInterface":"",
   "LsadcodeSearchInterface":"",
   "GeoSearchInterface":"",
   "BlockIndexVintageList":"",
   "DefaultMatchMode":"",
   "SelectedProductsInSession":"",
   "ProductIncludeArchive":"",
   "batchLimit":""
   ,
   "matchingAddress":"207 E Lincoln Ave, MILWAUKEE, WI 53207",
   "selectedVintage":"2010",
   "totalAddressRecords":"16",
   "sort":"",
   "dir":"",
   "ResultSet":
   [
   {
   "column1":"ZCTA5 53207",
   "column2":"5-Digit ZIP Code Tabulation Area",
   "column3":"860",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=ZCTA5
   53207&p_geography_summary_level_name=5-Digit ZIP Code Tabulation
   Area&p_geography_summary_level_code=860&d_geography_year=2010&
   amp;d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Block 1004, Block Group 1, Census Tract 179, Milwaukee
   County, Wisconsin",
   "column2":"Block",
   "column3":"100",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Block 1004, Block
   Group 1, Census Tract 179, Milwaukee County,
   Wisconsin&p_geography_summary_level_name=Block&p_geography_sum
   mary_level_code=100&d_geography_year=2010&d_record_type=geogra
   phy&filterAction=A&N=0"
   }
   ,{
   "column1":"Block Group 1, Census Tract 179, Milwaukee County,
   Wisconsin",
   "column2":"Block Group",
   "column3":"150",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Block Group 1,
   Census Tract 179, Milwaukee County,
   Wisconsin&p_geography_summary_level_name=Block
   Group&p_geography_summary_level_code=150&d_geography_year=2010
   &d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Census Tract 179, Milwaukee County, Wisconsin",
   "column2":"Census Tract",
   "column3":"140",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Census Tract 179,
   Milwaukee County, Wisconsin&p_geography_summary_level_name=Census
   Tract&p_geography_summary_level_code=140&d_geography_year=2010
   &d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Congressional District 4 (111th Congress), Wisconsin",
   "column2":"Congressional District",
   "column3":"500",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Congressional
   District 4 (111th Congress),
   Wisconsin&p_geography_summary_level_name=Congressional
   District&p_geography_summary_level_code=500&d_geography_year=2
   010&d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Milwaukee County, Wisconsin",
   "column2":"County",
   "column3":"050",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Milwaukee County,
   Wisconsin&p_geography_summary_level_name=County&p_geography_su
   mmary_level_code=050&d_geography_year=2010&d_record_type=geogr
   aphy&filterAction=A&N=0"
   }
   ,{
   "column1":"Milwaukee city, Milwaukee County, Wisconsin",
   "column2":"County Subdivision",
   "column3":"060",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Milwaukee city,
   Milwaukee County, Wisconsin&p_geography_summary_level_name=County
   Subdivision&p_geography_summary_level_code=060&d_geography_yea
   r=2010&d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Milwaukee-Waukesha-West Allis, WI �Metro Area",
   "column2":"Metropolitan Statistical Area/Micropolitan Statistical
   Area",
   "column3":"310",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Milwaukee-Waukesha-
   West Allis, WI �Metro
   Area&p_geography_summary_level_name=Metropolitan Statistical
   Area/Micropolitan Statistical
   Area&p_geography_summary_level_code=310&d_geography_year=2010&
   amp;d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Milwaukee city, Wisconsin",
   "column2":"Place",
   "column3":"160",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Milwaukee city,
   Wisconsin&p_geography_summary_level_name=Place&p_geography_sum
   mary_level_code=160&d_geography_year=2010&d_record_type=geogra
   phy&filterAction=A&N=0"
   }
   ,{
   "column1":"Remainder of Wisconsin, Wisconsin",
   "column2":"School District, Elementary",
   "column3":"950",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Remainder of
   Wisconsin, Wisconsin&p_geography_summary_level_name=School
   District,
   Elementary&p_geography_summary_level_code=950&d_geography_year
   =2010&d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Remainder of Wisconsin, Wisconsin",
   "column2":"School District, Secondary",
   "column3":"960",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Remainder of
   Wisconsin, Wisconsin&p_geography_summary_level_name=School
   District,
   Secondary&p_geography_summary_level_code=960&d_geography_year=
   2010&d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Milwaukee School District, Wisconsin",
   "column2":"School District, Unified",
   "column3":"970",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Milwaukee School
   District, Wisconsin&p_geography_summary_level_name=School
   District,
   Unified&p_geography_summary_level_code=970&d_geography_year=20
   10&d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Wisconsin",
   "column2":"State",
   "column3":"040",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Wisconsin&p_geo
   graphy_summary_level_name=State&p_geography_summary_level_code=040
   &d_geography_year=2010&d_record_type=geography&filterActio
   n=A&N=0"
   }
   ,{
   "column1":"Assembly District 19 (2010), Wisconsin",
   "column2":"State Legislative District, Lower Chamber",
   "column3":"620",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Assembly District
   19 (2010), Wisconsin&p_geography_summary_level_name=State
   Legislative District, Lower
   Chamber&p_geography_summary_level_code=620&d_geography_year=20
   10&d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"State Senate District 7 (2010), Wisconsin",
   "column2":"State Legislative District, Upper Chamber",
   "column3":"610",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=State Senate
   District 7 (2010), Wisconsin&p_geography_summary_level_name=State
   Legislative District, Upper
   Chamber&p_geography_summary_level_code=610&d_geography_year=20
   10&d_record_type=geography&filterAction=A&N=0"
   }
   ,{
   "column1":"Milwaukee - C 235 Voting District, Milwaukee County,
   Wisconsin",
   "column2":"Voting District/Remainder",
   "column3":"700",
   "url":"/rest/geoSearch/nav?p_record_canonical_name=Milwaukee - C 235
   Voting District, Milwaukee County,
   Wisconsin&p_geography_summary_level_name=Voting
   District/Remainder&p_geography_summary_level_code=700&d_geogra
   phy_year=2010&d_record_type=geography&filterAction=A&N=0"
   }
   ]
   }
   }
   }}

   On Tue, Oct 11, 2011 at 5:29 PM, Chuck Mason <[2]dcmason@xxxxxxxxxxxx>
   wrote:

     Hi:
     I have tried the below URL, but it does not appear to work.
     What is a JSON object.
     Thanks!

   -----Original Message-----
   From: [3]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [mailto:[4]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Henrik
   Rützou
   Sent: Tuesday, October 11, 2011 10:32 AM
   To: HTTPAPI and FTPAPI Projects
   Subject: Re: HTTP API - two step communications.
   The link to the service you are looking for is:
   [5]http://factfinder2.census.gov/rest/addressSearch/search?street=aaa&;
   city=vvv&state=Alaska&&_ts=336389236520
   and it will return a JSON object
   On Tue, Oct 11, 2011 at 1:59 PM, Chuck Mason <[6]dcmason@xxxxxxxxxxxx>
   wrote:
   >
   > � [cid:image001.gif@01CC87EB.78682FE0]
   >
   > � Hi Scott:
   >
   > � I have used your HTTP API utility at several clients of mine -
   works
   > � great.
   >
   >
   > � I have run into a website that has me stumped.
   >
   > � This is for a local taxing authority that needs to find the
   school
   > � district that an address resides in.
   >
   > � I had written an interface for this (Their old web site would
   display
   > � a form, I would create a URL with the form fields and do a
   submit).
   >
   > � Their new web site opens up two windows. �The second window
   appears to
   > � run from javascript.
   >
   >
   > � My questions is, within RPGLE, Can I send a URL request, wait for
   the
   > � response, then fill in the information and submit. �After this
   submit,
   > � the web page displays the information that I am looking for.
   >
   >
   > � The url that I am having problems with is:
   >
   > �   [1][7]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.
   xht
   > � ml?ref=addr&refresh=t
   >
   >
   > � Fill in the street and zip or all, then submit the "GO" button.
   >
   >
   > � Thanks
   >
   > � Chuck Mason.
   >
   > References
   >
   > � 1.
   >
   [8]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xht
   ml?
   > ref=addr&refresh=t
   >
   >
   ----------------------------------------------------------------------

     > - This is the FTPAPI mailing list. �To unsubscribe, please go
     to:

   > [9]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   ----------------------------------------------------------------------
   > -
   >
   >
   --
   Regards,
   Henrik Rützou

     �[10]http://powerEXT.com <[11]http://powerext.com/>

   ----------------------------------------------------------------------
   -
   This is the FTPAPI mailing list. �To unsubscribe, please go to:
   [12]http://www.scottklement.com/mailman/listinfo/ftpapi
   ----------------------------------------------------------------------
   -

   --
   Regards,
   Henrik Rützou
   �   [13]http://powerEXT.com
   �   [plogofull200.png]

References

   1. http://factfinder2.census.gov/rest/addressSearch/search?street=207%20E%20Lincoln%20Avenue&zip=53207&city=Milwaukee&state=Wisconsin&&_ts=336394476325
   2. mailto:dcmason@xxxxxxxxxxxx
   3. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   4. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   5. http://factfinder2.census.gov/rest/addressSearch/search?street=aaa&city=vvv&state=Alaska&&_ts=336389236520
   6. mailto:dcmason@xxxxxxxxxxxx
   7. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xht
   8. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xhtml
   9. http://www.scottklement.com/mailman/listinfo/ftpapi
  10. http://powerEXT.com/
  11. http://powerext.com/
  12. http://www.scottklement.com/mailman/listinfo/ftpapi
  13. http://powerext.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------