Skip to content

Instantly share code, notes, and snippets.

@stevevance
Last active December 9, 2016 04:56
Show Gist options
  • Save stevevance/85fe1f52784a238a289b75de5c99ab1d to your computer and use it in GitHub Desktop.
Save stevevance/85fe1f52784a238a289b75de5c99ab1d to your computer and use it in GitHub Desktop.
Businesses and their activity codes in the user-609 block (within the block and within 100 feet of the block)
select
b.account_number,
b.business_activity,
b.doing_business_as_name as name,
b.address,
st_x(b.geom) as longitude,
st_y(b.geom) as latitude
from business_licenses b,
users_boundaries u
where st_dwithin(b.geom_3435, u.geom, 0)
and expiration_date > current_date
and slug = 'user-609' order by name;
select
b.account_number,
b.business_activity,
b.doing_business_as_name as name,
b.address,
st_x(b.geom) as longitude,
st_y(b.geom) as latitude
from business_licenses b,
users_boundaries u
where st_dwithin(b.geom_3435, u.geom, 100)
and expiration_date > current_date
and slug = 'user-609' order by name;
# view the map: http://www.chicagocityscape.com/places.php?place=user-609
account_number business_activity name address longitude latitude
405955 Dry Cleaning - Drop Off Location 1130 VALET SHOP 1130 S MICHIGAN AVE GROUND -87.62425305 41.868305012
395294 Consumption of Liquor on Premises BURGER BAR CHICAGO 1150 S MICHIGAN AVE 1 -87.624256704 41.867758644
395294 Preparation of Food and Dining on Premise With Seating BURGER BAR CHICAGO 1150 S MICHIGAN AVE 1 -87.624256704 41.867758644
304306 Consumption of Liquor on Premises FORNETTO-MEI ON GRANT 1108 S MICHIGAN AVE -87.624270066 41.869002215
304306 Catering of Liquor To Events FORNETTO-MEI ON GRANT 1108 S MICHIGAN AVE -87.624270066 41.869002215
304306 Retail Sales of Perishable Foods FORNETTO-MEI ON GRANT 1108 S MICHIGAN AVE -87.624270066 41.869002215
394321 Skincare Services | Retail Sales of General Merchandise | Provide Massage Services HAND & STONE MASSAGE AND FACIAL SPA 1130 S MICHIGAN AVE 1 B -87.62425305 41.868305012
65004 Retail Sales of Perishable Foods POTBELLY SANDWICH WORKS 48 E ROOSEVELT RD -87.625568619 41.867544428
63160 Provide Parking Spaces For a Fee - to Residents, Tenants, Users, Employees and/or Guests (Not Available or Advertised to the Public) STANDARD PARKING CORPORATION 1130 S MICHIGAN AVE -87.62425305 41.868305012
211718 Retail Sales of Perishable Foods TRADER JOE'S #701 1147 S WABASH AVE 1 100 -87.625686841 41.86786709
211718 Retail Sales of Packaged Liquor on Sundays from 8AM - 11AM | Retail Sales of Packaged Liquor TRADER JOE'S #701 1147 S WABASH AVE 1 100 -87.625686841 41.86786709
306959 Retail Sales of Perishable Foods YOLK 1120 S MICHIGAN AVE 1ST -87.624260744 41.868622039
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.62425305,
41.868305012
]
},
"properties": {
"account_number": "405955",
"business_activity": "Dry Cleaning - Drop Off Location",
"name": "1130 VALET SHOP",
"address": "1130 S MICHIGAN AVE GROUND"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.624256704,
41.867758644
]
},
"properties": {
"account_number": "395294",
"business_activity": "Consumption of Liquor on Premises",
"name": "BURGER BAR CHICAGO",
"address": "1150 S MICHIGAN AVE 1"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.624256704,
41.867758644
]
},
"properties": {
"account_number": "395294",
"business_activity": "Preparation of Food and Dining on Premise With Seating",
"name": "BURGER BAR CHICAGO",
"address": "1150 S MICHIGAN AVE 1"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.624270066,
41.869002215
]
},
"properties": {
"account_number": "304306",
"business_activity": "Consumption of Liquor on Premises",
"name": "FORNETTO-MEI ON GRANT",
"address": "1108 S MICHIGAN AVE"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.624270066,
41.869002215
]
},
"properties": {
"account_number": "304306",
"business_activity": "Catering of Liquor To Events",
"name": "FORNETTO-MEI ON GRANT",
"address": "1108 S MICHIGAN AVE"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.624270066,
41.869002215
]
},
"properties": {
"account_number": "304306",
"business_activity": "Retail Sales of Perishable Foods",
"name": "FORNETTO-MEI ON GRANT",
"address": "1108 S MICHIGAN AVE"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.62425305,
41.868305012
]
},
"properties": {
"account_number": "394321",
"business_activity": "Skincare Services | Retail Sales of General Merchandise | Provide Massage Services",
"name": "HAND & STONE MASSAGE AND FACIAL SPA",
"address": "1130 S MICHIGAN AVE 1 B"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.625568619,
41.867544428
]
},
"properties": {
"account_number": "65004",
"business_activity": "Retail Sales of Perishable Foods",
"name": "POTBELLY SANDWICH WORKS",
"address": "48 E ROOSEVELT RD"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.62425305,
41.868305012
]
},
"properties": {
"account_number": "63160",
"business_activity": "Provide Parking Spaces For a Fee - to Residents, Tenants, Users, Employees and/or Guests (Not Available or Advertised to the Public)",
"name": "STANDARD PARKING CORPORATION",
"address": "1130 S MICHIGAN AVE"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.625686841,
41.86786709
]
},
"properties": {
"account_number": "211718",
"business_activity": "Retail Sales of Perishable Foods",
"name": "TRADER JOE'S #701",
"address": "1147 S WABASH AVE 1 100"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.625686841,
41.86786709
]
},
"properties": {
"account_number": "211718",
"business_activity": "Retail Sales of Packaged Liquor on Sundays from 8AM - 11AM | Retail Sales of Packaged Liquor",
"name": "TRADER JOE'S #701",
"address": "1147 S WABASH AVE 1 100"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-87.624260744,
41.868622039
]
},
"properties": {
"account_number": "306959",
"business_activity": "Retail Sales of Perishable Foods",
"name": "YOLK",
"address": "1120 S MICHIGAN AVE 1ST"
}
}
]
}
account_number business_activity name address longitude latitude
405955 Dry Cleaning - Drop Off Location 1130 VALET SHOP 1130 S MICHIGAN AVE GROUND -87.62425305 41.868305012
245661 Supervision of, and Care for, Children Under 2 Years of Age, During the Day Between 6am-9pm | Supervision of, and Care for Children, During the Evening Between 9pm-6am | Supervision of, and Care for, Children 2-6 Years of Age, During the Day Between 6am-9pm A CHILD'S SPACE EARLY LITERACY AND LEARNING CENTER, INC. 1020 S WABASH AVE # 100 -87.626027446 41.869458835
406395 Consumption of Liquor on Premises ARTIST'S CAFE 1150 S WABASH AVE 1ST -87.62597953 41.867751467
406395 Preparation of Food and Dining on Premise With Seating ARTIST'S CAFE 1150 S WABASH AVE 1ST -87.62597953 41.867751467
394576 Sale of Food Prepared Onsite Without Dining Area ASIAN CHOPSTICKS, INC. 28 E ROOSEVELT RD 1ST -87.626124689 41.867539291
400630 Preparation of Food and Dining on Premise With Seating BELLY UP SMOKEHOUSE AND SALOON 1132 S WABASH AVE 1 -87.62598812 41.868262621
400630 Consumption of Liquor on Premises BELLY UP SMOKEHOUSE AND SALOON 1132 S WABASH AVE 1 -87.62598812 41.868262621
395294 Preparation of Food and Dining on Premise With Seating BURGER BAR CHICAGO 1150 S MICHIGAN AVE 1 -87.624256704 41.867758644
395294 Consumption of Liquor on Premises BURGER BAR CHICAGO 1150 S MICHIGAN AVE 1 -87.624256704 41.867758644
258292 CHRISTINA'S SKIN CARE 1130 S WABASH AVE 103 -87.625990426 41.868319686
85612 Live Theatrical and Other Live Cultural Performances COLUMBIA COLLEGE CHICAGO 1104 S WABASH AVE 2ST 1 -87.626015798 41.869062517
85612 Live Theatrical and Other Live Cultural Performances COLUMBIA COLLEGE CHICAGO 72 E 11TH ST 1 -87.624837105 41.869403809
85612 Live Theatrical and Other Live Cultural Performances COLUMBIA COLLEGE CHICAGO 1104 S WABASH AVE 8 -87.626015798 41.869062517
394733 Provide Massage Services ELEMENTS MASSAGE - SOUTH LOOP 1160 S MICHIGAN AVE 1ST B -87.62427526 41.867502382
284728 Consumption of Liquor on Premises ELEVEN CITY DINER 1112 S WABASH AVE -87.62600895 41.868834105
284728 Retail Sales of Perishable Foods ELEVEN CITY DINER 1112 S WABASH AVE -87.62600895 41.868834105
394092 Hair Services EVANGELINES HAIR CLINIC, INC., 1130 S WABASH AVE 4TH 401 -87.625990426 41.868319686
339081 Retail Sales of Perishable Foods Five Guys Burger & Fries 1148 S WABASH AVE -87.625980033 41.867808556
304306 Catering of Liquor To Events FORNETTO-MEI ON GRANT 1108 S MICHIGAN AVE -87.624270066 41.869002215
304306 Consumption of Liquor on Premises FORNETTO-MEI ON GRANT 1108 S MICHIGAN AVE -87.624270066 41.869002215
304306 Retail Sales of Perishable Foods FORNETTO-MEI ON GRANT 1108 S MICHIGAN AVE -87.624270066 41.869002215
391158 Sale of Food Prepared Onsite With Dining Area FRUVE XPRESS JUICERY 1130 S WABASH AVE 1ST 102 -87.625990426 41.868319686
394321 Skincare Services | Retail Sales of General Merchandise | Provide Massage Services HAND & STONE MASSAGE AND FACIAL SPA 1130 S MICHIGAN AVE 1 B -87.62425305 41.868305012
308558 Hair Services LILLIAN DION SALON 1020 S WABASH AVE 101 -87.626027446 41.869458835
354002 Valet Parking Operator METROPOLITAN 1, LLC 1112 S WABASH AVE -87.62600895 41.868834105
398835 Preparation of Food and Dining on Premise With Seating NARA 1132 S WABASH AVE LL -87.62598812 41.868262621
398835 Consumption of Liquor on Premises NARA 1132 S WABASH AVE LL -87.62598812 41.868262621
3460 Provide Parking Spaces For a Fee -Available and Advertised to the Public PEOPLES AUTO PARKING CO 1122 S WABASH AVE -87.62599964 41.868547948
65004 Retail Sales of Perishable Foods POTBELLY SANDWICH WORKS 48 E ROOSEVELT RD -87.625568619 41.867544428
63160 Provide Parking Spaces For a Fee - to Residents, Tenants, Users, Employees and/or Guests (Not Available or Advertised to the Public) STANDARD PARKING CORPORATION 1130 S MICHIGAN AVE -87.62425305 41.868305012
402720 Sale of Food Prepared Onsite With Dining Area STAN'S DONUTS & COFFEE 26 E ROOSEVELT RD GROUND -87.626208481 41.867538627
63414 Retail Sales of Perishable Foods STARBUCKS COFFEE #2639 31 E ROOSEVELT RD -87.625953992 41.8673211
211718 Retail Sales of Perishable Foods TRADER JOE'S #701 1147 S WABASH AVE 1 100 -87.625686841 41.86786709
211718 Retail Sales of Packaged Liquor on Sundays from 8AM - 11AM | Retail Sales of Packaged Liquor TRADER JOE'S #701 1147 S WABASH AVE 1 100 -87.625686841 41.86786709
329631 TRUE STAR FOUNDATION, INC. 1130 S WABASH AVE 3 302 -87.625990426 41.868319686
306959 Retail Sales of Perishable Foods YOLK 1120 S MICHIGAN AVE 1ST -87.624260744 41.868622039
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment