GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Some cities are not displayed  XML
Forum Index -> General
Author Message
pedrojr



Joined: 19/09/2009 20:15:36
Messages: 2
Offline

Hi!

Thank you and congratulations for the work!

I am using a Open Source .NET client library for Geonames (http://geonamesdotorgdotnet.codeplex.com). The problem is that some cities are not listed. For example, the city/capital of "Porto Alegre" in the state "Rio Grande Sul" (Brazil) is not listed.


The strange thing is that in the example GeoTree (http://geotree.geonames.org) this city appears.

Is there a need for authentication in Webservice to return all the data?
I ask this because the library is not doing any authentication in the Webservice.

Thanks for advance!

Pedro
Brazil

* Sorry my bad english.
marc



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

Hi

It it difficult to help you without knowing which service you are speaking of and which parameters you are using.
In order to debug it I would look at the call to the web service and see what the web service returns.

Best

Marc

[WWW]
pedrojr



Joined: 19/09/2009 20:15:36
Messages: 2
Offline

Hi marc!


I'm using the function GetChildren to get everything that is below a certain GeoNameID (in this case is the state). Determine the parameter GeoStyle as Medium.

I checked the source code that calls the function GetChildren following in Webservice:

[OperationContract ( Name = "childrenJSON0" )]
[WebInvoke (
UriTemplate = "childrenJSON?geonameId={geoNameID}&lang={culture}&style={style}&maxRows={maxRows}",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare )]


What do you think you can be?

Thanks!
marc



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

If I were you then I would enter the url with the parameters in your browser to see what it returns. If you think records are missing then it most likely means that 'maxRows' is not high enough.

Best

Marc

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