Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parse A Steet Address into components [closed]

Does anyone have a php class, or regex to parse an address into components? At least, it should break up into these components: street info, state, zip, country

like image 661
Andres Avatar asked Feb 12 '26 18:02

Andres


1 Answers

A library/language agnostic solution would be to use Google's geocoder for this. It can return detailed, broken-down information about a given address.

http://code.google.com/apis/maps/documentation/services.html#Geocoding_Structured

like image 155
Samantha Branham Avatar answered Feb 14 '26 10:02

Samantha Branham



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!