Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to test google places apis in localhost and getting the client id

Tags:

google-maps

I want to use the places api for getting the places names within a circle in localhost. Does anyone know how to get the client id for localhost?

like image 638
Bala kumar Avatar asked Jan 10 '11 11:01

Bala kumar


1 Answers

I'm using Visual Studio and when I debug locally the URL is:

http://localhost:2386/index.html

To connect to Google API I set the following two properties of the Client Id in the API Access tab of the Google API console:

Redirect URIs:          http://localhost:2386/oauth2callback

JavaScript origins:     http://localhost:2386

I'm using the Analytics API but hopefully this will help in your case as well.

like image 117
Nick Sarabyn Avatar answered Sep 22 '22 04:09

Nick Sarabyn