nyc_geo_client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +9 -0
- data/Gemfile +2 -0
- data/LICENSE +22 -0
- data/README.md +81 -0
- data/Rakefile +30 -0
- data/lib/faraday/raise_http_exception.rb +26 -0
- data/lib/nyc_geo_client.rb +26 -0
- data/lib/nyc_geo_client/api.rb +21 -0
- data/lib/nyc_geo_client/client.rb +13 -0
- data/lib/nyc_geo_client/client/address.rb +34 -0
- data/lib/nyc_geo_client/client/bbl.rb +31 -0
- data/lib/nyc_geo_client/client/bin.rb +27 -0
- data/lib/nyc_geo_client/client/blockface.rb +37 -0
- data/lib/nyc_geo_client/client/intersection.rb +34 -0
- data/lib/nyc_geo_client/client/place.rb +29 -0
- data/lib/nyc_geo_client/configuration.rb +84 -0
- data/lib/nyc_geo_client/connection.rb +30 -0
- data/lib/nyc_geo_client/error.rb +12 -0
- data/lib/nyc_geo_client/request.rb +59 -0
- data/lib/nyc_geo_client/version.rb +3 -0
- data/nyc_geo_client.gemspec +28 -0
- data/spec/faraday/response_spec.rb +43 -0
- data/spec/fixtures/address.json +142 -0
- data/spec/fixtures/address.xml +142 -0
- data/spec/fixtures/authentication_failed +1 -0
- data/spec/fixtures/bbl.json +45 -0
- data/spec/fixtures/bbl.xml +45 -0
- data/spec/fixtures/bin.json +43 -0
- data/spec/fixtures/bin.xml +43 -0
- data/spec/fixtures/blockface.json +99 -0
- data/spec/fixtures/blockface.xml +99 -0
- data/spec/fixtures/intersection.json +69 -0
- data/spec/fixtures/intersection.xml +69 -0
- data/spec/fixtures/place.json +177 -0
- data/spec/fixtures/place.xml +177 -0
- data/spec/nyc_geo_client/api_spec.rb +67 -0
- data/spec/nyc_geo_client/client/address_spec.rb +45 -0
- data/spec/nyc_geo_client/client/bbl_spec.rb +45 -0
- data/spec/nyc_geo_client/client/bin_spec.rb +41 -0
- data/spec/nyc_geo_client/client/blockface_spec.rb +49 -0
- data/spec/nyc_geo_client/client/intersection_spec.rb +47 -0
- data/spec/nyc_geo_client/client/place_spec.rb +43 -0
- data/spec/nyc_geo_client/client_spec.rb +11 -0
- data/spec/nyc_geo_client_spec.rb +108 -0
- data/spec/spec_helper.rb +51 -0
- metadata +254 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
<geosupportResponse>
|
2
|
+
<intersection>
|
3
|
+
<assemblyDistrict>75</assemblyDistrict>
|
4
|
+
<boroughCode1In>1</boroughCode1In>
|
5
|
+
<censusTract1990> 74 </censusTract1990>
|
6
|
+
<censusTract2000> 74 </censusTract2000>
|
7
|
+
<censusTract2010> 74 </censusTract2010>
|
8
|
+
<cityCouncilDistrict>03</cityCouncilDistrict>
|
9
|
+
<civilCourtDistrict>09</civilCourtDistrict>
|
10
|
+
<communityDistrict>105</communityDistrict>
|
11
|
+
<communityDistrictBoroughCode>1</communityDistrictBoroughCode>
|
12
|
+
<communityDistrictNumber>05</communityDistrictNumber>
|
13
|
+
<communitySchoolDistrict>02</communitySchoolDistrict>
|
14
|
+
<compassDirectionIn>N</compassDirectionIn>
|
15
|
+
<congressionalDistrict>12</congressionalDistrict>
|
16
|
+
<crossStreetNamesFlagIn>E</crossStreetNamesFlagIn>
|
17
|
+
<dcpPreferredLgcForStreet1>01</dcpPreferredLgcForStreet1>
|
18
|
+
<dcpPreferredLgcForStreet2>01</dcpPreferredLgcForStreet2>
|
19
|
+
<dotStreetLightContractorArea>1</dotStreetLightContractorArea>
|
20
|
+
<fireBattalion>08</fireBattalion>
|
21
|
+
<fireCompanyNumber>065</fireCompanyNumber>
|
22
|
+
<fireCompanyType>E</fireCompanyType>
|
23
|
+
<fireDivision>03</fireDivision>
|
24
|
+
<firstBoroughName>MANHATTAN</firstBoroughName>
|
25
|
+
<firstStreetCode>11767001010</firstStreetCode>
|
26
|
+
<firstStreetNameNormalized>EAST 34 STREET</firstStreetNameNormalized>
|
27
|
+
<geosupportFunctionCode>2</geosupportFunctionCode>
|
28
|
+
<geosupportReturnCode>01</geosupportReturnCode>
|
29
|
+
<healthArea>5200</healthArea>
|
30
|
+
<healthCenterDistrict>15</healthCenterDistrict>
|
31
|
+
<interimAssistanceEligibilityIndicator>I</interimAssistanceEligibilityIndicator>
|
32
|
+
<intersectingStreet1>110410</intersectingStreet1>
|
33
|
+
<intersectingStreet2>117670</intersectingStreet2>
|
34
|
+
<intersectingStreet3>134450</intersectingStreet3>
|
35
|
+
<latitude>40.748437513820136</latitude>
|
36
|
+
<lionNodeNumber>0021445</lionNodeNumber>
|
37
|
+
<listOfPairsOfLevelCodes>M MMM</listOfPairsOfLevelCodes>
|
38
|
+
<longitude>-73.98456038049486</longitude>
|
39
|
+
<message>THESE STREETS INTERSECT ONCE-COMPASS DIRECTION IGNORED</message>
|
40
|
+
<numberOfIntersectingStreets>3</numberOfIntersectingStreets>
|
41
|
+
<numberOfStreetCodesAndNamesInList>03</numberOfStreetCodesAndNamesInList>
|
42
|
+
<policePatrolBoroughCommand>1</policePatrolBoroughCommand>
|
43
|
+
<policePrecinct>014</policePrecinct>
|
44
|
+
<reasonCode>H</reasonCode>
|
45
|
+
<sanbornBoroughCode1>1</sanbornBoroughCode1>
|
46
|
+
<sanbornBoroughCode2>1</sanbornBoroughCode2>
|
47
|
+
<sanbornPageNumber1>029</sanbornPageNumber1>
|
48
|
+
<sanbornPageNumber2>018</sanbornPageNumber2>
|
49
|
+
<sanbornVolumeNumber1>04</sanbornVolumeNumber1>
|
50
|
+
<sanbornVolumeNumber2>04</sanbornVolumeNumber2>
|
51
|
+
<sanitationCollectionSchedulingSectionAndSubsection>2B</sanitationCollectionSchedulingSectionAndSubsection>
|
52
|
+
<sanitationDistrict>105</sanitationDistrict>
|
53
|
+
<secondStreetCode>11041001020</secondStreetCode>
|
54
|
+
<secondStreetNameNormalized>FIFTH AVENUE</secondStreetNameNormalized>
|
55
|
+
<stateSenatorialDistrict>27</stateSenatorialDistrict>
|
56
|
+
<streetCode1>11041001</streetCode1>
|
57
|
+
<streetCode2>11767001</streetCode2>
|
58
|
+
<streetCode3>13445001</streetCode3>
|
59
|
+
<streetName1>FIFTH AVENUE</streetName1>
|
60
|
+
<streetName1In>34 ST</streetName1In>
|
61
|
+
<streetName2>EAST 34 STREET</streetName2>
|
62
|
+
<streetName2In>FIFTH AVE</streetName2In>
|
63
|
+
<streetName3>WEST 34 STREET</streetName3>
|
64
|
+
<workAreaFormatIndicatorIn>C</workAreaFormatIndicatorIn>
|
65
|
+
<xCoordinate>0988528</xCoordinate>
|
66
|
+
<yCoordinate>0211953</yCoordinate>
|
67
|
+
<zipCode>10016</zipCode>
|
68
|
+
</intersection>
|
69
|
+
</geosupportResponse>
|
@@ -0,0 +1,177 @@
|
|
1
|
+
{
|
2
|
+
"place": {
|
3
|
+
"assemblyDistrict": "75",
|
4
|
+
"bbl": "1008350041",
|
5
|
+
"bblBoroughCode": "1",
|
6
|
+
"bblTaxBlock": "00835",
|
7
|
+
"bblTaxLot": "0041",
|
8
|
+
"boardOfElectionsPreferredLgc": "1",
|
9
|
+
"boePreferredStreetName": "EMPIRE STATE BUILDING",
|
10
|
+
"boePreferredstreetCode": "12032001",
|
11
|
+
"boroughCode1In": "1",
|
12
|
+
"buildingIdentificationNumber": "1015862",
|
13
|
+
"businessImprovementDistrict": "113090",
|
14
|
+
"censusBlock2000": "1001",
|
15
|
+
"censusBlock2010": "1001",
|
16
|
+
"censusTract1990": " 76 ",
|
17
|
+
"censusTract2000": " 76 ",
|
18
|
+
"censusTract2010": " 76 ",
|
19
|
+
"cityCouncilDistrict": "04",
|
20
|
+
"civilCourtDistrict": "09",
|
21
|
+
"coincidentSegmentCount": "1",
|
22
|
+
"communityDistrict": "105",
|
23
|
+
"communityDistrictBoroughCode": "1",
|
24
|
+
"communityDistrictNumber": "05",
|
25
|
+
"communitySchoolDistrict": "02",
|
26
|
+
"condominiumBillingBbl": "0000000000",
|
27
|
+
"congressionalDistrict": "12",
|
28
|
+
"cooperativeIdNumber": "0000",
|
29
|
+
"cornerCode": "CR",
|
30
|
+
"crossStreetNamesFlagIn": "E",
|
31
|
+
"dcpCommercialStudyArea": "11021",
|
32
|
+
"dcpPreferredLgc": "01",
|
33
|
+
"dotStreetLightContractorArea": "1",
|
34
|
+
"dynamicBlock": "110",
|
35
|
+
"electionDistrict": "050",
|
36
|
+
"fireBattalion": "07",
|
37
|
+
"fireCompanyNumber": "024",
|
38
|
+
"fireCompanyType": "L",
|
39
|
+
"fireDivision": "01",
|
40
|
+
"firstBoroughName": "MANHATTAN",
|
41
|
+
"firstStreetCode": "12032001020",
|
42
|
+
"firstStreetNameNormalized": "EMPIRE STATE BUILDING",
|
43
|
+
"fromLionNodeId": "0021443",
|
44
|
+
"fromPreferredLgcsFirstSetOf5": "0101",
|
45
|
+
"genericId": "0001703",
|
46
|
+
"geosupportFunctionCode": "1B",
|
47
|
+
"geosupportReturnCode": "01",
|
48
|
+
"geosupportReturnCode2": "00",
|
49
|
+
"gi5DigitStreetCode1": "20320",
|
50
|
+
"gi5DigitStreetCode2": "10410",
|
51
|
+
"gi5DigitStreetCode3": "34430",
|
52
|
+
"gi5DigitStreetCode4": "34450",
|
53
|
+
"giBoroughCode1": "1",
|
54
|
+
"giBoroughCode2": "1",
|
55
|
+
"giBoroughCode3": "1",
|
56
|
+
"giBoroughCode4": "1",
|
57
|
+
"giBuildingIdentificationNumber1": "1015862",
|
58
|
+
"giBuildingIdentificationNumber2": "1015862",
|
59
|
+
"giBuildingIdentificationNumber3": "1015862",
|
60
|
+
"giBuildingIdentificationNumber4": "1015862",
|
61
|
+
"giDcpPreferredLgc1": "01",
|
62
|
+
"giDcpPreferredLgc2": "01",
|
63
|
+
"giDcpPreferredLgc3": "01",
|
64
|
+
"giDcpPreferredLgc4": "01",
|
65
|
+
"giGeographicIdentifier1": "N",
|
66
|
+
"giHighHouseNumber2": "350",
|
67
|
+
"giHighHouseNumber3": "31",
|
68
|
+
"giHighHouseNumber4": "20",
|
69
|
+
"giLowHouseNumber2": "338",
|
70
|
+
"giLowHouseNumber3": "1",
|
71
|
+
"giLowHouseNumber4": "2",
|
72
|
+
"giSideOfStreetIndicator1": "L",
|
73
|
+
"giSideOfStreetIndicator2": "L",
|
74
|
+
"giSideOfStreetIndicator3": "R",
|
75
|
+
"giSideOfStreetIndicator4": "L",
|
76
|
+
"giStreetCode1": "12032001",
|
77
|
+
"giStreetCode2": "11041001",
|
78
|
+
"giStreetCode3": "13443001",
|
79
|
+
"giStreetCode4": "13445001",
|
80
|
+
"giStreetName1": "EMPIRE STATE BUILDING",
|
81
|
+
"giStreetName2": "5 AVENUE",
|
82
|
+
"giStreetName3": "WEST 33 STREET",
|
83
|
+
"giStreetName4": "WEST 34 STREET",
|
84
|
+
"healthArea": "5200",
|
85
|
+
"healthCenterDistrict": "15",
|
86
|
+
"highBblOfThisBuildingsCondominiumUnits": "1008350041",
|
87
|
+
"highCrossStreetB5SC1": "117670",
|
88
|
+
"highCrossStreetB5SC2": "134450",
|
89
|
+
"highCrossStreetCode1": "11767001",
|
90
|
+
"highCrossStreetCode2": "134450",
|
91
|
+
"highCrossStreetName1": "EAST 34 STREET",
|
92
|
+
"highCrossStreetName2": "WEST 34 STREET",
|
93
|
+
"highHouseNumberOfBlockfaceSortFormat": "000000000AA",
|
94
|
+
"interimAssistanceEligibilityIndicator": "I",
|
95
|
+
"internalLabelXCoordinate": "0988196",
|
96
|
+
"internalLabelYCoordinate": "0211970",
|
97
|
+
"latitude": 40.74845413267184,
|
98
|
+
"latitudeInternalLabel": 40.748484328923226,
|
99
|
+
"legacySegmentId": "0034023",
|
100
|
+
"lionBoroughCode": "1",
|
101
|
+
"lionBoroughCodeForVanityAddress": "1",
|
102
|
+
"lionFaceCode": "2470",
|
103
|
+
"lionFaceCodeForVanityAddress": "2470",
|
104
|
+
"lionKey": "1247001150",
|
105
|
+
"lionKeyForVanityAddress": "1247001150",
|
106
|
+
"lionSequenceNumber": "01150",
|
107
|
+
"lionSequenceNumberForVanityAddress": "01150",
|
108
|
+
"listOf4Lgcs": "01",
|
109
|
+
"longitude": -73.98572610791724,
|
110
|
+
"longitudeInternalLabel": -73.98575858313839,
|
111
|
+
"lowBblOfThisBuildingsCondominiumUnits": "1008350041",
|
112
|
+
"lowCrossStreetB5SC1": "117650",
|
113
|
+
"lowCrossStreetB5SC2": "134430",
|
114
|
+
"lowCrossStreetCode1": "11765001",
|
115
|
+
"lowCrossStreetCode2": "13443001",
|
116
|
+
"lowCrossStreetName1": "EAST 33 STREET",
|
117
|
+
"lowCrossStreetName2": "WEST 33 STREET",
|
118
|
+
"lowHouseNumberOfBlockfaceSortFormat": "000000000AA",
|
119
|
+
"lowHouseNumberOfDefiningAddressRange": "000001000AA",
|
120
|
+
"message": "350 5 AVENUE IS THE UNDERLYING ADDRESS OF EMPIRE STATE BUILDING",
|
121
|
+
"nta": "MN17",
|
122
|
+
"ntaName": "Midtown-Midtown South",
|
123
|
+
"numberOfCrossStreetB5SCsHighAddressEnd": "3",
|
124
|
+
"numberOfCrossStreetB5SCsLowAddressEnd": "2",
|
125
|
+
"numberOfCrossStreetsHighAddressEnd": "2",
|
126
|
+
"numberOfCrossStreetsLowAddressEnd": "2",
|
127
|
+
"numberOfEntriesInListOfGeographicIdentifiers": "0004",
|
128
|
+
"numberOfExistingStructuresOnLot": "0001",
|
129
|
+
"numberOfStreetFrontagesOfLot": "03",
|
130
|
+
"physicalId": "0001934",
|
131
|
+
"policePatrolBoroughCommand": "1",
|
132
|
+
"policePrecinct": "014",
|
133
|
+
"reasonCode": "V",
|
134
|
+
"reasonCode1e": "V",
|
135
|
+
"returnCode1a": "00",
|
136
|
+
"returnCode1e": "01",
|
137
|
+
"roadwayType": "1",
|
138
|
+
"rpadBuildingClassificationCode": "O4",
|
139
|
+
"rpadSelfCheckCodeForBbl": "3",
|
140
|
+
"sanbornBoroughCode": "1",
|
141
|
+
"sanbornPageNumber": "016",
|
142
|
+
"sanbornVolumeNumber": "04",
|
143
|
+
"sanitationCollectionSchedulingSectionAndSubsection": "1A",
|
144
|
+
"sanitationDistrict": "105",
|
145
|
+
"sanitationRecyclingCollectionSchedule": "EF",
|
146
|
+
"sanitationRegularCollectionSchedule": "MWF",
|
147
|
+
"sanitationSnowPriorityCode": "P",
|
148
|
+
"segmentAzimuth": "061",
|
149
|
+
"segmentIdentifier": "0034023",
|
150
|
+
"segmentLengthInFeet": "00277",
|
151
|
+
"segmentOrientation": "N",
|
152
|
+
"segmentTypeCode": "U",
|
153
|
+
"sideOfStreetIndicator": "L",
|
154
|
+
"sideOfStreetOfVanityAddress": "L",
|
155
|
+
"specialAddressGeneratedRecordFlag": "N",
|
156
|
+
"splitLowHouseNumber": "000001000AA",
|
157
|
+
"stateSenatorialDistrict": "27",
|
158
|
+
"streetName1In": "EMPIRE STATE BUILDING",
|
159
|
+
"streetStatus": "2",
|
160
|
+
"taxMapNumberSectionAndVolume": "10306",
|
161
|
+
"toLionNodeId": "0021445",
|
162
|
+
"toPreferredLgcsFirstSetOf5": "01",
|
163
|
+
"trafficDirection": "A",
|
164
|
+
"underlyingHnsOnTrueStreet": "000350000AA",
|
165
|
+
"underlyingStreetCode": "11041001",
|
166
|
+
"workAreaFormatIndicatorIn": "C",
|
167
|
+
"xCoordinate": "0988205",
|
168
|
+
"xCoordinateHighAddressEnd": "0988528",
|
169
|
+
"xCoordinateLowAddressEnd": "0988394",
|
170
|
+
"xCoordinateOfCenterofCurvature": "0000000",
|
171
|
+
"yCoordinate": "0211959",
|
172
|
+
"yCoordinateHighAddressEnd": "0211953",
|
173
|
+
"yCoordinateLowAddressEnd": "0211711",
|
174
|
+
"yCoordinateOfCenterofCurvature": "0000000",
|
175
|
+
"zipCode": "10018"
|
176
|
+
}
|
177
|
+
}
|
@@ -0,0 +1,177 @@
|
|
1
|
+
<geosupportResponse>
|
2
|
+
<place>
|
3
|
+
<assemblyDistrict>75</assemblyDistrict>
|
4
|
+
<bbl>1008350041</bbl>
|
5
|
+
<bblBoroughCode>1</bblBoroughCode>
|
6
|
+
<bblTaxBlock>00835</bblTaxBlock>
|
7
|
+
<bblTaxLot>0041</bblTaxLot>
|
8
|
+
<boardOfElectionsPreferredLgc>1</boardOfElectionsPreferredLgc>
|
9
|
+
<boePreferredStreetName>EMPIRE STATE BUILDING</boePreferredStreetName>
|
10
|
+
<boePreferredstreetCode>12032001</boePreferredstreetCode>
|
11
|
+
<boroughCode1In>1</boroughCode1In>
|
12
|
+
<buildingIdentificationNumber>1015862</buildingIdentificationNumber>
|
13
|
+
<businessImprovementDistrict>113090</businessImprovementDistrict>
|
14
|
+
<censusBlock2000>1001</censusBlock2000>
|
15
|
+
<censusBlock2010>1001</censusBlock2010>
|
16
|
+
<censusTract1990> 76 </censusTract1990>
|
17
|
+
<censusTract2000> 76 </censusTract2000>
|
18
|
+
<censusTract2010> 76 </censusTract2010>
|
19
|
+
<cityCouncilDistrict>04</cityCouncilDistrict>
|
20
|
+
<civilCourtDistrict>09</civilCourtDistrict>
|
21
|
+
<coincidentSegmentCount>1</coincidentSegmentCount>
|
22
|
+
<communityDistrict>105</communityDistrict>
|
23
|
+
<communityDistrictBoroughCode>1</communityDistrictBoroughCode>
|
24
|
+
<communityDistrictNumber>05</communityDistrictNumber>
|
25
|
+
<communitySchoolDistrict>02</communitySchoolDistrict>
|
26
|
+
<condominiumBillingBbl>0000000000</condominiumBillingBbl>
|
27
|
+
<congressionalDistrict>12</congressionalDistrict>
|
28
|
+
<cooperativeIdNumber>0000</cooperativeIdNumber>
|
29
|
+
<cornerCode>CR</cornerCode>
|
30
|
+
<crossStreetNamesFlagIn>E</crossStreetNamesFlagIn>
|
31
|
+
<dcpCommercialStudyArea>11021</dcpCommercialStudyArea>
|
32
|
+
<dcpPreferredLgc>01</dcpPreferredLgc>
|
33
|
+
<dotStreetLightContractorArea>1</dotStreetLightContractorArea>
|
34
|
+
<dynamicBlock>110</dynamicBlock>
|
35
|
+
<electionDistrict>050</electionDistrict>
|
36
|
+
<fireBattalion>07</fireBattalion>
|
37
|
+
<fireCompanyNumber>024</fireCompanyNumber>
|
38
|
+
<fireCompanyType>L</fireCompanyType>
|
39
|
+
<fireDivision>01</fireDivision>
|
40
|
+
<firstBoroughName>MANHATTAN</firstBoroughName>
|
41
|
+
<firstStreetCode>12032001020</firstStreetCode>
|
42
|
+
<firstStreetNameNormalized>EMPIRE STATE BUILDING</firstStreetNameNormalized>
|
43
|
+
<fromLionNodeId>0021443</fromLionNodeId>
|
44
|
+
<fromPreferredLgcsFirstSetOf5>0101</fromPreferredLgcsFirstSetOf5>
|
45
|
+
<genericId>0001703</genericId>
|
46
|
+
<geosupportFunctionCode>1B</geosupportFunctionCode>
|
47
|
+
<geosupportReturnCode>01</geosupportReturnCode>
|
48
|
+
<geosupportReturnCode2>00</geosupportReturnCode2>
|
49
|
+
<gi5DigitStreetCode1>20320</gi5DigitStreetCode1>
|
50
|
+
<gi5DigitStreetCode2>10410</gi5DigitStreetCode2>
|
51
|
+
<gi5DigitStreetCode3>34430</gi5DigitStreetCode3>
|
52
|
+
<gi5DigitStreetCode4>34450</gi5DigitStreetCode4>
|
53
|
+
<giBoroughCode1>1</giBoroughCode1>
|
54
|
+
<giBoroughCode2>1</giBoroughCode2>
|
55
|
+
<giBoroughCode3>1</giBoroughCode3>
|
56
|
+
<giBoroughCode4>1</giBoroughCode4>
|
57
|
+
<giBuildingIdentificationNumber1>1015862</giBuildingIdentificationNumber1>
|
58
|
+
<giBuildingIdentificationNumber2>1015862</giBuildingIdentificationNumber2>
|
59
|
+
<giBuildingIdentificationNumber3>1015862</giBuildingIdentificationNumber3>
|
60
|
+
<giBuildingIdentificationNumber4>1015862</giBuildingIdentificationNumber4>
|
61
|
+
<giDcpPreferredLgc1>01</giDcpPreferredLgc1>
|
62
|
+
<giDcpPreferredLgc2>01</giDcpPreferredLgc2>
|
63
|
+
<giDcpPreferredLgc3>01</giDcpPreferredLgc3>
|
64
|
+
<giDcpPreferredLgc4>01</giDcpPreferredLgc4>
|
65
|
+
<giGeographicIdentifier1>N</giGeographicIdentifier1>
|
66
|
+
<giHighHouseNumber2>350</giHighHouseNumber2>
|
67
|
+
<giHighHouseNumber3>31</giHighHouseNumber3>
|
68
|
+
<giHighHouseNumber4>20</giHighHouseNumber4>
|
69
|
+
<giLowHouseNumber2>338</giLowHouseNumber2>
|
70
|
+
<giLowHouseNumber3>1</giLowHouseNumber3>
|
71
|
+
<giLowHouseNumber4>2</giLowHouseNumber4>
|
72
|
+
<giSideOfStreetIndicator1>L</giSideOfStreetIndicator1>
|
73
|
+
<giSideOfStreetIndicator2>L</giSideOfStreetIndicator2>
|
74
|
+
<giSideOfStreetIndicator3>R</giSideOfStreetIndicator3>
|
75
|
+
<giSideOfStreetIndicator4>L</giSideOfStreetIndicator4>
|
76
|
+
<giStreetCode1>12032001</giStreetCode1>
|
77
|
+
<giStreetCode2>11041001</giStreetCode2>
|
78
|
+
<giStreetCode3>13443001</giStreetCode3>
|
79
|
+
<giStreetCode4>13445001</giStreetCode4>
|
80
|
+
<giStreetName1>EMPIRE STATE BUILDING</giStreetName1>
|
81
|
+
<giStreetName2>5 AVENUE</giStreetName2>
|
82
|
+
<giStreetName3>WEST 33 STREET</giStreetName3>
|
83
|
+
<giStreetName4>WEST 34 STREET</giStreetName4>
|
84
|
+
<healthArea>5200</healthArea>
|
85
|
+
<healthCenterDistrict>15</healthCenterDistrict>
|
86
|
+
<highBblOfThisBuildingsCondominiumUnits>1008350041</highBblOfThisBuildingsCondominiumUnits>
|
87
|
+
<highCrossStreetB5SC1>117670</highCrossStreetB5SC1>
|
88
|
+
<highCrossStreetB5SC2>134450</highCrossStreetB5SC2>
|
89
|
+
<highCrossStreetCode1>11767001</highCrossStreetCode1>
|
90
|
+
<highCrossStreetCode2>134450</highCrossStreetCode2>
|
91
|
+
<highCrossStreetName1>EAST 34 STREET</highCrossStreetName1>
|
92
|
+
<highCrossStreetName2>WEST 34 STREET</highCrossStreetName2>
|
93
|
+
<highHouseNumberOfBlockfaceSortFormat>000000000AA</highHouseNumberOfBlockfaceSortFormat>
|
94
|
+
<interimAssistanceEligibilityIndicator>I</interimAssistanceEligibilityIndicator>
|
95
|
+
<internalLabelXCoordinate>0988196</internalLabelXCoordinate>
|
96
|
+
<internalLabelYCoordinate>0211970</internalLabelYCoordinate>
|
97
|
+
<latitude>40.74845413267184</latitude>
|
98
|
+
<latitudeInternalLabel>40.748484328923226</latitudeInternalLabel>
|
99
|
+
<legacySegmentId>0034023</legacySegmentId>
|
100
|
+
<lionBoroughCode>1</lionBoroughCode>
|
101
|
+
<lionBoroughCodeForVanityAddress>1</lionBoroughCodeForVanityAddress>
|
102
|
+
<lionFaceCode>2470</lionFaceCode>
|
103
|
+
<lionFaceCodeForVanityAddress>2470</lionFaceCodeForVanityAddress>
|
104
|
+
<lionKey>1247001150</lionKey>
|
105
|
+
<lionKeyForVanityAddress>1247001150</lionKeyForVanityAddress>
|
106
|
+
<lionSequenceNumber>01150</lionSequenceNumber>
|
107
|
+
<lionSequenceNumberForVanityAddress>01150</lionSequenceNumberForVanityAddress>
|
108
|
+
<listOf4Lgcs>01</listOf4Lgcs>
|
109
|
+
<longitude>-73.98572610791724</longitude>
|
110
|
+
<longitudeInternalLabel>-73.98575858313839</longitudeInternalLabel>
|
111
|
+
<lowBblOfThisBuildingsCondominiumUnits>1008350041</lowBblOfThisBuildingsCondominiumUnits>
|
112
|
+
<lowCrossStreetB5SC1>117650</lowCrossStreetB5SC1>
|
113
|
+
<lowCrossStreetB5SC2>134430</lowCrossStreetB5SC2>
|
114
|
+
<lowCrossStreetCode1>11765001</lowCrossStreetCode1>
|
115
|
+
<lowCrossStreetCode2>13443001</lowCrossStreetCode2>
|
116
|
+
<lowCrossStreetName1>EAST 33 STREET</lowCrossStreetName1>
|
117
|
+
<lowCrossStreetName2>WEST 33 STREET</lowCrossStreetName2>
|
118
|
+
<lowHouseNumberOfBlockfaceSortFormat>000000000AA</lowHouseNumberOfBlockfaceSortFormat>
|
119
|
+
<lowHouseNumberOfDefiningAddressRange>000001000AA</lowHouseNumberOfDefiningAddressRange>
|
120
|
+
<message>350 5 AVENUE IS THE UNDERLYING ADDRESS OF EMPIRE STATE BUILDING</message>
|
121
|
+
<nta>MN17</nta>
|
122
|
+
<ntaName>Midtown-Midtown South</ntaName>
|
123
|
+
<numberOfCrossStreetB5SCsHighAddressEnd>3</numberOfCrossStreetB5SCsHighAddressEnd>
|
124
|
+
<numberOfCrossStreetB5SCsLowAddressEnd>2</numberOfCrossStreetB5SCsLowAddressEnd>
|
125
|
+
<numberOfCrossStreetsHighAddressEnd>2</numberOfCrossStreetsHighAddressEnd>
|
126
|
+
<numberOfCrossStreetsLowAddressEnd>2</numberOfCrossStreetsLowAddressEnd>
|
127
|
+
<numberOfEntriesInListOfGeographicIdentifiers>0004</numberOfEntriesInListOfGeographicIdentifiers>
|
128
|
+
<numberOfExistingStructuresOnLot>0001</numberOfExistingStructuresOnLot>
|
129
|
+
<numberOfStreetFrontagesOfLot>03</numberOfStreetFrontagesOfLot>
|
130
|
+
<physicalId>0001934</physicalId>
|
131
|
+
<policePatrolBoroughCommand>1</policePatrolBoroughCommand>
|
132
|
+
<policePrecinct>014</policePrecinct>
|
133
|
+
<reasonCode>V</reasonCode>
|
134
|
+
<reasonCode1e>V</reasonCode1e>
|
135
|
+
<returnCode1a>00</returnCode1a>
|
136
|
+
<returnCode1e>01</returnCode1e>
|
137
|
+
<roadwayType>1</roadwayType>
|
138
|
+
<rpadBuildingClassificationCode>O4</rpadBuildingClassificationCode>
|
139
|
+
<rpadSelfCheckCodeForBbl>3</rpadSelfCheckCodeForBbl>
|
140
|
+
<sanbornBoroughCode>1</sanbornBoroughCode>
|
141
|
+
<sanbornPageNumber>016</sanbornPageNumber>
|
142
|
+
<sanbornVolumeNumber>04</sanbornVolumeNumber>
|
143
|
+
<sanitationCollectionSchedulingSectionAndSubsection>1A</sanitationCollectionSchedulingSectionAndSubsection>
|
144
|
+
<sanitationDistrict>105</sanitationDistrict>
|
145
|
+
<sanitationRecyclingCollectionSchedule>EF</sanitationRecyclingCollectionSchedule>
|
146
|
+
<sanitationRegularCollectionSchedule>MWF</sanitationRegularCollectionSchedule>
|
147
|
+
<sanitationSnowPriorityCode>P</sanitationSnowPriorityCode>
|
148
|
+
<segmentAzimuth>061</segmentAzimuth>
|
149
|
+
<segmentIdentifier>0034023</segmentIdentifier>
|
150
|
+
<segmentLengthInFeet>00277</segmentLengthInFeet>
|
151
|
+
<segmentOrientation>N</segmentOrientation>
|
152
|
+
<segmentTypeCode>U</segmentTypeCode>
|
153
|
+
<sideOfStreetIndicator>L</sideOfStreetIndicator>
|
154
|
+
<sideOfStreetOfVanityAddress>L</sideOfStreetOfVanityAddress>
|
155
|
+
<specialAddressGeneratedRecordFlag>N</specialAddressGeneratedRecordFlag>
|
156
|
+
<splitLowHouseNumber>000001000AA</splitLowHouseNumber>
|
157
|
+
<stateSenatorialDistrict>27</stateSenatorialDistrict>
|
158
|
+
<streetName1In>EMPIRE STATE BUILDING</streetName1In>
|
159
|
+
<streetStatus>2</streetStatus>
|
160
|
+
<taxMapNumberSectionAndVolume>10306</taxMapNumberSectionAndVolume>
|
161
|
+
<toLionNodeId>0021445</toLionNodeId>
|
162
|
+
<toPreferredLgcsFirstSetOf5>01</toPreferredLgcsFirstSetOf5>
|
163
|
+
<trafficDirection>A</trafficDirection>
|
164
|
+
<underlyingHnsOnTrueStreet>000350000AA</underlyingHnsOnTrueStreet>
|
165
|
+
<underlyingStreetCode>11041001</underlyingStreetCode>
|
166
|
+
<workAreaFormatIndicatorIn>C</workAreaFormatIndicatorIn>
|
167
|
+
<xCoordinate>0988205</xCoordinate>
|
168
|
+
<xCoordinateHighAddressEnd>0988528</xCoordinateHighAddressEnd>
|
169
|
+
<xCoordinateLowAddressEnd>0988394</xCoordinateLowAddressEnd>
|
170
|
+
<xCoordinateOfCenterofCurvature>0000000</xCoordinateOfCenterofCurvature>
|
171
|
+
<yCoordinate>0211959</yCoordinate>
|
172
|
+
<yCoordinateHighAddressEnd>0211953</yCoordinateHighAddressEnd>
|
173
|
+
<yCoordinateLowAddressEnd>0211711</yCoordinateLowAddressEnd>
|
174
|
+
<yCoordinateOfCenterofCurvature>0000000</yCoordinateOfCenterofCurvature>
|
175
|
+
<zipCode>10018</zipCode>
|
176
|
+
</place>
|
177
|
+
</geosupportResponse>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
describe NYCGeoClient::API do
|
4
|
+
before do
|
5
|
+
@keys = NYCGeoClient::Configuration::VALID_OPTIONS_KEYS
|
6
|
+
end
|
7
|
+
|
8
|
+
context "with module configuration" do
|
9
|
+
|
10
|
+
before do
|
11
|
+
NYCGeoClient.configure do |config|
|
12
|
+
@keys.each do |key|
|
13
|
+
config.send("#{key}=", key)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
NYCGeoClient.reset
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should inherit module configuration" do
|
23
|
+
api = NYCGeoClient::API.new
|
24
|
+
@keys.each do |key|
|
25
|
+
api.send(key).should == key
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context "with class configuration" do
|
30
|
+
|
31
|
+
before do
|
32
|
+
@configuration = {
|
33
|
+
:app_id => 'ID',
|
34
|
+
:app_key => 'KEY',
|
35
|
+
:adapter => :typhoeus,
|
36
|
+
:endpoint => 'http://tumblr.com/',
|
37
|
+
:format => :xml,
|
38
|
+
:proxy => 'http://shayne:sekret@proxy.example.com:8080',
|
39
|
+
:user_agent => 'Custom User Agent',
|
40
|
+
:debug => true
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
context "during initialization"
|
45
|
+
|
46
|
+
it "should override module configuration" do
|
47
|
+
api = NYCGeoClient::API.new(@configuration)
|
48
|
+
@keys.each do |key|
|
49
|
+
api.send(key).should == @configuration[key]
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
context "after initilization" do
|
54
|
+
|
55
|
+
it "should override module configuration after initialization" do
|
56
|
+
api = NYCGeoClient::API.new
|
57
|
+
@configuration.each do |key, value|
|
58
|
+
api.send("#{key}=", value)
|
59
|
+
end
|
60
|
+
@keys.each do |key|
|
61
|
+
api.send(key).should == @configuration[key]
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|