diff --git a/How-to-setup-API---API-services-through-Google-Console.md b/How-to-setup-API---API-services-through-Google-Console.md new file mode 100644 index 0000000..68e745d --- /dev/null +++ b/How-to-setup-API---API-services-through-Google-Console.md @@ -0,0 +1,51 @@ +### Setting up API services + +First of all you should create A API Services through google. +first go to [API Console](https://console.developers.google.com) + + +And look into the Seccond colum and select google maps JavaScript +![](https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwjT1L7S34vPAhWLOxQKHd93DMAQjRwIBA&url=https%3A%2F%2Fdocs.typo3.org%2Ftypo3cms%2Fextensions%2Fmaps2%2FAdministratorManual%2FGoogleApiKeys%2FIndex.html&psig=AFQjCNErv3ZQ5PsPzSWrosVcVS1SQElsZA&ust=1473835612747874) + +than go to Dashboard Tab and prest on google maps JavaScript API Enable. +![](https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=imgres&cd=&cad=rja&uact=8&ved=0ahUKEwjnttyC4IvPAhWFbhQKHSXlBvgQjRwIBw&url=http%3A%2F%2Fwww.alphasoftware.com%2Fdocumentation%2Fpages%2FGuides%2FWeb%2520Components%2FUX%2520Components%2FUX%2520Controls%2FData%2520Controls%2FMap%2FGetting%2520a%2520Google%2520Maps%2520Javascript%2520API%2520Key.xml&psig=AFQjCNExfuCTWukfzEIfMDmCqvU_oe5Ung&ust=1473835707677180) + +Than go to credentials Tab and select Create credentials ----> API Key. +![](https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwiV7YuI4YvPAhVHlxQKHWHPCfYQjRwIBw&url=https%3A%2F%2Fcloud.google.com%2Fspeech%2Fdocs%2Fcommon%2Fauth&psig=AFQjCNFM756psvDAbKXnXHZ-P800GhOe6w&ust=1473835971606974) + + +When the API Key hs been Created. +Copy the Key and press the button close. + +![](https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwjb54De4YvPAhWDxxQKHZ16BesQjRwIBw&url=https%3A%2F%2Fguides.codepath.com%2Fandroid%2Fgoogle-maps-fragment-guide&psig=AFQjCNEaQ8PgdzMlwUmhnbTUmVv34PczuA&ust=1473836153529466) + + +alright after we have setup the API services we need to edit some configs. + +Download or clone the https://github.com/maierfelix/POGOserver/tree/api +when you have the files place them into youré Xamp/Htdocs. + +### Edit the configs + +first open up the POGOserver/cfg.js and scrol down when you see. + + // Google maps api key + GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM", replace this API Ket with youré API Key. + +than open up into API/js/init.js and search for + + + loadScriptDefered("http://maps.google.com/maps/api/js?key=" + CFG.GMAPS.API_KEY); + loadScriptDefered("js/gmaps.js"); + loadScriptDefered("js/ajax.js"); + loadScriptDefered("js/main.js"); + +you need to place youré Api KEY Behind /maps/api/js?key=. + +example + loadScriptDefered("http://maps.google.com/maps/api/js?key=Place here Youré Api Key" + CFG.GMAPS.API_KEY); + + + + +