mz99 / adddress_parser

Web service to parse addresses through API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails address web service

This service will accept a post request with an address value, then parse it into address components to return it back to JSON.

Installation

Make sure libpostal https://github.com/openvenues/ruby_postal is installed in order to deploy this service.

Requests

Send a post request with: { "geo": { "address": "Address to be parsed" } to the /locations endpoint. JSON will be returned with the parsed address components. Example:

{ "road": "Schivelbeinstraße", "house_number": "19", "postcode": "10439", "city": "berlin" }

Running tests

'rspec spec' will run the request spec and service helper spec in the /specs folder.

About

Web service to parse addresses through API


Languages

Language:Ruby 82.6%Language:HTML 13.1%Language:JavaScript 2.7%Language:CSS 1.6%