Parsec is a natural language parser for addresses
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
raw_data
spec
.gitignore
CONTRIBUTING.md
Gemfile
LICENSE
README.md
Rakefile
parsec.gemspec

README.md

Parsec

Parsec is a natural language parser for addresses. It returns it to you in a simple format. Create something awesome with it. We use it for our Rails Rumble Project Happy Geocode. But don't tell it to anyone.

Installation

Add this line to your application's Gemfile:

gem 'parsec'

And then execute:

$ bundle

Or install it yourself as:

$ gem install parsec

Usage

Parsec.setup

parsed = Parsec.parse "Hauptstraße 23, Köln"

parsed.street_name   #=> Hauptstrasse
parsed.city          #=> Koeln
parsed.street_number #=> 23
parsed.zip           #=> nil
parsed.country       #=> nil
parsed.state         #=> nil