<div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I hope you don&#39;t mind helping me with another couple short questions:<br>1. Projection 4326 with latlng is lot easier for me to work with. Although there are ways to convert the latlng to 900913 projection, I was wondering how would I be able to directly use 4326 and run search on it (HTML changes), assuming that the tiles were generated with 900913 projection and the routing database is set to 4326?<br>

</blockquote><div><br></div><div>You can use Postgis &quot;transform()&quot; function to do this: </div><div><a href="http://postgis.refractions.net/docs/ST_Transform.html">http://postgis.refractions.net/docs/ST_Transform.html</a></div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>2. Just out of curiosity.<br>The routing results usually take residential route ways, instead of taking instead of taking highway streets (which is more like what results from Google Maps show). Any ideas why the difference?<br>

</blockquote><div><br></div><div>pgRouting gives you the &quot;shortest&quot; path and it&#39;s up to you to define what is &quot;shortest&quot;. Easiest is to take length as cost, but if you take time as cost, then shortest will be the fastest. You could for example define some speed for your road classes, and if the speed is higher on highways it will prefer the highway like Google Maps does.</div>

<div><br></div><div>Daniel</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>Thanks<br>
<br>_______________________________________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
<br></blockquote></div><br>