2025-03-04     2025-03-05     2025-03-06

distance between postal code centroid and wikipedia article

number of errors=9
number of warnings=0
country=MX
Group=chkGrpPostalCode
Group=ckgGrpWP

select distinct zip_code.countrycode,wp_postalcode.title,placename,code,to_char(longlat<->estlonglat,'99.99') as dist,url,'http://www.geonames.org/maps/google_' || wp_postalcode.longlat[1] || '_' || wp_postalcode.longlat[0] || '.html' as wpurl,zip_code.geonameid from wp_postalcode_code,wp_postalcode,zip_code where wp_postalcode.wikipediaid=wp_postalcode_code.wikipediaid and wp_postalcode.language=wp_postalcode_code.language and code=zip and wp_postalcode.countrycode=zip_code.countrycode and longlat<->estlonglat>1 and title=placename and iswithinccbounds and zip_code.countrycode='MX' order by title

[{key=MX,number=9}]

countrycode	title	placename	code	dist	url	wpurl	geonameid	
MX	Bahía Asunción	Bahía Asunción	23960	  1.62	http://es.wikipedia.org/wiki/Bah%C3%ADa_Asunci%C3%B3n	http://www.geonames.org/maps/google_27.138333333333332_-114.29583333333333.html	null	
MX	Cerocahui	Cerocahui	33421	  1.52	http://es.wikipedia.org/wiki/Cerocahui	http://www.geonames.org/maps/google_27.297777777777778_-108.05527777777777.html	null	
MX	Florencia de Benito Juárez	Florencia de Benito Juárez	99780	  2.37	http://en.wikipedia.org/wiki/Florencia_de_Benito_Ju%C3%A1rez	http://www.geonames.org/maps/google_23.8638888989_-103.388611121.html	3971904	
MX	Maycoba	Maycoba	85789	  1.28	http://es.wikipedia.org/wiki/Maycoba	http://www.geonames.org/maps/google_28.391666666666666_-108.65944444444445.html	null	
MX	Pilcaya	Pilcaya	40380	  9.37	http://es.wikipedia.org/wiki/Pilcaya	http://www.geonames.org/maps/google_25.1_-106.56666666666666.html	3817354	
MX	Temapache	Temapache	92769	  2.37	http://en.wikipedia.org/wiki/Temapache	http://www.geonames.org/maps/google_18.75_-97.15.html	3516053	
MX	Tlacoachistlahuaca	Tlacoachistlahuaca	41740	  1.84	http://es.wikipedia.org/wiki/Tlacoachistlahuaca	http://www.geonames.org/maps/google_18.216666666666665_-99.48333333333333.html	3515490	
MX	Urique	Urique	33420	  1.36	http://es.wikipedia.org/wiki/Urique	http://www.geonames.org/maps/google_27.2125_-107.91388888888889.html	null	
MX	Zamora Pico de Oro	Zamora Pico de Oro	29957	  1.24	http://es.wikipedia.org/wiki/Zamora_Pico_de_Oro	http://www.geonames.org/maps/google_16.334999999999997_-90.76416666666667.html	null