qpowell / google_places

A Ruby wrapper around the Google Places API
MIT License
382 stars 188 forks source link

Add fields option to spots search with detail #130

Closed dalton-cole closed 4 years ago

dalton-cole commented 4 years ago

Current a spots search with detail will pull all fields with no way to limit them. This can get expensive.

richardsondx commented 4 years ago

@dalton-cole Did you find a solution for this? I'm currently looking for a solution.

richardsondx commented 4 years ago

Solution is In the README

To only retrieve specific fields for an individual spot, use a comma delimited string of acceptable fields @client.spot(place_id, fields:'place_id,name')
dalton-cole commented 4 years ago

@richardsondx, yes I did. Same as you, forgot to close this out.