<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Messages posted by "SURF-IT"]]></title>
		<link>http://forum.geonames.org/gforum/posts/listByUser/1046.page</link>
		<description><![CDATA[Messages posted by "SURF-IT"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>More street segment data in webservice ping</title>
				<description><![CDATA[ Right now, when you use the webservice to get data via the findNearbyStreets url, only 10 segments are returned.   I am pretty sure this isn't possible in this specific scenario, but is there anyway to get more segments?  I need a lot of street information, so it would be much better and faster if I could get more for each ping.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/preList/1017/4467.page#4467</guid>
				<link>http://forum.geonames.org/gforum/posts/preList/1017/4467.page#4467</link>
				<pubDate><![CDATA[Fri, 8 Aug 2008 02:04:53]]> GMT</pubDate>
				<author><![CDATA[ SURF-IT]]></author>
			</item>
			<item>
				<title>Multiple queries with one coordinate</title>
				<description><![CDATA[ I would like to click once on a map and determine if that location is an intersection (from the JSON data about distance) and the nearby streets.  What is the best way to do this?  I have some code that isn't working right now, but even if it's just a bug I am thinking there might be a better way to do this.

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>GEvent.addListener&#40;polyline, 'click', function&#40;latlng&#41; {
				var selectedWebService = getService&#40;&#41;;
				var script = document.createElement&#40;'script'&#41;;
                                document.body.appendChild&#40;script&#41;;
                                script.src = 'http://ws.geonames.org/' + selectedWebService + 'JSON?lat=' + latlng.lat&#40;&#41; + '&lng=' + latlng.lng&#40;&#41; + '&callback=loadJSON';
				var script2 = document.createElement&#40;'script2'&#41;;
				document.body.appendChild&#40;script2&#41;;
				script2.src = 'http://ws.geonames.org/findNearestIntersectionJSON?lat=' + latlng.lat&#40;&#41; + '&lng=' + latlng.lng&#40;&#41; + '&callback=isIntersection';
		}&#41;;</pre>
		</div>

Sort of along those lines, is the only way to access the JSON or XML data from the query with a callback function?  Or is there some way to return it simply to a variable?  For example, if I do 'http://ws.geonames.org/findNearestIntersectionJSON?lat=36&lng=-122' and only want to check the distance attribute--do I still have to use a callback function?

Thanks!!]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/preList/987/4369.page#4369</guid>
				<link>http://forum.geonames.org/gforum/posts/preList/987/4369.page#4369</link>
				<pubDate><![CDATA[Sat, 19 Jul 2008 02:25:22]]> GMT</pubDate>
				<author><![CDATA[ SURF-IT]]></author>
			</item>
			<item>
				<title>Deviation of GPolylines from Map</title>
				<description><![CDATA[ I was wondering why the lines that appear on, for example, http://www.geonames.org/maps/reverse-geocoder.html do not coincide exactly with the google map image.   Aren't they both using the same data?  Not getting curves exactly right is understandable since we are dealing with lines, but sometimes there are chunks missing on main roads.  I only ask because I want to be able to "trace" routes/streets from repeatedly collecting nearby street segment lat/long coordinates and adding new lines but this task is hard to do accurately given this error.  Any ideas about this?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/preList/984/4362.page#4362</guid>
				<link>http://forum.geonames.org/gforum/posts/preList/984/4362.page#4362</link>
				<pubDate><![CDATA[Fri, 18 Jul 2008 07:59:46]]> GMT</pubDate>
				<author><![CDATA[ SURF-IT]]></author>
			</item>
	</channel>
</rss>