TIPOFF / addresses

Laravel Package to manage addresses & interact with Address API
MIT License
0 stars 2 forks source link

Domestic address javascript component autocomplete #72 #75 [TGER-140] #90

Closed devjk1 closed 3 years ago

devjk1 commented 3 years ago

** do not TEST or merge, I need to add session tokens.

Need a test environment.

drewroberts commented 3 years ago

@kylebarney When you get a chance, could you make sure this is implementing the Google Places Autocomplete (https://github.com/tipoff/laravel-google-api/issues/18) as you had in mind with the tipoff/laravel-google-api package?

devjk1 commented 3 years ago

https://developers.google.com/maps/documentation/places/web-service/autocomplete

In the example of the JSON response, the JSON object -> predictions -> terms, the address is split into terms/parts.
If the parts are split consistently, then I can move on to extracting street address, city, state, etc... then saving as a Model. Unfortunately the example does not show a response where types=address, and we need a test environment to move further.

drewroberts commented 3 years ago

Thank you, @kylebarney. Let's stick with this implementation then and we can refactor later if necessary to have rate-limiting functionality.

devjk1 commented 3 years ago

Please delete/don't merge this PR. I created a new PR to replace this.