- Posts: 12818
- Thank you received: 1659
All popular questions related to OS Property will be posted here
Neighborhood links aren't correct
- Mr. Dam
- Topic Author
- Offline
- Administrator
Less
More
9 years 4 days ago #73195
by Mr. Dam
Neighborhood links aren't correct was created by Mr. Dam
Hi Everyone,
Some customers asked us that the nearby links to Restaurant, Schools, Hospitals etc. above Google in some properties aren't correct. (With the address of properties). We would like to answer as below:
As you can see the links (as sample below):
www.google.com/maps?f=l&hl=en&q=category...ls&om=1&near=Address of property.
we pass Category name (Restaurant, Schools, Hospitals etc.) with Address of property to Google search API. In some cases, Google returns wrong results because there are a lot places on the world having the same name.
And in these cases, we can't do anything, because OS Property doesn't implement any Search function.
Hope you understand.
Dev team
Some customers asked us that the nearby links to Restaurant, Schools, Hospitals etc. above Google in some properties aren't correct. (With the address of properties). We would like to answer as below:
As you can see the links (as sample below):
www.google.com/maps?f=l&hl=en&q=category...ls&om=1&near=Address of property.
we pass Category name (Restaurant, Schools, Hospitals etc.) with Address of property to Google search API. In some cases, Google returns wrong results because there are a lot places on the world having the same name.
And in these cases, we can't do anything, because OS Property doesn't implement any Search function.
Hope you understand.
Dev team
Please Log in or Create an account to join the conversation.
- Luca
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
8 years 11 months ago #74133
by Luca
Replied by Luca on topic Neighborhood links aren't correct
any suggestion how to remove only this function (leaving map)?
Tnx
Tnx
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Topic Author
- Offline
- Administrator
Less
More
- Posts: 12818
- Thank you received: 1659
8 years 9 months ago #77836
by Mr. Dam
Replied by Mr. Dam on topic Neighborhood links aren't correct
Hi,
You can hide the Location links above the Google Map at Back-end > OS Property > Manage OSP Themes > Select your using theme > and select No at field: Show Location links above Google Map
Thanks
Dam
You can hide the Location links above the Google Map at Back-end > OS Property > Manage OSP Themes > Select your using theme > and select No at field: Show Location links above Google Map
Thanks
Dam
The following user(s) said Thank You: David
Please Log in or Create an account to join the conversation.
- vitor pinheiro
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
8 years 3 months ago #86988
by vitor pinheiro
Replied by vitor pinheiro on topic Neighborhood links aren't correct
Good morning, how do I change the URL by taking the word "category:"?
... as the google error not find a nearby Hospital is that demand is being by "category: Hospital" and not only "Hospital" in the url.
Example that does not work (with the word "category:" in the URL): local.google.com/local?f=l&hl=pt&q=categ...a%20Leonor%201.110,% 20Campan% C3% A1rio, 20Diadema%,% 20S% C3% A3o% 20Paulo,% 2009920-080
Example that works (without the word "category:" in the URL): local.google.com/local?f=l&hl=pt&q=+Esco...r%201.110,%20Campan% C3% A1rio, 20Diadema%,% 20S% C3% A3o% 20Paulo,% 2009920-080
... as the google error not find a nearby Hospital is that demand is being by "category: Hospital" and not only "Hospital" in the url.
Example that does not work (with the word "category:" in the URL): local.google.com/local?f=l&hl=pt&q=categ...a%20Leonor%201.110,% 20Campan% C3% A1rio, 20Diadema%,% 20S% C3% A3o% 20Paulo,% 2009920-080
Example that works (without the word "category:" in the URL): local.google.com/local?f=l&hl=pt&q=+Esco...r%201.110,%20Campan% C3% A1rio, 20Diadema%,% 20S% C3% A3o% 20Paulo,% 2009920-080
Please Log in or Create an account to join the conversation.
- abombazza
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 2
7 years 8 months ago #96694
by abombazza
Replied by abombazza on topic Neighborhood links aren't correct
i personalized the url lik this:
<i class="osicon-search"></i> <a href=" local.google.com/local?f=l&hl= &q=" class="category" rel="nofollow" target="_blank">
<i class="osicon-search"></i> <a href=" local.google.com/local?f=l&hl= &q=" class="category" rel="nofollow" target="_blank">
The following user(s) said Thank You: vitor pinheiro
Please Log in or Create an account to join the conversation.
- vitor pinheiro
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
7 years 8 months ago #96699
by vitor pinheiro
Replied by vitor pinheiro on topic Neighborhood links aren't correct
:lol: :lol: :lol: :lol: Thank you!!!
Please Log in or Create an account to join the conversation.
- abombazza
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 2
7 years 8 months ago #96715
by abombazza
Replied by abombazza on topic Neighborhood links aren't correct
Tell me if is right...rememeber to backup helper.php before update component
The following user(s) said Thank You: vitor pinheiro
Please Log in or Create an account to join the conversation.
- Vefarinnmikli.is
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
6 years 1 month ago #118738
by Vefarinnmikli.is
Replied by Vefarinnmikli.is on topic Neighborhood links aren't correct
abombazza can you tell me which file you modified for this to work.
Thanks
Thor
Thanks
Thor
Please Log in or Create an account to join the conversation.
- Olga
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
6 years 1 week ago #120190
by Olga
Replied by Olga on topic Neighborhood links aren't correct
I set up Configuration->Layouts->Show neighborhood fields group: No, but there are neighborhood fields in Property details still. How can I disable to display neighborhood fields?
Thank You!
Thank You!
Please Log in or Create an account to join the conversation.
- Gioacchino Cipriano
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
6 years 5 days ago - 6 years 4 days ago #120328
by Gioacchino Cipriano
Replied by Gioacchino Cipriano on topic Neighborhood links aren't correct
Yes, it's true. I no longer remembered that we had found a solution together with abombazza.
For the code:
<i class="osicon-search"></i> <a href=" http / local.google.com/local?f=l&hl=<?php echo $activate_language;?>&q=<?php echo JText::_('OS_SCHOOLS');?><?php echo JText::_('OS-NEAR-FOR-MAPS');?><?php echo $address;?>" class="category" rel="nofollow" target="_blank"><?php echo JText::_('OS_SCHOOLS');?> </a> </div>
A language override is also required for
OS-NEAR-FOR-MAPS (for Italian: +vicino+a+ or for english: +near+to+)
Also on the code I changed the protocol from http to https:
<i class="osicon-search"></i> <a href="https / local.google.com/local?f=l&hl=<?php echo $activate_language;?>&q=<?php echo JText::_('OS_SCHOOLS');?><?php echo JText::_('OS-NEAR-FOR-MAPS');?><?php echo $address;?>" class="category" rel="nofollow" target="_blank"><?php echo JText::_('OS_SCHOOLS');?> </a></div>
[edit]
Sorry, in English it is enough just "near"
For the code:
<i class="osicon-search"></i> <a href=" http / local.google.com/local?f=l&hl=<?php echo $activate_language;?>&q=<?php echo JText::_('OS_SCHOOLS');?><?php echo JText::_('OS-NEAR-FOR-MAPS');?><?php echo $address;?>" class="category" rel="nofollow" target="_blank"><?php echo JText::_('OS_SCHOOLS');?> </a> </div>
A language override is also required for
OS-NEAR-FOR-MAPS (for Italian: +vicino+a+ or for english: +near+to+)
Also on the code I changed the protocol from http to https:
<i class="osicon-search"></i> <a href="https / local.google.com/local?f=l&hl=<?php echo $activate_language;?>&q=<?php echo JText::_('OS_SCHOOLS');?><?php echo JText::_('OS-NEAR-FOR-MAPS');?><?php echo $address;?>" class="category" rel="nofollow" target="_blank"><?php echo JText::_('OS_SCHOOLS');?> </a></div>
[edit]
Sorry, in English it is enough just "near"
Last edit: 6 years 4 days ago by Gioacchino Cipriano.
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.