Assign Geolocation To a Post

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.

Once GEO my WP Post Types Locator add-on activated and setup its Geolocation section will be added to the "Post Edit" page of the post type that you chose in Post Type Locator Settings page.

Post Types location Section

Post Types location Section

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:

  1. 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.
  2. Google address autocomplete  - See suggested results while you are typing an address. This feature uses Google Places Autocomplete API to produces the suggested results.
  3. 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.
  4. Enter address Manually:
    1. Enter the desired location in the address field below the "Address" box.
    2. Click the "Get lat/long" button to geocode the address and retrieve the latitude and longitude of the location
  5. Enter Latitude and longitude Manually:
    1. Enter the Latitude and longitude of the desired location in the "Latitude / Longitude" box.
    2. Click the "Get Address" button to perform "reverse geocoding" for the latitude and longitude you entered to retrieve the address fields of the location.
Google Map

Google Map

Google Places Autocomplete

Google Places Autocomplete

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.