mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-09-08 10:36:12 -05:00
Updated How to setup API services through Google Console (markdown)
@@ -37,18 +37,22 @@ first open up the POGOserver/cfg.js i Preffer with Notepad ++ and scrol down whe
|
||||
|
||||
And press save.
|
||||
|
||||
than open up into API/js/init.js and search for
|
||||
than open up into API/cfg.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");
|
||||
var CFG = {
|
||||
API: {
|
||||
HOST: "127.0.0.1",
|
||||
PORT: 3000,
|
||||
ROUTE: "/api"
|
||||
},
|
||||
GMAPS: {
|
||||
API_KEY: "XXXXX", Enter API Key Here
|
||||
BASE_ZOOM: 20,
|
||||
BASE_LAT: 39.18875480450959,
|
||||
BASE_LNG: -96.58109955489635
|
||||
}
|
||||
};
|
||||
|
||||
you need to place You're Api KEY Behind /maps/api/js?key=.
|
||||
|
||||
example
|
||||
loadScriptDefered("http://maps.google.com/maps/api/js?key=Place here You're Api Key" + CFG.GMAPS.API_KEY);
|
||||
|
||||
And press save.
|
||||
|
||||
When everything has been edited, go to You're internet Browser and go to localhost.
|
||||
|
||||
Reference in New Issue
Block a user