GEO data for cities

71 views
Skip to first unread message

Самойлов Константин

unread,
Jun 2, 2009, 9:14:29 AM6/2/09
to Thematic Mapping API, bj...@thematicmapping.org
Hi Bjørn!

Your API at http://thematicmapping.org is really great!
Could you tell - can I display Pie chart map with info about cities
not just countries. I need higher detalization.
Thanks in advance!

Kostya
Moscow, Russia

thematicmapping.org

unread,
Jun 3, 2009, 6:29:17 AM6/3/09
to Thematic Mapping API
Hi Kostya,

Yes this should be no problem. You need the latitude/longitude
position of each city. The data table should be like this:

1. [Name, Required]
2. [Latitude, Required]
3. [Longitude, Required]
4. [Border, Optional] Empty column in your case
5. [Value, Required] This is the statistical value representing the
pie size (e.g. population)
6.-X. [Value] One value column for each pie value

Se also the pie chart example:
http://thematicmapping.org/api/piechart.php

Please report any problems!

Bjørn


On 2 Jun, 15:14, Самойлов Константин <k.samoy...@gmail.com> wrote:
> Hi Bjørn!
>
> Your API athttp://thematicmapping.orgis really great!

Konstantin Samoylov

unread,
Jun 3, 2009, 6:54:27 AM6/3/09
to thematic-m...@googlegroups.com
Hi Bjørn!

Thank you very much!
And one more question - I have only names of cities by now. Are there any means to transform City Name -> Latitude, Langitude?

Thanks!
Kostya.




--
С уважением,
Константин Самойлов
(495) 974-1228

thematicmapping.org

unread,
Jun 3, 2009, 5:21:57 PM6/3/09
to Thematic Mapping API
You could try the Google Maps API geocoding service:
http://code.google.com/apis/maps/documentation/services.html#Geocoding

Bjørn


On 3 Jun, 12:54, Konstantin Samoylov <k.samoy...@gmail.com> wrote:
> Hi Bjørn!
> Thank you very much!
> And one more question - I have only names of cities by now. Are there any
> means to transform City Name -> Latitude, Langitude?
>
> Thanks!
> Kostya.
>
> 2009/6/3 thematicmapping.org <bj...@thematicmapping.org>
>
>
>
>
>
> > Hi Kostya,
>
> > Yes this should be no problem. You need the latitude/longitude
> > position of each city. The data table should be like this:
>
> > 1. [Name, Required]
> > 2. [Latitude, Required]
> > 3. [Longitude, Required]
> > 4. [Border, Optional] Empty column in your case
> > 5. [Value, Required] This is the statistical value representing the
> > pie size (e.g. population)
> > 6.-X. [Value] One value column for each pie value
>
> > Se also the pie chart example:
> >http://thematicmapping.org/api/piechart.php
>
> > Please report any problems!
>
> > Bjørn
>
> > On 2 Jun, 15:14, Самойлов Константин <k.samoy...@gmail.com> wrote:
> > > Hi Bjørn!
>
> > > Your API athttp://thematicmapping.orgisreally great!

cimear...@ci.uchicago.edu

unread,
Jul 23, 2009, 11:08:46 AM7/23/09
to Thematic Mapping API
Bjørn,
I tried to follow the directions you've given, in order to create a
KML layer. However, when I try and produce the KML with:

map.draw(data,options);

I get stuff that does not resemble KML at all! You can have a look at
what I'm doing here:

www.cimearth.org/pieGraphTry.html

Currently the web site draws a table based on my data, so that you can
see what data I'm feeding to the API. Just un-comment lines 146-147
to see what KML the engine produces.

Do you have any idea what's wrong with this?

Thanks!

-Wai Lee


On Jun 3, 4:21 pm, "thematicmapping.org" <bj...@thematicmapping.org>
wrote:
Reply all
Reply to author
Forward
0 new messages