shidhincr / LookAround

AngularJS Learning Playground ( with Twitter bootstrap, Google maps API, TDD using Karma runner )
MIT License
174 stars 149 forks source link

Google Maps API #1

Closed vanderleisp closed 10 years ago

vanderleisp commented 10 years ago

need to update the GoogleMaps API on this demo as it's been blocked by Google to access it.

shidhincr commented 10 years ago

Could you brief the problem ? I was able to get the place details from Google maps API

Check the browser console and let me know the error message google api throwing.

vanderleisp commented 10 years ago

yes, testing using the demo online at github it works, but if you try to run the index.html file you have here it shows the below message. I checked the API key and seems both the online and the one here are the same, but still got this message.

lookaround_api_bug

shidhincr commented 10 years ago

@vanderleisp I guess you trying to open the index.html directly. Google won't allow to use the API key if try to open in file mode. We need to open it always from the web server.

For this , I've included a web-server.js in the scripts folder. You need to have NodeJS installed and just open this web-server.js file from the terminal. This will start a web server in http://localhost:8000

If you've trouble using the web-server.js file, use any other web server utility. In Mac you can do

python -m SimpleHTTPServer
vanderleisp commented 10 years ago

yes, I'm trying to run it as a file mode, so let me see how to setup this web server here. as I'm mainly a hardware guy, then now getting back to programming after maybe 20 years not doing this, so lets say it's been a challenge getting back to SW. Also the next step would be to test this as a webview inside Titanium, for a mobile app, so would need to see how to run it inside the webview as seems it doesn't have a server there.

thanks for your fast feedback.