Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Converts a a string of the format "lat,lon" to a coordinate object of 
form: {'lat': lat, 'lon': lon}

        def str2coord(string):
    '''Converts a a string of the format "lat,lon" to a coordinate object of 
    form: {'lat': lat, 'lon': lon}
    '''
    lat, lon = string.split(",")[0], string.split(",")[1]
    return {'lat': float(lat), 'lon': float(lon)}
        


src/s/h/ShortQut-HEAD/src/Pathfinding.py   ShortQut(Download)
import os
from PriorityQueue import PriorityQueue, hashabledict
from Database import Database, str2coord
#import Colorer
from Log import Log