valandor062
New Member
I'm currently working on a personal project and I noticed that Fabrik has a Google calendar plugin/visualization. I am wondering if it's possible to store lat/long information in a database for any given location then on the map have a radius search for items that are within x amount of distance from that radius.
So if I have a list of restaurants in a state I would want someone to be able to type in an address, and a distance and when they submit the form it would pull up all locations in the database that are within that distance. You can get the geo-coding for that address entered from the response from Google.
So really what I would need is to call to Google via Ajax on it's response send the lat/long to an internal function that would call the database function to get what's required to show and then return it via ajax and update the map with the markers and possible removing any if the radius of the search was lowered from the last request.
If this is pre-built into fabrik I don't see it useful to reinvent the wheel. If not I may use the Google map plugin as a base for this and share the code once it's completed. Any help or suggestion would be appriciated....
Thanks,
Valandor
A.K.A. ~ Anthony
So if I have a list of restaurants in a state I would want someone to be able to type in an address, and a distance and when they submit the form it would pull up all locations in the database that are within that distance. You can get the geo-coding for that address entered from the response from Google.
So really what I would need is to call to Google via Ajax on it's response send the lat/long to an internal function that would call the database function to get what's required to show and then return it via ajax and update the map with the markers and possible removing any if the radius of the search was lowered from the last request.
If this is pre-built into fabrik I don't see it useful to reinvent the wheel. If not I may use the Google map plugin as a base for this and share the code once it's completed. Any help or suggestion would be appriciated....
Thanks,
Valandor
A.K.A. ~ Anthony