• Resolved mammadkoma

    (@mammadkoma)


    Hi
    How we can create a pod filed with Google Map or other map Location field type?
    And how to sort of those pods by nearest location from current location?

    • This topic was modified 7 years, 9 months ago by mammadkoma.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @mammadkoma,

    This is a feature that will be in Pods but probably not in the near future.
    In the meantime I’ve created two plugin add-on’s for Pods. An Address field and a Maps component (currently only supporting Google Maps API).
    https://github.com/JoryHogeveen/pods-address-maps
    You can install these through FTP or by creating .zip files from both folders separately.

    The code is the same as on the official PR at Pods GitHub (
    https://github.com/pods-framework/pods/pull/3634), only refactored as plugins. I will make sure the code keeps maintained as long as this feature isn’t within Pods core.

    Once activated the Address field will be available as a field type and you’ll have to enable the maps component.

    What is it you want to build using Google Maps?
    Let me know on GitHub: https://github.com/JoryHogeveen/pods-address-maps/issues/new

    Regards, Jory

    • This reply was modified 7 years, 9 months ago by Jory Hogeveen.
    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Jory is correct, this is not yet a feature in Pods itself. We are working closely with Jory to convert his custom field type into the new format that is powered by our new React field type rendering. We’ll keep the GitHub PR and accompanying issue updated as we progress on that. It probably won’t make it into Pods 2.8 but if not then it should be very likely to see it in Pods 2.9.

    Thread Starter mammadkoma

    (@mammadkoma)

    Thank you
    how to sort of those pods by nearest location from current location?

    Plugin Author Jory Hogeveen

    (@keraweb)

    That isn’t within the possibilities of these plugins. It will only store the GEO data within that field and optionally show it on a maps as a marker.

    Sorting (and any route-related calculation) should be done with the Google Maps API after rendering the page.
    https://developers.google.com/maps/documentation/distance-matrix/intro

    Or you could create your own sorting logic with PHP or JS. This can only be done in a direct line for distance measuring, not as a route (driving/cycling) distance.

    I will add this to the list of ideas though!

    Regards, Jory

    • This reply was modified 7 years, 9 months ago by Jory Hogeveen.
    Thread Starter mammadkoma

    (@mammadkoma)

    Thanks
    Do you know any other plugin in wordpress for create a list of places and sort them by location distance?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Maybe this plugin could help you:
    https://nl.ww.wp.xz.cn/plugins/wp-store-locator/
    Not sure if it will match 100% with what you want but I believe this is currently one of the best location based plugins out there without using code.

    Another is https://geomywp.com/ but that is a lot more advanced (and has some premium tools).

    Thread Starter mammadkoma

    (@mammadkoma)

    Thank you

    Thread Starter mammadkoma

    (@mammadkoma)

    you know I want to create a business directory that : different job categories sign up. then after sign in to site , fill another special fields information for every job and select his location.
    then pay a tiny money for show some extra fields for people.
    then people search a job and find nearest list by kilo meter and see all free fields or see both free and paid field.
    Is it possible by pods?

    • This reply was modified 7 years, 9 months ago by mammadkoma.
    Plugin Contributor Jim True

    (@jimtrue)

    Pretty much anything is possible in Pods depending on how much effort and additional code you want to put into it. We don’t have any ecommerce connections in Pods, so that would be outside of Pods. Roles and Capabilities and protecting content by role and capability is managed outside of Pods. We have the ability to restrict content by role for input and we support the custom capabilities of WordPress Core, but most of what you’re asking in that question has to do with full workflow, specifically around membership restriction. Possible, yes, with a lot of custom code.

    I believe we answered your original question, so I’m marking this question resolved. If you have a new question, please open a new support ticket as it gets confusing when we’re answering multiple questions on the same support request.

    Thread Starter mammadkoma

    (@mammadkoma)

    I find Directorist plugin.
    This is a business directory.
    I think I can do by it and help pods for add special fields.

    • This reply was modified 7 years, 9 months ago by mammadkoma.
    • This reply was modified 7 years, 9 months ago by mammadkoma.
    Plugin Contributor Jim True

    (@jimtrue)

    Yep, it’s fairly easy to add additional fields to other custom post types. Good luck!

    Hi Jim – I’m hopefully missing something obvious, but I can’t seem to get the Pods address field to display text output through Beaver Builder. Not even attempting maps output – stuck at step 1. And no problem adding any other Pod fields btw.

    Much thanks,

    Sam

    Pods – Custom Content Types and Fields Version 2.7.9
    Pods Address Field Version 1.0
    Pods Maps Version 1.0
    Pods Beaver Themer Add-On Version 1.3.1
    Beaver Builder Plugin (Agency Version) Version 2.2.0.1
    Beaver Themer Version 1.2.1.1

    • This reply was modified 7 years, 5 months ago by beekoff.
    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @beekoff,

    Since the Address field and Maps component both aren’t supported by Pods currently I doubt this will work out-of-the-box with the BB addon at all.
    This probably need some custom code to make it compatible.

    Regards, Jory

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Field Type : Google Map Location’ is closed to new replies.