Skip to content

Instantly share code, notes, and snippets.

@igorescobar
Last active June 17, 2016 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorescobar/597046de45beb6a829c53b2f19cef27e to your computer and use it in GitHub Desktop.
Save igorescobar/597046de45beb6a829c53b2f19cef27e to your computer and use it in GitHub Desktop.
Feature Request: Search for a new house using its approximation of a POI like a subway, mall or something like that.

Feature Request: Search for a new house using its approximation of a POI like a subway, mall or something like that.

Here is how you can achieve it:

  1. When your user are adding a new house for sale/rent they also provide its address.
  2. With this address you are able to convert it to a latitute,longitude (x,y).
  3. With this x,y you are able to use a service like Google Places API and store on your database the proximity of a lot of useful POIs from the house itself.
  4. Now that you have all those nearby POIs stored and its distances from the provided address, you are able to provide a freaking awesome search for your users.
  5. Now you can for example search for a house or appartment, for rent, in Lisbon, which is 1-2km near of a subway or a train station.
  6. How? With postgres you can use extensions like cube or earthdistance. Or with a no-sql solution using Geospatial index (2d).
  7. Data is king.
  8. Thank you.
  • Or am I the only one who thinks that everything done so far doesn't work?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment