Hello Madhi,

Hope you are doing well.

You can leverage the capabilities of the OOTB data model and achieve this.
Here are some things you need to set up:

- Setup facility data with GeoPoint having latitude/longitude data.
- When the user is accessing the browser, you can identify latitude and
longitude if the user has allowed access to location.
- I have created a JIRA [1] to add a method (getDistanceBetweenGeoPoints)
which you can use to get distance. I will add a patch for this soon. This
will be direct spatial distance between two geo points. You can also use
available Google API's [2]. You need to register for a key to use these
services.
- After that, you can render facilities sorted by distance easily on the
browser.
- For storing desired time slots, you can use estimatedDeliveryDate /
estimatedShipDate fields from OrderItem entity. There are methods available
to set this info into a ShoppingCartItem. These can be furthermore used as
and when required.

[1]: https://issues.apache.org/jira/browse/OFBIZ-11901
[2]:
https://developers.google.com/maps/documentation/distance-matrix/overview

HTH.
--
Best Regards,
Suraj Khurana
Senior Technical Consultant


On Mon, Jul 20, 2020 at 2:00 PM Madhi Krishnan <
[email protected]> wrote:

> Hey All..
> Hope you all are doing well.
> I'm looking for a functionality where Customers can pick their orders from
> the nearest facility .
> The Customer should be able to select the facility and time slot of his
> choice.
> Is there any  functionality or something related to this that exists in
> ofbiz OOTB?
>
> Thanks & Regards
> Madhi krishnan
>

Reply via email to