GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
converting getBounds return points to North east west south  XML
Forum Index -> General
Author Message
kadnan



Joined: 07/01/2009 18:07:59
Messages: 9
Offline

City service requires following parameters:

north,south,east,west : coordinates of bounding box

how can I convert NorthEast and South West into 4 points?

please help me
marc



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

you only need two points to fill the four parameters.

Marc

[WWW]
kadnan



Joined: 07/01/2009 18:07:59
Messages: 9
Offline

ok I some how I managed to find out but geonames doesnt seem return correct data.

below is the tiny url for geonames xml service for subcontinent region
but it's returning cities which are not even on browser view:

http://tinyurl.com/mapSource1

following is the code

http://pastebin.com/m75d96cd5

why is it showing Cairo when it's not even in scope?
marc



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

your code is wrong. 'west' should not be lat, but lng instead.

Marc

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