An open API service indexing awesome lists of open source software.

https://github.com/bogind/govmap_geocode


https://github.com/bogind/govmap_geocode

Last synced: 17 days ago
JSON representation

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