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")

and
https://maps.googleapis.com/maps/api/place/radarsearch/json?location=18.488091,73.813820&radius=500&types=bar|night_club&key=aizasyad6vgkz7vo-nzlzp-xenopchor7repweu

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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -