GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
bug?  XML
Forum Index -> General
Author Message
lillolollo



Joined: 10/01/2010 23:12:00
Messages: 120
Offline

Id 3165165 alternate names contain "torino" it's wrong
but Alternate names editor dont show it
marc



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

It is the transliteration of the Japanese name.

Marc

[WWW]
lillolollo



Joined: 10/01/2010 23:12:00
Messages: 120
Offline

Marc thi is a bug because if you search for torino whit autocomplete like this

http://jqueryui.com/demos/autocomplete/remote-jsonp.html

when you type torino you have Torino,Piedmont,Italy the right one and torino,Piedmont,Italy the wrong one because it is Trino
lillolollo



Joined: 10/01/2010 23:12:00
Messages: 120
Offline

same problem whit ferentino whit trasliteration seem to be grottaferrata.... the trasliteration is a big problem
marc



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

Grottaferrata had a wrong name 'Ferèntino'. This one has nothing todo with the transliteration. You have deleted the alternate name on July 19th.
The jquery demo is using a deprecated server (ws.geonames.org instead of api.geonames.org) which is updated infrequently and still has older data.

Marc

[WWW]
lillolollo



Joined: 10/01/2010 23:12:00
Messages: 120
Offline

unfortunately with jquery autocomplete, http://api.geonames.org/search? don't works in explorer ws yes
marc



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

the api. geonames.org servers require a username. Did you add it?

http://geonames.wordpress.com/2011/01/28/application-identification-for-free-geonames-web-services/

[WWW]
lillolollo



Joined: 10/01/2010 23:12:00
Messages: 120
Offline

Yes, the problem is that api does not have a JSONP response that bypass cross domain limitation on jquery can you add JSONP on api?
more and more user still use ws for this problem
lillolollo



Joined: 10/01/2010 23:12:00
Messages: 120
Offline

or add something like in php

header('content-type: application/json; charset=utf-8');
header("access-control-allow-origin: *");

In your java JSON service
marc



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

lillolollo wrote:

header('content-type: application/json; charset=utf-8');
header("access-control-allow-origin: *"); 


Ok. I have have added the second line. The first line was already there.

But why is it required on the api.geonames.org domain and not on the ws.geonames.org domain?

Marc

[WWW]
lillolollo



Joined: 10/01/2010 23:12:00
Messages: 120
Offline

Still do not whorks



lillolollo wrote:
Yes, the problem is that api does not have a JSONP response that bypass cross domain limitation on jquery can you add JSONP on api?
more and more user still use ws for this problem 


marc



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

The ws.geonames.org and the api.geonames.org server are running the same code. If jsonp is working on one server then it is also working on the other.

Marc

[WWW]
lillolollo



Joined: 10/01/2010 23:12:00
Messages: 120
Offline

Yes marc now it's whorks maybe you can contat jquery developer for change example code
replace this line

url: "http://api.geonames.org/search?username=demo",
dataType: "jsonp",
data: {
featureClass: "P",
style: "full",
type:"json",
maxRows: 12,
name_startsWith: request.term
},
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team