| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 21/08/2012 06:32:51
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 21/08/2012 06:37:07
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
It is the transliteration of the Japanese name.
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 21/08/2012 20:58:34
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 25/08/2012 11:17:11
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 25/08/2012 11:57:01
|
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
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/08/2012 07:08:06
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/08/2012 10:21:58
|
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/
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/08/2012 21:47:35
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/08/2012 21:47:35
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/08/2012 21:59:20
|
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
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 28/08/2012 06:53:07
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 28/08/2012 07:00:28
|
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
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 29/08/2012 06:43:34
|
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
},
|
|
|
 |
|
|