GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Wikipedia map questions  XML
Forum Index -> General
Author Message
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
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

[WWW]
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
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

[WWW]
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
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

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