8000 GitHub - agonzalezro/properties: Filter Idealista flats to send them to CartoDB
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

agonzalezro/properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Properties

A small app in Elixir that will filter some Idealista flats to clean them enough to be sent to CartoDB.

Compilation

mix escript.build

Prereqs

You will need Idealista and Google Directions API access.

For Idealista, request access here: http://developers.idealista.com/access-request

For Google, go here: https://console.cloud.google.com/apis/api/directions_backend/overview

Usage

Now that you have the access, you will need to set 3 environment vars:

  • IDEALISTA_APIKEY
  • IDEALISTA_SECRET
  • GOOGLE_APIKEY

Now, I am pretty sure that you don't want to search exactly for what I did, so take a look to config/cofig.exs and change whatever you need to change.

And finally, run it!

./properties

The output of this command is going to be a CSV that you can easily drag&drop on CartoDB.

Result

Idealista have some shared datasets on CartoDB, you can use them to for example add underground stations and lines. After some tweaking there you can end up with something like this:

In this example I have heavily filter the flats from Idealista by their own filter params and by the commute time: no more than 40m to work (asking Google for it). You will see a different size of the circle depending on the size of the flat.

TODO

  • Directly send (and update!) the properties to CartoDB.
  • Fix (ask) some of the TODOs.

About

Filter Idealista flats to send them to CartoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0