The issue you may run into is that "24 Restricted Street" and "24 Restricted St" are different things. All it takes is an abbreviation, extra dash, or random space and you have a different text string.
Is it just a single address/location you want to restrict? Or more like, "this neighbourhood is dangerous, so we don't service there"? If it's just a single address, that may be hard (mainly because side-stepping that address by a few meters would work). But if we are talking a slightly larger region, I'd suggest something like:
- Determine your "restricted zone" in the form of a polygon.
- Use a geocoding service (as @JenniferAcunto referenced below) and extract your location
- Compare your location to your "restricted zone", and if the point falls within that polygon, return "no can do!"
Basically, you'd be wanting to do the reverse of this.