PHP script to extract city, postal, country and address from csv

This project received 13 bids from talented freelancers with an average bid price of $35 CAD.

Get free quotes for a project like this
Project Budget
$10 - $30 CAD
Total Bids
Project Description


I'm looking for a simple PHP script to extract address components from address string

Basically i'll drop an address like this :

12345 sherbrooke street Calgary AB H1H1H1

And I need components to be extracted like this

Address: 12345 sherbrooke street

City: Calgary

Province: AB

Postal code: H1H1H1

Country: Canada

Input format will be a .csv file with 1 column containing address, input can be on screen (as long as i can copy and paste them into excel sheet with the address, city, province and postal separated).

I saw few Google places script around the internet, I can provide Google Maps or place API key as well


Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online