(ipinfo)
| 107 | } |
| 108 | |
| 109 | function 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 | |
| 120 | function useRandomLocation(err) { |
| 121 | Materialize.toast('User location problem, using random location :P', 7000); |
nothing calls this directly
no test coverage detected