<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 15, 2013 at 6:44 AM, James David Smith <span dir="ltr"><<a href="mailto:james.david.smith@gmail.com" target="_blank">james.david.smith@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all,<br>
<br>
I've had a quick search online and found a few people who have had<br>
similar questions, but no definite answers. My question is whether<br>
there is a simple way to take an encoded Google Polyline and place it<br>
into a Geometry column of type Polyline within PostGIS (that PostGIS<br>
understands and can work with).<br>
<br>
By way of background, I am using the Google Directions API to generate<br>
some routes, and I want to store the results in a PostGIS database.<br></blockquote><div><br></div><div>I do not know what a "encoded Google Polyline" is but I believe Google can output KML. ogr2ogr can read KML and write to postgis, so that's where I would start.<br>
<br></div><div>Rich<br> </div></div>-- <br>Richard Greenwood<br><a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br><a href="http://www.greenwoodmap.com">www.greenwoodmap.com</a>
</div></div>