ArrayPress - Google Geocoding Tester
Demonstration WordPress plugin showing Google Geocoding API library integration
by David Sherlock · github.com/arraypress/google-geocoding-plugin · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/arraypress/google-geocoding-plugin/archive/refs/heads/main.zipReadme
Google Geocoding Tester Plugin for WordPress
A WordPress plugin that provides a user interface for testing and demonstrating the Google Geocoding API integration. This plugin allows you to easily test forward and reverse geocoding operations and manage API settings through the WordPress admin interface.
Features
- Visual interface for geocoding testing
- Forward geocoding (address to coordinates)
- Reverse geocoding (coordinates to address)
- Configurable caching system
- Comprehensive location details including:
- Formatted address
- Precise coordinates
- Place ID and types
- Plus codes
- Viewport boundaries
- Detailed address components
- Business location indicators
- Partial match status
Requirements
- PHP 7.4 or later
- WordPress 5.0 or later
- Google Maps API key with Geocoding API enabled
Installation
- Download or clone this repository
- Place in your WordPress plugins directory
- Run
composer installin the plugin directory - Activate the plugin in WordPress
- Add your Google Geocoding API key in Google > Geocoding
Usage
- Navigate to Google > Geocoding in your WordPress admin panel
- Enter your Google Geocoding API key in the settings section
- Configure caching preferences (optional)
- Use the forward geocoding form to convert addresses to coordinates
- Use the reverse geocoding form to convert coordinates to addresses
- View comprehensive location information in the results table
Features in Detail
Forward Geocoding
- Convert any address or place name into precise coordinates
- Get detailed address components and location type
- Identify business locations and points of interest
Reverse Geocoding
- Convert latitude/longitude pairs into human-readable addresses
- Get nearest address and place information
- Access administrative area details
Caching System
- Configurable cache duration
- Cache clearing functionality
- Reduced API usage and improved performance
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the GPL-2.0-or-later License.
Support
For support and bug reports, please use the GitHub issue tracker.