I want to use the textSearch method from google place library api without the maps.I have the longitude,latitude,place's name which I want to search.Now I just want to send the request to google and use the results.I have included the script
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?&libraries=places"></script>
But I now have to use the PlaceService and for that I think I need to include maps in my app which I don't want.
var service = new google.maps.places.PlacesService(map);
service.textSearch(request, callback);
I just need to search the place with longitude,latitude and radius.I have try making the request directly by generating the url and sending the ajax request.But it return
No 'Access-Control-Allow-Origin' header is present on the requested resource
How do I search the text in my ember app ?