Linux 软件免费装
Banner图

Simple Locator

开发者 kylephillips
更新时间 2024年12月14日 00:41
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 6.7

标签

location google maps map store locator locations locator store map

下载

2.0.3 1.0.1 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.9 1.1.0 1.1.1 1.1.2 1.2.1 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.0.8 1.1.3 1.1.4 1.1.5 1.2.0 2.0.2 1.0.0 1.3.1 2.0.4

详情介绍:

Why use Simple Locator? Simple locator is ideal for developers who are looking for a way to implement location search for any post type. Simple locator is different in that it allows the selection of any existing custom fields for use as the geocoded data sources. Don't have an existing post type with geocoded latitude and longitude fields? Simple Locator includes a default "Locations" post type with fields for latitutde, longitude, address, phone number, website, & more. This post type's name and labels are configurable through the plugin settings. Simple Locator also offers developer-friendly options for adding custom Google Maps styling. Select from an existing list, leave the default styles, or add your own JSON styles. Using Simple Locator
  1. Add locations. This can either be the included "locations" post type or an existing custom post type with existing geocoded fields. Locations can also be imported in bulk using the included CSV importer.
  2. Use the Shortcode [wp_simple_locator] or Widget to display a search form. The shortcode offers more options for map and form customization.
For more information visit locatewp.com. Important: Simple Locator requires WordPress version 3.8 or higher, and PHP version 5.4 or higher.

安装:

  1. Upload simple-locator to the wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Click on the Locations Menu item to begin adding locations.
  4. To change the post type, geocoded fields, or map styles, visit Settings > Simple Locator

屏幕截图:

  • Form results load without page refresh. Customize the results & map containers if needed.
  • The included "location" post type includes custom fields specific to locations.
  • Includes options for Google Maps API Key, measurement unit (miles/kilometers), custom map pin image, whether to output the included CSS, whether to display the map in the specified post type's singular view, and option to add a geolocation button on enabled devices.
  • Use the included post type and latitude/longitude fields, or specify your own existing combination of type and fields. Works with Advanced Custom Fields. Ideal for developers looking for a customizable location search.
  • Choose from a list of pre-defined map styles, and optionally customize the Google Maps options object.
  • Or, paste your own JSON formatted styles.
  • Optionally show a default map on page load, with a custom location. Additionally, results can be set to show automatically on page load if the user's device or browser has geolocation capabilities. If the user doesn't, or they deny location access, the default map will show if set to.
  • Configure results display by adding custom fields from the chosen post type plus post data including the title, permalink, excerpt and thumbnails.
  • Import locations in bulk from a CSV file. Locations will be automatically geocoded using the Google Maps Geocode API (Import functionality requires PHP version 5.4+ and a valid Google Maps API key with the Geocoding API enabled).

升级注意事项:

1.4.0 Ability to customize Google Maps options object added. Important: If the Google Maps API has been disabled via the plugin settings, this option will not be available. 1.3.1 Minor bug fixes. 1.3.0 Various features added including Google Places autocomplete option, Advanced Custom Field Map field integration, "no results" text customization, non-ajax option with simple pagination, and option to hide the included meta fields from post entry screens. 1.2.0 Bulk CSV import is now included. Simple Locator now requires PHP version 5.4+. 1.1.0 Important: the form widget namespace has changed. Any manual calls to the widget should be updated to the new namespace: SimpleLocator\API\FormWidget. The single map shortcode name and namespace have also changed. Any manual calls to this shortocde should be updated. The new name is 'SingleLocationShortcode'. 1.0.9 Multiple results configuration options added including default map/results, results field display, and more. Portuguese Translation (Provided by Luis Martens) 1.0.8 Optional geolocation button added with customizable text, option to disable output of Google Maps API call (for compatibility with other plugins) 1.0.7 Minor bug fixes in custom post types 1.0.6 Options added to customize the included locations post type and its labels 1.0.5 Minor Bug fixes in compatibility with other plugins 1.0.4 Added option to select hidden meta fields for custom field selection 1.0.3 Bug fix in singular post view map display 1.0.2 Bug fixes 1.0.1 Minor Localization bug fixes 1.0.0 Initial release

常见问题:

I have a LOT of locations. How can I get them imported in bulk?

As of version 1.2.0, Simple Locator includes a bulk CSV data importer. If you have your location data available in CSV format with separate address, city and state/province columns, you may use this tool to import your locations as posts and geocode the locations automatically. The Google Maps Geocoding API limits requests to 2500 per day, so if your file contains over 2500 rows, it may take multiple days to complete the import. See the Simple Locator Website for details on importing locations.

Why does importing take so long?

The Google Maps Geocoding API limits requests to 5 per second, and 2500 per day. The import process is throttled to comply with the API limits. See the Google Geocode API documentation for more information.

I got an error during a large import. What do I do now?

Import progress is saved, and you may always come back and continue at a later time. If you received an API limit error, you'll need to wait 24 hours before continuing the import. If you attempt to continue after receiving this notice, your API key may be disabled by Google for violating their API terms. You may check your request usage in the Google Developer Console. If you receive a 500 error from Google during the import, try refreshing the page and continuing the import. If the issue persists, check the last import row for formatting errors (the last import row will be displayed on page refresh).

Why does "ZERO RESULTS" mean in the import error log?

The Google Maps Geocoder could not locate the address. Check the corresponding CSV row number for formatting errors.

Why isn't my Google Maps API Key Working for the Importer?

Your API key must be public, and have the Geocoding API enabled. To enable the API, visit your Google Developer console, and enable both the "Javascript API v3" and the "Geocoding API". You may also check your API usage through the developer console.

What 3rd party services does this plugin use?

All geocoding and mapping functionality takes advantage of the Google Maps Javascript API V3. Unexpected changes in the API service may effect plugin functionality, but any changes will be monitored and addressed as needed.

Can I hide the map, and only show text results?

Use of the Google Maps API requires that the data be displayed in a Google map. Hiding the map violates the API licensing.

How do I add custom functionality to the generated maps?

Several Javascript callback functions are provided for key events in search, and map rendering. To learn more about these callbacks, visit locatewp.com.

Is my existing data automatically geocoded?

No. If an existing post type is chosen as the search term, there must be preformatted latitude and longitude fields associated with each post. Geocoded fields must be formatted using the degree format. All new posts under the “location” post type are geocoded on save.

Does it work outside the United States?

The search form uses the Google Maps API geocoding service, which offers reliable data throughout the world. Use of the API may change depending on your specific location. Localization is possible using the provided POT files in the /languages folder. To toggle between miles and kilometers, visit Settings > Simple Locator.

How do I paginate results?

Pagination is available in non-AJAX forms. To disable AJAX form submission, use the ajax="false" shortcode option. To limit results per page, use the perpage="15" option. NOTE: custom map/results containers are not available in non-AJAX forms.

I'm a developer. How do I customize the map options?

As of version 1.4.0, the Google Maps options object is customizable. To customize the options, visit settings > Simple Locator > Map Display. Check the box to enable custom map options and enter them. This MUST be a properly formatted Javascript object. Think of this as if you were writing your own Google Maps implementation and needed to pass options. Also note, enabling custom options will override any options set in shortcodes.

Can I use this on a commercial site?

This plugin relies on the Google Maps Javascript API. Please refer to the API documentation regarding commercial use and licensing.

更新日志:

2.0.4 2.0.3 2.0.2 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.0 1.3.1 1.3.0 1.2.1 1.2.0 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.10 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0