Google Places API for ionic

I’m currently trying to get all nearby businesses using the google places api but I ran into a cross site scripting error when I tried getting the places using the URL provided by google.

Is there a way I can resolve this? Should I use the Places Library instead? If so, Is there a way I can use the Places Library without creating a map?