A plugin for Osclass, a free and open source classifieds script. This plugin makes it possible to get search results based on the distance between cities.
Version 3.0 or greater and Google Maps plugin v3 (see: http://forums.osclass.org/development/google-maps-api-deprecated/)
- Download the latest release here
- Clone the git repo — git clone https://github.com/dienast/distance_search.git
- Make sure you have installed the Google Maps plugin with a working v3 (see: http://forums.osclass.org/development/google-maps-api-deprecated/)
- Once you have installed the plugin you yourself should import the latitude and longitude values of all your cities in the columns 'd_coord_lat' and 'd_coord_long' of your osclass city table. You can use a batch converter (e.g. http://www.findlatitudeandlongitude.com/batch-geocode/) to generate the lat and long values.
- Drop down box with possible kilometer distances from where you can search for ads.
This Osclass forum thread is where you can follow developments and post questions.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.