I'm using codeigniter and datamapper to build an API service (on mysql), and part of it involves geolocation - however I can't seem to find a workaround to use the point datatype. If I try to insert GeomFromText, the system treats it as a string.
Can anyone help?
Cheers, Mark.
Try
In CodeIgniter:
In CodeIgniter with Datamaper (see help for "Using Formulas in Updates" in the documentation)...
As explained in the CodeIgniter User's Guide:
set function enables you to set values for inserts or updates.
set() will accepts a third parameter ($escape), that will prevent data from being escaped if set to FALSE.
Use FLOAT as your database datatype.