Business results not returned by Google Maps on Address International Field

More
9 years 3 months ago - 9 years 3 months ago #60771 by ggppdk
Replied by ggppdk on topic Google Maps on Address Field
I mean a drop down select "type of search"

with options, according to Google supported types:

- All search types
- Geographic Location
- Exact Address
- Business Location
- City
- Region or Province


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 9 years 3 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #60772 by ggppdk
Replied by ggppdk on topic Google Maps on Address Field
This seems to be little work (a few lines of code ?)

if it is , then will include it v3.0.14
github.com/FLEXIcontent/flexicontent-cck/issues/492


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago - 9 years 3 months ago #60818 by ggppdk
Replied by ggppdk on topic Google Maps on Address Field
Hi

the search not returning results is easy to fix now,
to fix your web-site, (carefully) edit file:
plugins/flexicontent_fields/addressint/tmpl/field.php

replace line:
Code:
autoComplete_'.$field->name.$n.' = new google.maps.places.Autocomplete(document.getElementById("'.$elementid_n.'_autocomplete"), { types: [ "geocode" ] });

with:
Code:
autoComplete_'.$field->name.$n.' = new google.maps.places.Autocomplete(document.getElementById("'.$elementid_n.'_autocomplete"));


but i took opportunity to make search a bit more flexible:


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Attachments:
Last edit: 9 years 3 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #60819 by kspoddar
Thanks for the amazing response once again. I made the change and autocomplete works. However, it doesn't pick up the address.
What happens is that autocomplete displays on the map but the address field has very little details. Please find the screenshot for your reference

Cheers!
Kirti
Attachments:

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #60830 by ggppdk
Replied by ggppdk on topic Google Maps on Address Field
Hello

you mean it does not pick up the NAME of the business !!

yes i have seen this, it ignores business name / title
- it is not saved , it is just lost

ok 1 more thing to do, i have added it here not to forget
github.com/FLEXIcontent/flexicontent-cck/issues/492


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #60870 by ggppdk
Replied by ggppdk on topic Google Maps on Address Field
Hello

please confirm the fix and some related improvements

- visit this URL
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

and click "Download ZIP"
install via Joomla extension manager

- fixes business results not returned
- adds storing and display of business name
(NOTE: in vewing TAB : delete contents of Address format parameter and save)
- adds drop down selector for search types (by default ALL)
- adds ability to limit to specific countries
- adds default value for: search type and country

enabled new parameters in Editing TAB and save


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.287 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save