One of GEO my WP powerful features is to search and find post types based on address and radius via its search forms. In order for a post to be searchable via GEO my WP search form, it must have geolocation assign to it. Luckily, GEO my WP comes with a built-in geolocation system for post types.
Assigning Geolocation to a post
The advanced geolocation section provided by GEO my WP provides you with five different ways to assign geolocation to a post:
- Get your current location - Using the "locate me" button GEO my WP will try to get the user's current position using the HTML Geolocation API. Once found, the location fields will be dynamically populated with the location information.
- Google address autocomplete - See suggested results while you are typing an address. This feature uses Google Places Autocomplete API to produces the suggested results.
- Find your location on the map - Drag the marker to the desired position on the map. Once you set the location on the map, the address fields will be dynamically populated with the values returned from Google Map. This feature uses Google Maps API.
- Enter address Manually:
- Enter the desired location in the address field below the "Address" box.
- Click the "Get lat/long" button to geocode the address and retrieve the latitude and longitude of the location
- Enter Latitude and longitude Manually:
- Enter the Latitude and longitude of the desired location in the "Latitude / Longitude" box.
- Click the "Get Address" button to perform "reverse geocoding" for the latitude and longitude you entered to retrieve the address fields of the location.
When you have done setting up the location pay attention to the "Location status" and make sure that it says "Location is ready"; This tells you that the location set properly. If you see the message "A valid address, latitude and longitude are required to save the Location" that means that some of the geolocation information is missing.