GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Documentation and code say different things  XML
Forum Index -> General
Author Message
lawrence_o



Joined: 17/04/2013 00:27:13
Messages: 1
Offline

Hi all,

I am newbie to geonames but an experienced developer with 17 years of experience. Having said that, the doc says:
country string : country code, ISO-3166 (optional) Default is all countries. The country parameter may occur more than once, example: country=FR&country=GP 


But the code says this:
Code:
public void setCountryCode(String countryCode)
 			throws InvalidParameterException {
 		if (countryCode != null && countryCode.length() != 2) {
 			throw new InvalidParameterException("invalid country code "
 					+ countryCode);
 		}
 		this.countryCode = countryCode;
 	}


How can I set multiple countries please?

Thanks!
Kind regards
Lorenwo
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

you are right, the java client does not yet support multiple countries in the search parameters. This functionality will be added with the next release. The documention you refer to is for the web service. The client is just a subset of it.

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team