Getting JSON of Google Places Nearby Search

I'm trying to get the result json of a Nearby Search of Google Places API. I'm getting this error : "No Access-Control-Allow-Origin header is present on the requested resource."
The code I'm using is :

    <title>Place searches</title>
    <script type="text/javascript" src="lib/jquery-2.1.1.min.js"></script>
      var mJson = ",151.1957362&radius=500&types=food&name=cruise&key=AIzaSyCy639YCvWAzb3Sx0wkMzO5gxG-nHei4QU";


    <h1>Google places test</h1>
I even posted the url on website and it gave me the correct json, but I don't get why it doesn't work on my browser



Don't use the Places web service api from javascript, use the Places Library.

Related issues in the issue tracker (marked as "WorkingAsIntended"):


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.