Discussion

Ask HN: How to limit my web app to a particular city?

Hello HN,

I am building a web app (with Django as a backend) where users can create objects with a "where" field that is meant to inform other users viewing the object of its location. Right now, it is a simple dumb text field, so there is no "geo-validation" of the input.

For the launch, I'd like to limit the creation of objects to a certain city. How could I do so and what do you think would be the best/simplest way?

I've thought of a) setting up city-specific subdomains (like craigslist) or b) making that field "smart" so that it would "verify" the address given (like when you type in google maps) and then filter from there to only include addresses from a particular city, but the idea was to keep it simple and that seems like it would bring more problems in (what if the address is not recognized?).

If you have any thoughts or experience with this, I'd love to hear it. Thanks.

1 points oliv__ 12 years ago 2 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton