Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5152
| From | DrMajorBob <btreat1@austin.rr.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Getting list of cities of Puerto Rico using Wolfram |
| Date | 2011-09-22 11:37 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j5f6l2$qb3$1@smc.vnet.net> (permalink) |
| References | <201109210932.FAA13093@smc.vnet.net> |
> 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@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@yahoo.com
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Getting list of cities of Puerto Rico using Wolfram DrMajorBob <btreat1@austin.rr.com> - 2011-09-22 11:37 +0000
csiph-web