Fix indents
This commit is contained in:
@@ -19,11 +19,11 @@ RETURNS SETOF isoline AS $$
|
|||||||
|
|
||||||
#-- TODO: move this to a module function
|
#-- TODO: move this to a module function
|
||||||
if source:
|
if source:
|
||||||
lat = plpy.execute("SELECT ST_Y('%s') AS lat" % source)[0]['lat']
|
lat = plpy.execute("SELECT ST_Y('%s') AS lat" % source)[0]['lat']
|
||||||
lon = plpy.execute("SELECT ST_X('%s') AS lon" % source)[0]['lon']
|
lon = plpy.execute("SELECT ST_X('%s') AS lon" % source)[0]['lon']
|
||||||
start_str = 'geo!%f,%f' % (lat, lon)
|
start_str = 'geo!%f,%f' % (lat, lon)
|
||||||
else:
|
else:
|
||||||
source_str = None
|
source_str = None
|
||||||
|
|
||||||
if type == 'isodistance':
|
if type == 'isodistance':
|
||||||
resp = client.calculate_isodistance(source_str, mode, range, options)
|
resp = client.calculate_isodistance(source_str, mode, range, options)
|
||||||
@@ -34,7 +34,7 @@ RETURNS SETOF isoline AS $$
|
|||||||
result = []
|
result = []
|
||||||
|
|
||||||
for isoline in resp:
|
for isoline in resp:
|
||||||
range = isoline['range']
|
range = isoline['range']
|
||||||
polyline = isoline['geom']
|
polyline = isoline['geom']
|
||||||
multipolygon = cdb.here.types.geo_polyline_to_multipolygon(polyline)
|
multipolygon = cdb.here.types.geo_polyline_to_multipolygon(polyline)
|
||||||
result.append([source_str, mode, range, multipolygon])
|
result.append([source_str, mode, range, multipolygon])
|
||||||
@@ -54,4 +54,4 @@ RETURNS SETOF isoline AS $$
|
|||||||
|
|
||||||
finally:
|
finally:
|
||||||
-- quota_service.increment_total_geocoder_use()
|
-- quota_service.increment_total_geocoder_use()
|
||||||
$$ LANGUAGE plpythonu SECURITY DEFINER;
|
$$ LANGUAGE plpythonu SECURITY DEFINER;
|
||||||
|
|||||||
Reference in New Issue
Block a user