1# This Source Code Form is subject to the terms of the Mozilla Public
2# License, v. 2.0. If a copy of the MPL was not distributed with this
3# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5from __future__ import absolute_import
6
7
8class EmulatorGeo(object):
9    def __init__(self, emulator):
10        self.emulator = emulator
11
12    def set_default_location(self):
13        self.lon = -122.08769
14        self.lat = 37.41857
15        self.set_location(self.lon, self.lat)
16
17    def set_location(self, lon, lat):
18        self.emulator._run_telnet("geo fix %0.5f %0.5f" % (self.lon, self.lat))
19