diff --git a/documentation/build/.doctrees/app.doctree b/documentation/build/.doctrees/app.doctree index 84732ab4..90779d64 100644 Binary files a/documentation/build/.doctrees/app.doctree and b/documentation/build/.doctrees/app.doctree differ diff --git a/documentation/build/.doctrees/environment.pickle b/documentation/build/.doctrees/environment.pickle index 16ba3696..24b07864 100644 Binary files a/documentation/build/.doctrees/environment.pickle and b/documentation/build/.doctrees/environment.pickle differ diff --git a/documentation/build/_images/react_filter.png b/documentation/build/_images/react_filter.png new file mode 100644 index 00000000..24a956c4 Binary files /dev/null and b/documentation/build/_images/react_filter.png differ diff --git a/documentation/build/_sources/app.rst.txt b/documentation/build/_sources/app.rst.txt index 8126d6c8..20fa7f02 100644 --- a/documentation/build/_sources/app.rst.txt +++ b/documentation/build/_sources/app.rst.txt @@ -8,6 +8,9 @@ The main thing this app does is show a map, with icons for each house, while als .. figure:: react_app_example.png +The app works using the generated out.json file from the scrape project. This file is compiled in the app. This makes the loading of the App quite slow. +Also a lot of markers has some impact on the performance of the app. + Usage ===== Copy the generated *out.json* file that was generated in the *usse scrape* project to ``src/locations.json``, next you can run the app: @@ -25,4 +28,26 @@ To use the dockerfile you can simply use the bash script: ``use_docker.sh`` and .. code-block:: bash - ./use_docker.sh \ No newline at end of file + ./use_docker.sh + +Several commands are supported: + +.. code-block:: bash + + ./use_docker.sh remove + ./use_docker.sh rebuild + +Redeploy +-------- +To recreate the app you can run: + +.. code-block:: bash + + ./use_docker.sh recreate + +filters +------- +The app also has filters for price and distance to various locations: + +.. figure:: images/react_filter.png + diff --git a/documentation/build/app.html b/documentation/build/app.html index 6e93ab7c..bd36a2cb 100644 --- a/documentation/build/app.html +++ b/documentation/build/app.html @@ -46,7 +46,11 @@ @@ -86,6 +90,8 @@ The main thing this app does is show a map, with icons for each house, while als
_images/react_app_example.png
+

The app works using the generated out.json file from the scrape project. This file is compiled in the app. This makes the loading of the App quite slow. +Also a lot of markers has some impact on the performance of the app.

Usage

Copy the generated out.json file that was generated in the usse scrape project to src/locations.json, next you can run the app:

@@ -101,6 +107,25 @@ To use the dockerfile you can simply use the bash script:
./use_docker.sh
 
+

Several commands are supported:

+
./use_docker.sh remove
+./use_docker.sh rebuild
+
+
+
+

Redeploy

+

To recreate the app you can run:

+
./use_docker.sh recreate
+
+
+
+
+

filters

+

The app also has filters for price and distance to various locations:

+
+_images/react_filter.png +
+
diff --git a/documentation/build/searchindex.js b/documentation/build/searchindex.js index b3b05b91..6121d987 100644 --- a/documentation/build/searchindex.js +++ b/documentation/build/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["app", "funda", "googlemaps", "hypotheek", "index", "osm"], "filenames": ["app.rst", "funda.rst", "googlemaps.rst", "hypotheek.rst", "index.rst", "osm.rst"], "titles": ["React App", "Scraping Funda", "Google Maps API", "Hypotheek", "Project Usse", "Open Street Maps"], "terms": {"i": [0, 1, 2, 4, 5], "real": [1, 4], "estat": [1, 4], "hous": [0, 1, 2, 4], "market": 1, "tri": 1, "keep": 1, "track": 1, "all": [1, 5], "ar": [1, 2, 5], "current": [1, 4], "sale": 1, "allow": [1, 2, 5], "github": 1, "sever": [1, 2, 4, 5], "project": [0, 1, 2, 5], "still": 1, "try": 1, "do": [1, 2, 5], "thi": [0, 1, 2, 4, 5], "A": [0, 1], "quick": [1, 2], "test": [1, 2], "from": [1, 2, 5], "land": 1, "u": 1, "work": [1, 2], "veri": [1, 5], "limit": 1, "filter": [1, 4], "method": [1, 2], "few": [1, 2], "patch": 1, "code": [1, 5], "inject": 1, "url": 1, "us": [0, 1, 4, 5], "other": 1, "appli": 1, "next": [0, 1, 4], "we": [1, 2, 4, 5], "can": [0, 1, 2, 5], "setup": 1, "basic": 1, "browser": 1, "copi": [0, 1], "order": [0, 1, 2, 5], "self": [1, 5], "http": [1, 5], "www": [1, 5], "nl": [1, 5], "koop": 1, "gemeent": 1, "huizen": 1, "0": [1, 2, 5], "350000": 1, "tuin": 1, "10km": 1, "return": 1, "close": 1, "f": 1, "base_url": 1, "verkocht": 1, "open": [1, 4], "def": [1, 2], "get_funda_data": 1, "scraper": 1, "fundascrap": 1, "nijkerk": 1, "beschikbaar": 1, "100000": 1, "400000": 1, "woonhui": 1, "eengezinswon": 1, "landhui": 1, "30km": 1, "find_past": 1, "fals": 1, "n_page": 1, "81": 1, "df": 1, "run": [0, 1, 5], "ha": 2, "free": [2, 5], "calcul": [2, 5], "distanc": [0, 2, 4, 5], "matrix": 2, "well": 2, "show": [0, 2], "point": 2, "In": [0, 2, 5], "you": [0, 2, 5], "need": [2, 5], "request": [2, 5], "an": 2, "kei": 2, "cloud": 2, "consol": 2, "cost": 2, "each": [0, 2], "give": 2, "200": 2, "dollar": 2, "worth": 2, "start": [0, 2, 5], "everi": 2, "month": 2, "For": [2, 5], "see": [2, 5], "wa": [0, 2, 5], "possibl": 2, "geoloc": [2, 5], "simpl": 2, "python": 2, "script": [0, 2], "origin_loc": 2, "nfi_loc": 2, "52": 2, "044867266861466": 2, "4": [2, 5], "3585175985355225": 2, "hoogstraat_loc": 2, "08725689123654": 2, "5": 2, "147180442716177": 2, "bakkersdijk_loc": 2, "51": 2, "85802695253161": 2, "482033956202426": 2, "korhoen_loc": 2, "5219455005375": 2, "732514040876346": 2, "harde_loc": 2, "41650138296019": 2, "870995170999243": 2, "get_dist": 2, "out_dict": 2, "destination_loc": 2, "gmap": 2, "distance_matrix": 2, "mode": 2, "drive": 2, "row": 2, "element": 2, "about": [2, 5], "40": [2, 3], "000": 2, "With": 2, "1200": 2, "6": [2, 5], "per": 2, "would": 2, "mean": 2, "up": [2, 5], "7000": 2, "That": 2, "enough": 2, "build": 2, "poc": 2, "lot": 2, "shown": [2, 5], "marker": 2, "anoth": 2, "result": [2, 5], "action": 2, "The": [0, 2, 4, 5], "reason": 2, "did": 2, "read": 2, "term": 2, "40k": 2, "just": 2, "thousand": 2, "minut": 2, "oop": 2, "becaus": 2, "want": [2, 5], "more": [2, 5], "than": 2, "dont": 2, "pai": 2, "switch": 2, "o": [2, 5], "pen": [2, 5], "": [2, 5], "treet": 2, "m": [2, 5], "ap": 2, "osm": [2, 5], "state": 4, "frozen": 4, "until": 4, "least": 4, "june": 4, "scrape": 0, "funda": 4, "googl": [4, 5], "map": [0, 4], "api": 4, "ban": 4, "street": 4, "osrm": 4, "nominatim": 4, "ip": 4, "firewal": 4, "tile": 4, "server": [0, 4], "automat": 4, "websit": [4, 5], "some": 4, "specif": [4, 5], "garden": 4, "non": 4, "apart": 4, "must": 4, "abl": 4, "view": 4, "them": 4, "base": 4, "locat": [0, 4], "nfi": 4, "hooghstraat": 4, "etc": [3, 4], "much": 5, "like": 5, "openstreetmap": 5, "navig": 5, "world": 5, "main": [0, 5], "differ": 5, "being": 5, "host": 5, "howev": 5, "plug": 5, "plai": 5, "solut": 5, "your": 5, "own": 5, "It": 5, "turn": 5, "out": [0, 5], "includ": 5, "quit": 5, "big": 5, "task": 5, "especi": 5, "suppor": 5, "whole": 5, "ourc": 5, "r": 5, "achin": 5, "here": 5, "set": 5, "straightforward": 5, "requir": 5, "same": 5, "docker": [4, 5], "contain": [0, 5], "time": [0, 5], "short": 5, "command": 5, "netherland": 5, "follow": 5, "download": 5, "mkdir": 5, "p": 5, "data": [0, 5], "cd": 5, "wget": 5, "geofabrik": 5, "de": 5, "europ": 5, "latest": 5, "pbf": 5, "name": 5, "backend": 5, "t": 5, "v": 5, "pwd": 5, "extract": 5, "opt": 5, "car": 5, "lua": 5, "process": 5, "contract": 5, "partit": 5, "custom": 5, "finali": 5, "rout": 5, "engin": 5, "5998": 5, "5000": 5, "algorithm": 5, "mld": 5, "now": 5, "curl": 5, "port": 5, "when": 5, "coordin": 5, "send": 5, "make": 5, "sure": 5, "longitud": 5, "latitud": 5, "swap": 5, "As": 5, "good": 5, "To": [0, 5], "solv": 5, "resolv": 5, "postal": 5, "cat": 5, "run_nominatim": 5, "sh": [0, 5], "bin": 5, "bash": [0, 5], "e": [3, 5], "pbf_path": 5, "replication_url": 5, "updat": 5, "5999": 5, "8080": 5, "mediagi": 5, "2": [3, 5], "access": 5, "which": 5, "queri": 5, "proces": 5, "hard": 5, "prevent": 5, "bot": 5, "misus": 5, "interfac": 5, "rule": 5, "ad": 5, "onli": 5, "incom": 5, "traffic": 5, "address": 5, "sudo": 5, "ufw": 5, "ip_addr": 5, "ani": 5, "also": [0, 5], "serv": [0, 5], "fulli": 5, "independ": 5, "tileserv": 5, "previous": 5, "donwload": 5, "file": [0, 5], "import": 5, "postgresql": 5, "databas": 5, "hopefulli": 5, "speed": 5, "perform": 5, "first": 5, "var": 5, "lib": 5, "12": 5, "overv": 5, "1": 5, "3": 5, "10": 5, "5997": 5, "80": [3, 5], "d": [3, 5], "herreweb": 5, "png": 5, "step": 5, "took": 5, "over": 5, "hour": 5, "core": 5, "slow": 5, "intel": 5, "xeon": 5, "e5": 5, "2620": 5, "v2": 5, "fast": 5, "either": 5, "faster": 5, "after": 5, "load": 5, "maandlasten": 4, "wat": 3, "prij": 3, "opmerk": 3, "water": 3, "ga": 3, "licht": 3, "boodschappen": 3, "450": 3, "vervoer": 4, "60": 3, "verzek": 3, "350": [], "benzin": 3, "53": 3, "wegenbelast": 3, "500": 3, "jaar": 3, "onderhoud": 3, "voor": 3, "nieuw": 3, "totaal": 3, "463": [], "mazda": 3, "auto": [], "merced": 3, "250": 3, "300": 3, "413": 3, "363": 3, "2x": 3, "170": 3, "x": 3, "325": [], "abonnementen": 3, "goed": 3, "doelen": 3, "8": 3, "17": 3, "50": 3, "internet": 3, "hobbi": 3, "muziek": 3, "comput": 3, "20": 3, "contabo": 3, "150": 3, "maar": 3, "gaat": 3, "weg": 3, "todo": 3, "zorgerzek": 3, "130": 3, "uit": 3, "en": 3, "leuk": 3, "dingen": 3, "verjaardagen": 3, "30": [], "leven": 3, "klede": 3, "glazen": 3, "125": 3, "levensverzek": 3, "gemeentelijk": 3, "kosten": 3, "react": 4, "app": [], "develop": 0, "thing": 0, "doe": 0, "icon": 0, "where": [], "while": 0, "travel": 0, "dockerfil": 0, "creat": 0, "applic": 0, "wintergreen": 0, "simpli": 0, "use_dock": 0, "gener": 0, "usag": 4, "json": 0, "uss": 0, "src": 0, "npm": 0, "should": 0}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"scrape": [1, 4], "funda": 1, "googl": 2, "map": [2, 5], "api": 2, "us": 2, "ban": 2, "project": 4, "uss": 4, "content": [], "goal": 4, "open": 5, "street": 5, "osrm": 5, "setup": 5, "nominatim": 5, "ip": 5, "firewal": 5, "tile": 5, "server": 5, "hypotheek": [3, 4], "maandlasten": 3, "vervoer": 3, "auto": [], "merced": [], "react": 0, "app": [0, 4], "docker": 0, "usag": 0}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Scraping Funda": [[1, "scraping-funda"]], "Google Maps API": [[2, "google-maps-api"]], "Using the Google API": [[2, "using-the-google-api"]], "Google Ban": [[2, "google-ban"]], "Open Street Maps": [[5, "open-street-maps"]], "OSRM": [[5, "osrm"]], "Setup": [[5, "setup"]], "Nominatim": [[5, "nominatim"]], "IP Firewall": [[5, "ip-firewall"]], "Tile Server": [[5, "tile-server"]], "Hypotheek": [[3, "hypotheek"]], "Maandlasten": [[3, "maandlasten"]], "Vervoer": [[3, "vervoer"]], "Project Usse": [[4, "project-usse"]], "Scraping:": [[4, null]], "App:": [[4, null]], "Hypotheek:": [[4, null]], "Goal": [[4, "goal"]], "React App": [[0, "react-app"]], "Usage": [[0, "usage"]], "Docker": [[0, "docker"]]}, "indexentries": {}}) \ No newline at end of file +Search.setIndex({"docnames": ["app", "funda", "googlemaps", "hypotheek", "index", "osm"], "filenames": ["app.rst", "funda.rst", "googlemaps.rst", "hypotheek.rst", "index.rst", "osm.rst"], "titles": ["React App", "Scraping Funda", "Google Maps API", "Hypotheek", "Project Usse", "Open Street Maps"], "terms": {"i": [0, 1, 2, 4, 5], "real": [1, 4], "estat": [1, 4], "hous": [0, 1, 2, 4], "market": 1, "tri": 1, "keep": 1, "track": 1, "all": [1, 5], "ar": [0, 1, 2, 5], "current": [1, 4], "sale": 1, "allow": [1, 2, 5], "github": 1, "sever": [0, 1, 2, 4, 5], "project": [0, 1, 2, 5], "still": 1, "try": 1, "do": [1, 2, 5], "thi": [0, 1, 2, 4, 5], "A": [0, 1], "quick": [1, 2], "test": [1, 2], "from": [0, 1, 2, 5], "land": 1, "u": 1, "work": [0, 1, 2], "veri": [1, 5], "limit": 1, "filter": [1, 4], "method": [1, 2], "few": [1, 2], "patch": 1, "code": [1, 5], "inject": 1, "url": 1, "us": [0, 1, 4, 5], "other": 1, "appli": 1, "next": [0, 1, 4], "we": [1, 2, 4, 5], "can": [0, 1, 2, 5], "setup": 1, "basic": 1, "browser": 1, "copi": [0, 1], "order": [0, 1, 2, 5], "self": [1, 5], "http": [1, 5], "www": [1, 5], "nl": [1, 5], "koop": 1, "gemeent": 1, "huizen": 1, "0": [1, 2, 5], "350000": 1, "tuin": 1, "10km": 1, "return": 1, "close": 1, "f": 1, "base_url": 1, "verkocht": 1, "open": [1, 4], "def": [1, 2], "get_funda_data": 1, "scraper": 1, "fundascrap": 1, "nijkerk": 1, "beschikbaar": 1, "100000": 1, "400000": 1, "woonhui": 1, "eengezinswon": 1, "landhui": 1, "30km": 1, "find_past": 1, "fals": 1, "n_page": 1, "81": 1, "df": 1, "run": [0, 1, 5], "ha": [0, 2], "free": [2, 5], "calcul": [2, 5], "distanc": [0, 2, 4, 5], "matrix": 2, "well": 2, "show": [0, 2], "point": 2, "In": [0, 2, 5], "you": [0, 2, 5], "need": [2, 5], "request": [2, 5], "an": 2, "kei": 2, "cloud": 2, "consol": 2, "cost": 2, "each": [0, 2], "give": 2, "200": 2, "dollar": 2, "worth": 2, "start": [0, 2, 5], "everi": 2, "month": 2, "For": [2, 5], "see": [2, 5], "wa": [0, 2, 5], "possibl": 2, "geoloc": [2, 5], "simpl": 2, "python": 2, "script": [0, 2], "origin_loc": 2, "nfi_loc": 2, "52": 2, "044867266861466": 2, "4": [2, 5], "3585175985355225": 2, "hoogstraat_loc": 2, "08725689123654": 2, "5": 2, "147180442716177": 2, "bakkersdijk_loc": 2, "51": 2, "85802695253161": 2, "482033956202426": 2, "korhoen_loc": 2, "5219455005375": 2, "732514040876346": 2, "harde_loc": 2, "41650138296019": 2, "870995170999243": 2, "get_dist": 2, "out_dict": 2, "destination_loc": 2, "gmap": 2, "distance_matrix": 2, "mode": 2, "drive": 2, "row": 2, "element": 2, "about": [2, 5], "40": [2, 3], "000": 2, "With": 2, "1200": 2, "6": [2, 5], "per": 2, "would": 2, "mean": 2, "up": [2, 5], "7000": 2, "That": 2, "enough": 2, "build": 2, "poc": 2, "lot": [0, 2], "shown": [2, 5], "marker": [0, 2], "anoth": 2, "result": [2, 5], "action": 2, "The": [0, 2, 4, 5], "reason": 2, "did": 2, "read": 2, "term": 2, "40k": 2, "just": 2, "thousand": 2, "minut": 2, "oop": 2, "becaus": 2, "want": [2, 5], "more": [2, 5], "than": 2, "dont": 2, "pai": 2, "switch": 2, "o": [2, 5], "pen": [2, 5], "": [2, 5], "treet": 2, "m": [2, 5], "ap": 2, "osm": [2, 5], "state": 4, "frozen": 4, "until": 4, "least": 4, "june": 4, "scrape": 0, "funda": 4, "googl": [4, 5], "map": [0, 4], "api": 4, "ban": 4, "street": 4, "osrm": 4, "nominatim": 4, "ip": 4, "firewal": 4, "tile": 4, "server": [0, 4], "automat": 4, "websit": [4, 5], "some": [0, 4], "specif": [4, 5], "garden": 4, "non": 4, "apart": 4, "must": 4, "abl": 4, "view": 4, "them": 4, "base": 4, "locat": [0, 4], "nfi": 4, "hooghstraat": 4, "etc": [3, 4], "much": 5, "like": 5, "openstreetmap": 5, "navig": 5, "world": 5, "main": [0, 5], "differ": 5, "being": 5, "host": 5, "howev": 5, "plug": 5, "plai": 5, "solut": 5, "your": 5, "own": 5, "It": 5, "turn": 5, "out": [0, 5], "includ": 5, "quit": [0, 5], "big": 5, "task": 5, "especi": 5, "suppor": 5, "whole": 5, "ourc": 5, "r": 5, "achin": 5, "here": 5, "set": 5, "straightforward": 5, "requir": 5, "same": 5, "docker": [4, 5], "contain": [0, 5], "time": [0, 5], "short": 5, "command": [0, 5], "netherland": 5, "follow": 5, "download": 5, "mkdir": 5, "p": 5, "data": [0, 5], "cd": 5, "wget": 5, "geofabrik": 5, "de": 5, "europ": 5, "latest": 5, "pbf": 5, "name": 5, "backend": 5, "t": 5, "v": 5, "pwd": 5, "extract": 5, "opt": 5, "car": 5, "lua": 5, "process": 5, "contract": 5, "partit": 5, "custom": 5, "finali": 5, "rout": 5, "engin": 5, "5998": 5, "5000": 5, "algorithm": 5, "mld": 5, "now": 5, "curl": 5, "port": 5, "when": 5, "coordin": 5, "send": 5, "make": [0, 5], "sure": 5, "longitud": 5, "latitud": 5, "swap": 5, "As": 5, "good": 5, "To": [0, 5], "solv": 5, "resolv": 5, "postal": 5, "cat": 5, "run_nominatim": 5, "sh": [0, 5], "bin": 5, "bash": [0, 5], "e": [3, 5], "pbf_path": 5, "replication_url": 5, "updat": 5, "5999": 5, "8080": 5, "mediagi": 5, "2": [3, 5], "access": 5, "which": 5, "queri": 5, "proces": 5, "hard": 5, "prevent": 5, "bot": 5, "misus": 5, "interfac": 5, "rule": 5, "ad": 5, "onli": 5, "incom": 5, "traffic": 5, "address": 5, "sudo": 5, "ufw": 5, "ip_addr": 5, "ani": 5, "also": [0, 5], "serv": [0, 5], "fulli": 5, "independ": 5, "tileserv": 5, "previous": 5, "donwload": 5, "file": [0, 5], "import": 5, "postgresql": 5, "databas": 5, "hopefulli": 5, "speed": 5, "perform": [0, 5], "first": 5, "var": 5, "lib": 5, "12": 5, "overv": 5, "1": 5, "3": 5, "10": 5, "5997": 5, "80": [3, 5], "d": [3, 5], "herreweb": 5, "png": 5, "step": 5, "took": 5, "over": 5, "hour": 5, "core": 5, "slow": [0, 5], "intel": 5, "xeon": 5, "e5": 5, "2620": 5, "v2": 5, "fast": 5, "either": 5, "faster": 5, "after": 5, "load": [0, 5], "maandlasten": 4, "wat": 3, "prij": 3, "opmerk": 3, "water": 3, "ga": 3, "licht": 3, "boodschappen": 3, "450": 3, "vervoer": 4, "60": 3, "verzek": 3, "350": [], "benzin": 3, "53": 3, "wegenbelast": 3, "500": 3, "jaar": 3, "onderhoud": 3, "voor": 3, "nieuw": 3, "totaal": 3, "463": [], "mazda": 3, "auto": [], "merced": 3, "250": 3, "300": 3, "413": 3, "363": 3, "2x": 3, "170": 3, "x": 3, "325": [], "abonnementen": 3, "goed": 3, "doelen": 3, "8": 3, "17": 3, "50": 3, "internet": 3, "hobbi": 3, "muziek": 3, "comput": 3, "20": 3, "contabo": 3, "150": 3, "maar": 3, "gaat": 3, "weg": 3, "todo": 3, "zorgerzek": 3, "130": 3, "uit": 3, "en": 3, "leuk": 3, "dingen": 3, "verjaardagen": 3, "30": [], "leven": 3, "klede": 3, "glazen": 3, "125": 3, "levensverzek": 3, "gemeentelijk": 3, "kosten": 3, "react": 4, "app": [], "develop": 0, "thing": 0, "doe": 0, "icon": 0, "where": [], "while": 0, "travel": 0, "dockerfil": 0, "creat": 0, "applic": 0, "wintergreen": 0, "simpli": 0, "use_dock": 0, "gener": 0, "usag": 4, "json": 0, "uss": 0, "src": 0, "npm": 0, "should": 0, "support": 0, "remov": 0, "recreat": 0, "re": [], "rebuild": 0, "price": 0, "variou": 0, "compil": 0, "impact": 0}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"scrape": [1, 4], "funda": 1, "googl": 2, "map": [2, 5], "api": 2, "us": 2, "ban": 2, "project": 4, "uss": 4, "content": [], "goal": 4, "open": 5, "street": 5, "osrm": 5, "setup": 5, "nominatim": 5, "ip": 5, "firewal": 5, "tile": 5, "server": 5, "hypotheek": [3, 4], "maandlasten": 3, "vervoer": 3, "auto": [], "merced": [], "react": 0, "app": [0, 4], "docker": 0, "usag": 0, "redeploi": 0, "filter": 0}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Scraping Funda": [[1, "scraping-funda"]], "Google Maps API": [[2, "google-maps-api"]], "Using the Google API": [[2, "using-the-google-api"]], "Google Ban": [[2, "google-ban"]], "Open Street Maps": [[5, "open-street-maps"]], "OSRM": [[5, "osrm"]], "Setup": [[5, "setup"]], "Nominatim": [[5, "nominatim"]], "IP Firewall": [[5, "ip-firewall"]], "Tile Server": [[5, "tile-server"]], "Hypotheek": [[3, "hypotheek"]], "Maandlasten": [[3, "maandlasten"]], "Vervoer": [[3, "vervoer"]], "Project Usse": [[4, "project-usse"]], "Scraping:": [[4, null]], "App:": [[4, null]], "Hypotheek:": [[4, null]], "Goal": [[4, "goal"]], "React App": [[0, "react-app"]], "Usage": [[0, "usage"]], "Docker": [[0, "docker"]], "Redeploy": [[0, "redeploy"]], "filters": [[0, "filters"]]}, "indexentries": {}}) \ No newline at end of file diff --git a/documentation/source/app.rst b/documentation/source/app.rst index d1d829e2..20fa7f02 100644 --- a/documentation/source/app.rst +++ b/documentation/source/app.rst @@ -8,6 +8,9 @@ The main thing this app does is show a map, with icons for each house, while als .. figure:: react_app_example.png +The app works using the generated out.json file from the scrape project. This file is compiled in the app. This makes the loading of the App quite slow. +Also a lot of markers has some impact on the performance of the app. + Usage ===== Copy the generated *out.json* file that was generated in the *usse scrape* project to ``src/locations.json``, next you can run the app: @@ -32,4 +35,19 @@ Several commands are supported: .. code-block:: bash ./use_docker.sh remove - ./use_docker.sh recreate \ No newline at end of file + ./use_docker.sh rebuild + +Redeploy +-------- +To recreate the app you can run: + +.. code-block:: bash + + ./use_docker.sh recreate + +filters +------- +The app also has filters for price and distance to various locations: + +.. figure:: images/react_filter.png + diff --git a/documentation/source/images/react_filter.png b/documentation/source/images/react_filter.png new file mode 100644 index 00000000..24a956c4 Binary files /dev/null and b/documentation/source/images/react_filter.png differ