NYCPlanning / labs-geosearch-docker

Main repository for running the Planning Labs geosearch API powered by pelias
12 stars 3 forks source link

Handle Capitalization #11

Open allthesignals opened 4 years ago

allthesignals commented 4 years ago

@chriswhong commented on Tue Jan 09 2018

Raw data in PAD contains street names in all capitals. We should explore ways to smartly modify case during import so that the results are prettier.


@andycochran commented on Tue Jan 16 2018

This is tough. Changing the case of street names will require a loooooong list of exceptions and special cases.

This thread mentions using services like SmartyStreets to handle it: https://stackoverflow.com/questions/7908567/address-capitalization

It also mentions passing the streets to the Google Maps API to get the proper capitalization.

SmartStreets is on GitHub, so we could research their repos and see how they're doing it. Maybe we can use similar methods to handle the capitalization ourselves.


@andycochran commented on Tue Jan 16 2018

^ Worth noting in that thread:

USPS dictates that a correct address must be in all caps