def to_json(self):
return {<EOL>"<STR_LIT>": self.city,<EOL>"<STR_LIT:state>": self.state,<EOL>"<STR_LIT>": self.country,<EOL>"<STR_LIT>": self.latitude,<EOL>"<STR_LIT>": self.longitude,<EOL>"<STR_LIT>": self.time_zone,<EOL>"<STR_LIT>": self.elevation,<EOL>"<STR_LIT>": self.station_id,<EOL>"<STR_LIT:source>": self.source<EOL>}<EOL>
Create a location from json.
            {
              "city": "-",
              "latitude": 0,
              "longitude": 0,
              "time_zone": 0,
              "elevation": 0
            }