MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / onFallbackLocationProviderResponse

Function onFallbackLocationProviderResponse

map-chat/javascript/map.js:109–118  ·  view source on GitHub ↗
(ipinfo)

Source from the content-addressed store, hash-verified

107}
108
109function onFallbackLocationProviderResponse(ipinfo) {
110 console.log("Found location [" + ipinfo.loc + "] by ipinfo.io");
111 var latLong = ipinfo.loc.split(",");
112 onFirstPosition({
113 "coords": {
114 latitude: parseFloat(latLong[0]),
115 longitude: parseFloat(latLong[1])
116 }
117 });
118}
119
120function useRandomLocation(err) {
121 Materialize.toast('User location problem, using random location :P', 7000);

Callers

nothing calls this directly

Calls 2

onFirstPositionFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected