纽约市开放数据DOB缺失信息

时间:2018-05-23 18:25:27

标签: socrata soda

我在纽约市建设API部门面临一些问题。 如果您知道任何其他API提供相同的信息,请帮助我 我使用过这个API,但对我没用 https://data.cityofnewyork.us/resource/83x8-shf7.json

缺少字段 permitee详细地址

https://data.cityofnewyork.us/resource/83x8-shf7.json?$ where = filing_date BETWEEN'2018-05-01T06:00:00'''2018-05-30T10:00:00'

此外,我无法使用来自相同api的“filing_date”过滤器获得预期数据 对于此API,预期数据应返回2018-05-01和2018-05-30之间的所有数据但是我得到的结果很少。

我收到此数据

[
    {         “bin __”:“3118313”,         “bldg_type”:“1”,         “阻止”:“05143”,         “自治市镇”:“布鲁克林”,         “城市”:“布鲁克林”,         “community_board”:“314”,         “dobrundate”:“2018-05-03T00:00:00.000”,         “expiration_date”:“2018-06-11T00:00:00.000”,         “filing_date”:“2018-05-02T00:00:00.000”,         “filing_status”:“INITIAL”,         “gis_census_tract”:“1522”,         “gis_council_district”:“40”,         “gis_latitude”:“40.641731”,         “gis_longitude”:“ - 73.966432”,         “gis_nta_name”:“Flatbush”,         “house __”:“328”,         “issuance_date”:“2018-05-02T00:00:00.000”,         “job__”:“321679046”,         “job_doc___”:“01”,         “job_start_date”:“2018-05-02T00:00:00.000”,         “job_type”:“A2”,         “很多”:“00068”,         “non_profit”:“N”,         “owner_s_business_name”:“N / A”,         “owner_s_business_type”:“个人”,         “owner_s_first_name”:“MATTHEW”,         “owner_s_house __”:“328”,         “owner_s_house_street_name”:“ARGYLE ROAD”,         “owner_s_last_name”:“LIMA”,         “owner_s_phone __”:“3475968096”,         “owner_s_zip_code”:“11218”,         “permit_sequence__”:“01”,         “permit_si_no”:“3452932”,         “permit_status”:“已发布”,         “permit_subtype”:“OT”,         “permit_type”:“EW”,         “permittee_s_business_name”:“BMB BUILDER INC”,         “permittee_s_first_name”:“元航”,         “permittee_s_last_name”:“XIAO”,         “permittee_s_license__”:“0612790”,         “permittee_s_license_type”:“GC”,         “permittee_s_phone__”:“9175776544”,         “住宅”:“是”,         “self_cert”:“N”,         “site_fill”:“不适用”,         “州”:“纽约”,         “street_name”:“ARGYLE ROAD”,         “superintendent_business_name”:“BMB BUILDER INC”,         “superintendent_first___last_name”:“YUAN HANG XIAO”,         “work_type”:“OT”,         “zip_code”:“11218”     }]

预期数据

[{         “bin __”:“1090379”,         “bldg_type”:“2”,         “阻止”:“00760”,         “自治市”:“MANHATTAN”,         “城市”:“伟大的颈部”,         “community_board”:“104”,         “dobrundate”:“2018-05-02T00:00:00.000”,         “expiration_date”:“2018-10-28T00:00:00.000”,         “filing_date”:“2018-05-01T00:00:00.000”,         “filing_status”:“RENEWAL”,         “gis_census_tract”:“111”,         “gis_council_district”:“3”,         “gis_latitude”:“40.753978”,         “gis_longitude”:“ - 73.993673”,         “gis_nta_name”:“Hudson Yards-Chelsea-Flatiron-Union Square”,         “house __”:“337”,         “issuance_date”:“2018-05-01T00:00:00.000”,         “job__”:“121187606”,         “job_doc___”:“01”,         “job_start_date”:“2016-02-19T00:00:00.000”,         “job_type”:“NB”,         “很多”:“00020”,         “non_profit”:“N”,         “owner_s_business_name”:“HKONY WEST 36 LLC”,         “owner_s_business_type”:“PARTNERSHIP”,         “owner_s_first_name”:“SAM”,         “owner_s_house __”:“420”,         “owner_s_house_street_name”:“GREAT NECK ROAD”,         “owner_s_last_name”:“CHANG”,         “owner_s_phone__”:“9178380886”,         “owner_s_zip_code”:“11021”,         “permit_sequence__”:“07”,         “permit_si_no”:“3451790”,         “permit_status”:“已发布”,         “permit_type”:“NB”,         “permittee_s_business_name”:“OMNIBUILD CONSTRUCTION IN”,         “permittee_s_first_name”:“彼得”,         “permittee_s_last_name”:“SERPICO”,         “permittee_s_license__”:“0608390”,         “permittee_s_license_type”:“GC”,         “permittee_s_phone__”:“2124191930”,         “self_cert”:“N”,         “site_fill”:“现场”,         “site_safety_mgr_s_first_name”:“ROBERT”,         “site_safety_mgr_s_last_name”:“FILIPPONE”,         “special_district_1”:“GC”,         “州”:“纽约”,         “street_name”:“W 36 ST”,         “zip_code”:“10018”     }]

1 个答案:

答案 0 :(得分:0)

通过JSON,似乎这些列不匹配:permit_subtypesuperintendent_business_namesuperintendent_first___last_namesite_safety_mgr_s_first_namesite_safety_mgr_s_last_name和{{ 1}}。

查看原始数据源时,不匹配的列是该字段的字段为空的实例。也就是说,special_district_1没有bin__ = 1090379,因此在JSON中省略了它(这是标准做法)。

但是,它将包含在CSV输出中,因为该格式必须包含所有列:permit_subtype

这个答案需要一些挖掘,因为在两个例子中哪些列不同,并不是很明显。它总是有助于过度解释,以便更容易追踪问题。

同样,根据https://data.cityofnewyork.us/resource/83x8-shf7.csv?$where=filing_date%20BETWEEN%20%272018-05-01T06:00:00%27%20AND%20%272018-05-30T10:00:00%27问题,请包含您尝试使用的查询。