GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
converting getBounds return points to North east west south
Forum Index
->
General
Author
Message
08/01/2009 09:55:18
Subject:
converting getBounds return points to North east west south
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
08/01/2009 21:19:33
Subject:
Re:converting getBounds return points to North east west south
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
you only need two points to fill the four parameters.
Marc
09/01/2009 21:36:46
Subject:
Re:converting getBounds return points to North east west south
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?
11/01/2009 16:17:53
Subject:
Re:converting getBounds return points to North east west south
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
your code is wrong. 'west' should not be lat, but lng instead.
Marc
Forum Index
->
General
Go to:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About