Skip to content

Simple PHP script to geocode very inconsistent address data from a CSV and store in a database

Notifications You must be signed in to change notification settings

aterchin/php-geocode-csv

Repository files navigation

PHP Geocoder - CSV file

Uses a geocoding provider like Google Maps API to run scripts which:

  • parse a CSV file
  • store original and geocoded data in separate tables

Install

  1. Change to this directory cd php-geocode-csv
  2. composer install
  3. Create a database table
  4. Copy .env.example and to .env and add database and local server info variables

Get a Google Maps API key at Google Cloud Console and add to .env file.

Run import

  1. Run php run.php.

About

Simple PHP script to geocode very inconsistent address data from a CSV and store in a database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages