Example #1
0
File: main.py Project: fresk/shs
def marker_pos(mdata):
    lat, lon = map(float, (mdata['latitude'], mdata['longitude']))
    x,y = iowa_relative((lat, lon))
    x,y = x-.5, y-.5
    x,y = x*.96, y*.99
    return (x, y, 0.001)
Example #2
0
def marker_pos(mdata):
    lat, lon = map(float, (mdata['latitude'], mdata['longitude']))
    x,y = iowa_relative((lat, lon))
    return (x - .5, y - .5, 0.025)