Skip to content

Just a simple python states lookup server running on heroku to support states typeahead style lookups

Notifications You must be signed in to change notification settings

adamwysocki/states-lookup-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

States Lookup Server

Just a little python server to support a US states type ahead style lookup in a client

Usage

/lookup/[pattern]

Where [pattern] is a case insensitive starts with match for a states name

Example

curl https://secure-tor-31050.herokuapp.com/lookup/ne

returns

{
  "states": [
    {
      "abbrv": "NE",
      "name": "Nebraska"
    },
    {
      "abbrv": "NV",
      "name": "Nevada"
    },
    {
      "abbrv": "NH",
      "name": "New Hampshire"
    },
    {
      "abbrv": "NJ",
      "name": "New Jersey"
    },
    {
      "abbrv": "NM",
      "name": "New Mexico"
    },
    {
      "abbrv": "NY",
      "name": "New York"
    }
  ]
}

About

Just a simple python states lookup server running on heroku to support states typeahead style lookups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages