Business results not returned by Google Maps on Address International Field

More
9 years 10 months ago #60769 by kspoddar
Thanks. As always, you guys are amazing and your support is simply unmatched!
I think Flexicontent should become a Paid extension. It is that good.

Cheers!
Kirti

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

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

i think i found why the "Cafe ..." is not returned

we are using "geocode" type (only 1 type is supported for autocomplete)
- and in your case you need "establishment" (business result)

geocode instructs the Places service to return only geocoding results, rather than business results.
address instructs the Places service to return only geocoding results with a precise address.
establishment instructs the Places service to return only business results.

- we need to add parameter next to search box to select type of search


-- 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 review. Thanks!

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

More
9 years 10 months ago - 9 years 10 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 review. Thanks!
Last edit: 9 years 10 months ago by ggppdk.

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

More
9 years 10 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 review. Thanks!

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

More
9 years 10 months ago - 9 years 10 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 review. Thanks!
Last edit: 9 years 10 months ago by ggppdk.

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

More
9 years 10 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

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

More
9 years 10 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 review. Thanks!

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

More
9 years 10 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 review. Thanks!

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

More
9 years 10 months ago #60871 by kspoddar
Hi - Thanks for the response. It works as it displays on the map accurately. However, it does not pick up the address. I have attached the snapshot.

I did not understand

(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


Cheers!
Kirti

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

More
9 years 10 months ago - 9 years 10 months ago #60915 by ggppdk
Replied by ggppdk on topic Google Maps on Address Field
Ok, fixed it

github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable
click "download-zip" and install it

Address should be fine, please confirm it


-- 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 review. Thanks!
Last edit: 9 years 10 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
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