| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 30/06/2009 18:37:40
|
Arpanet
Joined: 30/06/2009 18:32:11
Messages: 5
Offline
|
I have to develop something similar to your wikipedia map, and I would like to use GeoNames APIs, since wikipedia apis don't help with coordinates. So, I started making tries with the findNearbyWikipedia function, but results are too generic...I can only find for near cities with that, while the wikipedia map you have displays wikipedia articles depending by the zoom level you use for the map. How can I retrieve "detailed" wikipedia articles?
For example
If I to findNearbyWikipedia with lon/lat of Rome I find near cities wikipedia articles, but I want to find Colosseum article, something "in deep".
Thanks
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 30/06/2009 21:59:06
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
I fear I don't understand your question. If you want to get the Colosseum you have to use the lat/lng of the Colosseum otherwise you will get what ever is close to your lat/lng.
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 01/07/2009 16:22:27
|
Arpanet
Joined: 30/06/2009 18:32:11
Messages: 5
Offline
|
What I need to do is almost your wikipedia map.
So, starting from a given lat/lon, get the google map through the google maps api, and place markers where wikipedia articles are located.
I'm just missing the last step, i got lat/lon, I use
http://ws.geonames.org/findNearbyWikipedia?lat=41.53&lng=12.29
but what I get are places pretty far from 41.53, 12.29. I probably could try using the bounding box, but don't know how to calculate the box (should be given a lat/lon point, describe an area of given radius). I tried also
http://ws.geonames.org/findNearbyWikipedia?postalcode=00153&country=IT&radius=2&maxRows=20
which works pretty good, but I would like to give lat/lon more than postal code, would be easider.
What should I do?
Thanks
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 01/07/2009 22:10:18
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
I don't know what you expect. The position 41.53/12.29 is off the coast, and the next entries are miles away.
Cheers
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 02/07/2009 16:00:57
|
Arpanet
Joined: 30/06/2009 18:32:11
Messages: 5
Offline
|
I discovered that the problem is the precision.
If I call findNearByWikipedia with 's other than °s, I can discover more "in deep". Is there any way to call the function giving ''s as well?ù
this is what I did for 's
http://ws.geonames.org/findNearbyWikipedia?lat=41.87&lng=12.47&maxRows=20&radius=4
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 02/07/2009 20:40:18
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
The service is using decimal numbers. There are no minutes and seconds you have to do the conversion to decimals.
Marc
|
 |
|
|
 |
|
|