'Function to parse an OpenGeoSMS
@param: message - Inbound message to be parsed for OpenGeoSMS.
Returns the lat, lon, code and text contained in the message.'

@staticmethod
def parse_opengeosms(message):

    lat = ''
    lon = ''
    code = ''
    text = ''
    words = message.split('    ')
    if ('http://maps.google.com/?q' in words[0]):
        pwords = words[0].split('?q=')[1].split(',')
        lat = pwords[0]
        lon = pwords[1].split('&')[0]
        code = pwords[1].split('&')[1].split('=')[1]
        text = ''
        for a in range(1, len(words)):
            text = ((text + words[a]) + '    ')
    return (lat, lon, code, text)
