pokemap
Version:
PokemonGo-Map APIs for node.js
25 lines (22 loc) • 677 B
JavaScript
;
// CHANGE ME
window.CONFIG = {
latitude: 0
, longitude: 0
, gmaps_key: 'AIzaSyB0Dqa90ZCmlwh7oPHkgfr2-cMMkufLBQE'
, requireLogin: true
, heartbeatInterval: 5000 // in ms
// distance in meters to travel between heartbeats
, pulseRadius: 25
// number of concentric rings to expand during search
// (keep this small - less than 10 - it gets really big really fast)
, ringSteps: 8
};
// Auto-detect language to use
window.document.documentElement.lang = 'en';
[ 'de', 'en', 'fr', 'pt_br', 'ru', 'zh_cn', 'zh_hk' ].some(function (lang) {
if (window.navigator.language.match(lang)) {
window.document.documentElement.lang = lang;
return true;
}
});