jimmzhu / yelp-college-restaurant-trends

Determine features unique to restaurants in college towns
0 stars 0 forks source link

Plot business locations #4

Open jimmzhu opened 8 years ago

jimmzhu commented 8 years ago

Given a list of businesses (latitude, longitude), plot them on a map to get an idea where they're located.

Single business JSON:

{
   "business_id":"mVHrayjG3uZ_RLHkLj-AMg",
   "full_address":"414 Hawkins Ave\nrankin, PA 15104",
   "hours":{
      "Tuesday":{
         "close":"19:00",
         "open":"10:00"
      },
      "Friday":{
         "close":"20:00",
         "open":"10:00"
      },
      "Wednesday":{
         "close":"19:00",
         "open":"10:00"
      },
      "Thursday":{
         "close":"19:00",
         "open":"10:00"
      },
      "Saturday":{
         "close":"16:00",
         "open":"10:00"
      }
   },
   "open":true,
   "categories":[
      "Bars",
      "American (New)",
      "Nightlife",
      "Lounges",
      "Restaurants"
   ],
   "city":"rankin",
   "review_count":20,
   "name":"Emil's Lounge",
   "neighborhoods":[

   ],
   "longitude":-79.8802474,
   "state":"PA",
   "stars":5.0,
   "latitude":40.4134643,
   "attributes":{
      "Alcohol":"full_bar",
      "Noise Level":"average",
      "Has TV":true,
      "Attire":"casual",
      "Ambience":{
         "romantic":false,
         "intimate":false,
         "classy":false,
         "hipster":false,
         "divey":false,
         "touristy":false,
         "trendy":false,
         "upscale":false,
         "casual":false
      },
      "Good for Kids":true,
      "Price Range":1,
      "Good For Dancing":false,
      "Delivery":false,
      "Coat Check":false,
      "Smoking":"no",
      "Accepts Credit Cards":true,
      "Take-out":true,
      "Happy Hour":false,
      "Outdoor Seating":false,
      "Takes Reservations":false,
      "Waiter Service":true,
      "Wi-Fi":"no",
      "Caters":true,
      "Good For":{
         "dessert":false,
         "latenight":false,
         "lunch":true,
         "dinner":false,
         "breakfast":false,
         "brunch":false
      },
      "Parking":{
         "garage":false,
         "street":false,
         "validated":false,
         "lot":false,
         "valet":false
      },
      "Music":{
         "dj":false
      },
      "Good For Groups":true
   },
   "type":"business"
}
kwesiRutledge commented 8 years ago

I used the csv list that was mentioned in the "List of Colleges' Longitude and Latitude Coordinates" to produce this list online: BatchGeo

As the name suggests, this website BatchGeo plots sets of longitude/latitude coordinates for you and displays the result in a Google Maps map.

I also understand that Google Earth has a kind of functionality like this, but Batch Geo seems like the simplest way to go (also, I can't seem to install Google Earth on my computer :'( ). Is the output useful?