OS Property support center

[SOLVED]Narrow the Search radius in Locator Search

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
8 years 10 months ago - 8 years 9 months ago #84228 by Stephen
Hi
In locator search there presets of search radius for 5, 10, 20, 50, 100 and 200 km (or miles).
I need to narrow this down to radius like 1, 2, 3, 4 .... km.
How can I do this?
which file do I have to modify so that I can change the integer number for search radius?

Cheers
stephen

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Last edit: 8 years 9 months ago by Mr. Dam.

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

More
8 years 9 months ago #84283 by Mr. Dam
Replied by Mr. Dam on topic Narrow the Search radius in Locator Search
Hi Stephen,
To change the Radius value, please follow these steps
- Open file: root > components > com_osproperty > classes > locator.php
- Find:
Code:
$radius_arr = array(5,10,20,50,100,200);
and change value of array to 1,2,3,4 as you want.
Good luck
Dam
The following user(s) said Thank You: Stephen

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

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
8 years 9 months ago #84291 by Stephen
Replied by Stephen on topic Narrow the Search radius in Locator Search
Hi
Worked perfectly well
Thank you.

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

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

Moderators: Mr. DamNguyen Phu Quan