diff --git a/geocoder/namedplace/test/data/test.sh b/geocoder/namedplace/test/data/test.sh index 99baf1d..6bde1bb 100644 --- a/geocoder/namedplace/test/data/test.sh +++ b/geocoder/namedplace/test/data/test.sh @@ -2,511 +2,933 @@ #################################################### TESTS GO HERE #################################################### -function test_geocoding_data_namedplace() { - # 500 cities with biggest population - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.45806 31.22222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shanghai' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-58.37723 -34.61315)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Buenos Aires' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.88261 19.07283)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mumbai' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.12766 19.42847)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mexico City' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.39723 39.9075)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Beijing' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(67.0822 24.9056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Karachi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.94966 41.01384)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'İstanbul' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.17667 39.14222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tianjin' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.25 23.11667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guangzhou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.23149 28.65195)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Delhi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.9822 14.6042)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manila' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.61556 55.75222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Moscow' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.0683 22.54554)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shenzhen' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(90.40744 23.7104)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dhaka' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.9784 37.566)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Seoul' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-46.63611 -23.5475)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'São Paulo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.26667 30.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Wuhan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.39467 6.45407)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lagos' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.84513 -6.21462)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jakarta' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.69171 35.6895)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tokyo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-74.00597 40.71427)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'New York' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.74472 23.04889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dongguan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.53185 25.04776)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Taipei' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(15.31357 -4.32758)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kinshasa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-77.02824 -12.04318)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lima' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.24967 30.06263)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cairo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-74.08175 4.60971)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bogotá' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.12574 51.50853)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'London' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.09184 51.51279)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'City of London' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.55278 29.56278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chongqing' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.06667 30.66667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chengdu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.77778 32.06167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanjing' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(51.42151 35.69439)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tehrān' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.08473 30.79508)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanchong' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.15769 22.28552)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hong Kong' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.92861 34.25833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xi’an' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.34361 31.54972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lahore' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.43278 41.79222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shenyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.16142 30.29365)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hangzhou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.2075 -22.90278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rio de Janeiro' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.65 45.75)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Harbin' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.40088 33.34058)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baghdad' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.12 36.18528)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tai’an' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.59538 31.30408)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Suzhou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.71479 23.36814)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shantou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(100.50144 13.75398)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bangkok' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.59369 12.97194)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bangalore' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.31413 59.93863)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Saint Petersburg' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-70.64827 -33.45694)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santiago' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(88.36304 22.56263)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kolkata' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(151.20732 -33.86785)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sydney' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(96.15611 16.80528)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yangon' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.99722 36.66833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jinan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.27847 13.08784)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chennai' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.64861 34.75778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zhengzhou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(144.96332 -37.814)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Melbourne' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(46.72185 24.68773)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Riyadh' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(125.32278 43.88)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changchun' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.60222 38.91222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dalian' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(91.83168 22.3384)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chittagong' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(102.71833 25.03889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kunming' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(29.95527 31.21564)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Alexandria' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-118.24368 34.05223)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Los Angeles' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.58727 23.02579)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ahmedabad' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.36939 36.06605)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qingdao' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(129.04028 35.10278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Busan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-4.01266 5.30966)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Abidjan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(8.51672 12.00012)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kano' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.13148 23.02677)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Foshan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.45636 17.38405)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hyderabad' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.88872 29.45679)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Puyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.6425 35.44778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yokohama' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.90591 7.37756)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ibadan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(103.85007 1.28967)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Singapore' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.28857 31.56887)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Wuxi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.08187 24.47979)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xiamen' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.85427 39.91987)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ankara' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(105.74238 34.57952)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tianshui' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.54945 29.87819)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ningbo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.62965 10.82302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ho Chi Minh City' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(110.77806 32.6475)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shiyan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(18.42322 -33.92584)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cape Town' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.56028 37.86944)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Taiyuan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.41053 52.52437)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Berlin' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.18333 39.63333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tangshan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.28083 31.86389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hefei' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.58781 45.50884)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Montréal' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-3.70256 40.4165)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Madrid' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(125.75432 39.03385)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pyongyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-7.61138 33.58831)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Casablanca' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.06333 36.79056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zibo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(110.5723 21.31992)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zhongshan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.0292 -29.8579)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Durban' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.97087 28.19874)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changsha' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(69.17233 34.52813)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kabul' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(87.60046 43.80096)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ürümqi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-66.87919 10.48801)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Caracas' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.85535 18.51957)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pune' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.83023 21.19594)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sūrat' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.19797 21.54238)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jeddah' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.47861 38.04139)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shijiazhuang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.34627 26.4478)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kānpur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.5238 50.45466)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kiev' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.23432 -8.83682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Luanda' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.0509 14.6488)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Quezon City' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(38.74689 9.02497)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Addis Ababa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.81667 -1.28333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nairobi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-38.51083 -12.97111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Salvador' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.78781 26.91962)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jaipur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.26951 -6.82349)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dar es Salaam' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-87.65005 41.85003)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chicago' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(103.83987 36.05701)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lanzhou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.70515 37.45646)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Incheon' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.03954 22.92833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yunfu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.79747 30.53302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Başrah' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.01582 19.03681)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Navi Mumbai' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-79.4163 43.70011)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Toronto' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.50218 34.69374)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ōsaka-shi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(45.34375 2.03711)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mogadishu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(128.59111 35.87028)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Daegu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.08333 31.41667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Faisalābād' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.13838 38.41273)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'İzmir' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.44406 14.6937)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dakar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.92313 26.83928)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lucknow' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.21093 30.00808)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Jīzah' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-38.54306 -3.71722)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fortaleza' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-76.5225 3.43722)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cali' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.75083 -7.24917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Surabaya' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.93778 -19.92083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Belo Horizonte' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(115.85306 28.68396)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanchang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.45472 14.71331)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Grand Dakar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(12.51133 41.89193)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rome' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(59.56796 36.31559)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mashhad' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.94958 40.6501)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brooklyn' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.83652 40.68149)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Borough of Queens' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(79.08491 21.14631)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nagpur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-71.64056 10.63167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maracaibo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-47.92972 -15.77972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brasília' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-69.98857 18.50012)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santo Domingo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(136.90641 35.18147)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nagoya-shi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(153.02809 -27.46794)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brisbane' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-82.38304 23.13302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Havana' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(2.3488 48.85341)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Paris' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-95.36327 29.76328)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Houston' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(43.1049 36.33306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Mawşil al Jadīdah' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.04363 -26.20227)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Johannesburg' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.18333 22.31667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kowloon' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.81507 30.50316)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Başrah al Qadīmah' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.92848 43.25654)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Almaty' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.56359 6.25184)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Medellín' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(69.21627 41.26465)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tashkent' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.04197 36.7525)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Algiers' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.53241 15.55177)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Khartoum' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.1969 5.55602)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Accra' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-79.90795 -2.20584)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guayaquil' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(109.78157 39.6086)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ordos' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.20667 15.35472)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sanaa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.49442 33.88894)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Beirut' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(115.8614 -31.95224)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Perth' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(141.34695 43.06417)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sapporo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.56028 43.85083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jilin' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(26.10626 44.43225)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bucharest' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-13.68778 9.535)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Camayenne' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-123.11934 49.24966)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vancouver' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.8333 22.71792)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Indore' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.0671 19.35738)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Iztapalapa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.06601 19.61725)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ecatepec' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-13.67729 9.53795)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Conakry' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-67.59583 10.24694)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maracay' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(98.66667 3.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Medan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.0679 33.6007)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rawalpindi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.56667 53.9)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Minsk' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(19.03991 47.49801)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Budapest' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(43.11889 36.335)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mosul' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(10.01534 53.57532)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hamburg' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-49.27306 -25.42778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Curitiba' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(21.01178 52.22977)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Warsaw' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(107.61861 -6.90389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bandung' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.85849 -26.26781)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Soweto' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(16.37208 48.20849)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vienna' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-6.83255 34.01325)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rabat' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-103.39182 20.66682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guadalajara' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(2.15899 41.38879)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Barcelona' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.18783 -25.74486)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pretoria' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.16117 36.20124)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Aleppo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.11936 25.60222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Patna' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.40289 23.25469)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bhopal' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-60.025 -3.10194)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manaus' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.06556 32.12278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xinyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-98.20193 19.04334)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Puebla' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.43879 10.52641)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kaduna' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.91601 11.56245)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Phnom Penh' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.29128 33.5102)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Damascus' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(51.67462 32.65246)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Isfahan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.85379 30.91204)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ludhiāna' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.05337 -17.82772)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Harare' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.183 34.6913)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kobe' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.16379 39.95233)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Philadelphia' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.9896 -6.2349)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bekasi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.31333 22.61626)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kaohsiung' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-106.48333 31.73333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ciudad Juárez' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.96625 40.78343)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manhattan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-57.63591 -25.30066)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Asunción' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-34.88111 -8.05389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Recife' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(127.41972 36.32139)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Daejeon' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-1.62443 6.68848)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kumasi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(102.2386 6.13328)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kota Bharu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.75385 35.02107)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kyoto' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.68653 3.1412)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kuala Lumpur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.99155 35.83266)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Karaj' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-112.07404 33.44838)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Phoenix' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.3206 27.70169)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kathmandu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.7458 -2.91673)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Palembang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(71.47528 30.19556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Multān' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(105.84117 21.0245)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hanoi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.25272 49.98081)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kharkiv' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.01667 27.18333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Āgra' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-64.18105 -31.4135)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Córdoba' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(46.2919 38.08)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tabrīz' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(82.9346 55.0415)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Novosibirsk' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.91556 35.15472)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gwangju' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(29.08403 40.19266)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bursa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.20812 22.29941)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vadodara' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-48.50444 -1.45583)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Belém' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.92333 41.85583)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fushun' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-78.52495 -0.22985)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Quito' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(130.41806 33.60639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fukuoka-shi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.53613 -18.91368)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Antananarivo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.45361 34.68361)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Luoyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(68.37366 25.39242)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hyderabad' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.86641 40.84985)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'The Bronx' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-68.00765 10.16202)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Valencia' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.18831 32.16167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gujrānwāla' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-74.78132 10.96854)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Barranquilla' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.62709 28.15861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guankou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-117.00371 32.5027)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tijuana' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.47938 -11.66089)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lubumbashi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-51.23 -30.03306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Porto Alegre' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.63 -6.17806)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tangerang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-63.18117 -17.78629)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santa Cruz de la Sierra' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.46778 36.60056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Handan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.58219 0.31628)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kampala' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(60.6122 56.8519)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yekaterinburg' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(89.56439 22.80979)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Khulna' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(9.70428 4.04827)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Douala' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-98.49363 29.42412)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Antonio' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.67206 29.44768)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gorakhpur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.82563 21.42664)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mecca' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.4221 -5.14)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Makassar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-117.15726 32.71533)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Diego' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.71722 35.52056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kawasaki' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.71789 -6.28862)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'South Tangerang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(109.82222 40.65222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baotou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.61417 24.46861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Medina' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(11.51667 3.86667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yaoundé' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-8 12.65)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bamako' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.79096 19.99727)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nashik' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(110.4203 -6.9932)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Semarang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(15.28318 -4.26613)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brazzaville' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.80696 18.62292)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pimpri' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.00205 56.32867)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nizhniy Novgorod' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.94503 31.95522)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Amman' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(124.43972 7.20417)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Budta' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(20.46513 44.80401)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Belgrade' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-56.18816 -34.90328)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Montevideo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.28713 -15.40669)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lusaka' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.13554 19.2437)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kalyān' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.96355 19.19704)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Thāne' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(11.57549 48.13743)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Munich' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(18.0649 59.33258)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Stockholm' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.48333 33.9)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ra’s Bayrūt' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(52.53113 29.61031)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shiraz' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.32889 37.00167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Adana' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(127.00889 37.29111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Suwon-si' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(9.18951 45.46427)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Milano' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-72.335 18.53917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Port-au-Prince' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.01483 19.40061)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ciudad Nezahualcoyotl' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(138.59863 -34.92866)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Adelaide' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.70636 28.98002)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Meerut' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(82.54826 19.23114)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nowrangapur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.31316 28.41124)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Farīdābād' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(71.57849 34.008)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Peshawar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(125.61278 7.07306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Davao' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(96.08359 21.97473)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mandalay' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.47773 15.64453)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Omdurman' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-70.69703 19.4517)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santiago de los Caballeros' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.09481 29.37455)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yueyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(122.99 41.12361)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Anshan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.15707 34.18045)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tongshan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.43915 28.66535)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ghāziābād' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.81861 -6.4)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Depok' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-96.80667 32.78306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dallas' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.65657 35.90807)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Saitama' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.10978 19.49016)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gustavo A. Madero' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.08333 19.21667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dombivli' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.58322 -25.96553)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maputo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-98.75886 22.8694)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gustavo A. Madero' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.30611 26.06139)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fuzhou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(70.79322 22.29161)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rājkot' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-60.63932 -32.94682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rosario' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.71667 26.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guiyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-49.25389 -16.67861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Goiânia' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-46.53333 -23.46278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guarulhos' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(14.42076 50.08804)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Prague' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(83.01041 25.31668)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Varanasi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(12.56553 55.67594)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Copenhagen' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(23.32415 42.69751)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sofia' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.18746 32.87519)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tripoli' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.0134 4.77742)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Port Harcourt' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(132.45937 34.39627)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hiroshima-shi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(100.22072 26.86879)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lijiang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(55.17128 25.0657)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dubai' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.15 53.100007)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Samara' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.36859 54.99244)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Omsk' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(5.62575 6.33815)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Benin City' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-100.31847 25.67507)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Monterrey' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(124.475 7.16083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Malingao' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(49.89201 40.37767)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baku' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-101.671 21.13052)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'León' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.15712 11.84692)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maiduguri' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(49.12214 55.78874)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kazan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.51361 40.18111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yerevan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.87476 31.63661)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Amritsar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-1.53388 12.36566)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ouagadougou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.63333 35.88333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yono' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.72328 47.23135)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rostov-na-Donu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(81.83329 25.44894)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Allahābād' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.835 37.65639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Goyang-si' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.3825 37.05944)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gaziantep' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(83.20161 17.68009)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Visakhapatnam' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(140.8667 38.25759)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sendai' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(140.87195 38.26889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sendai-shi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(61.42915 55.15402)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chelyabinsk' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.29139 40.09361)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Datong' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.83368 41.69411)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tbilisi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.74221 31.64615)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changshu City' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.6839 24.1469)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Taichung' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.482 10.01531)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Teni' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.70261 34.33778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xianyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(55.96779 54.74306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ufa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(34.98333 48.45)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dnipropetrovsk' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(127.13778 37.43861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Seongnam-si' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-47.06083 -22.90556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Campinas' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(79.95006 23.16697)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jabalpur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(88.31857 22.57688)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hāora' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.99694 32.62639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Huainan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.80224 48.023)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Donetsk' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-6.24889 53.33306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dublin' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-114.08529 51.05011)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Calgary' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(4.34878 50.85045)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brussels' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.34226 19.87757)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Aurangabad' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.50183 48.71939)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Volgograd' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.45111 -22.75917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nova Iguaçu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.36581 23.5418)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jieyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.73262 46.47747)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Odessa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.40259 35.99502)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zhu Cheng City' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.85263 18.53017)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shivaji Nagar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(130.83333 33.83333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kitakyūshū' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.91044 17.67152)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Solāpur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(115.49028 38.85111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baoding' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-90.51327 14.64072)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guatemala City' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.765 41.28861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Benxi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-103.38479 20.72356)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zapopan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-1.89983 52.48142)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Birmingham' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(56.25017 58.01046)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Perm' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.80298 34.08842)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Srinagar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.7227 11.11128)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zaria' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-86.2504 12.13282)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Managua' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(25.57007 -33.91799)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Port Elizabeth' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-4.9998 34.03715)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fès' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(6.95 50.93333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Köln' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(129.31667 35.53722)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ulsan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.7884 30.73629)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chandigarh' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.96612 11.00555)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Coimbatore' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(14.24641 40.85631)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Napoli' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-35.73528 -9.66583)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maceió' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.51444 10.39972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cartagena' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.95401 31.77359)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changzhou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.58572 24.49258)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sulţānah' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-121.89496 37.33939)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Jose' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-10.7969 6.30054)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Monrovia' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-76.79358 17.99702)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kingston' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.01062 36.19257)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Erbil' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(92.86717 56.01839)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Krasnoyarsk' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(96.12972 19.745)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nay Pyi Taw' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.00594 26.26841)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jodhpur' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(140.12333 35.60472)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chiba' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-44.30278 -2.52972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'São Luís' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.11962 9.91735)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Madurai' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-6.79846 34.0531)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sale' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.79167 33.97444)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Huaibei' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-66.1568 -17.3895)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cochabamba' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-4.0159 5.41613)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Abobo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.59 42.87)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bishkek' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.18477 33.30563)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Abū Ghurayb' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.30742 34.7986)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kaifeng' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.8764 34.6401)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qom' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(91.7458 26.1844)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guwahati' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.36667 5.10658)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Aba' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.30119 33.73847)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pingdingshan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.17337 26.22983)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gwalior' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.96045 47.34088)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qiqihar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.45 3.03333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Klang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-68.82717 -32.89084)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mendoza' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.48464 37.87135)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Konya' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(23.58979 -6.13603)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mbuji-Mayi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.63049 16.51928)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vijayawāda' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.39071 14.76457)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pikine' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.68682 45.07049)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Turin' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.63925 12.29791)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mysore' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.66682 27.99942)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Wenzhou' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(46.00861 51.54056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Saratov' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-87.20681 14.0818)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tegucigalpa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.78306 37.49889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bucheon-si' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.1843 51.67204)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Voronezh' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.33856 23.34777)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ranchi' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.23963 19.47851)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Naucalpan de Juárez' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.88324 47.90771)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ulaanbaatar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.78498 10.99081)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Takeo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(48.6842 31.31901)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ahvaz' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-71.535 -16.39889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Arequipa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(100.35427 -0.94924)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Padang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.13378 15.34776)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hubli' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-7.99994 31.63416)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Marrakesh' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.53333 3.15)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kampung Baru Subang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-86.15804 39.76838)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Indianapolis' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-81.65565 30.33218)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jacksonville' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.31167 -22.78556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Duque de Caxias' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(8.89212 9.92849)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jos' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.37739 39.46975)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Valencia' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(4.54214 8.49664)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ilorin' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-77.11814 -12.05659)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Callao' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-68.15 -16.5)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'La Paz' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.69812 45.41117)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ottawa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-69.32278 10.07389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Barquisimeto' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-106.08889 28.63528)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chihuahua' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-122.41942 37.77493)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Francisco' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.31667 22.81667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanning' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-13.22994 8.484)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Freetown' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(103.7578 1.4655)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Johor Bahru' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.21633 31.76904)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jerusalem' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(105.25803 -5.42544)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bandarlampung' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.78917 -6.59444)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bogor' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(15.97753 45.81313)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zagreb - Centar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.66359 -4.05466)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mombasa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.89071 10.31672)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cebu City' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(58.5922 23.61387)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Muscat' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.19031 47.82289)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zaporizhzhya' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(5.38107 43.29695)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Marseille' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.08796 32.07275)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zarqa' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.86268 39.9179)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Çankaya' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-97.74306 30.26715)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Austin' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-82.99879 39.96118)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Columbus' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.47717 36.76639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Boumerdas' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.57917 31.32556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jalandhar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.94924 8.4855)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Thiruvananthapuram' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.46667 34.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sakai' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.10659 36.1386)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dengtalu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-65.2226 -26.82414)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Miguel de Tucumán' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.15867 11.65117)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Salem' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.69651 10.8155)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tiruchirappalli' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.72339 34.72682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Homs' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(111.65222 40.81056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hohhot' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(2.1098 13.51366)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Niamey' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.21333 22.99083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tainan' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.87111 30.01556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shangyu' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(19.46667 51.75)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Łódź' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.10326 26.43442)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dammam' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.75739 36.62554)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xining' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.0553 34.3838)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kahrīz' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.83907 25.18254)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kota' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-35.20944 -5.795)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Natal' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.83385 20.27241)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bhubaneshwar' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.58833 39.93167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qinhuangdao' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.61888 26.88946)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hengyang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.69556 36.90812)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Antalya' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(19.93658 50.06143)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kraków' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.07475 27.88334)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Alīgarh' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.22083 16.06778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Da Nang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.39278 -29.61679)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pietermaritzburg' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(1.21227 6.13748)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lomé' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-79.02998 -8.11599)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Trujillo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.6304 -7.9797)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Malang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-62.64102 8.35122)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ciudad Guayana' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(79.42193 28.34702)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bareilly' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.05885 -1.94995)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kigali' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-42.80194 -5.08917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Teresina' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.80151 35.19033)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nangandao' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-46.565 -23.69389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'São Bernardo do Campo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(130.30012 47.35118)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hegang' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(24.10589 56.946)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Riga' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(4.88969 52.37403)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Amsterdam' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-97.32085 32.72541)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fort Worth' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.93125 7.85257)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Oyo' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(67.00971 30.199)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Quetta' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-80.84313 35.22709)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Charlotte' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-54.64639 -20.44278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Campo Grande' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(58.38333 37.95)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ashgabat' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.20329 19.35867)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Álvaro Obregón' order by population desc limit 1" should true - sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.47082 34.37002)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Muzaffarābād' order by population desc limit 1" should true - +function test_geocoding_data_namedplace_shanghai() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.45806 31.22222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shanghai' order by population desc limit 1" should true } +function test_geocoding_data_namedplace_buenos_aires() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-58.37723 -34.61315)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Buenos Aires' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_mumbai() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.88261 19.07283)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mumbai' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_mexico_city() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.12766 19.42847)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mexico City' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_beijing() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.39723 39.9075)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Beijing' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_karachi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(67.0822 24.9056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Karachi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_istanbul() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.94966 41.01384)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'İstanbul' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_tianjin() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.17667 39.14222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tianjin' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_guangzhou() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.25 23.11667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guangzhou' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_delhi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.23149 28.65195)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Delhi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_manila() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.9822 14.6042)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manila' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_moscow() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.61556 55.75222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Moscow' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_shenzhen() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.0683 22.54554)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shenzhen' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_dhaka() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(90.40744 23.7104)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dhaka' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_seoul() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.9784 37.566)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Seoul' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_são_paulo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-46.63611 -23.5475)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'São Paulo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_wuhan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.26667 30.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Wuhan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_lagos() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.39467 6.45407)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lagos' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_jakarta() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.84513 -6.21462)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jakarta' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_tokyo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.69171 35.6895)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tokyo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_new_york() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-74.00597 40.71427)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'New York' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_dongguan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.74472 23.04889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dongguan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_taipei() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.53185 25.04776)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Taipei' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kinshasa() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(15.31357 -4.32758)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kinshasa' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_lima() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-77.02824 -12.04318)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lima' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_cairo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.24967 30.06263)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cairo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_bogotá() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-74.08175 4.60971)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bogotá' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_city_of_london() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.09184 51.51279)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'City of London' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_london() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.12574 51.50853)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'London' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_chongqing() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.55278 29.56278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chongqing' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_chengdu() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.06667 30.66667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chengdu' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_nanjing() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.77778 32.06167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanjing' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_tehrān() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(51.42151 35.69439)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tehrān' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_nanchong() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.08473 30.79508)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanchong' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_hong_kong() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.15769 22.28552)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hong Kong' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_xian() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.92861 34.25833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xi’an' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_lahore() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.34361 31.54972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lahore' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_shenyang() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.43278 41.79222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shenyang' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_changzhou() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.95401 31.77359)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changzhou' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_hangzhou() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.16142 30.29365)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hangzhou' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_rio_de_janeiro() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.2075 -22.90278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rio de Janeiro' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_harbin() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.65 45.75)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Harbin' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_baghdad() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.40088 33.34058)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baghdad' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_taian() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.12 36.18528)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tai’an' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_suzhou() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.59538 31.30408)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Suzhou' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_shantou() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.71479 23.36814)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shantou' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_bangkok() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(100.50144 13.75398)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bangkok' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_bangalore() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.59369 12.97194)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bangalore' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_saint_petersburg() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.31413 59.93863)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Saint Petersburg' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_santiago() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-70.64827 -33.45694)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santiago' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_santiago_de_los_caballeros() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-70.69703 19.4517)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santiago de los Caballeros' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kolkata() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(88.36304 22.56263)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kolkata' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_sydney() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(151.20732 -33.86785)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sydney' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_yangon() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(96.15611 16.80528)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yangon' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_jinan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.99722 36.66833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jinan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_chennai() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.27847 13.08784)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chennai' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_zhengzhou() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.64861 34.75778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zhengzhou' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_melbourne() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(144.96332 -37.814)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Melbourne' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_riyadh() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(46.72185 24.68773)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Riyadh' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_changchun() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(125.32278 43.88)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changchun' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_dalian() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.60222 38.91222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dalian' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_chittagong() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(91.83168 22.3384)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chittagong' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kunming() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(102.71833 25.03889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kunming' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_alexandria() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(29.95527 31.21564)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Alexandria' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_los_angeles() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-118.24368 34.05223)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Los Angeles' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ahmedabad() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.58727 23.02579)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ahmedabad' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_qingdao() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.36939 36.06605)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qingdao' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_busan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(129.04028 35.10278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Busan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_abidjan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-4.01266 5.30966)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Abidjan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kano() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(8.51672 12.00012)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kano' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_foshan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.13148 23.02677)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Foshan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_hyderabad() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(68.37366 25.39242)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hyderabad' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_hyderabad() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.45636 17.38405)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hyderabad' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_puyang() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.88872 29.45679)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Puyang' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_yokohama() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.6425 35.44778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yokohama' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ibadan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.90591 7.37756)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ibadan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_singapore() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(103.85007 1.28967)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Singapore' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_wuxi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.28857 31.56887)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Wuxi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_xiamen() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.08187 24.47979)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xiamen' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ankara() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.85427 39.91987)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ankara' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_tianshui() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(105.74238 34.57952)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tianshui' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ningbo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.54945 29.87819)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ningbo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ho_chi_minh_city() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.62965 10.82302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ho Chi Minh City' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_shiyan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(110.77806 32.6475)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shiyan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_cape_town() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(18.42322 -33.92584)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cape Town' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_taiyuan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.56028 37.86944)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Taiyuan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_berlin() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.41053 52.52437)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Berlin' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_tangshan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.18333 39.63333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tangshan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_hefei() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.28083 31.86389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hefei' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_montreal() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.58781 45.50884)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Montréal' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_madrid() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-3.70256 40.4165)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Madrid' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_pyongyang() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(125.75432 39.03385)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pyongyang' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_casablanca() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-7.61138 33.58831)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Casablanca' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_zibo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.06333 36.79056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zibo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_zhongshan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(110.5723 21.31992)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zhongshan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_durban() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.0292 -29.8579)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Durban' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_changsha() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.97087 28.19874)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changsha' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kabul() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(69.17233 34.52813)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kabul' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_urumqi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(87.60046 43.80096)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ürümqi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_caracas() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-66.87919 10.48801)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Caracas' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_pune() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.85535 18.51957)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pune' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_surat() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.83023 21.19594)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sūrat' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_jeddah() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.19797 21.54238)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jeddah' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_shijiazhuang() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.47861 38.04139)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shijiazhuang' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kanpur() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.34627 26.4478)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kānpur' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kiev() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.5238 50.45466)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kiev' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_luanda() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.23432 -8.83682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Luanda' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_quezon_city() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.0509 14.6488)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Quezon City' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_addis_ababa() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(38.74689 9.02497)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Addis Ababa' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_nairobi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.81667 -1.28333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nairobi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_salvador() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-38.51083 -12.97111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Salvador' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_jaipur() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.78781 26.91962)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jaipur' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_dar_es_salaam() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.26951 -6.82349)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dar es Salaam' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_chicago() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-87.65005 41.85003)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chicago' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_lanzhou() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(103.83987 36.05701)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lanzhou' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_incheon() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.70515 37.45646)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Incheon' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_yunfu() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.03954 22.92833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yunfu' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_al_başrah() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.79747 30.53302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Başrah' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_navi_mumbai() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.01582 19.03681)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Navi Mumbai' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_toronto() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-79.4163 43.70011)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Toronto' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_osaka-shi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.50218 34.69374)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ōsaka-shi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_mogadishu() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(45.34375 2.03711)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mogadishu' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_daegu() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(128.59111 35.87028)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Daegu' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_faisalabad() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.08333 31.41667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Faisalābād' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_izmir() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.13838 38.41273)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'İzmir' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_dakar() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.44406 14.6937)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dakar' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_grand_dakar() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.45472 14.71331)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Grand Dakar' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_lucknow() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.92313 26.83928)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lucknow' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_al_jizah() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.21093 30.00808)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Jīzah' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_fortaleza() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-38.54306 -3.71722)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fortaleza' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_cali() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-76.5225 3.43722)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cali' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_surabaya() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.75083 -7.24917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Surabaya' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_belo_horizonte() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.93778 -19.92083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Belo Horizonte' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_nanchang() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(115.85306 28.68396)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanchang' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_grand_dakar() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.45472 14.71331)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Grand Dakar' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_rome() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(12.51133 41.89193)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rome' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_mashhad() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(59.56796 36.31559)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mashhad' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_brooklyn() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.94958 40.6501)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brooklyn' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_nagpur() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(79.08491 21.14631)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nagpur' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_maracaibo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-71.64056 10.63167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maracaibo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_brasilia() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-47.92972 -15.77972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brasília' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_santo_domingo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-69.98857 18.50012)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santo Domingo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_nagoya_shi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(136.90641 35.18147)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nagoya-shi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_brisbane() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(153.02809 -27.46794)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brisbane' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_havana() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-82.38304 23.13302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Havana' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_paris() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(2.3488 48.85341)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Paris' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_houston() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-95.36327 29.76328)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Houston' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_al_mawsil_al_jadidah() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(43.1049 36.33306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Mawşil al Jadīdah' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_johannesburg() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.04363 -26.20227)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Johannesburg' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kowloon() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.18333 22.31667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kowloon' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_al_basrah_al_qadimah() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.81507 30.50316)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Başrah al Qadīmah' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_almaty() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.92848 43.25654)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Almaty' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_medellin() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.56359 6.25184)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Medellín' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_tashkent() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(69.21627 41.26465)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tashkent' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_algiers() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.04197 36.7525)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Algiers' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_khartoum() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.53241 15.55177)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Khartoum' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_accra() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.1969 5.55602)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Accra' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_guayaquil() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-79.90795 -2.20584)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guayaquil' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ordos() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(109.78157 39.6086)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ordos' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_sanaa() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.20667 15.35472)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sanaa' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_beirut() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.49442 33.88894)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Beirut' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_perth() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(115.8614 -31.95224)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Perth' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_sapporo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(141.34695 43.06417)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sapporo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_jilin() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.56028 43.85083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jilin' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_bucharest() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(26.10626 44.43225)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bucharest' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_camayenne() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-13.68778 9.535)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Camayenne' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_vancouver() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-123.11934 49.24966)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vancouver' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_indore() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.8333 22.71792)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Indore' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_iztapalapa() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.0671 19.35738)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Iztapalapa' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ecatepec() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.06601 19.61725)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ecatepec' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_conakry() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-13.67729 9.53795)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Conakry' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_maracay() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-67.59583 10.24694)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maracay' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_medan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(98.66667 3.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Medan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_rawalpindi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.0679 33.6007)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rawalpindi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_minsk() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.56667 53.9)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Minsk' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_budapest() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(19.03991 47.49801)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Budapest' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_mosul() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(43.11889 36.335)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mosul' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_hamburg() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(10.01534 53.57532)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hamburg' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_curitiba() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-49.27306 -25.42778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Curitiba' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_warsaw() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(21.01178 52.22977)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Warsaw' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_bandung() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(107.61861 -6.90389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bandung' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_soweto() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.85849 -26.26781)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Soweto' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_vienna() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(16.37208 48.20849)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vienna' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_rabat() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-6.83255 34.01325)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rabat' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_guadalajara() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-103.39182 20.66682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guadalajara' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_barcelona() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(2.15899 41.38879)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Barcelona' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_pretoria() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.18783 -25.74486)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pretoria' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_aleppo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.16117 36.20124)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Aleppo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_visakhapatnam() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(83.20161 17.68009)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Visakhapatnam' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_patna() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.11936 25.60222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Patna' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_bhopal() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.40289 23.25469)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bhopal' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_manaus() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-60.025 -3.10194)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manaus' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_xinyang() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.06556 32.12278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xinyang' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_puebla() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-98.20193 19.04334)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Puebla' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kaduna() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.43879 10.52641)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kaduna' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_phnom_penh() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.91601 11.56245)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Phnom Penh' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_damascus() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.29128 33.5102)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Damascus' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_isfahan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(51.67462 32.65246)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Isfahan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ludhiana() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.85379 30.91204)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ludhiāna' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_harare() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.05337 -17.82772)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Harare' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kobe() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.183 34.6913)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kobe' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_philadelphia() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.16379 39.95233)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Philadelphia' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_bekasi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.9896 -6.2349)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bekasi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kaohsiung() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.31333 22.61626)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kaohsiung' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_ciudad_juarez() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-106.48333 31.73333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ciudad Juárez' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_manhattan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.96625 40.78343)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manhattan' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_asuncion() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-57.63591 -25.30066)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Asunción' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_recife() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-34.88111 -8.05389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Recife' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_daejeon() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(127.41972 36.32139)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Daejeon' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kumasi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-1.62443 6.68848)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kumasi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kota_bharu() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(102.2386 6.13328)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kota Bharu' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kyoto() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.75385 35.02107)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kyoto' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kuala_lumpur() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.68653 3.1412)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kuala Lumpur' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_karaj() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.99155 35.83266)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Karaj' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_phoenix() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-112.07404 33.44838)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Phoenix' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kathmandu() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.3206 27.70169)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kathmandu' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_palembang() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.7458 -2.91673)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Palembang' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_multan() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(71.47528 30.19556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Multān' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_hanoi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(105.84117 21.0245)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hanoi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_kharkiv() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.25272 49.98081)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kharkiv' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_agra() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.01667 27.18333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Āgra' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_tabriz() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(46.2919 38.08)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tabrīz' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_novosibirsk() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(82.9346 55.0415)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Novosibirsk' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_gwangju() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.91556 35.15472)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gwangju' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_bursa() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(29.08403 40.19266)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bursa' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_vadodara() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.20812 22.29941)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vadodara' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_belem() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-48.50444 -1.45583)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Belém' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_fushun() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.92333 41.85583)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fushun' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_quito() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-78.52495 -0.22985)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Quito' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_fukuoka-shi() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(130.41806 33.60639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fukuoka-shi' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_antananarivo() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.53613 -18.91368)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Antananarivo' order by population desc limit 1" should true +} + +function test_geocoding_data_namedplace_luoyang() { + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.45361 34.68361)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Luoyang' order by population desc limit 1" should true +} #################################################### TESTS END HERE #################################################### diff --git a/geocoder/namedplace/test/functions/test.sh b/geocoder/namedplace/test/functions/test.sh index bdfacd7..a3ccdb7 100644 --- a/geocoder/namedplace/test/functions/test.sh +++ b/geocoder/namedplace/test/functions/test.sh @@ -2,1958 +2,4023 @@ #################################################### TESTS GO HERE #################################################### function test_geocoding_functions_namedplace() { + # checks that the result is false and no geometry is returned for a non-recognised named place sql "SELECT (geocode_namedplace(Array['Null island is not an island'])).success" should false sql "SELECT (geocode_namedplace(Array['Null island is not an island'])).geom is null" should true - + # check that the returned geometry is a point sql "SELECT ST_GeometryType((geocode_namedplace(Array['Elx'])).geom)" should ST_Point +} + +function test_geocoding_functions_namedplace_newyork() { + + # big cities: more than 1 million inhabitants from populated places (some coordinates have been adjusted) sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], 'NY', 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], null, 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Patna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(85.1280927552218, 25.6269049843829, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Karaj'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(50.9680589822987, 35.8023045612465, 4326)::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Minsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(27.5646812966582, 53.9019232950431, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Toronto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.4219666529884, 43.7019257364084, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Recife'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-34.9175513696073, -8.07369946724924, 4326)::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Vegas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.221952004694, 36.2119436400243, 4326)::geography,10000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bursa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(29.0680520648935, 40.2019326537123, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Montréal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.5852428167021, 45.501945064215, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dhaka'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(90.4066336081075, 23.7250055703128, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hangzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.168072817211, 30.2519198362895, 4326)::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sheffield'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.49999658345183, 53.3666766551778, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Córdoba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-64.1842404159484, -31.3980122114831, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Istanbul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.94966, 41.01384, 4326)::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Birmingham'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.92194264551705, 52.4769198363784, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rawalpindi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(73.0380813619443, 33.6019220742585, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Harbin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.648039044451, 45.7519298054271, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Suzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.618071189609, 31.302424190135, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Houston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-95.34327, 29.76328, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Shiraz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(52.53113, 29.61031, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Glasgow'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.25265309474497, 55.8763505818347, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Shantou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.71479, 23.36814, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Karachi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(67.0822, 24.9056, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Philadelphia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.1719418320079, 39.95233, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Buenos Aires'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-58.3994772323314, -34.6005557499074, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xiantao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.438096010543, 30.3723517617456, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanaa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(44.2046475239384, 15.3566791542636, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ufa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(56.0380854308868, 54.7919206501896, 4326) ::geography,10000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Maputo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(32.5872171039701, -25.953331628779, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baotou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(109.820073956493, 40.6541531126984, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guangzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.25, 23.11667, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sapporo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(141.338098452061, 43.0769251260542, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cape Town'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.433042299226, -33.9180651086287, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kiev'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(30.5146821104722, 50.4353131876072, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chongqing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.55278, 29.56278, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Monrovia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-10.7996604367759, 6.31458164716014, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ouagadougou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.52666961491644, 12.3722618365434, 4326) ::geography,3000)::geometry, 4326))" should true +} + +function test_geocoding_functions_namedplace_some_top_cities() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Frankfurt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.53333, 49.68333, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Rio de Janeiro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-43.2075, -22.90278, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Khulna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(89.5580549134426, 22.8419328570932, 4326) ::geography,4000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jerusalem'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(35.2066259345986, 31.7784078155733, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Montevideo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-56.18816, -34.90328, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ottawa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.7019611598095, 45.4186426553604, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Goiania'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-49.25389, -16.67861, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Haiphong'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.68345, 20.86481, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Raleigh'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-78.63861, 35.7721, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guiyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.718092755308, 26.5819888060014, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Providence'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.4169255559512, 41.8230481729243, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tashkent'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(69.21627, 41.26465, 4326) ::geography,4000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Diego'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.15726, 32.71533, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pyongyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(125.752744854994, 39.0213845580043, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chifeng'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.948043927232, 42.271961340244, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dubai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(55.17128, 25.0657, 4326) ::geography,4000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Maoming'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.9, 21.65, 4326) ::geography,4000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Barcelona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.18142446061915, 41.3852454385475, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Jose'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.89496, 37.33939, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gujranwala'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.21138, 30.49972, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Conakry'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.6821808861239, 9.53346870502179, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Long Beach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.18923, 33.76696, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanchang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.878050437637, 28.6819381468301, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lima'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-77.0520079534347, -12.0460668175256, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Incheon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.70515, 37.45646, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xiangtan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.900023151706, 27.8504305206357, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Budapest'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(19.0813748187597, 47.5019521849913, 4326) ::geography,4000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xiangfan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.128098451944, 32.0219409951506, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Izmir'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(27.1498481518493, 38.4380955409497, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Amsterdam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.91469431740097, 52.3519145466644, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Bernardino'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.301980080874, 34.1223295856538, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Irvine'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.829950197198, 33.6804105825079, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Meerut'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.6980553202963, 29.0023578652559, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jamshedpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(86.1955728170751, 22.7894812783169, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Yokohama'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(139.6425, 35.44778, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kyoto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(135.74805206532, 35.0319381468556, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Paz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-68.1519310491022, -16.4960277550434, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Natal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-35.2419501733195, -5.7780773155473, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Qingdao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.328063051587, 36.0919251260264, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gwangju'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.908488263201, 35.1729114541478, 4326) ::geography,4000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Damascus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(36.2980500304171, 33.5019798542061, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Banghazi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(20.0647773252741, 32.1186792764011, 4326) ::geography,4000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.99805328552031, 53.5519704955624, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Port Harcourt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.0134, 4.77742, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Semarang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.4203, -6.9932, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhangjiakou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.928030906383, 40.8319458779985, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manaus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-60.0019633977025, -3.09808586045858, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kaduna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.43805450621312, 10.5219613401167, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chittagong'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(91.7980215475663, 22.3319381468046, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mumbai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(72.88261, 19.07283, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kansas City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-94.6060400775458, 39.1090343683975, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gaziantep'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(37.3830484028173, 37.0769296019417, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibadan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.92803619565222, 7.38197212298183, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Zürich'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.54806427184257, 47.3819336709934, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Brussels'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.33137074969045, 50.8352629353303, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Lusaka'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.2813817361143, -15.4146984093359, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Dublin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.25085154039107, 53.3350069945849, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Phoenix'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-112.07404, 33.44838, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciudad Juárez'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.48333, 31.73333, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xuzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.62227, 25.2692, 4326) ::geography,4000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Düsseldorf'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.7799889715942, 51.2203735545832, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brisbane'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(153.033146873332, -27.4530850467537, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Miami'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.22605193945, 25.7895565550215, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.298100079577, 26.081941808929, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pune'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(73.8480577616872, 18.531963374654, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kharkiv'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(36.248078920391, 50.0019287881913, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Davao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(125.61278, 7.07306, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Florianopolis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-48.54917, -27.59667, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Port-au-Prince'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-72.3379804469055, 18.5429704547324, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ikare'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.7599995510173, 7.53043052055426, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kampala'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(32.581377667121, 0.318604813383331, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manila'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.980271303542, 14.6061048134405, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jiamusi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(130.31633, 46.79927, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-70.64827, -33.45694, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Chicago'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.65005, 41.85003, 4326) ::geography,5000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Varanasi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(82.9980935690154, 25.3319359088608, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ho Chi Minh City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.62965, 10.82302, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lagos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.38958521259843, 6.44520751209319, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Palembang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(104.7458, -2.91673, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dakar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-17.44406, 14.6937, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Seattle'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.33207, 47.60621, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhengzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.663146873175, 34.7569420124143, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Edmonton'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.501927794075, 53.5519704955624, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hanoi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(105.848068341242, 21.035273107737, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Huainan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.978034975401, 32.631929601924, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jinan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.993072817198, 36.6769281777864, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanning'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.318098451929, 22.8219340777961, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Benoni'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.32078, -26.18848, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guayaquil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.9219878118445, -2.21808789496015, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sevilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.98000736634742, 37.4050152781609, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bekasi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.97232295637, -6.21725746778185, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Can Tho'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(105.770019082667, 10.0499924915931, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cincinnati'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-84.4588685084773, 39.1638306436168, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nagpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(79.0880479960831, 21.1719055947166, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Buffalo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-78.8819479355382, 42.8819241088008, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hefei'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.278068341288, 31.8519772093429, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Porto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.62194712145526, 41.151952184966, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Srinagar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(74.8130634583055, 34.1019173948987, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marseille'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.37306427182989, 43.2919249226045, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Medan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(98.6480943828801, 3.58191983618275, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Casablanca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.61831329169871, 33.6019220742585, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Urumqi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(87.5730597962472, 43.8069580850418, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Essen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.01661535505889, 51.4499977814723, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.00597, 40.71427, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dongguan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.742776341387, 23.050834758613, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almaty'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(76.92848, 43.25654, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhangzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.670016234408, 24.5203753855312, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jaipur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.8080414856534, 26.9230790973437, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bridgeport'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.2019070419611, 41.1819245156953, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Paris'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.33138946713035, 48.8686387898146, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xian'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.92861, 34.25833, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Havana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.3661280299533, 23.1339046995422, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Salvador'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-89.18718, 13.68935, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kinshasa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.3130260231717, -4.32777824327598, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tunis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.179678099212, 36.8027781362314, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Porto Alegre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-51.23, -30.03306, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kolkata'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(88.36304, 22.56263, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Austin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.7447242214211, 30.2688955442974, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Shanghai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.43455881982, 31.2183983112283, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Shangqiu'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.648090313938, 34.4523611204859, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Moscow'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(37.6135769672714, 55.7541099812481, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Shangrao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.969997923862, 28.4703926788413, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Perth'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.838052879043, -31.9530687707302, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Douala'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.70804514749829, 4.06235562720019, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lahore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(74.3480789205434, 31.5619173948884, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Taian'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.29778, 36.75639, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Haora'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(88.329946654212, 22.5803904408619, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ahmedabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(72.5780577616821, 23.0319987750627, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Novosibirsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(82.9580960104215, 55.0319060017533, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bhilai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(81.4313874413872, 21.218612558613, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Taichung'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.681667032, 24.1520774526, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuxi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.298039044425, 31.5819420124014, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Asansol'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(87.27475, 24.22966, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vijayawada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(80.6280573548131, 16.521905187797, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Barranquilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.8019127385819, 10.9619344846499, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leshan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(103.76386, 29.56227, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Atlanta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-84.38798, 33.749, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['West Palm Beach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.05337, 26.71534, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Delhi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.2280581686018, 28.6719387571815, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanjing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.778028464992, 32.0519650023123, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Yaounde'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5147048968544, 3.86864652075411, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Belgrade'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(20.4660448220205, 44.8205913044467, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ningbo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.548091941565, 29.8819165810796, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lyon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.82808461687983, 45.7719544229401, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['São Luís'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-44.30278, -2.52972, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Belo Horizonte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-43.9169503768048, -19.9130801639112, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Antananarivo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(47.5146780415298, -18.9146914920321, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Johannesburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.04363, -26.20227, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Da Nang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.22083, 16.06778, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baghdad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(44.3919229145641, 33.3405943561586, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mianyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(104.768030906342, 31.4719228880521, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dalian'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.627884979006, 38.9247842518157, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sofia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(23.3147081521101, 42.6852952839305, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dnipropetrovsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(34.98333, 48.45, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexico City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.1329340602938, 19.4443883014155, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-70.6689867131748, -33.4480679569341, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fortaleza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-38.54306, -3.71722, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Auckland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(174.763034975632, -36.8480671431456, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kumasi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.63196034571121, 6.69193672258848, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Monterrey'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.33193064233, 25.6719409951253, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xinyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.068031720182, 32.1323218545261, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Yulin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.148064272249, 22.631919836259, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rabat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.83640815612614, 34.0253073110728, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kanpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(80.30899, 28.7404, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rangoon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(96.1647317526618, 16.7852999631888, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xianyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.712776341387, 34.347501458613, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Changde'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(111.678100079547, 29.0319426227428, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Indianapolis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.1719939153852, 39.7519342813145, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Detroit'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.0820016464926, 42.3319060017023, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bucharest'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(26.0980007953504, 44.4353176634946, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mandalay'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(96.0830829896408, 21.9719342812433, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Minneapolis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-93.2537321966635, 44.9819251260619, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Coimbatore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(76.9480752584443, 11.0019062050276, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aurangabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.34226, 19.87757, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Warsaw'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(20.9980536924653, 52.2519464883955, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Adana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(35.3180581684341, 36.9969344847541, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tel Aviv'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(34.78057, 32.08088, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Angeles'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.24368, 34.05223, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Yantai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.44081, 37.47649, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pretoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.18783, -25.74486, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jinhua'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.649998737671, 29.1200429473984, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ranchi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(85.3280805481915, 23.3719521848948, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Valencia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-68.00765, 10.16202, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Maracaibo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.64056, 10.63167, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Adelaide'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(138.598058982649, -34.9330419152734, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Calgary'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-114.08529, 51.05011, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Rome'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.481312562874, 41.8979014850989, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Yiyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.328086244914, 28.6023564411006, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Taiyuan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.54311187968, 37.8769582884684, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Handan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.478032533985, 36.5819210570179, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cagayan de Oro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(124.64722, 8.48222, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tainan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.200042683, 23.0000030711, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dallas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.80667, 32.78306, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Asunción'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-57.63591, -25.30066, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Allahabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(81.8380610169274, 25.4569411985749, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mosul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(43.1430585753664, 36.3469483193867, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Algiers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.04860667090924, 36.7650106566281, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Yerevan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(44.5116055317521, 40.1830965941419, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Medellín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.56359, 6.25184, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bucaramanga'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.1278288762705, 7.13203905820228, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Phnom Penh'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(104.914688621186, 11.5519759885584, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jakarta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.84513, -6.21462, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.2019831325557, 19.0519057981587, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kobe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(135.169981647889, 34.6799878123297, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Quito'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-78.52495, -0.22985, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tabriz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(46.2993000304572, 38.0882373818939, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Beirut'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(35.5077623513777, 33.8739209756269, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Quanzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.578040672022, 24.9019621539765, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Doha'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(51.5329678942993, 25.2865560089066, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Amman'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(35.9313540668741, 31.9519711058274, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jabalpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(79.9531114726491, 23.1770028440736, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tampa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.4605667099667, 27.9489337929859, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Berlin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.3996027647005, 52.5237645222511, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Weifang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.09816396304, 36.722351761771, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.51809194111325, 12.0019226845236, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Panamá'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.51973, 8.9936, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuhan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.268071189583, 30.5819772093378, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Milwaukee'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.9219129420849, 43.0546009073042, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Changchun'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(125.338041485851, 43.8669544229325, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Haifa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(34.9780789203857, 32.8223572549196, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sydney'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(151.20732, -33.86785, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jeddah'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(39.19797, 21.54238, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nizhny Novgorod'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(43.9981485005, 56.334953080209, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jilin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.548096824398, 43.8519165811354, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Abidjan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.01266, 5.30966, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Stuttgart'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.19999629582275, 48.7799798778156, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Prague'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.42076, 50.08804, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Taipei'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.53185, 25.04776, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['København'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.5615398887033, 55.6805100490259, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Daegu'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(128.605025535344, 35.8687346149577, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baoding'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.478074851697, 38.8723755654906, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sholapur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.8980618307057, 17.6723517616949, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bangalore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.59369, 12.97194, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cilacap'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(109.015402383462, -7.7188195608868, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manchester'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.24993296127349, 53.5023611205623, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mashhad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(59.56796, 36.31559, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.49363, 29.42412, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Daqing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(124.998062237803, 46.5819049844668, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aden'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(45.0094901110702, 12.7797225127629, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['The Hague'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.26996130231345, 52.0800368439749, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhuhai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.565831941387, 22.2788902586129, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sendai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(140.8667, 38.25759, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Boston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.05977, 42.35843, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Helsinki'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(24.9321804828456, 60.177509232568, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aleppo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(37.16117, 36.20124, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhuzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.148087872522, 27.8319383502771, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Busan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(129.04028, 35.10278, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Makkah'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(39.8180935688427, 21.4319672402254, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bhopal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.4080471822743, 23.2519336708967, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Orlando'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.3819762151707, 28.5119226845899, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Memphis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.04898, 35.14953, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xiamen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.08187, 24.47979, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Washington, D.C.'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-77.0113644394371, 38.901495235087, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Quezon City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.029966185593, 14.6504351999447, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bangkok'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(100.514698793695, 13.751945064088, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Singapore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(103.853874819099, 1.29497932510594, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baltimore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.6219308456855, 39.3019359089167, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oakland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.2708, 37.80437, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vishakhapatnam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(83.20161, 17.68009, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Worth'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.32085, 32.72541, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-46.3348885150959, -23.9517780748547, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Changsha'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.968047182416, 28.2019157672708, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Datong'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.298052879032, 40.0819658161465, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tehran'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(56.29395, 35.31737, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bamako'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.00198496324969, 12.6519605263232, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Luoyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.468129376425, 34.6819336709425, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Seoul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.997785138202, 37.5682949583889, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cleveland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.69541, 41.4995, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Portland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.681935932133, 45.521969681728, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dar es Salaam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(39.2663959776946, -6.79806673612438, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Warangal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(79.5799897856874, 18.0099975778879, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Munich'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5730475889121, 48.1318878946292, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zibo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.048047182437, 36.8019334675005, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tangshan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.19243113426, 39.6262830361969, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lanzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(103.83987, 36.05701, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tianshui'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(105.74238, 34.57952, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ludhiana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.8703115865651, 30.9297079222298, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tijuana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.00371, 32.5027, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Luanda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.2324811826685, -8.83634025501265, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Accra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.218661598960693, 5.55198046444593, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hechi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.04985, 24.69834, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chennai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(80.2780528789003, 13.0919336708563, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Faridabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.3147208413872, 28.4352791586129, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Florence'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.2500003648413, 43.7800008331993, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Surabaya'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.748887433067, -7.24728996203748, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ankang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(109.020001585936, 32.6799806915534, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santo Domingo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-69.98857, 18.50012, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Caracas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-66.87919, 10.48801, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Maracay'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-67.5977529892041, 10.248825557238, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhanjiang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.34271, 21.28145, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.39182, 20.66682, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zaozhuang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.56807647931, 34.8819473021284, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tianjin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.1980732241, 39.1319721231089, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Stockholm'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.0953888741809, 59.3527058128658, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bandung'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(107.61861, -6.90389, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Suzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.59538, 31.30408, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Denver'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-104.985961810968, 39.7411339069655, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pittsburgh'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.0019312526002, 40.4319444538431, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hohhot'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(111.658049623818, 40.8219206501338, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kabul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(69.181314190705, 34.5186361449003, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Norfolk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.2800057390244, 36.8499587189139, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['London'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.118667702475932, 51.5019405883275, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lisbon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-9.14681216410213, 38.7246687364878, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kuwait'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(47.9763552876253, 29.3716634886296, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kawasaki'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(139.705001992959, 35.5299876088826, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baku'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(49.89201, 40.37767, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Lauderdale'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.141785524196, 26.1360648793528, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wenzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.66682, 27.99942, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Madurai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(78.1180813619646, 9.92197212299208, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Linyi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.328030092594, 35.0819350950979, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Melbourne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(144.973070375904, -37.8180854536963, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Heze'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.448102520968, 35.2319259398251, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tripoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.1800117580782, 32.8925000193537, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['George Town'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(100.32936786728, 5.41361315558424, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['San Francisco'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.417168773552, 37.7691956296874, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Qinhuangdao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.618080548329, 39.9323108682291, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ulsan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(129.315008038602, 35.548676631558, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Xining'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(101.768058982502, 36.621944453828, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Osaka'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(137.26667, 35.95, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nairobi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(36.8147110004714, -1.28140088323778, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Beijing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.386339825659, 39.930838089909, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Vancouver'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-123.123590076394, 49.2753624427117, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cologne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.9418, 45.57862, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tokyo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(139.69171, 35.6895, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kazan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(49.12214, 55.78874, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['São Paulo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-46.63611, -23.5475, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sacramento'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.471983946451, 38.5769672402941, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Columbus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.991955463224, 39.9819202432293, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bogotá'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.08175, 4.60971, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chengdu'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(104.068073630949, 30.6719458779578, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cali'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.5225, 3.43722, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Amritsar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(74.8680471822641, 31.6419383502926, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lubumbashi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(27.4780715961371, -11.6780789431752, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dhanbad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(86.4180398580916, 23.8023393512376, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hims'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(36.7180760720856, 34.7319047809689, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ankara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(32.8624457823566, 39.9291844440755, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Madrid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.68529754461252, 40.4019721231138, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Katowice'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(19.0200170478151, 50.2603804718972, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cairo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(31.2480223611261, 30.0519062051037, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Yekaterinburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(60.5980138163217, 56.8519757852891, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chelyabinsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(61.4367223124188, 55.1569371296833, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rotterdam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.47802846453459, 51.9219149535637, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.528074037884, 33.0023462685923, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Qiqihar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(123.988046368658, 47.3469228881156, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Multan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(71.453061830688, 30.2019228880472, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint Petersburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(30.31413, 59.93863, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cochabamba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-66.16997684901, -17.4100109671756, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Athens'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(23.7313752256794, 37.9852720905522, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Haikou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.320025593102, 20.0500022572581, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Samara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(50.1493492654986, 53.1969534057173, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brazzaville'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.2827436338487, -4.25723991319751, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Virginia Beach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.9802645859174, 36.8551601927613, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kuala Lumpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(101.68653, 3.1412, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Medina'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(39.61417, 24.46861, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alexandria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(29.9480500303917, 31.2019652057594, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Faisalabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(73.1080512512675, 31.4119265501612, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mbuji-Mayi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(23.5980500303664, -6.1480805707572, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Newcastle'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(29.9318, -27.75796, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Huzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.098051251456, 30.8723212441696, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lille'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.07806223731552, 50.6519149535585, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dushanbe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(68.7738793527017, 38.5600352163166, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Daejeon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(127.423082175964, 36.3374915322773, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leeds'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.54785, 53.79648, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vienna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.3646930967437, 48.2019611368168, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Harare'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(31.0427635720628, -17.8158438357778, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Duisburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.75001664086505, 51.4299731639591, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucknow'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(80.9130528789029, 26.8569849404424, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mannheim'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47001501326769, 49.5003751821806, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitória'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-40.33778, -20.31944, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Changzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.968033347809, 31.7819298053712, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San José'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-84.08333, 9.93333, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Omsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(73.3980077128572, 54.9919342813753, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Benin City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.61806223732571, 6.34242317278233, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jining'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.58139, 35.405, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rosario'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-60.6682534774577, -32.9491836795884, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Curitiba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-49.27306, -25.42778, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Neijiang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(105.048065492932, 29.5823224648676, 4326) ::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Turin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.66801462991208, 45.0723330443565, 4326) ::geography,3000)::geometry, 4326))" should true sql "SELECT ST_Intersects((geocode_namedplace(Array['Hong Kong'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.15769, 22.28552, 4326) ::geography,3000)::geometry, 4326))" should true - } -function test_geocoding_functions_namedplace_germany() { - # Germany tests - 2km of tolerance for the city point without country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kassel'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.5, 51.31667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bielefeld'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.53333, 52.03333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Erfurt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.03283, 50.9787, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Frankfurt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.53333, 49.68333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Berlin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.41053, 52.52437, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Osnabrück'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.0498, 52.27264, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Freiburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.85222, 47.9959, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Munich'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.57549, 48.13743, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bochum'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.21648, 51.48165, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Regensburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11923, 49.03451, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Salzgitter'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.33144, 52.15256, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saarbrücken'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98165, 49.2354, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dortmund'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.466, 51.51494, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Heilbronn'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22054, 49.13995, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Remscheid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.1925, 51.17983, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Düsseldorf'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.77616, 51.22172, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gelsenkirchen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.12283, 51.5075, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ulm'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.99155, 48.39841, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leipzig'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.37129, 51.33962, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trier'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.63935, 49.75565, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamm'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.82089, 51.68033, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Heidelberg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69079, 49.40768, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Magdeburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.62916, 52.12773, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Herne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.22572, 51.5388, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergisch Gladbach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.13298, 50.9856, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lübeck'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.68729, 53.86893, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Recklinghausen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.19738, 51.61379, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Koblenz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57883, 50.35357, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wolfsburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.7815, 52.42452, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingolstadt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.42372, 48.76508, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kiel'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.13489, 54.32133, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Braunschweig'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.52673, 52.26594, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Stuttgart'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.17702, 48.78232, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Karlsruhe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.40444, 49.00937, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Darmstadt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.65027, 49.87167, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Essen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.01228, 51.45657, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mönchengladbach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.44172, 51.18539, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Augsburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.89851, 48.37154, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bottrop'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.9285, 51.52392, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fürth'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98856, 49.47593, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Moers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.6326, 51.45342, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hagen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.47168, 51.36081, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremerhaven'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.57673, 53.55021, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aachen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.08342, 50.77664, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wiesbaden'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.24932, 50.08258, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oberhausen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88074, 51.47311, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.80777, 53.07516, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mannheim'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47955, 49.49671, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Paderborn'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.75439, 51.71905, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Duisburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.76516, 51.43247, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Krefeld'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.58615, 51.33921, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Siegen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.02431, 50.87481, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chemnitz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.92922, 50.8357, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Münster'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.62571, 51.96236, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dresden'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.73832, 51.05089, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.01534, 53.57532, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mainz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.2791, 49.98419, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Neuss'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.68504, 51.19807, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reutlingen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.20427, 48.49144, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Würzburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95121, 49.79391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leverkusen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98432, 51.0303, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rostock'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.14049, 54.0887, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Solingen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.0845, 51.17343, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pforzheim'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69892, 48.88436, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bonn'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.09549, 50.73438, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oldenburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.21467, 53.14118, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuppertal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.16755, 51.27027, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Potsdam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.06566, 52.39886, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nürnberg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.07752, 49.45421, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Köln'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.95, 50.93333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mülheim an der Ruhr'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88333, 51.43333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hannover'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.73322, 52.37052, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ludwigshafen am Rhein'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.44641, 49.48121, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cottbus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.32888, 51.75769, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Erlangen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.00783, 49.59099, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hildesheim'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95112, 52.15077, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5899, 50.92878, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Göttingen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.93228, 51.53443, 4326)::geography,3000)::geometry, 4326))" should true - # Germany tests - 2km of tolerance for the city point with country + +function test_geocoding_functions_namedplace_kassel_deu() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kassel'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.5, 51.31667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bielefeld'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.53333, 52.03333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Erfurt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.03283, 50.9787, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Frankfurt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.53333, 49.68333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Berlin'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.41053, 52.52437, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Osnabrück'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.0498, 52.27264, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Freiburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.85222, 47.9959, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Munich'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.57549, 48.13743, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bochum'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.21648, 51.48165, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Regensburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11923, 49.03451, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Salzgitter'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.33144, 52.15256, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saarbrücken'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98165, 49.2354, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dortmund'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.466, 51.51494, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Heilbronn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22054, 49.13995, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Remscheid'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.1925, 51.17983, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Düsseldorf'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.77616, 51.22172, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gelsenkirchen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.12283, 51.5075, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Halle'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.36083, 52.06007, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ulm'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.99155, 48.39841, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leipzig'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.37129, 51.33962, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trier'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.63935, 49.75565, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamm'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.82089, 51.68033, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Heidelberg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69079, 49.40768, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Magdeburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.62916, 52.12773, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Herne'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.22572, 51.5388, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergisch Gladbach'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.13298, 50.9856, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lübeck'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.68729, 53.86893, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Recklinghausen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.19738, 51.61379, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Koblenz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57883, 50.35357, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wolfsburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.7815, 52.42452, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingolstadt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.42372, 48.76508, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kiel'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.13489, 54.32133, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Braunschweig'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.52673, 52.26594, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Stuttgart'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.17702, 48.78232, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Karlsruhe'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.40444, 49.00937, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Darmstadt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.65027, 49.87167, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Essen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.01228, 51.45657, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mönchengladbach'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.44172, 51.18539, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Augsburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.89851, 48.37154, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bottrop'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.9285, 51.52392, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fürth'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98856, 49.47593, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Moers'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.6326, 51.45342, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hagen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.47168, 51.36081, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremerhaven'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.57673, 53.55021, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aachen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.08342, 50.77664, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wiesbaden'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.24932, 50.08258, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oberhausen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88074, 51.47311, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.80777, 53.07516, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mannheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47955, 49.49671, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Paderborn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.75439, 51.71905, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Duisburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.76516, 51.43247, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Krefeld'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.58615, 51.33921, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Siegen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.02431, 50.87481, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chemnitz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.92922, 50.8357, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Münster'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.62571, 51.96236, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dresden'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.73832, 51.05089, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.01534, 53.57532, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mainz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.2791, 49.98419, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Neuss'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.68504, 51.19807, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reutlingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.20427, 48.49144, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Würzburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95121, 49.79391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leverkusen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98432, 51.0303, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rostock'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.14049, 54.0887, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Solingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.0845, 51.17343, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pforzheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69892, 48.88436, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bonn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.09549, 50.73438, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oldenburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.21467, 53.14118, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuppertal'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.16755, 51.27027, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Potsdam'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.06566, 52.39886, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nuremberg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.07752, 49.45421, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cologne'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.95, 50.93333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mülheim an der Ruhr'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88333, 51.43333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hanover'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.73322, 52.37052, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ludwigshafen am Rhein'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.44641, 49.48121, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cottbus'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.32888, 51.75769, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Erlangen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.00783, 49.59099, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hildesheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95112, 52.15077, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jena'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5899, 50.92878, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Göttingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.93228, 51.53443, 4326)::geography,3000)::geometry, 4326))" should true + } -function test_geocoding_functions_namedplace_italy() { +function test_geocoding_functions_namedplace_bielefeld_deu() { - # Italy tests - 2km of tolerance for the city point without country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pescara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20283, 42.4584, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Acerra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.37261, 40.94744, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Acireale'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.16325, 37.62606, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Afragola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.31323, 40.9242, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Agrigento'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.59351, 37.32744, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alessandria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.61007, 44.90924, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Altamura'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.54952, 40.82664, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ancona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.50337, 43.5942, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Andria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.29797, 41.23117, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Anzio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.61883, 41.48493, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aprilia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.65729, 41.58808, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Arezzo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.86867, 43.44708, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ascoli Piceno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.60658, 42.85185, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Asti'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.20751, 44.90162, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Avellino'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79652, 40.92033, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aversa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20745, 40.97259, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bagheria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.51237, 38.07892, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bari'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.8554, 41.11148, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Barletta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.28165, 41.31429, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Battipaglia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.9876, 40.6045, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Siena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.3259, 43.32215, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Benevento'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.78101, 41.1256, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergamo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.66721, 45.69601, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bisceglie'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.49492, 41.24106, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bitonto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.69086, 41.11006, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bologna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33875, 44.49381, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bolzano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33982, 46.49067, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brescia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.21472, 45.53558, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brindisi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.93607, 40.63215, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Busto Arsizio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.84914, 45.61128, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Caltanissetta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.05163, 37.48997, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Campobasso'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.66737, 41.55947, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Carpi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.39472, 45.1356, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Carrara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.06049, 44.05405, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Casalnuovo di Napoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34993, 40.90834, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Caserta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34002, 41.07619, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cava de'' Tirreni'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70564, 40.70091, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['L’Aquila'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.39954, 42.35055, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Casoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.29363, 40.90906, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellammare di Stabia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.48685, 40.70211, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Catania'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.07041, 37.49223, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Catanzaro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.60086, 38.88247, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cerignola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.8998, 41.26383, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cesena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.24315, 44.1391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chieti'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.16163, 42.35296, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chioggia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.27774, 45.21857, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cinisello Balsamo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22104, 45.55646, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Civitavecchia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79674, 42.09325, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Collegno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57832, 45.07919, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Como'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.08065, 45.80079, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cosenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.25201, 39.30422, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cremona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.02297, 45.14047, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Crotone'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.10997, 39.0823, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuneo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.54828, 44.39071, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ercolano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.36382, 40.8138, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Faenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.88334, 44.2857, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.01665, 43.84052, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.60868, 44.84346, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fiumicino'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.68488, 45.89938, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Florence'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.24626, 43.77925, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Foggia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55188, 41.45845, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Foligno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.70664, 42.95324, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Forlì'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.05245, 44.22054, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gallarate'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.79164, 45.66019, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.23704, 37.0757, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Genoa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91519, 44.4264, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Giugliano in Campania'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.19557, 40.93188, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Grosseto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.10955, 42.76871, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guidonia Montecelio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.72238, 41.99362, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Imola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.7132, 44.35916, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lamezia Terme'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.3092, 38.96589, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Spezia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.83632, 44.11096, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lecce'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.17244, 40.35481, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Legnano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91355, 45.5947, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Livorno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32615, 43.54427, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.47234, 43.8497, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manfredonia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.91038, 41.62746, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marano di Napoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.17476, 40.89601, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marsala'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.4983, 37.86736, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Massa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.11869, 44.02079, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Matera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59723, 40.66983, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazara del Vallo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.59304, 37.65418, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Messina'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55256, 38.19394, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Modena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92539, 44.64783, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Modica'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.76976, 36.8499, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Molfetta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59503, 41.19695, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncalieri'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.69202, 45.0031, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Monza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.27246, 45.58005, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Novara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.62328, 45.44834, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Olbia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.50395, 40.92334, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Palermo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.33561, 38.13205, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Parma'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32618, 44.79935, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pavia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.15917, 45.19205, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Perugia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.38878, 43.1122, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pesaro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.895, 43.90121, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Piacenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.70462, 45.04202, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pisa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.4036, 43.70853, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pistoia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92365, 43.93064, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pomezia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.50015, 41.66369, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pordenone'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.66051, 45.95689, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Portici'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.33716, 40.81563, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Potenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.80794, 40.64175, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozzuoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.15321, 40.82767, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Prato'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.08278, 43.87309, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Quartu Sant''Elena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.25004, 39.22935, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ragusa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70689, 36.89639, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ravenna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.20121, 44.41344, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Calabria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.66129, 38.11047, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rho'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.05182, 45.52812, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rimini'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.56528, 44.05755, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rome'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.51133, 41.89193, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rovigo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79109, 45.07387, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Salerno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79328, 40.67545, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Severo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.38148, 41.68564, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sassari'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.55037, 40.72787, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Savona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47715, 44.30905, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Scafati'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52919, 40.75766, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Scandicci'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.18794, 43.75423, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sesto San Giovanni'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.23401, 45.53449, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Taranto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.25478, 40.41639, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Teramo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.69901, 42.66123, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Terni'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.63667, 42.56184, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tivoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.80317, 41.95781, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torre del Greco'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.39782, 40.77939, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trani'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.41011, 41.27733, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trapani'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.54127, 38.01391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trento'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.12108, 46.06787, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Treviso'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.23614, 45.66908, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trieste'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.7903, 45.64325, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Turin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.68682, 45.07049, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Udine'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.24458, 46.0637, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Varese'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.82223, 45.81934, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Velletri'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.78103, 41.66784, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Venice'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.33265, 45.43713, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Verona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98444, 45.4299, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Viareggio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.25581, 43.87145, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vicenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5475, 45.54672, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigevano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.85437, 45.31407, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Viterbo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11141, 42.42322, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vittoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52788, 36.95151, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Emilia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.63125, 44.69825, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanremo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.7772, 43.81725, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cagliari'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.11917, 39.23054, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bielefeld'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.53333, 52.03333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_erfurt_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Erfurt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.03283, 50.9787, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_frankfurt_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Frankfurt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.53333, 49.68333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_berlin_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Berlin'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.41053, 52.52437, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_osnabrück_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Osnabrück'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.0498, 52.27264, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_freiburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Freiburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.85222, 47.9959, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_munich_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Munich'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.57549, 48.13743, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bochum_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bochum'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.21648, 51.48165, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_regensburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Regensburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11923, 49.03451, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_salzgitter_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salzgitter'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.33144, 52.15256, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_saarbrücken_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saarbrücken'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98165, 49.2354, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_dortmund_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dortmund'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.466, 51.51494, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_heilbronn_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Heilbronn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22054, 49.13995, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_remscheid_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Remscheid'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.1925, 51.17983, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_düsseldorf_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Düsseldorf'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.77616, 51.22172, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_gelsenkirchen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gelsenkirchen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.12283, 51.5075, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_halle_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Halle'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.36083, 52.06007, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ulm_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ulm'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.99155, 48.39841, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_leipzig_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leipzig'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.37129, 51.33962, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_trier_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trier'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.63935, 49.75565, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hamm_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamm'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.82089, 51.68033, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_heidelberg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Heidelberg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69079, 49.40768, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_magdeburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Magdeburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.62916, 52.12773, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_herne_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Herne'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.22572, 51.5388, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bergisch_gladbach_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergisch Gladbach'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.13298, 50.9856, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lübeck_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lübeck'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.68729, 53.86893, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_recklinghausen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Recklinghausen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.19738, 51.61379, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_koblenz_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Koblenz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57883, 50.35357, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_wolfsburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wolfsburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.7815, 52.42452, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ingolstadt_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingolstadt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.42372, 48.76508, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_kiel_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kiel'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.13489, 54.32133, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_braunschweig_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Braunschweig'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.52673, 52.26594, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_stuttgart_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stuttgart'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.17702, 48.78232, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_karlsruhe_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Karlsruhe'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.40444, 49.00937, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_darmstadt_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Darmstadt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.65027, 49.87167, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_essen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Essen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.01228, 51.45657, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mönchengladbach_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mönchengladbach'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.44172, 51.18539, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_augsburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Augsburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.89851, 48.37154, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bottrop_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bottrop'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.9285, 51.52392, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_fürth_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fürth'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98856, 49.47593, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_moers_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moers'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.6326, 51.45342, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hagen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hagen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.47168, 51.36081, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bremerhaven_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremerhaven'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.57673, 53.55021, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_aachen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aachen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.08342, 50.77664, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_wiesbaden_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wiesbaden'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.24932, 50.08258, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_oberhausen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oberhausen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88074, 51.47311, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bremen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.80777, 53.07516, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mannheim_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mannheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47955, 49.49671, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_paderborn_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paderborn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.75439, 51.71905, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_duisburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Duisburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.76516, 51.43247, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_krefeld_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Krefeld'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.58615, 51.33921, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_siegen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Siegen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.02431, 50.87481, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_chemnitz_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chemnitz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.92922, 50.8357, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_münster_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Münster'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.62571, 51.96236, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_dresden_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dresden'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.73832, 51.05089, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hamburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.01534, 53.57532, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mainz_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mainz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.2791, 49.98419, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_neuss_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Neuss'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.68504, 51.19807, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_reutlingen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reutlingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.20427, 48.49144, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_würzburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Würzburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95121, 49.79391, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_leverkusen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leverkusen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98432, 51.0303, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_rostock_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rostock'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.14049, 54.0887, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_solingen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Solingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.0845, 51.17343, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pforzheim_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pforzheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69892, 48.88436, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bonn_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bonn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.09549, 50.73438, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_oldenburg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oldenburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.21467, 53.14118, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_wuppertal_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuppertal'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.16755, 51.27027, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_potsdam_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Potsdam'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.06566, 52.39886, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_nuremberg_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nuremberg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.07752, 49.45421, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cologne_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cologne'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.95, 50.93333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mulheim_an_der_ruhr_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mülheim an der Ruhr'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88333, 51.43333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hanover_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hanover'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.73322, 52.37052, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ludwigshafen_am_rhein_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ludwigshafen am Rhein'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.44641, 49.48121, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cottbus_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cottbus'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.32888, 51.75769, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_erlangen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Erlangen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.00783, 49.59099, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hildesheim_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hildesheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95112, 52.15077, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_jena_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jena'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5899, 50.92878, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_göttingen_deu() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Göttingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.93228, 51.53443, 4326)::geography,3000)::geometry, 4326))" should true + +} # Italy tests - 2km of tolerance for the city point with country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pescara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20283, 42.4584, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Acerra'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.37261, 40.94744, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Acireale'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.16325, 37.62606, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Afragola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.31323, 40.9242, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Agrigento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.59351, 37.32744, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alessandria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.61007, 44.90924, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Altamura'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.54952, 40.82664, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ancona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.50337, 43.5942, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Andria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.29797, 41.23117, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Anzio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.61883, 41.48493, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aprilia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.65729, 41.58808, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Arezzo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.86867, 43.44708, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ascoli Piceno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.60658, 42.85185, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Asti'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.20751, 44.90162, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Avellino'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79652, 40.92033, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aversa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20745, 40.97259, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bagheria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.51237, 38.07892, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.8554, 41.11148, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Barletta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.28165, 41.31429, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Battipaglia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.9876, 40.6045, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Siena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.3259, 43.32215, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Benevento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.78101, 41.1256, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergamo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.66721, 45.69601, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bisceglie'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.49492, 41.24106, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bitonto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.69086, 41.11006, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bologna'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33875, 44.49381, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bolzano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33982, 46.49067, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brescia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.21472, 45.53558, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brindisi'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.93607, 40.63215, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Busto Arsizio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.84914, 45.61128, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Caltanissetta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.05163, 37.48997, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Campobasso'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.66737, 41.55947, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Carpi'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.39472, 45.1356, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Carrara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.06049, 44.05405, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Casalnuovo di Napoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34993, 40.90834, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Caserta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34002, 41.07619, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cava de'' Tirreni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70564, 40.70091, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['L’Aquila'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.39954, 42.35055, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Casoria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.29363, 40.90906, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellammare di Stabia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.48685, 40.70211, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Catania'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.07041, 37.49223, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Catanzaro'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.60086, 38.88247, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cerignola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.8998, 41.26383, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cesena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.24315, 44.1391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chieti'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.16163, 42.35296, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chioggia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.27774, 45.21857, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cinisello Balsamo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22104, 45.55646, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Civitavecchia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79674, 42.09325, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Collegno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57832, 45.07919, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Como'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.08065, 45.80079, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cosenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.25201, 39.30422, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cremona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.02297, 45.14047, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Crotone'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.10997, 39.0823, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuneo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.54828, 44.39071, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ercolano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.36382, 40.8138, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Faenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.88334, 44.2857, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.01665, 43.84052, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.60868, 44.84346, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fiumicino'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.68488, 45.89938, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Florence'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.24626, 43.77925, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Foggia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55188, 41.45845, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Foligno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.70664, 42.95324, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Forlì'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.05245, 44.22054, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gallarate'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.79164, 45.66019, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gela'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.23704, 37.0757, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Genoa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91519, 44.4264, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Giugliano in Campania'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.19557, 40.93188, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Grosseto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.10955, 42.76871, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guidonia Montecelio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.72238, 41.99362, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Imola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.7132, 44.35916, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lamezia Terme'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.3092, 38.96589, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Spezia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.83632, 44.11096, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Latina'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.9043, 41.46614, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lecce'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.17244, 40.35481, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Legnano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91355, 45.5947, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Livorno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32615, 43.54427, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucca'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.47234, 43.8497, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manfredonia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.91038, 41.62746, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marano di Napoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.17476, 40.89601, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marsala'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.4983, 37.86736, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Massa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.11869, 44.02079, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Matera'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59723, 40.66983, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazara del Vallo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.59304, 37.65418, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Messina'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55256, 38.19394, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Milan'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.17278, 45.59282, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Modena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92539, 44.64783, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Modica'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.76976, 36.8499, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Molfetta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59503, 41.19695, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncalieri'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.69202, 45.0031, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Monza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.27246, 45.58005, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Novara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.62328, 45.44834, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Olbia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.50395, 40.92334, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Palermo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.33561, 38.13205, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Parma'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32618, 44.79935, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pavia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.15917, 45.19205, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Perugia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.38878, 43.1122, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pesaro'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.895, 43.90121, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Piacenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.70462, 45.04202, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pisa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.4036, 43.70853, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pistoia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92365, 43.93064, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pomezia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.50015, 41.66369, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pordenone'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.66051, 45.95689, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Portici'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.33716, 40.81563, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Potenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.80794, 40.64175, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozzuoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.15321, 40.82767, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Prato'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.08278, 43.87309, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Quartu Sant''Elena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.25004, 39.22935, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ragusa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70689, 36.89639, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ravenna'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.20121, 44.41344, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Calabria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.66129, 38.11047, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rho'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.05182, 45.52812, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rimini'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.56528, 44.05755, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rome'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.51133, 41.89193, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rovigo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79109, 45.07387, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Salerno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79328, 40.67545, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Severo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.38148, 41.68564, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sassari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.55037, 40.72787, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Savona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47715, 44.30905, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Scafati'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52919, 40.75766, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Scandicci'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.18794, 43.75423, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sesto San Giovanni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.23401, 45.53449, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Taranto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.25478, 40.41639, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Teramo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.69901, 42.66123, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Terni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.63667, 42.56184, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tivoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.80317, 41.95781, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torre del Greco'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.39782, 40.77939, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trani'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.41011, 41.27733, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trapani'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.54127, 38.01391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.12108, 46.06787, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Treviso'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.23614, 45.66908, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Trieste'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.7903, 45.64325, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Turin'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.68682, 45.07049, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Udine'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.24458, 46.0637, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Varese'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.82223, 45.81934, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Velletri'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.78103, 41.66784, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Venice'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.33265, 45.43713, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Verona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98444, 45.4299, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Viareggio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.25581, 43.87145, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vicenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5475, 45.54672, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigevano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.85437, 45.31407, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Viterbo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11141, 42.42322, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vittoria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52788, 36.95151, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Naples'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.24641, 40.85631, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Padua'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.88586, 45.40797, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Emilia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.63125, 44.69825, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanremo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.7772, 43.81725, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Syracuse'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.27628, 37.08415, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cagliari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.11917, 39.23054, 4326)::geography,3000)::geometry, 4326))" should true + +function test_geocoding_functions_namedplace_pescara_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pescara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20283, 42.4584, 4326)::geography,3000)::geometry, 4326))" should true + } -function test_geocoding_functions_namedplace_spain() { +function test_geocoding_functions_namedplace_acerra_ita() { - # Spain tests - 2km of tolerance for the city point with no country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Palmas de Gran Canaria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.41343, 28.09973, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Riveira'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.33333, 42.85, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Feliú de Llobregat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.05, 41.38333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro de Ribas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.76667, 41.26667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Eulalia del Río'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.53409, 38.98457, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Lucía de Tirajana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.54071, 27.91174, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Perpetua de Moguda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.18333, 41.53333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Vicente del Raspeig'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5255, 38.3964, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vendrell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.53333, 41.21667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villafranca del Panadés'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.7, 41.35, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vinaroz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.47559, 40.47033, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zarauz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.16992, 43.28444, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá la Real'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92301, 37.4614, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcantarilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.21714, 37.96939, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcázar de San Juan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.20827, 39.39011, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcobendas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.64197, 40.54746, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcorcón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.82487, 40.34582, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcoy'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.47432, 38.70545, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alfafar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.38333, 39.41667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Algeciras'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.45051, 36.13326, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Algemesí'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43572, 39.19042, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Algete'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.49743, 40.59711, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhama de Murcia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.42507, 37.85103, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhaurín de la Torre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56139, 36.66401, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhaurín el Grande'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.68728, 36.643, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alicante'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.48149, 38.34517, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almansa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.09713, 38.86917, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almendralejo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.40747, 38.68316, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almería'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.45974, 36.83814, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almonte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.51667, 37.2647, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almuñécar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.69072, 36.73393, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Altea'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.05139, 38.59885, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Amposta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.58103, 40.71308, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Andújar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.05077, 38.03922, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Antequera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56123, 37.01938, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aranda de Duero'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.6892, 41.67041, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aranjuez'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.60246, 40.03108, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Arcos de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.81056, 36.75075, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Armilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.61854, 37.14102, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Arona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.68102, 28.09962, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Arrecife'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.54769, 28.96302, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Arucas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.52325, 28.11983, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aspe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.76721, 38.34511, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ávila'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.69951, 40.65724, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Avilés'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92483, 43.55473, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ayamonte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.40266, 37.20994, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Azuqueca de Henares'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.25992, 40.56688, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Badajoz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.97061, 38.87789, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Badalona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.24741, 41.45004, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.32245, 37.6167, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Barañáin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.67731, 42.80567, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Barcelona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.15899, 41.38879, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Basauri'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.8858, 43.2397, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.77259, 37.49073, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Benalmádena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56937, 36.59548, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Benicarló'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.42709, 40.4165, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Benidorm'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.13098, 38.53816, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bétera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45, 39.58333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bilbao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.92528, 43.26271, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Blanes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.79036, 41.67419, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Boadilla del Monte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87835, 40.405, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Burgos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.67527, 42.35022, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Burriana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08499, 39.88901, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cabra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.44206, 37.47249, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cáceres'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.37224, 39.47649, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calafell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.5683, 41.19997, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calahorra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.96521, 42.30506, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calatayud'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.64318, 41.35353, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Camargo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.88498, 43.40744, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Camas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.03314, 37.40202, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.34736, 43.29438, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambrils'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.05244, 41.07479, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Carballo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.69104, 43.213, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Carcaixent'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.44812, 39.1218, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cártama'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63297, 36.71068, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Castrillón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.79217, 43.39788, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Castro-Urdiales'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.22043, 43.38285, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Catarroja'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.4, 39.4, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ceuta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.31979, 35.88933, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chiclana de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.14941, 36.41915, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciempozuelos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.62103, 40.15913, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cieza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.41987, 38.23998, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciudad Real'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92907, 38.98626, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Coín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.75639, 36.65947, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Colmenar Viejo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.76762, 40.65909, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Conil de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.0885, 36.27719, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Coria del Río'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.0541, 37.28766, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Coslada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.56129, 40.42378, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Crevillente'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.80975, 38.24994, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cullera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.25, 39.16667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Culleredo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.38858, 43.28788, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Denia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.10574, 38.84078, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Don Benito'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.86162, 38.95627, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dos Hermanas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92088, 37.28287, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Durango'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.6338, 43.17124, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Écija'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.0826, 37.5422, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Elche'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.70107, 38.26218, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Elda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79157, 38.47783, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['El Ejido'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.81456, 36.77629, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['El Masnou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3188, 41.47978, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['El Prat de Llobregat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.09472, 41.32784, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['El Puerto de Santa María'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.23298, 36.59389, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Erandio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.94502, 43.30788, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Estepona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.14589, 36.42764, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrol'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.23689, 43.48321, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Figueras'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.02559, 43.53943, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuengirola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.62473, 36.53998, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuenlabrada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.79415, 40.28419, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Galapagar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.00426, 40.5783, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gáldar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.6502, 28.14701, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Getafe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.73295, 40.30571, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gijón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.66152, 43.53573, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Granada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.60667, 37.18817, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Granadilla de Abona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.57599, 28.11882, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Granollers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28773, 41.60797, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadix'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.13922, 37.29932, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guía de Isora'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.77947, 28.21154, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hellín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.70096, 38.5106, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Huelva'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.94004, 37.26638, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Huesca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.4087, 42.13615, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.57225, 38.62533, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibiza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.43296, 38.90883, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Icod de los Vinos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.71188, 28.37241, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Igualada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.6172, 41.58098, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Illescas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.84704, 40.12213, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Inca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.91093, 39.7211, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingenio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.4406, 27.92086, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Isla Cristina'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.31667, 37.2, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jaén'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.79028, 37.76922, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jerez de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.13606, 36.68645, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jumilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.325, 38.47917, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Laguna de Duero'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.72332, 41.58151, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lalín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.11285, 42.66085, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Línea de la Concepción'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.34777, 36.16809, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Oliva'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.92912, 28.61052, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Orotava'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.52309, 28.39076, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Rinconada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.98091, 37.48613, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Rozas de Madrid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87371, 40.49292, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Torres de Cotillas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.24188, 38.02822, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lebrija'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.07529, 36.92077, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leganés'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.7635, 40.32718, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lepe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.20433, 37.25482, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lloret de Mar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.84565, 41.69993, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Logroño'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.45, 42.46667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lorca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.7017, 37.67119, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Barrios'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.49213, 36.18482, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Llanos de Aridane'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-17.91821, 28.65851, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Palacios y Villafranca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92433, 37.16181, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Realejos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.58335, 28.36739, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lugo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.55602, 43.00992, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Madrid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.70256, 40.4165, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mairena del Alcor'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.74951, 37.37301, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mairena del Aljarafe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.06391, 37.34461, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Majadahonda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87182, 40.47353, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Málaga'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.42034, 36.72016, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manacor'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.20955, 39.56964, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manises'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46349, 39.49139, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manlleu'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28476, 42.00228, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manresa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.82656, 41.72498, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Maracena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.63493, 37.20764, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marbella'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.88583, 36.51543, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.7, 42.38333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Martorell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.93062, 41.47402, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Martos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.97264, 37.72107, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mataró'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.4445, 41.54211, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazarrón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.31493, 37.5992, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Medina del Campo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.91413, 41.31239, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mejorada del Campo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.48194, 40.39283, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Melilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.93833, 35.29369, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mieres'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.76667, 43.25, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mijas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63728, 36.59575, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Miranda de Ebro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.94695, 42.6865, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mislata'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41825, 39.47523, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mogán'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.72538, 27.88385, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Moguer'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.83851, 37.27559, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Molina de Segura'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.20763, 38.05456, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.39551, 39.54555, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Montilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63805, 37.58627, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Morón de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.45403, 37.12084, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Móstoles'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.86496, 40.32234, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Motril'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.5179, 36.75066, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Muchamiel'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.44529, 38.4158, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Murcia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.13004, 37.98704, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Narón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.19082, 43.50175, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Navalcarnero'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.01197, 40.28908, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nerja'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.8744, 36.75278, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Níjar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.20595, 36.96655, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Novelda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.76773, 38.38479, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oleiros'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.31667, 43.33333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Olesa de Montserrat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.89407, 41.54372, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oliva'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11935, 38.91971, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Olot'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.49012, 42.18096, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Onda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.25, 39.96667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Orihuela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.94401, 38.08483, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oviedo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.84476, 43.36029, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Paiporta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41667, 39.43333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pájara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-14.1076, 28.35039, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Palafrugell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.1631, 41.91738, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Palencia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.52406, 42.00955, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Palma del Río'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.28121, 37.70024, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pamplona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.64323, 42.81687, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Paracuellos de Jarama'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.52775, 40.50353, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Parla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.76752, 40.23604, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Paterna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43333, 39.5, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pilar de la Horadada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79256, 37.86591, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pineda de Mar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.6889, 41.62763, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pinto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.69999, 40.24147, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Plasencia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.08845, 40.03116, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ponferrada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.59619, 42.54664, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pontevedra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.64435, 42.431, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Portugalete'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02064, 43.32099, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozuelo de Alarcón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.81338, 40.43293, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Priego de Córdoba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.19523, 37.43807, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto de la Cruz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.54867, 28.41397, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto del Rosario'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.86272, 28.50038, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puertollano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.10734, 38.68712, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto Real'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.19011, 36.52819, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Redondela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.6096, 42.28337, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Requena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.10044, 39.48834, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.10687, 41.15612, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rincón de la Victoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.27583, 36.71715, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ripollet'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.15739, 41.49686, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rojales'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.72544, 38.08799, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ronda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.16709, 36.74231, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Roquetas de Mar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.61475, 36.76419, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rota'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.3622, 36.62545, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rubí'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.03305, 41.49226, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sabadell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.10942, 41.54329, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sagunto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.26667, 39.68333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Salamanca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.66388, 40.96882, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Salou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.14163, 41.07663, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Salt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.79281, 41.97489, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Andrés del Rabanedo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.61671, 42.61174, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio Abad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.08, 16.89111, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Cristóbal de la Laguna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.85896, 19.31629, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Fernando'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.6898, 15.0286, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Fernando de Henares'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.53261, 40.42386, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Javier'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.83736, 37.80626, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San José'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-84.08333, 9.93333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Juan de Alicante'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43623, 38.40148, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Juan de Aznalfarache'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.03731, 37.35813, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanlúcar de Barrameda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.3515, 36.77808, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro del Pinatar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79102, 37.83568, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Roque'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.38415, 36.21067, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Sebastián'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.65, 14.56667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Sebastián de los Reyes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.61588, 40.54433, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Cruz de Tenerife'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.25462, 28.46824, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santander'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.80444, 43.46472, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Pola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5658, 38.19165, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago de Compostela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.54569, 42.88052, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santurce'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-61.18135, -30.18985, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Segovia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.11839, 40.94808, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sestao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.00716, 43.30975, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sevilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.97317, 37.38283, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Siero'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.4775, 43.08347, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sitges'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.81193, 41.23506, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Soria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.46883, 41.76401, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sueca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.31114, 39.2026, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tacoronte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.41016, 28.47688, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Talavera de la Reina'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.83076, 39.96348, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tarragona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.25, 41.11667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Teguise'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.56397, 29.06049, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Telde'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.41915, 27.99243, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Teruel'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.10646, 40.3456, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tías'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.64502, 28.96108, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Toledo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.55521, 41.66394, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tomares'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.04589, 37.37281, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tomelloso'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02156, 39.15759, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrejón de Ardoz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.46973, 40.45535, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrelavega'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.04785, 43.34943, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrelodones'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92658, 40.57654, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torremolinos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.49976, 36.62035, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrente'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.65593, 9.3762, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrevieja'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.68222, 37.97872, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tortosa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.5216, 40.81249, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Totana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.50229, 37.7688, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tres Cantos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.70806, 40.60092, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tudela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.60452, 42.06166, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Úbeda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.3705, 38.01328, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Utrera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.78093, 37.18516, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Valdemoro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.67887, 40.19081, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Valdepeñas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.38483, 38.76211, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Valencia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-68.00765, 10.16202, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Valladolid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.72372, 41.65518, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Valls'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.24993, 41.28612, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vélez-Málaga'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.10045, 36.77262, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vícar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.64273, 36.83155, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vich'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.31001, 46.15354, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.72264, 42.23282, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Viladecans'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.01427, 41.31405, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vilaseca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25528, 42.06174, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villajoyosa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.23346, 38.50754, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villanueva de la Serena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.7974, 38.97655, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villarreal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-93.22361, 16.26361, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villarrobledo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.60119, 39.26992, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villaviciosa de Odón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.90011, 40.35692, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.86568, 38.6373, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-36.3825, -5.24389, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Yecla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.11468, 38.61365, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zamora'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-102.28387, 19.9855, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zaragoza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.87734, 41.65606, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alacuás'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.461, 39.45568, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá de Guadaíra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.83951, 37.33791, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aldaya'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46005, 39.46569, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alfaz del Pi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.10321, 38.58055, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almazora'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.06313, 39.94729, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Barbate'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92186, 36.19237, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calviá'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.50621, 39.5657, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellón de la Plana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.03333, 39.98333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Collado Villalba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.00486, 40.63506, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuart de Poblet'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43937, 39.48139, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Éibar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.47158, 43.18493, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Esparraguera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.87025, 41.53809, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Galdácano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.83333, 43.23333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gandía'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.18333, 38.96667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guecho'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.01146, 43.35689, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hospitalet de Llobregat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.10028, 41.35967, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Irún'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78938, 43.33904, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Játiva'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.51852, 38.99042, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jávea'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.16667, 38.78333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Coruña'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.396, 43.37135, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Langreo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.68416, 43.29568, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lejona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.98333, 43.33333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mahón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.26583, 39.88853, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mollet del Vallés'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.21306, 41.54026, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Onteniente'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.60603, 38.82191, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Picasent'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45949, 39.3635, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla de Vallbona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.55468, 39.59747, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puente Genil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.76686, 37.38943, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Andrés de la Barca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.97187, 41.44659, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Adeje'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.726, 28.12271, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Adra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02055, 36.74961, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Águilas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.58289, 37.4063, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Agüimes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.44609, 27.90539, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Albacete'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.85643, 38.99424, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alboraya'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.35, 39.5, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá de Henares'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.35996, 40.48205, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acerra'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.37261, 40.94744, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_acireale_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acireale'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.16325, 37.62606, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_afragola_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Afragola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.31323, 40.9242, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_agrigento_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Agrigento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.59351, 37.32744, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alessandria_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alessandria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.61007, 44.90924, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_altamura_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Altamura'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.54952, 40.82664, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ancona_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ancona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.50337, 43.5942, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_andria_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Andria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.29797, 41.23117, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_anzio_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Anzio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.61883, 41.48493, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_aprilia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aprilia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.65729, 41.58808, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_arezzo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arezzo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.86867, 43.44708, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ascoli_piceno_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ascoli Piceno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.60658, 42.85185, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_asti_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Asti'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.20751, 44.90162, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_avellino_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Avellino'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79652, 40.92033, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_aversa_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aversa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20745, 40.97259, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bagheria_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bagheria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.51237, 38.07892, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bari_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.8554, 41.11148, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_barletta_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barletta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.28165, 41.31429, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_battipaglia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Battipaglia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.9876, 40.6045, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_siena_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Siena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.3259, 43.32215, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_benevento_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benevento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.78101, 41.1256, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bergamo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergamo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.66721, 45.69601, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bisceglie_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bisceglie'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.49492, 41.24106, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bitonto_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bitonto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.69086, 41.11006, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bologna_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bologna'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33875, 44.49381, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bolzano_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bolzano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33982, 46.49067, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_brescia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brescia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.21472, 45.53558, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_brindisi_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brindisi'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.93607, 40.63215, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_busto_arsizio_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Busto Arsizio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.84914, 45.61128, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_caltanissetta_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caltanissetta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.05163, 37.48997, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_campobasso_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Campobasso'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.66737, 41.55947, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_carpi_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carpi'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.39472, 45.1356, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_carrara_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carrara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.06049, 44.05405, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_casalnuovo_di_napoli_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Casalnuovo di Napoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34993, 40.90834, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_caserta_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caserta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34002, 41.07619, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cava_de_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cava de'' Tirreni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70564, 40.70091, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_l’aquila_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['L’Aquila'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.39954, 42.35055, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_casoria_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Casoria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.29363, 40.90906, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_castellammare_di_stabia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellammare di Stabia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.48685, 40.70211, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_catania_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catania'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.07041, 37.49223, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_catanzaro_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catanzaro'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.60086, 38.88247, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cerignola_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cerignola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.8998, 41.26383, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cesena_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cesena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.24315, 44.1391, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_chieti_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chieti'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.16163, 42.35296, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_chioggia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chioggia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.27774, 45.21857, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cinisello_balsamo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cinisello Balsamo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22104, 45.55646, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_civitavecchia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Civitavecchia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79674, 42.09325, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_collegno_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Collegno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57832, 45.07919, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_como_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Como'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.08065, 45.80079, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cosenza_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cosenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.25201, 39.30422, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cremona_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cremona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.02297, 45.14047, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_crotone_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Crotone'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.10997, 39.0823, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cuneo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuneo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.54828, 44.39071, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ercolano_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ercolano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.36382, 40.8138, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_faenza_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Faenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.88334, 44.2857, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_fano_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.01665, 43.84052, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ferrara_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.60868, 44.84346, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_fiumicino_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fiumicino'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.68488, 45.89938, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_florence_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Florence'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.24626, 43.77925, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_foggia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Foggia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55188, 41.45845, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_foligno_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Foligno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.70664, 42.95324, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_forlì_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Forlì'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.05245, 44.22054, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_gallarate_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gallarate'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.79164, 45.66019, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_gela_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gela'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.23704, 37.0757, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_genoa_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Genoa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91519, 44.4264, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_giugliano_in_campania_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Giugliano in Campania'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.19557, 40.93188, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_grosseto_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Grosseto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.10955, 42.76871, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_guidonia_montecelio_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guidonia Montecelio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.72238, 41.99362, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_imola_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Imola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.7132, 44.35916, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lamezia_terme_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lamezia Terme'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.3092, 38.96589, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_la_spezia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Spezia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.83632, 44.11096, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_latina_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Latina'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.9043, 41.46614, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lecce_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lecce'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.17244, 40.35481, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_legnano_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Legnano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91355, 45.5947, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_livorno_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Livorno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32615, 43.54427, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lucca_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucca'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.47234, 43.8497, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_manfredonia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manfredonia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.91038, 41.62746, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_marano_di_napoli_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marano di Napoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.17476, 40.89601, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_marsala_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marsala'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.4983, 37.86736, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_massa_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Massa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.11869, 44.02079, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_matera_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Matera'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59723, 40.66983, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mazara_del_vallo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazara del Vallo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.59304, 37.65418, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_messina_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Messina'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55256, 38.19394, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_milan_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Milan'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.17278, 45.59282, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_modena_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Modena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92539, 44.64783, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_modica_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Modica'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.76976, 36.8499, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_molfetta_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Molfetta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59503, 41.19695, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_moncalieri_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncalieri'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.69202, 45.0031, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_monza_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Monza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.27246, 45.58005, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_novara_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Novara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.62328, 45.44834, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_olbia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Olbia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.50395, 40.92334, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_palermo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palermo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.33561, 38.13205, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_parma_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Parma'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32618, 44.79935, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pavia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pavia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.15917, 45.19205, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_perugia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Perugia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.38878, 43.1122, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pesaro_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pesaro'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.895, 43.90121, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_piacenza_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Piacenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.70462, 45.04202, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pisa_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pisa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.4036, 43.70853, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pistoia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pistoia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92365, 43.93064, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pomezia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pomezia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.50015, 41.66369, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pordenone_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pordenone'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.66051, 45.95689, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_portici_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portici'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.33716, 40.81563, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_potenza_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Potenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.80794, 40.64175, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pozzuoli_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozzuoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.15321, 40.82767, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_prato_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Prato'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.08278, 43.87309, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_quartu_sant_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Quartu Sant''Elena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.25004, 39.22935, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ragusa_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ragusa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70689, 36.89639, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ravenna_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ravenna'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.20121, 44.41344, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_reggio_calabria_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Calabria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.66129, 38.11047, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_rho_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rho'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.05182, 45.52812, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_rimini_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rimini'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.56528, 44.05755, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_rome_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rome'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.51133, 41.89193, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_rovigo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rovigo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79109, 45.07387, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_salerno_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salerno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79328, 40.67545, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_san_severo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Severo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.38148, 41.68564, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sassari_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sassari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.55037, 40.72787, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_savona_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Savona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47715, 44.30905, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_scafati_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Scafati'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52919, 40.75766, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_scandicci_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Scandicci'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.18794, 43.75423, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sesto_san_giovanni_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sesto San Giovanni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.23401, 45.53449, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_taranto_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Taranto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.25478, 40.41639, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_teramo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teramo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.69901, 42.66123, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_terni_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Terni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.63667, 42.56184, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tivoli_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tivoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.80317, 41.95781, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_torre_del_greco_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torre del Greco'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.39782, 40.77939, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_trani_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trani'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.41011, 41.27733, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_trapani_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trapani'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.54127, 38.01391, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_trento_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.12108, 46.06787, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_treviso_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Treviso'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.23614, 45.66908, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_trieste_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trieste'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.7903, 45.64325, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_turin_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Turin'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.68682, 45.07049, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_udine_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Udine'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.24458, 46.0637, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_varese_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Varese'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.82223, 45.81934, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_velletri_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Velletri'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.78103, 41.66784, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_venice_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Venice'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.33265, 45.43713, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_verona_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Verona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98444, 45.4299, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_viareggio_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viareggio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.25581, 43.87145, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vicenza_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vicenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5475, 45.54672, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vigevano_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigevano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.85437, 45.31407, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_viterbo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viterbo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11141, 42.42322, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vittoria_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vittoria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52788, 36.95151, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_naples_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Naples'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.24641, 40.85631, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_padua_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Padua'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.88586, 45.40797, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_reggio_emilia_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Emilia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.63125, 44.69825, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanremo_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanremo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.7772, 43.81725, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_syracuse_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Syracuse'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.27628, 37.08415, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cagliari_ita() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cagliari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.11917, 39.23054, 4326)::geography,3000)::geometry, 4326))" should true + +} # Spain tests - 2km of tolerance for the city point with country + + function test_geocoding_functions_namedplace_laspalmasdegrancanaria_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Palmas de Gran Canaria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.41343, 28.09973, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Riveira'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.33333, 42.85, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Feliú de Llobregat'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.05, 41.38333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro de Ribas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.76667, 41.26667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Eulalia del Río'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.53409, 38.98457, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Lucía de Tirajana'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.54071, 27.91174, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_santaperpetuademoguda_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Perpetua de Moguda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.18333, 41.53333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanvicentedelraspeig_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Vicente del Raspeig'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5255, 38.3964, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vendrell_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vendrell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.53333, 41.21667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_villafrancadelpanadés_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villafranca del Panadés'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.7, 41.35, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vinaroz_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vinaroz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.47559, 40.47033, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_zarauz_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zarauz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.16992, 43.28444, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá la Real'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92301, 37.4614, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcantarilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.21714, 37.96939, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcázar de San Juan'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.20827, 39.39011, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alcira_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcira'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43333, 39.15, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alcobendas_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcobendas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.64197, 40.54746, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alcorcón_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcorcón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.82487, 40.34582, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alcoy_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcoy'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.47432, 38.70545, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alfafar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.38333, 39.41667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_algeciras_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Algeciras'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.45051, 36.13326, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Algemesí'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43572, 39.19042, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Algete'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.49743, 40.59711, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhama de Murcia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.42507, 37.85103, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhaurín de la Torre'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56139, 36.66401, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhaurín el Grande'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.68728, 36.643, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alicante_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alicante'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.48149, 38.34517, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almansa'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.09713, 38.86917, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Almendralejo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.40747, 38.68316, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_almería_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almería'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.45974, 36.83814, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_almonte_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almonte'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.51667, 37.2647, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_almuñécar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almuñécar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.69072, 36.73393, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_altea_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Altea'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.05139, 38.59885, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_amposta_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Amposta'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.58103, 40.71308, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_andújar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Andújar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.05077, 38.03922, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_antequera_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Antequera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56123, 37.01938, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_arandadeduero_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aranda de Duero'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.6892, 41.67041, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_aranjuez_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aranjuez'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.60246, 40.03108, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_arcosdelafrontera_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arcos de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.81056, 36.75075, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Armilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.61854, 37.14102, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_arona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.68102, 28.09962, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_arrecife_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arrecife'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.54769, 28.96302, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Arucas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.52325, 28.11983, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aspe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.76721, 38.34511, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ávila_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ávila'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.69951, 40.65724, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_avilés_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Avilés'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92483, 43.55473, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ayamonte_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ayamonte'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.40266, 37.20994, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Azuqueca de Henares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.25992, 40.56688, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_badajoz_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Badajoz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.97061, 38.87789, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_badalona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Badalona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.24741, 41.45004, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.32245, 37.6167, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_baracaldo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baracaldo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.99729, 43.29564, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Barañáin'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.67731, 42.80567, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_barcelona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barcelona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.15899, 41.38879, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_basauri_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Basauri'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.8858, 43.2397, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baza'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.77259, 37.49073, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_benalmádena_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benalmádena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56937, 36.59548, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_benicarló_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benicarló'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.42709, 40.4165, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_benidorm_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benidorm'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.13098, 38.53816, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bétera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45, 39.58333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bilbao_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bilbao'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.92528, 43.26271, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_blanes_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Blanes'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.79036, 41.67419, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_boadilladelmonte_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boadilla del Monte'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87835, 40.405, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_burgos_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Burgos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.67527, 42.35022, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_burriana_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Burriana'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08499, 39.88901, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cabra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.44206, 37.47249, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cáceres_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cáceres'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.37224, 39.47649, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cádiz_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cádiz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.29465, 36.52978, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_calafell_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calafell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.5683, 41.19997, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calahorra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.96521, 42.30506, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_calatayud_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calatayud'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.64318, 41.35353, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_calpe_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calpe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.0445, 38.6447, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Camargo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.88498, 43.40744, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_camas_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Camas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.03314, 37.40202, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambre'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.34736, 43.29438, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambrils'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.05244, 41.07479, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_campello_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Campello'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.09855, 40.51519, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_candelaria_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Candelaria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.37268, 28.3548, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Carballo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.69104, 43.213, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_carcaixent_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carcaixent'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.44812, 39.1218, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_carmona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carmona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.64608, 37.47125, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cartagena_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cartagena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.98623, 37.60512, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cártama_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cártama'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63297, 36.71068, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Castrillón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.79217, 43.39788, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_castrourdiales_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castro-Urdiales'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.22043, 43.38285, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_catarroja_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catarroja'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.4, 39.4, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ceuta_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ceuta'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.31979, 35.88933, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_chiclanadelafrontera_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chiclana de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.14941, 36.41915, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ciempozuelos_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciempozuelos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.62103, 40.15913, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cieza_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cieza'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.41987, 38.23998, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciudadela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.84144, 40.00112, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ciudadreal_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciudad Real'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92907, 38.98626, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_coín_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coín'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.75639, 36.65947, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_colmenarviejo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Colmenar Viejo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.76762, 40.65909, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_conildelafrontera_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Conil de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.0885, 36.27719, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_córdoba_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Córdoba'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.77275, 37.89155, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_coriadelrío_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coria del Río'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.0541, 37.28766, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_coslada_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coslada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.56129, 40.42378, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_crevillente_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Crevillente'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.80975, 38.24994, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cuenca_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuenca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.13333, 40.06667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cullera_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cullera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.25, 39.16667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Culleredo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.38858, 43.28788, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_denia_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Denia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.10574, 38.84078, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Don Benito'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.86162, 38.95627, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_doshermanas_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dos Hermanas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92088, 37.28287, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_durango_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Durango'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.6338, 43.17124, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_écija_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Écija'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.0826, 37.5422, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_elche_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Elche'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.70107, 38.26218, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_elda_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Elda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79157, 38.47783, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_elejido_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Ejido'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.81456, 36.77629, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_elmasnou_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Masnou'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3188, 41.47978, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_elpratdellobregat_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Prat de Llobregat'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.09472, 41.32784, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_elpuertodesantamaría_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Puerto de Santa María'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.23298, 36.59389, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Erandio'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.94502, 43.30788, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_estepona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Estepona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.14589, 36.42764, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ferrol_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrol'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.23689, 43.48321, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_figueras_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Figueras'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.02559, 43.53943, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_fuengirola_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuengirola'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.62473, 36.53998, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_fuenlabrada_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuenlabrada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.79415, 40.28419, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_galapagar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Galapagar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.00426, 40.5783, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gáldar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.6502, 28.14701, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_gerona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gerona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.82493, 41.98311, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_getafe_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Getafe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.73295, 40.30571, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_gijón_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gijón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.66152, 43.53573, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_granada_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Granada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.60667, 37.18817, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Granadilla de Abona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.57599, 28.11882, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_granollers_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Granollers'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28773, 41.60797, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_guadalajara_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.16185, 40.62862, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_guadix_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadix'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.13922, 37.29932, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guía de Isora'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.77947, 28.21154, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hellín'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.70096, 38.5106, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_huelva_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huelva'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.94004, 37.26638, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_huesca_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huesca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.4087, 42.13615, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ibi_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibi'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.57225, 38.62533, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ibiza_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibiza'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.43296, 38.90883, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Icod de los Vinos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.71188, 28.37241, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_igualada_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Igualada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.6172, 41.58098, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_illescas_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Illescas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.84704, 40.12213, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_inca_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Inca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.91093, 39.7211, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingenio'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.4406, 27.92086, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Isla Cristina'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.31667, 37.2, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_jaén_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jaén'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.79028, 37.76922, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_jerezdelafrontera_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jerez de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.13606, 36.68645, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_jumilla_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jumilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.325, 38.47917, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Estrada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.48842, 42.68911, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lagunadeduero_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Laguna de Duero'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.72332, 41.58151, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lalín'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.11285, 42.66085, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lalíneadelaconcepción_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Línea de la Concepción'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.34777, 36.16809, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_laoliva_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Oliva'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.92912, 28.61052, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_laorotava_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Orotava'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.52309, 28.39076, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_larinconada_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Rinconada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.98091, 37.48613, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lasrozasdemadrid_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Rozas de Madrid'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87371, 40.49292, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lastorresdecotillas_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Torres de Cotillas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.24188, 38.02822, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lebrija_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lebrija'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.07529, 36.92077, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_leganés_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leganés'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.7635, 40.32718, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_león_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['León'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.57032, 42.60003, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lepe_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lepe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.20433, 37.25482, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lérida_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lérida'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.62556, 41.61389, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_linares_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Linares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.63602, 38.09519, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_liria_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Liria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.59783, 39.62894, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lloretdemar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lloret de Mar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.84565, 41.69993, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_logroño_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Logroño'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.45, 42.46667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_loja_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Loja'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.15129, 37.16887, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lorca_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lorca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.7017, 37.67119, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_losbarrios_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Barrios'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.49213, 36.18482, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Llanos de Aridane'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-17.91821, 28.65851, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Palacios y Villafranca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92433, 37.16181, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_losrealejos_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Realejos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.58335, 28.36739, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lucena_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.48522, 37.40881, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lugo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lugo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.55602, 43.00992, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_madrid_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Madrid'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.70256, 40.4165, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mairenadelalcor_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mairena del Alcor'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.74951, 37.37301, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mairenadelaljarafe_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mairena del Aljarafe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.06391, 37.34461, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_majadahonda_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Majadahonda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87182, 40.47353, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_málaga_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Málaga'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.42034, 36.72016, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_manacor_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manacor'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.20955, 39.56964, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_manises_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manises'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46349, 39.49139, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_manlleu_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manlleu'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28476, 42.00228, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_manresa_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manresa'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.82656, 41.72498, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Maracena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.63493, 37.20764, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_marbella_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marbella'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.88583, 36.51543, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marín'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.7, 42.38333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_martorell_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Martorell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.93062, 41.47402, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_martos_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Martos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.97264, 37.72107, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mataró_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mataró'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.4445, 41.54211, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mazarrón_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazarrón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.31493, 37.5992, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_medinadelcampo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Medina del Campo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.91413, 41.31239, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mejoradadelcampo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mejorada del Campo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.48194, 40.39283, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_melilla_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Melilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.93833, 35.29369, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mérida_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mérida'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.34366, 38.91611, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mieres_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mieres'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.76667, 43.25, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mijas_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mijas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63728, 36.59575, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mirandadeebro_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Miranda de Ebro'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.94695, 42.6865, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mislata_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mislata'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41825, 39.47523, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mogán'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.72538, 27.88385, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Moguer'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.83851, 37.27559, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Molina de Segura'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.20763, 38.05456, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_moncada_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.39551, 39.54555, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mondragón_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mondragón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.48977, 43.06441, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_montilla_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63805, 37.58627, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Morón de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.45403, 37.12084, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_móstoles_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Móstoles'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.86496, 40.32234, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Motril'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.5179, 36.75066, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_muchamiel_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Muchamiel'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.44529, 38.4158, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_murcia_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Murcia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.13004, 37.98704, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Narón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.19082, 43.50175, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_navalcarnero_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Navalcarnero'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.01197, 40.28908, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_nerja_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nerja'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.8744, 36.75278, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_níjar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Níjar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.20595, 36.96655, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_novelda_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Novelda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.76773, 38.38479, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oleiros'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.31667, 43.33333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Olesa de Montserrat'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.89407, 41.54372, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_oliva_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oliva'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11935, 38.91971, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_olot_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Olot'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.49012, 42.18096, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_onda_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Onda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.25, 39.96667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_orense_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Orense'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.86407, 42.33669, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_orihuela_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Orihuela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.94401, 38.08483, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_oviedo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oviedo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.84476, 43.36029, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_paiporta_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paiporta'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41667, 39.43333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pájara'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-14.1076, 28.35039, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_palafrugell_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palafrugell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.1631, 41.91738, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_palencia_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palencia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.52406, 42.00955, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_palmadelrío_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palma del Río'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.28121, 37.70024, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_palmademallorca_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palma de Mallorca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.65024, 39.56939, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pamplona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pamplona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.64323, 42.81687, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_paracuellosdejarama_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paracuellos de Jarama'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.52775, 40.50353, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_parla_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Parla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.76752, 40.23604, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_paterna_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paterna'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43333, 39.5, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_petrel_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Petrel'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.77549, 38.48289, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pilardelahoradada_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pilar de la Horadada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79256, 37.86591, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pinedademar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pineda de Mar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.6889, 41.62763, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pinto_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pinto'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.69999, 40.24147, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_plasencia_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Plasencia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.08845, 40.03116, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ponferrada_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ponferrada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.59619, 42.54664, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pontevedra_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pontevedra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.64435, 42.431, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_portugalete_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portugalete'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02064, 43.32099, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_pozuelodealarcón_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozuelo de Alarcón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.81338, 40.43293, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Priego de Córdoba'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.19523, 37.43807, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto de la Cruz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.54867, 28.41397, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto del Rosario'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.86272, 28.50038, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_puertollano_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puertollano'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.10734, 38.68712, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_puertoreal_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto Real'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.19011, 36.52819, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_redondela_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Redondela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.6096, 42.28337, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rentería'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.43333, 43.31667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_requena_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Requena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.10044, 39.48834, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_reus_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reus'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.10687, 41.15612, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rincón de la Victoria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.27583, 36.71715, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ripollet'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.15739, 41.49686, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rojales'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.72544, 38.08799, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ronda_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ronda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.16709, 36.74231, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_roquetasdemar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Roquetas de Mar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.61475, 36.76419, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_rota_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rota'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.3622, 36.62545, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_rubí_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rubí'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.03305, 41.49226, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sabadell_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sabadell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.10942, 41.54329, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sagunto_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sagunto'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.26667, 39.68333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_salamanca_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salamanca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.66388, 40.96882, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_salou_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salou'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.14163, 41.07663, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_salt_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salt'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.79281, 41.97489, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Andrés del Rabanedo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.61671, 42.61174, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio Abad'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.99665, 37.61767, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Cristóbal de la Laguna'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.32014, 28.4853, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanfernando_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Fernando'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.19817, 36.4759, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanfernandodehenares_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Fernando de Henares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.53261, 40.42386, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanjavier_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Javier'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.83736, 37.80626, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanjosé_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['San José'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.10912, 36.76048, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Juan de Alicante'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43623, 38.40148, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Juan de Aznalfarache'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.03731, 37.35813, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanlúcardebarrameda_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanlúcar de Barrameda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.3515, 36.77808, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanpedrodelpinatar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro del Pinatar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79102, 37.83568, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanroque_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Roque'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.38415, 36.21067, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Sebastián'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.9, 43.56667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sansebastiándelosreyes_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Sebastián de los Reyes'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.61588, 40.54433, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_santacruzdetenerife_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Cruz de Tenerife'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.25462, 28.46824, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_santander_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santander'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.80444, 43.46472, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_santapola_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Pola'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5658, 38.19165, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_santiagodecompostela_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago de Compostela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.54569, 42.88052, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_santurce_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santurce'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.03248, 43.32842, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_segovia_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Segovia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.11839, 40.94808, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sestao_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sestao'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.00716, 43.30975, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sevilla_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sevilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.97317, 37.38283, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Siero'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.4775, 43.08347, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sitges_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sitges'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.81193, 41.23506, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_soria_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Soria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.46883, 41.76401, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sueca_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sueca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.31114, 39.2026, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tacoronte_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tacoronte'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.41016, 28.47688, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_talaveradelareina_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Talavera de la Reina'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.83076, 39.96348, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tarragona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tarragona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.25, 41.11667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_teguise_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teguise'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.56397, 29.06049, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_telde_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Telde'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.41915, 27.99243, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_teruel_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teruel'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.10646, 40.3456, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tías_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tías'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.64502, 28.96108, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_toledo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toledo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.02263, 39.8581, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tomares_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tomares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.04589, 37.37281, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tomelloso_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tomelloso'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02156, 39.15759, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_torrejóndeardoz_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrejón de Ardoz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.46973, 40.45535, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_torrelavega_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrelavega'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.04785, 43.34943, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_torrelodones_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrelodones'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92658, 40.57654, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_torremolinos_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torremolinos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.49976, 36.62035, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_torrente_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrente'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46546, 39.43705, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_torrevieja_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrevieja'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.68222, 37.97872, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tortosa_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tortosa'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.5216, 40.81249, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_totana_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Totana'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.50229, 37.7688, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_trescantos_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tres Cantos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.70806, 40.60092, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tudela_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tudela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.60452, 42.06166, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_úbeda_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Úbeda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.3705, 38.01328, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_utrera_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Utrera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.78093, 37.18516, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_valdemoro_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valdemoro'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.67887, 40.19081, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_valdepeñas_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valdepeñas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.38483, 38.76211, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_valencia_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valencia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.37739, 39.46975, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_valladolid_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valladolid'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.72372, 41.65518, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_valls_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valls'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.24993, 41.28612, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vélezmálaga_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vélez-Málaga'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.10045, 36.77262, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vícar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vícar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.64273, 36.83155, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vic_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vic'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25486, 41.93012, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vigo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.72264, 42.23282, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_viladecans_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viladecans'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.01427, 41.31405, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vilaseca_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vilaseca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25528, 42.06174, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_villajoyosa_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villajoyosa'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.23346, 38.50754, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_villanuevadelaserena_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villanueva de la Serena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.7974, 38.97655, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_villarreal_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villarreal'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.21533, 38.72572, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_villarrobledo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villarrobledo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.60119, 39.26992, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_villaviciosadeodón_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villaviciosa de Odón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.90011, 40.35692, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_villena_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.86568, 38.6373, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vitoria_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitoria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.67268, 42.84998, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_yecla_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yecla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.11468, 38.61365, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_zamora_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zamora'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.74456, 41.50633, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_zaragoza_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zaragoza'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.87734, 41.65606, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alacuás_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alacuás'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.461, 39.45568, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alcaládeguadaíra_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá de Guadaíra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.83951, 37.33791, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_aldaya_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aldaya'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46005, 39.46569, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Alfaz del Pi'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.10321, 38.58055, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_almazora_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almazora'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.06313, 39.94729, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_barbate_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barbate'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92186, 36.19237, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_calviá_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calviá'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.50621, 39.5657, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_castellóndelaplana_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellón de la Plana'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.03333, 39.98333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Collado Villalba'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.00486, 40.63506, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuart de Poblet'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43937, 39.48139, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_éibar_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Éibar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.47158, 43.18493, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_esparraguera_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Esparraguera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.87025, 41.53809, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_galdácano_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Galdácano'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.83333, 43.23333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_gandía_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gandía'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.18333, 38.96667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_guecho_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guecho'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.01146, 43.35689, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hospitaletdellobregat_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hospitalet de Llobregat'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.10028, 41.35967, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_irún_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Irún'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78938, 43.33904, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_játiva_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Játiva'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.51852, 38.99042, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_jávea_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jávea'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.16667, 38.78333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lacoruña_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Coruña'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.396, 43.37135, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_langreo_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Langreo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.68416, 43.29568, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lejona_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lejona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.98333, 43.33333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mahón_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mahón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.26583, 39.88853, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_molletdelvallés_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mollet del Vallés'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.21306, 41.54026, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_onteniente_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Onteniente'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.60603, 38.82191, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_picasent_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Picasent'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45949, 39.3635, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla de Vallbona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.55468, 39.59747, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_puentegenil_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puente Genil'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.76686, 37.38943, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Andrés de la Barca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.97187, 41.44659, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_adeje_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Adeje'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.726, 28.12271, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_adra_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Adra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02055, 36.74961, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_águilas_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Águilas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.58289, 37.4063, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_agüimes_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Agüimes'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.44609, 27.90539, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_albacete_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Albacete'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.85643, 38.99424, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alboraya_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alboraya'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.35, 39.5, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_alcaládehenares_esp() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá de Henares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.35996, 40.48205, 4326)::geography,3000)::geometry, 4326))" should true + } -function test_geocoding_functions_namedplace_france() { - - # France tests - 2km of tolerance for the city point without country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aix-en-Provence'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.44973, 43.5283, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Amiens'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3, 49.9, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Angers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.55, 47.46667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Besançon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.01815, 47.24878, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bordeaux'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5805, 44.84044, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Boulogne-Billancourt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25, 48.83333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Caen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.35912, 49.18585, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Argenteuil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25, 48.95, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Asnières-sur-Seine'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28333, 48.91667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aulnay-sous-Bois'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.49402, 48.93814, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Avignon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.80892, 43.94834, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calais'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.85635, 50.95194, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Clermont-Ferrand'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.08628, 45.77966, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Colombes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25404, 48.91882, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Créteil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.46667, 48.78333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dijon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.01667, 47.31667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort-de-France'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-61.07334, 14.60892, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Grenoble'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.71667, 45.16667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Rochelle'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.15, 46.16667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Le Havre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.10767, 49.4938, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Le Mans'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.2, 48, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lille'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.05858, 50.63297, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Limoges'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.25781, 45.83153, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lyon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.84671, 45.74846, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marseille'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.38107, 43.29695, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Metz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.17269, 49.11911, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Montpellier'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.87723, 43.61092, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Montreuil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.44322, 48.86415, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mulhouse'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.33333, 47.75, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nancy'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.18496, 48.68439, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanterre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.20675, 48.89198, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nantes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.55336, 47.21725, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nice'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.26608, 43.70313, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nîmes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.35, 43.83333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Orléans'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.90389, 47.90289, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Paris'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3488, 48.85341, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pau'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.36667, 43.3, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Perpignan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.89541, 42.69764, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Poitiers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.33333, 46.58333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reims'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.03333, 49.25, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rennes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.67429, 48.11198, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Roubaix'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.17456, 50.69421, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rouen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.09932, 49.44313, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint-Denis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(55.4504, -20.88231, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint-Étienne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.39, 45.43389, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint-Paul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(55.27071, -21.00963, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Strasbourg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.74553, 48.58392, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Toulon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.93333, 43.11667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Toulouse'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.44367, 43.60426, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tourcoing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.16117, 50.72391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tours'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.68333, 47.38333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Versailles'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.13333, 48.8, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villeurbanne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.88333, 45.76667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitry-sur-Seine'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.40332, 48.78716, 4326)::geography,3000)::geometry, 4326))" should true - - # France tests - 2km of tolerance for the city point with country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aix-en-Provence'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.44973, 43.5283, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Amiens'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3, 49.9, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Angers'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.55, 47.46667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Besançon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.01815, 47.24878, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bordeaux'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5805, 44.84044, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Boulogne-Billancourt'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25, 48.83333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brest'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.48333, 48.4, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Caen'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.35912, 49.18585, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Argenteuil'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25, 48.95, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Asnières-sur-Seine'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28333, 48.91667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aulnay-sous-Bois'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.49402, 48.93814, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Avignon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.80892, 43.94834, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calais'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.85635, 50.95194, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Clermont-Ferrand'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.08628, 45.77966, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Colombes'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25404, 48.91882, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Créteil'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.46667, 48.78333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dijon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.01667, 47.31667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Grenoble'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.71667, 45.16667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['La Rochelle'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.15, 46.16667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Le Havre'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.10767, 49.4938, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Le Mans'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.2, 48, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lille'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.05858, 50.63297, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Limoges'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.25781, 45.83153, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lyon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.84671, 45.74846, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Marseille'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.38107, 43.29695, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Metz'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.17269, 49.11911, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Montpellier'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.87723, 43.61092, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Montreuil'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.44322, 48.86415, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mulhouse'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.33333, 47.75, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nancy'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.18496, 48.68439, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanterre'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.20675, 48.89198, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nantes'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.55336, 47.21725, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nice'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.26608, 43.70313, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nîmes'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.35, 43.83333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Orléans'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.90389, 47.90289, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Paris'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3488, 48.85341, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Pau'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.36667, 43.3, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Perpignan'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.89541, 42.69764, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Poitiers'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.33333, 46.58333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reims'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.03333, 49.25, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rennes'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.67429, 48.11198, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Roubaix'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.17456, 50.69421, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rouen'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.09932, 49.44313, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint-Étienne'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.39, 45.43389, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Strasbourg'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.74553, 48.58392, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Toulon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.93333, 43.11667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Toulouse'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.44367, 43.60426, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tourcoing'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.16117, 50.72391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tours'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.68333, 47.38333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Versailles'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.13333, 48.8, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Villeurbanne'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.88333, 45.76667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitry-sur-Seine'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.40332, 48.78716, 4326)::geography,3000)::geometry, 4326))" should true -} - -function test_geocoding_functions_namedplace_northamerica() { - - # North America tests - 2km of tolerance for the city point without country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Philadelphia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.16379, 39.95233, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chihuahua'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.08889, 28.63528, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baltimore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.61219, 39.29038, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Columbus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.99879, 39.96118, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro Sula'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-88.025, 15.50417, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Culiacán'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-107.38782, 24.79032, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalupe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.25646, 25.67678, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aguascalientes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-102.28259, 21.88234, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Francisco'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.41942, 37.77493, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mississauga'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.6583, 43.5789, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reynosa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.28835, 26.08061, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saltillo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.0053, 25.42321, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Port-au-Prince'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-72.335, 18.53917, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Monterrey'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.31847, 25.67507, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nezahualcóyotl'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.45559, 17.25375, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Austin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.74306, 30.26715, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago de Querétaro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.38806, 20.58806, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Louisville'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-85.75941, 38.25424, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.49363, 29.42412, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Seattle'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.33207, 47.60621, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chicago'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.65005, 41.85003, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Memphis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.04898, 35.14953, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dallas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.80667, 32.78306, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Havana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.38304, 23.13302, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calgary'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-114.08529, 51.05011, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oklahoma City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.51643, 35.46756, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.20193, 19.04334, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guatemala City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.51327, 14.64072, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Vegas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.13722, 36.17497, 4326)::geography,10000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Detroit'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.04575, 42.33143, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Portland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.67621, 45.52345, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hermosillo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-110.97732, 29.1026, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Managua'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.2504, 12.13282, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mérida'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-89.61696, 20.97537, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Juárez'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.09582, 25.64724, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Edmonton'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.46871, 53.55014, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Morelia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.18443, 19.70078, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Luis Potosí'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.97916, 22.14982, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Houston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-95.36327, 29.76328, 4326)::geography,4000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Jose'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.89496, 37.33939, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['León'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.671, 21.13052, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexicali'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.45446, 32.62781, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Charlotte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.84313, 35.22709, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Diego'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.15726, 32.71533, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Phoenix'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-112.07404, 33.44838, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['El Paso'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.48693, 31.75872, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tegucigalpa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.20681, 14.0818, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.39182, 20.66682, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Denver'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-104.9847, 39.73915, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Acapulco'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.51028, 16.11417, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ottawa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.69812, 45.41117, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Worth'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.32085, 32.72541, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Boston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.05977, 42.35843, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexico City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.12766, 19.42847, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tijuana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.00371, 32.5027, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nashville'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.78444, 36.16589, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jacksonville'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.65565, 30.33218, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cancún'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.84656, 21.17429, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Angeles'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.24368, 34.05223, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Indianapolis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.15804, 39.76838, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.79358, 17.99702, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torreón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.38611, 18.41194, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zapopan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.38479, 20.72356, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vancouver'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-123.11934, 49.24966, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Toronto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.4163, 43.70011, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Winnipeg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.14704, 49.8844, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlaquepaque'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.29327, 20.64091, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlalnepantla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.19538, 19.54005, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ecatepec de Morelos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.06601, 19.61725, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chimalhuacán'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.95038, 19.42155, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Naucalpan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.23963, 19.47851, 4326)::geography,3000)::geometry, 4326))" should true # North America tests - 2km of tolerance for the city point with country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Philadelphia'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.16379, 39.95233, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chihuahua'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.08889, 28.63528, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Baltimore'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.61219, 39.29038, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Columbus'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.99879, 39.96118, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro Sula'], 'Honduras')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-88.025, 15.50417, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Culiacán'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-107.38782, 24.79032, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalupe'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.25646, 25.67678, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Aguascalientes'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-102.28259, 21.88234, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Francisco'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.41942, 37.77493, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mississauga'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.6583, 43.5789, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reynosa'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.28835, 26.08061, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Saltillo'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.0053, 25.42321, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Port-au-Prince'], 'Haiti')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-72.335, 18.53917, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Monterrey'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.31847, 25.67507, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nezahualcóyotl'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.45559, 17.25375, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Austin'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.74306, 30.26715, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago de Querétaro'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.38806, 20.58806, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Louisville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-85.75941, 38.25424, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.49363, 29.42412, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Seattle'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.33207, 47.60621, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chicago'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.65005, 41.85003, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Memphis'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.04898, 35.14953, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dallas'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.80667, 32.78306, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Havana'], 'Cuba')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.38304, 23.13302, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Calgary'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-114.08529, 51.05011, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oklahoma City'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.51643, 35.46756, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.20193, 19.04334, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guatemala City'], 'Guatemala')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.51327, 14.64072, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Vegas'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.13722, 36.17497, 4326)::geography,10000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Detroit'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.04575, 42.33143, 4326)::geography,3000)::geometry, 4326))" should true + +function test_geocoding_functions_namedplace_portland_na() { + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portland'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.67621, 45.52345, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hermosillo'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-110.97732, 29.1026, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Managua'], 'Nicaragua')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.2504, 12.13282, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mérida'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-89.61696, 20.97537, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Juárez'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.09582, 25.64724, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Edmonton'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.46871, 53.55014, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Morelia'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.18443, 19.70078, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Luis Potosí'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.97916, 22.14982, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Houston'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-95.36327, 29.76328, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Jose'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.89496, 37.33939, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['León'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.671, 21.13052, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexicali'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.45446, 32.62781, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Charlotte'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.84313, 35.22709, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['San Diego'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.15726, 32.71533, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Phoenix'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-112.07404, 33.44838, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['El Paso'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.48693, 31.75872, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tegucigalpa'], 'Honduras')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.20681, 14.0818, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.39182, 20.66682, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Denver'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-104.9847, 39.73915, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Acapulco'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.51028, 16.11417, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ottawa'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.69812, 45.41117, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Worth'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.32085, 32.72541, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Boston'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.05977, 42.35843, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexico City'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.12766, 19.42847, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tijuana'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.00371, 32.5027, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nashville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.78444, 36.16589, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Jacksonville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.65565, 30.33218, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cancún'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.84656, 21.17429, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Angeles'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.24368, 34.05223, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Indianapolis'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.15804, 39.76838, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Montreal'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.58781, 45.50884, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston'], 'Jamaica')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.79358, 17.99702, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Torreón'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.38611, 18.41194, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Zapopan'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.38479, 20.72356, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Vancouver'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-123.11934, 49.24966, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Washington'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.50829, 37.13054, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Toronto'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.4163, 43.70011, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Winnipeg'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.14704, 49.8844, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlaquepaque'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.29327, 20.64091, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlalnepantla'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.19538, 19.54005, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ecatepec de Morelos'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.06601, 19.61725, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chimalhuacán'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.95038, 19.42155, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Naucalpan'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.23963, 19.47851, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_philadelphia_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Philadelphia'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.16379, 39.95233, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_chihuahua_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chihuahua'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.08889, 28.63528, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_baltimore_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baltimore'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.61219, 39.29038, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_columbus_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Columbus'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.99879, 39.96118, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_guadalupe_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalupe'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.25646, 25.67678, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_newyork_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanfrancisco_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Francisco'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.41942, 37.77493, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mississauga_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mississauga'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.6583, 43.5789, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_saltillo_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saltillo'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.0053, 25.42321, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_portauprince_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Port-au-Prince'], 'Haiti')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-72.335, 18.53917, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_monterrey_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Monterrey'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.31847, 25.67507, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_austin_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Austin'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.74306, 30.26715, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_louisville_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Louisville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-85.75941, 38.25424, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_seattle_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Seattle'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.33207, 47.60621, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_chicago_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chicago'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.65005, 41.85003, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_memphis_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Memphis'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.04898, 35.14953, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_dallas_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dallas'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.80667, 32.78306, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_havana_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Havana'], 'Cuba')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.38304, 23.13302, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_calgary_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calgary'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-114.08529, 51.05011, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_oklahomacity_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oklahoma City'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.51643, 35.46756, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_puebla_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.20193, 19.04334, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_guatemalacity_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guatemala City'], 'Guatemala')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.51327, 14.64072, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lasvegas_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Vegas'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.13722, 36.17497, 4326)::geography,10000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_detroit_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Detroit'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.04575, 42.33143, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hermosillo_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hermosillo'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-110.97732, 29.1026, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_managua_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Managua'], 'Nicaragua')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.2504, 12.13282, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mérida_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mérida'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-89.61696, 20.97537, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_juárez_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Juárez'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.09582, 25.64724, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_edmonton_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Edmonton'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.46871, 53.55014, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_morelia_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Morelia'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.18443, 19.70078, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanluispotosí_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Luis Potosí'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.97916, 22.14982, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_houston_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Houston'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-95.36327, 29.76328, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sanjose_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Jose'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.89496, 37.33939, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_león_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['León'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.671, 21.13052, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mexicali_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexicali'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.45446, 32.62781, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_charlotte_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Charlotte'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.84313, 35.22709, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sandiego_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Diego'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.15726, 32.71533, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_phoenix_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Phoenix'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-112.07404, 33.44838, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_elpaso_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Paso'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.48693, 31.75872, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tegucigalpa_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tegucigalpa'], 'Honduras')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.20681, 14.0818, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_guadalajara_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.39182, 20.66682, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_denver_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Denver'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-104.9847, 39.73915, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_acapulco_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acapulco'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.51028, 16.11417, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ottawa_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ottawa'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.69812, 45.41117, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_fortworth_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Worth'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.32085, 32.72541, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_boston_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boston'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.05977, 42.35843, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_mexicocity_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexico City'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.12766, 19.42847, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tijuana_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tijuana'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.00371, 32.5027, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_nashville_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nashville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.78444, 36.16589, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_jacksonville_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jacksonville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.65565, 30.33218, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cancún_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cancún'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.84656, 21.17429, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_losangeles_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Angeles'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.24368, 34.05223, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_indianapolis_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Indianapolis'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.15804, 39.76838, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_montreal_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montreal'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.58781, 45.50884, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_kingston_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston'], 'Jamaica')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.79358, 17.99702, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_torreón_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torreón'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.38611, 18.41194, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_vancouver_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vancouver'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-123.11934, 49.24966, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_washington_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Washington'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.50829, 37.13054, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_toronto_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toronto'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.4163, 43.70011, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_winnipeg_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Winnipeg'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.14704, 49.8844, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tlaquepaque_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlaquepaque'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.29327, 20.64091, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_tlalnepantla_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlalnepantla'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.19538, 19.54005, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ecatepecdemorelos_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ecatepec de Morelos'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.06601, 19.61725, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_chimalhuacán_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chimalhuacán'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.95038, 19.42155, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_naucalpan_na() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Naucalpan'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.23963, 19.47851, 4326)::geography,3000)::geometry, 4326))" should true + } -function test_geocoding_functions_namedplace_england() { # England tests - 2km of tolerance for the city point without country - sql "SELECT ST_Intersects((geocode_namedplace(Array['Barnet'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2, 51.65, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bexley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.14866, 51.44162, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Birmingham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.89983, 52.48142, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Blackburn'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.48333, 53.75, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Blackpool'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.05, 53.81667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bolton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.43333, 53.58333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bournemouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.8795, 50.72048, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bradford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.75206, 53.79391, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brent'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.3023, 51.55306, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Brighton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.13947, 50.82838, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bristol'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.59665, 51.45523, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Bromley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.01519, 51.40606, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambridge'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.11667, 52.2, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Chesterfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.41667, 53.25, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Colchester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.90421, 51.88921, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Coventry'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.51217, 52.40656, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Crawley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.18312, 51.11303, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Croydon'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.1, 51.38333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Derby'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.47663, 52.92277, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Dudley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.08333, 52.5, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ealing'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.30204, 51.51216, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Eastbourne'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.28453, 50.76871, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Enfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08497, 51.65147, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Exeter'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.52751, 50.7236, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Gloucester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.2431, 51.86568, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Greenwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.01176, 51.47785, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hackney'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.05, 51.55, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Haringey'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08333, 51.58333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Harrow'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.33208, 51.57835, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hillingdon'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45293, 51.53291, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Hounslow'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.36092, 51.46839, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Huddersfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78416, 53.64904, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Ipswich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.15545, 52.05917, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Islington'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.10304, 51.53622, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston upon Thames'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2974, 51.41259, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lambeth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11152, 51.49635, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Richmond upon Thames'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.30212, 51.45689, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leeds'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.54785, 53.79648, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Leicester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.13169, 52.6386, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Lewisham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.01193, 51.46431, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Liverpool'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.97794, 53.41058, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Luton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41748, 51.87967, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Manchester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.23743, 53.48095, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Merton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.1, 50.88333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Middlesbrough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.23483, 54.57623, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Newcastle upon Tyne'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.61396, 54.97328, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Newham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.71667, 55.53333, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Northampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.88333, 52.25, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Norwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.29834, 52.62783, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Nottingham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.15047, 52.9536, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oldham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.1183, 53.54051, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Oxford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.25596, 51.75222, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Peterborough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.24777, 52.57364, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Plymouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.14305, 50.37153, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Poole'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2, 50.71667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Portsmouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.09125, 50.79899, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Preston'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.71667, 53.76667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Reading'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.97113, 51.45625, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Redbridge'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.46667, 50.91667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Rotherham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.35678, 53.43012, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sheffield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.4659, 53.38297, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Slough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.59541, 51.50949, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Southampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.40428, 50.90395, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Southend-on-Sea'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.71433, 51.53782, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Southwark'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08333, 51.5, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['St Helens'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.73333, 53.45, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Stockport'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.15761, 53.40979, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Stoke-on-Trent'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.18538, 53.00415, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sunderland'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.38222, 54.90465, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sutton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2, 51.35, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Sutton Coldfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.81667, 52.56667, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Swindon'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78116, 51.55797, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Walsall'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.98396, 52.58528, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wandsworth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.20784, 51.4577, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Watford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.39602, 51.65531, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['West Bromwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.9945, 52.51868, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Wolverhampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.12296, 52.58547, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['York'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.08271, 53.95763, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Havering'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.18608, 51.61557, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston upon Hull'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.33525, 53.7446, 4326)::geography,3000)::geometry, 4326))" should true - sql "SELECT ST_Intersects((geocode_namedplace(Array['Westminster'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11667, 51.5, 4326)::geography,3000)::geometry, 4326))" should true +function test_geocoding_functions_namedplace_barnet_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barnet'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2, 51.65, 4326)::geography,3000)::geometry, 4326))" should true + } +function test_geocoding_functions_namedplace_bexley_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bexley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.14866, 51.44162, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_birmingham_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Birmingham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.89983, 52.48142, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_blackburn_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Blackburn'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.48333, 53.75, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_blackpool_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Blackpool'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.05, 53.81667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bolton_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bolton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.43333, 53.58333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bournemouth_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bournemouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.8795, 50.72048, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bradford_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bradford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.75206, 53.79391, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_brent_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brent'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.3023, 51.55306, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_brighton_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brighton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.13947, 50.82838, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bristol_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bristol'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.59665, 51.45523, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_bromley_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bromley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.01519, 51.40606, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_cambridge_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambridge'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.11667, 52.2, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_chesterfield_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chesterfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.41667, 53.25, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_colchester_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Colchester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.90421, 51.88921, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_coventry_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coventry'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.51217, 52.40656, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_crawley_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Crawley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.18312, 51.11303, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_derby_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Derby'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.47663, 52.92277, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_dudley_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dudley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.08333, 52.5, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ealing_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ealing'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.30204, 51.51216, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_eastbourne_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Eastbourne'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.28453, 50.76871, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_enfield_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Enfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08497, 51.65147, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_exeter_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Exeter'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.52751, 50.7236, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_gloucester_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gloucester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.2431, 51.86568, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_greenwich_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Greenwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.01176, 51.47785, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hackney_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hackney'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.05, 51.55, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_haringey_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Haringey'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08333, 51.58333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_harrow_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Harrow'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.33208, 51.57835, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hillingdon_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hillingdon'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45293, 51.53291, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_hounslow_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hounslow'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.36092, 51.46839, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_huddersfield_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huddersfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78416, 53.64904, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_ipswich_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ipswich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.15545, 52.05917, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_islington_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Islington'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.10304, 51.53622, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_kingstonuponthames_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston upon Thames'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2974, 51.41259, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lambeth_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lambeth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11152, 51.49635, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_richmonduponthames_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Richmond upon Thames'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.30212, 51.45689, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_leeds_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leeds'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.54785, 53.79648, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_leicester_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leicester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.13169, 52.6386, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_lewisham_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lewisham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.01193, 51.46431, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_liverpool_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Liverpool'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.97794, 53.41058, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_luton_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Luton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41748, 51.87967, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_manchester_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manchester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.23743, 53.48095, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_merton_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Merton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.1, 50.88333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_middlesbrough_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Middlesbrough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.23483, 54.57623, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_newcastleupontyne_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Newcastle upon Tyne'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.61396, 54.97328, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_newham_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Newham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.71667, 55.53333, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_northampton_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Northampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.88333, 52.25, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_norwich_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Norwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.29834, 52.62783, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_nottingham_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nottingham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.15047, 52.9536, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_oldham_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oldham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.1183, 53.54051, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_oxford_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oxford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.25596, 51.75222, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_peterborough_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Peterborough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.24777, 52.57364, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_plymouth_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Plymouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.14305, 50.37153, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_poole_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Poole'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2, 50.71667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_portsmouth_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portsmouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.09125, 50.79899, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_preston_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Preston'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.71667, 53.76667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_reading_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reading'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.97113, 51.45625, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_redbridge_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Redbridge'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.46667, 50.91667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_rotherham_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rotherham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.35678, 53.43012, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sheffield_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sheffield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.4659, 53.38297, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_slough_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Slough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.59541, 51.50949, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_southampton_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Southampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.40428, 50.90395, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_southendonsea_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Southend-on-Sea'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.71433, 51.53782, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_southwark_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Southwark'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08333, 51.5, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sthelens_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['St Helens'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.73333, 53.45, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_stockport_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stockport'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.15761, 53.40979, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_stokeontrent_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stoke-on-Trent'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.18538, 53.00415, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sunderland_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sunderland'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.38222, 54.90465, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_sutton_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sutton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2, 51.35, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_suttoncoldfield_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sutton Coldfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.81667, 52.56667, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_swindon_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Swindon'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78116, 51.55797, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_walsall_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Walsall'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.98396, 52.58528, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_wandsworth_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wandsworth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.20784, 51.4577, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_watford_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Watford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.39602, 51.65531, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_westbromwich_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['West Bromwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.9945, 52.51868, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_wolverhampton_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wolverhampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.12296, 52.58547, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_york_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['York'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.08271, 53.95763, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_havering_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Havering'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.18608, 51.61557, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_kingstonuponhull_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston upon Hull'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.33525, 53.7446, 4326)::geography,3000)::geometry, 4326))" should true + +} + +function test_geocoding_functions_namedplace_westminster_gbr() { + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Westminster'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11667, 51.5, 4326)::geography,3000)::geometry, 4326))" should true + +} + + #################################################### TESTS END HERE ####################################################