Closed vanderleisp closed 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.
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.
@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
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.
need to update the GoogleMaps API on this demo as it's been blocked by Google to access it.