0

So I have an issue. I am on GoDaddy shared hosting which is MySQL 5.5.43. They do not currently support MySQL 5.6 on shared hosting apparently.

Now my problem is I need to search a database of 50,000+ latlng points using a custom polygon created by the user. As I understand it, pre MySQL 5.6 only allowed bounding rectangle search. Am I stuck running the search in MySQL in a bounding rectangle and then checking those results against a PHP algorithm to see if they reside in the custom polygon?

RyanF
  • 21
  • 1
  • 2

1 Answers1

1

I'd create a user-defined function for that (see Adding a New User-Defined Function) using this or this

Community
  • 1
  • 1
Anatolii Suhanov
  • 2,524
  • 1
  • 12
  • 14