Your cart is currently empty!
MAM GeoFilters
Installation Guide
Overview
MAM GeoFilters is a plugin in the Mobile App Manager (MAM) Suite that enables app users to select and switch between cities or neighborhoods from a button on the top navigation header of the mobile app. This feature dynamically filters listings and content based on the user’s selected city, providing a localized experience.
Administrators can manage which cities (and optional neighborhoods) appear in the list, toggle visibility, and define default map coordinates directly in the WordPress Admin settings page.
⚙️ 1. Requirements
- WordPress 6.0 or higher
- PHP 7.4+
- MAM Main plugin (version 1.0.0 or later)
- Optional:
- GeoDirectory or compatible directory plugin (for automatic city extraction)
- GeoIP Detection (for automatic user city lookup)
📦 2. Installation
Option A – Auto-installed via MAM Suite Updater
- Go to WP Admin → Mobile App Manager → Software.
- Click Install next to MAM GeoFilters.
- Wait for installation to complete, then click Activate.
Option B – Manual Upload
- Download the plugin ZIP (
mam-geofilters.zip
). - From your WordPress dashboard, go to Plugins → Add New → Upload Plugin.
- Select the ZIP file and click Install Now.
- Once installed, click Activate Plugin.
🧭 3. Accessing the Settings Page
Once activated, navigate to:
WP Admin → Mobile App Manager → Settings → GeoFilters
You’ll see a tab titled “Manage Cities.”
This is where you add, edit, or hide cities available to users in the mobile app.
🏙️ 4. Managing Cities
The Manage Cities screen displays a table of all cities currently configured in your app.
Adding a New City
- Scroll to the bottom of the list.
- Enter the following:
- Name: The city name as it should appear in the app (e.g., “Chicago, IL”).
- Latitude / Longitude: Center point for this city’s map view.
- Active: Check this box to make the city visible in the app.
- Click Save Changes.
💡 Tip: Latitude and longitude can be copied from Google Maps by right-clicking the desired point and selecting “Copy coordinates.”
Editing or Hiding Cities
- Edit: Update the name, coordinates, or status directly in the table.
- Hide: Uncheck the “Active” box and click Save Changes. Hidden cities remain stored in WordPress but are not shown in the app.
🏘️ 5. Managing Neighborhoods (Optional)
- In the Manage Cities screen, click Select City → Neighborhood View.
- Add or edit neighborhoods for that city (name, lat/lon, active checkbox).
- Save your changes.
These appear beneath each city as nested filters in the mobile app.
🌍 6. App Integration
Once configured, the GeoFilters data is automatically sent to the mobile app via your existing MAM JSON feed.
In the Mobile App:
- A location selector button appears at the top of the app header.
- Tapping this opens a city list (and optional neighborhoods).
- When the user selects a city:
- The app reloads the home and listings screens for that region.
- The setting persists between sessions.
📱 No extra configuration is needed in the app code—GeoFilters integrates automatically through the existing data endpoints.
🧩 7. Optional Features
Feature | Description |
---|---|
Automatic GeoIP Detection | If enabled, the app pre-selects the user’s city based on IP address. |
Current Location Option | If GPS is enabled, “Current Location” appears at the top of the city list. |
Custom Layouts | Admins can define layout IDs (e.g., 501 for image-based layouts, 502 for compact list). |
City Images | Upload a background image for each city to create a visually rich selection screen. |
🧰 8. Troubleshooting
Issue | Possible Cause | Solution |
---|---|---|
City list is empty | No cities have been added or all are inactive. | Add at least one active city in Manage Cities. |
“Change City” button not visible | The app may be using a cached JSON file. | Perform a data refresh in the app or clear cache. |
GPS location not working | Device permission issue or no_gps=yes flag set. | Ensure location permission is enabled in the app. |
City coordinates not centering properly | Invalid lat/lon format. | Verify numeric format (e.g., 41.8781 , -87.6298 ). |
🧩 9. Uninstalling
- Go to Plugins → Installed Plugins.
- Find MAM GeoFilters and click Deactivate.
- Then click Delete.
This removes the plugin files but leaves stored city data in the database in case you reinstall later.
🏁 Summary
Feature | Description |
---|---|
Purpose | Allows users to change cities or neighborhoods in the mobile app. |
Admin Controls | Add, edit, or hide cities directly in WordPress. |
Integration | Works seamlessly with MAM Main, GeoDirectory, and the MAM mobile apps. |
Display | Adds a top navigation city selector with optional neighborhood filtering. |