On Friday, June 1, 2012 4:30:41 AM UTC-7, chris mollis wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Right.. using REST calls is the way to do that.   You'll basically need to do any complex geo queries/functions in PostGIS and then return vectors of lon/lat points which you then display with the MapKit apis.<br><br><div class="gmail_quote">
On Fri, Jun 1, 2012 at 7:24 AM, Charles Galpin wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Ahmad<div><br></div><div>You won't connect to the database directly. Depending on what the data is you can use a variety of methods. Simple REST style calls to a web server which runs code to query the database and return the data could be sufficient, but for anything more complex I suggest using a WMS server like geoserver or mapserver.</div>
<div><br></div><div>If you want your app to run on multiple platforms consider doing it in html 5.</div><div><br></div><div>hth</div><div>charles</div></div></blockquote></div></blockquote><div><br></div><div>CartoDB is also a good choice that is worth some investigation:</div><div><br></div><div>    http://cartodb.com/</div><div><br></div><div>They do a great job of wrapping a web-accessible API around PostGIS tables. The source code for the entire system is also freely available on GitHub---but it does take a bit of work to unbox, configure and maintain by yourself.</div><div><br></div><div><br></div><div>-Charlie</div>