All popular questions related to OS Property will be posted here

Neighborhood links aren't correct

  • Mr. Dam
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
8 years 3 months 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

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

More
8 years 2 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

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

  • Mr. Dam
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
8 years 2 weeks 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
The following user(s) said Thank You: David

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

More
7 years 6 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
Attachments:

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

More
6 years 11 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">
The following user(s) said Thank You: vitor pinheiro

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

More
6 years 11 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.

More
6 years 11 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.

More
5 years 4 months 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

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

More
5 years 3 months 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!

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

  • Gioacchino Cipriano
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago - 5 years 3 months 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;?>&amp;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&amp;hl=<?php echo $activate_language;?>&amp;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: 5 years 3 months ago by Gioacchino Cipriano.

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

Moderators: Mr. DamNguyen Phu Quan