https://github.com/bogind/govmap_geocode
https://github.com/bogind/govmap_geocode
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bogind/govmap_geocode
- Owner: bogind
- Created: 2026-01-05T13:14:43.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-05T13:14:47.000Z (5 months ago)
- Last Synced: 2026-05-28T15:28:48.933Z (21 days ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# govmap-geocode
This Node.js script geocodes addresses from a CSV file using the govmap.gov.il API and outputs the results with coordinates.
## Installation
1. Clone or download this repository.
2. Open a terminal in the project directory.
3. Install dependencies:
```sh
npm install
```
## Usage
1. Prepare your input CSV file (default: `input.csv`). The file should include a column named `address` (other columns are preserved).
2. Run the script:
```sh
npm start
```
3. The results will be written to `output.csv` with all original columns, plus:
- `x`, `y`: EPSG:3857 coordinates
- `lat`, `lng`: WGS84 coordinates
- `error`: error or warning (e.g., 'Multiple results found')
## Notes
- If multiple results are found for an address, the first result is used and a warning is set in the `error` column.
- To change input/output file names, edit `index.js`.
- All original columns from your input CSV are preserved in the output.
## Example
```
node index.js
```
## License
MIT