Jump to content

Delivery range validation for food online ordering website


eldan88

Recommended Posts

I have restaurant online ordering website based out of New York, NY. People who have been using the website to order online, are placing orders that are out side the restaurants delivery range.

 

Any suggestions on how I can implement a validation on the checkout page, that validates the customer's address, which will match up with the restaurants delivery range.

 

Are there any 3rd party apps that can handle this?

 

Thanks

Link to comment
Share on other sites

You could collect the range of zip codes that are within your delivery area and have a script that cross-references them when the user enters their address during checkout.

 

Or you could work with a coordinates boundary system which would geocode the address and check to see if it's within your boundaries of delivery.

 

Zip code is probably easiest IMO.  However, being from Canada, I'm not sure how large an area a zip code in the US might cover.  Our postal codes don't cover a very large area, not at least in my neck of the woods.

Link to comment
Share on other sites

there's a few ways to do this, maybe it would be easiest to simply hit the google maps API for driving directions.  Any more than 20 minutes, and you're out of luck.

 

That would work as well.  The Directions API will return a 'duration' value which you could toss through a script that will approve/deny if drive time is > 20 (or whatever time you allow).

 

Google Directions API

Link to comment
Share on other sites

I have restaurant online ordering website based out of New York, NY. People who have been using the website to order online, are placing orders that are out side the restaurants delivery range.

 

Any suggestions on how I can implement a validation on the checkout page, that validates the customer's address, which will match up with the restaurants delivery range.

 

Are there any 3rd party apps that can handle this?

 

Thanks

 

Yes validation through zip codes is something I think we can implement with a fast turn around. Thanks

Link to comment
Share on other sites

there's a few ways to do this, maybe it would be easiest to simply hit the google maps API for driving directions.  Any more than 20 minutes, and you're out of luck.

 

 

Does its cost to use google maps API?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.