{"id":13588874,"url":"https://github.com/bellingcat/osm-search","last_synced_at":"2025-04-08T06:32:56.582Z","repository":{"id":174964163,"uuid":"545947416","full_name":"bellingcat/osm-search","owner":"bellingcat","description":"A user friendly way to search OpenStreetMap data for features in proximity to each other.","archived":false,"fork":false,"pushed_at":"2025-01-29T15:32:45.000Z","size":1334,"stargazers_count":181,"open_issues_count":10,"forks_count":8,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-29T16:32:39.917Z","etag":null,"topics":["gui","javascript","open-source-research","open-street-map","python","service","vue"],"latest_commit_sha":null,"homepage":"https://osm-search.bellingcat.com/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bellingcat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-05T08:53:17.000Z","updated_at":"2025-01-29T15:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d7d894a-135a-4dbe-8369-1e5f14cafe63","html_url":"https://github.com/bellingcat/osm-search","commit_stats":null,"previous_names":["bellingcat/osm-search"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bellingcat%2Fosm-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bellingcat%2Fosm-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bellingcat%2Fosm-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bellingcat%2Fosm-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bellingcat","download_url":"https://codeload.github.com/bellingcat/osm-search/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247792219,"owners_count":20996879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui","javascript","open-source-research","open-street-map","python","service","vue"],"created_at":"2024-08-01T15:06:59.987Z","updated_at":"2025-04-08T06:32:51.573Z","avatar_url":"https://github.com/bellingcat.png","language":"Vue","funding_links":[],"categories":["Vue"],"sub_categories":[],"readme":"# osm-search\n\nThis is a tool for allowing user friendly proximity queries from OpenStreetMap data.\n\nBellingcat has a hosted version of the tool at https://osm-search.bellingcat.com/. For more information, see [the accompanying article](https://www.bellingcat.com/resources/how-tos/2023/05/08/finding-geolocation-leads-with-bellingcats-openstreetmap-search-tool/).\n\n![A screenshot of the tool in use](https://www.bellingcat.com/app/uploads/2023/04/image5-3-1200x829.png)\n\n## Setup and hosting your own\n\n### Setting up the database\n\nA Postgres database must be set up with OSM data. This can be done with `osm2pgsql`. \n\n`osm2pgsql -d osm --hstore-all planet-latest.osm.pbf`\n\nNext, some additional setup should be done on the database for performance and to create a combined view of all the data:\n\n```\npsql -d osm clean.sql\npsql -d osm cluster.sql\npsql -d osm index.sql\npsql -d osm analyze.sql\npsql -d osm views.sql\n```\n\nNote that if you run this using the entire planet OSM file, it will require about 700GB of space.\n\n### Running the API\n\nThe API requires environment variables for connection with Postgres.\n\n- `PG_DB`\n- `PG_HOST`\n- `PG_PORT`\n- `PG_USER`\n- `PG_PASSWORD`\n\nIt also requires a Google Firebase service account credentials file, which must be named `service_account.json`.\n\n### Running the frontend\n\nThe frontend requires environment variables for Mapbox geocoding queries and for Firebase. These variables will be publicly viewable and built into the app.\n\n- `VUE_APP_MAPBOX_TOKEN`\n- `VUE_APP_FIREBASE_API_KEY`\n- `VUE_APP_FIREBASE_AUTH_DOMAIN`\n- `VUE_APP_FIREBASE_PROJECT_ID`\n- `VUE_APP_FIREBASE_STORAGE_BUCKET`\n- `VUE_APP_FIREBASE_MESSAGING_SENDER_ID`\n- `VUE_APP_FIREBASE_APP_ID`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbellingcat%2Fosm-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbellingcat%2Fosm-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbellingcat%2Fosm-search/lists"}