From 42d0812383bc2ac365e2d6b7497224ecd5a968c4 Mon Sep 17 00:00:00 2001 From: Carla Date: Wed, 10 Feb 2016 17:58:48 +0100 Subject: [PATCH] Fix indents --- server/extension/sql/0.4.0/80_routing_helper.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/extension/sql/0.4.0/80_routing_helper.sql b/server/extension/sql/0.4.0/80_routing_helper.sql index 14571d9..92cfcf4 100644 --- a/server/extension/sql/0.4.0/80_routing_helper.sql +++ b/server/extension/sql/0.4.0/80_routing_helper.sql @@ -19,11 +19,11 @@ RETURNS SETOF isoline AS $$ #-- TODO: move this to a module function if source: - lat = plpy.execute("SELECT ST_Y('%s') AS lat" % source)[0]['lat'] - lon = plpy.execute("SELECT ST_X('%s') AS lon" % source)[0]['lon'] - start_str = 'geo!%f,%f' % (lat, lon) + lat = plpy.execute("SELECT ST_Y('%s') AS lat" % source)[0]['lat'] + lon = plpy.execute("SELECT ST_X('%s') AS lon" % source)[0]['lon'] + start_str = 'geo!%f,%f' % (lat, lon) else: - source_str = None + source_str = None if type == 'isodistance': resp = client.calculate_isodistance(source_str, mode, range, options) @@ -34,7 +34,7 @@ RETURNS SETOF isoline AS $$ result = [] for isoline in resp: - range = isoline['range'] + range = isoline['range'] polyline = isoline['geom'] multipolygon = cdb.here.types.geo_polyline_to_multipolygon(polyline) result.append([source_str, mode, range, multipolygon]) @@ -54,4 +54,4 @@ RETURNS SETOF isoline AS $$ finally: -- quota_service.increment_total_geocoder_use() -$$ LANGUAGE plpythonu SECURITY DEFINER; \ No newline at end of file +$$ LANGUAGE plpythonu SECURITY DEFINER;