0

Problem geotagging countries

Hi,

I am having a problem when trying to get the coordinates for a whole country, and not a specific address.

I am trying for instance to get Spain and Chile coordinates:
http://where.yahooapis.com/geocode?q="...uot;&appid=[appid]
http://where.yahooapis.com/geocode?q="...uot;&appid=[appid]

This is the result for Chile:

CODE
<ResultSet version="1.0"><Error>0</Error><ErrorMessage>No error</ErrorMessage><Locale>us_US</Locale><Quality>87</Quality><Found>1</Found><Result><quality>9</quality><latitude>-37.020664</latitude><longitude>-87.946239</longitude><offsetlat>-35.705219</offsetlat><offsetlon>-71.341087</offsetlon><radius>2842800</radius><name/><line1/><line2/><line3/><line4>Chile</line4><house/><street/><xstreet/><unittype/><unit/><postal/><neighborhood/><city/><county/><state/><country>Chile</country><countrycode>CL</countrycode><statecode/><countycode/><uzip/><hash/><woeid>23424782</woeid><woetype>12</woetype></Result></ResultSet>


If I use the latitude and longitude tags I get a point in the Pacific Ocean, and the same happens for Spain (point in the sea)

I would rather expect a point in the "middle" of the country.

Can you tell me how to get it right?

BTW, I don't know "a priori" that there will be only a country to tag, sometimes there is a whole address (which works great) and sometimes just the country.

Thanks in advance,
Maxime.

by
0 Replies
This forum is locked.

Recent Posts

in PlaceFinder General Discussion