Why is this useful? It allows you to create a mini-form anywhere on your site and pass the search parameters to your locator page.
You can override the default behavior by passing values for the following settings:
If using the JavaScript code, pass parameters in the query string of the containing page (easier option):
------------------------------
This method allows you to effortlessly pass and grab parameters from the query string, set by another form using the GET method.
Example 1: http://www.easylocator.net/demo/00/?address=90210&product=Product+1&distance=200
Result: The above link will initiate a search on the zip code "90210" for locations with "Product 1" within "200" mi./km.
Example 2: http://www.easylocator.net/demo/00/?address=New+York+City&distance=5
Result: The above link will initiate a search on "New York City" for locations within "5" mi./km.
You can override the default behavior by passing values for the following settings:
- address - any search value, i.e. ZIP code, city, and state, or full address
- product - a product name, if you want to filter
- category - a category name, if you want to filter
- distance - numeric distance to search from the default location
If using the JavaScript code, pass parameters in the query string of the containing page (easier option):
------------------------------
This method allows you to effortlessly pass and grab parameters from the query string, set by another form using the GET method.
Example 1: http://www.easylocator.net/
Result: The above link will initiate a search on the zip code "90210" for locations with "Product 1" within "200" mi./km.
Example 2: http://www.easylocator.net/
Result: The above link will initiate a search on "New York City" for locations within "5" mi./km.
Example 3: http://www.easylocator.net/demo/00/?address=36.846985,-83.322868
Result: The above link will initiate a search on latitude "36.846985" and longitude "-83.322868" for locations within the default distance range.
Result: The above link will initiate a search on latitude "36.846985" and longitude "-83.322868" for locations within the default distance range.
------------------------------
If using the HTML iframe code, pass parameters in the URI of the iframe SRC (more difficult option):
------------------------------
This method allows you to pass defaults in the iframe, but you'll need to write your own code to grab the GET or POST variables from the form.
Example 1: http://www.easylocator.net/search/map3/test02/address/90210/product/Product+1/distance/200/
Result: The above link will initiate a search on the zip code "90210" for locations with "Product 1" within "200" mi./km.
Example 2: http://www.easylocator.net/search/map3/test02/address/New+York+City/distance/5/
Result: The above link will initiate a search on "New York City" for locations within "5" mi./km.
If using the HTML iframe code, pass parameters in the URI of the iframe SRC (more difficult option):
------------------------------
This method allows you to pass defaults in the iframe, but you'll need to write your own code to grab the GET or POST variables from the form.
Example 1: http://www.easylocator.net/
Result: The above link will initiate a search on the zip code "90210" for locations with "Product 1" within "200" mi./km.
Example 2: http://www.easylocator.net/
Result: The above link will initiate a search on "New York City" for locations within "5" mi./km.
Example 3: http://www.easylocator.net/search/map3/test02/address/36.846985,-83.322868/
Result: The above link will initiate a search on latitude "36.846985" and longitude "-83.322868" for locations within the default distance range.
Result: The above link will initiate a search on latitude "36.846985" and longitude "-83.322868" for locations within the default distance range.