Re: Getting list of cities of Puerto Rico using Wolfram
- To: mathgroup at smc.vnet.net
- Subject: [mg121626] Re: Getting list of cities of Puerto Rico using Wolfram
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Thu, 22 Sep 2011 07:28:17 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201109210932.FAA13093@smc.vnet.net>
- Reply-to: drmajorbob at yahoo.com
> CountryData["PuertoRico", "LargestCities"] // TableForm > > the name of the cities appear scrambled with the name "Puerto Rico" > repeated > all over. Each city appears as a {city, state, country} triple, much like the following, where I'm showing only the first ten cities: (tbl = CountryData["United States", "LargestCities"])[[;; 10]] {{"NewYork", "NewYork", "UnitedStates"}, {"LosAngeles", "California", "UnitedStates"}, {"Chicago", "Illinois", "UnitedStates"}, {"Houston", "Texas", "UnitedStates"}, {"Phoenix", "Arizona", "UnitedStates"}, {"Philadelphia", "Pennsylvania", "UnitedStates"}, {"SanAntonio", "Texas", "UnitedStates"}, {"SanDiego", "California", "UnitedStates"}, {"Dallas", "Texas", "UnitedStates"}, {"SanJose", "California", "UnitedStates"}} City and state may be the wrong words to use in Puerto Rico, and I can't speak to the data's ACCURACY, but "Puerto Rico", at least, is repeated for a reason. Bobby On Wed, 21 Sep 2011 04:32:14 -0500, Gilmar Rodriguez-pierluissi <peacenova at yahoo.com> wrote: > > If I attempt to get a list of all cities in Puerto Rico via Wolfram > Alpha using: > > http://www.wolframalpha.com/input/?i=cities%2C+Puerto+Rico > > Wolfram Alpha gives: > > "Using closest Wolfram|Alpha interpretation: cities harbor rich" and then > "Computation timed out. Experimental feature: Try again with more time". > > When I attempt to get the larges cities in that island using: > > http://www.wolframalpha.com/input/?i=largest+cities%2C+Puerto+Rico > > Wolfram Alpha indeed gives the five largest cities. > > On the other hand; if I attempt to get the same info using Mathematica > 8.0 via: > > CountryData["PuertoRico", "LargestCities"] // TableForm > > the name of the cities appear scrambled with the name "Puerto Rico" > repeated > all over. > > There are 78 "Municipalities" in Puerto Rico which are correctly listed > here: > http://www.statoids.com/upr.html > http://flagspot.net/flags/pr(.html > http://www.topuertorico.org/city/index.shtml > > If one tries: > > http://www.wolframalpha.com/input/?i=cities%2C+Puerto+Rico > > one would expect only the names of those 78 cities to show up. > > Thank you! > > Gilmar Rodriguez Pierluissi > > P.S. This search was inspired by item 4 in: > http://blog.wolfram.com/2009/04/03/wow-this-is-mathematica/ -- DrMajorBob at yahoo.com
- References:
- Getting list of cities of Puerto Rico using Wolfram Alpha
- From: Gilmar Rodriguez-pierluissi <peacenova@yahoo.com>
- Getting list of cities of Puerto Rico using Wolfram Alpha