title: How to make a dataframe from latitude and longitude in google places api for python
body: <p>I am using the Google Places API with Python by using the code from <a href="https://stackoverflow.com/questions/34282235/how-to-get-place-details-from-place-id-in-google-places-api-for-python"> here </a>. </p>
  
  <p>I got latitude and longitude for locations of a type like this: </p>
  
  <pre><code>{u'lat': Decimal('19.1156005'), u'lng': Decimal('72.9090715')}
  {u'lat': Decimal('19.116867'), u'lng': Decimal('72.90982199999999')}
  {u'lat': Decimal('19.1161942'), u'lng': Decimal('72.90909789999999')}
  </code></pre>
  
  <p>Now I want to save it as a data frame with latitude and longitude columns.
  How can I do that?  </p>
  
  <p>This is the code I'm using
    from googleplaces import GooglePlaces, types, lang</p>
  
  <pre><code>def GoogPlaces(lat,lng,radius,types,value,key):
    API_KEY = key
    LOCATION = str(lat) + "," + str(lng)
    RADIUS = radius
    TYPES = "bus_station"
  
    google_places = GooglePlaces(API_KEY)
  
    query_result = google_places.nearby_search(
      location=LOCATION , keyword="bus_station",
      radius=RADIUS)
  
    if query_result.has_attributions:
        print query_result.html_attributions
  
    for place in query_result.places:
        print place.geo_location
  for item in pointofinterest:
    a = GoogPlaces(lat, lng, radius, item, value,'Mykey')
  </code></pre>