remove query from ddl

This commit is contained in:
Bart Akeley 2017-10-21 16:10:50 -05:00
parent a4142988f7
commit cc61d02804

View file

@ -114,19 +114,3 @@ INSERT INTO food_items (id, name, place_id, category, images, thumbImage, loc)
);
INSERT INTO quantities SELECT id, current_timestamp, 'many' FROM food_items;
SELECT
*,
ST_AsGeoJSON(loc) as location,
ST_Distance(
loc,
ST_GeogFromText('SRID=4326;POINT(-97.7286718 30.3033267)')
) / 1609 as distance
FROM food_items
WHERE
ST_DWithin(
loc,
ST_GeogFromText('SRID=4326;POINT(-97.7286718 30.3033267)'),
10 * 1609
)
ORDER BY distance ASC;