def coords_string_parser ( self , coords ) : lat , lon = coords . split ( ',' ) return { "lat" : lat . strip ( ) , "lon" : lon . strip ( ) , "bounds" : { } }
best way to handle latitude and longitude in python
Pareses the address string into coordinates to match address_to_coords return object
def coords_string_parser(self, coords):
        """Pareses the address string into coordinates to match address_to_coords return object"""

        lat, lon = coords.split(',')
        return {"lat": lat.strip(), "lon": lon.strip(), "bounds": {}}