Using Google Places API
I am building a local business directory using the SabaiDirectory Plugin.
The Problem :
While the directory is "young" and don't have many listings, a lot of the searches will return " No Results Found"
The Solution :
Populate the directory search results using the Google Places API showing them the same local places listings they would see on a Google search. This will ensure my visitors ALWAYS get a search result even if I don't have any listed businesses for that keyword yet.
The following conditions must apply :
- If there are listings in the database (directory) those must show FIRST
- After which the Google Local Listings appear
- If there are no existing listings obviously only listings pulled from the Google Places API will show
I have a plugin that does almost exactly that, but I have to create a page "seeded with the keyword" for every keyword I want to pull results for. I obviously can not do that for thousands of different keyword-terms people "may" perhaps look for.
I need a plugin/code that will take ANY "search keyword" the user inputs and go pull results from Google if none is available in the database already.
The easierst/quickest may be to simply modify the existing plugin to "seed" a page with the users search term and then submit as normally.
Can anybody help me do any of the above perhaps?
Thanks in advance.
Henk
-
seasoned -
Thanks - 1 reply
{{ DiscussionBoard.errors[8181419].message }}-
Blixim -
Thanks
{{ DiscussionBoard.errors[8181635].message }} -
-
-
seasoned -
Thanks - 1 reply
{{ DiscussionBoard.errors[8182109].message }}-
Blixim -
Thanks
{{ DiscussionBoard.errors[8184922].message }} -
-