ruby on rails 4 - How to get only place name,place id,latitude and longitude from google API? -
i want fetch place name, place id, latitude, , longitude google api. used following apis:
response =httparty.get("https://maps.googleapis.com/maps/api/place/nearbysearch/json?location="+params[:place][:latitude]+","+params[:place[:longitude]+"&rankby=distance&types=food&key=aizasyad6vgkz7vo-nzlzp-xenopchor7repweu&fields=results")
but both giving lot of information me. there other api gives me fields mentioned above?
well suggest use geocoder , reverse geocoder instead of api.
Comments
Post a Comment