This is a question for your server side database.

You need some sort of solution that can query the database. If by
'encoded' you mean something like the Maps encodeding system, you are
probably going to have to decode the data to run spatial queries on
it.

Perhaps you need to run a batch process, to decode the lines, and
store a bounding rectangle in the database. It trival then to find
points in those rectangles.

But this all depends on your database, and its capablities.



On Mon, Jan 23, 2012 at 4:54 PM, Big G <[email protected]> wrote:
> Hello
>
> Looking for a bit of help.
>
> I have a DB of encoded polygons.  I want to allow a user to add a single
> marker to a map and return the names of which of the polygons contain that
> point.  There are plenty of examples of drawing a polygon and returning the
> points within that polygon but that is not what i'm looking for.  Im after
> which polygons contain the specified point.
>
> All the functionality is already developed to allow the user to save the
> point but I need help with the algorithm which will return all the names of
> the polygons containing it.  I don't actually need to display the polygons
> which contain the point just the name associated with the polygons in the
> DB.
>
> Hope this makes sense.
>
> thanks in advance.
>
> Cheers,
>
> Big G
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/un-nuHSYT8UJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to