#5110 (How to figure out an address with no country.)
by Sharif Mehedi · in Developers · assigned to Sharif Mehedi
Summary
Children
Comments
- 3 years, 1 month ago by Sharif Mehedi about #5110 (How to figure out an address with no country.) : On the other hand it's also possible to have only street address without a country on addresses.Address , but it may trouble us in the future if there's a city or region on the address without a country.
- 3 years, 1 month ago by Sharif Mehedi about #5110 (How to figure out an address with no country.) : Another idea is that we can probably look up the country code in phone number.
- 3 years, 1 month ago by Sharif Mehedi about #5110 (How to figure out an address with no country.) : I am putting the failed contact "Maris Konn" in test_google.py as a test case, I can change the details if it's a privacy issue for "Maris Konn".
- 3 years, 1 month ago by Sharif Mehedi about #5110 (How to figure out an address with no country.) : Or should we put it as the site-wide country.
- 3 years, 1 month ago by Sharif Mehedi about #5110 (How to figure out an address with no country.) : for a user, we can lookup country from user.partner.country. But what happens when this lookup is None as well. In that case, should we reject the address.
- 3 years, 1 month ago by Luc Saffre about #5110 (How to figure out an address with no country.) : I thinki it is no shame to say that Lino needs to know at least the country. For small local organizations this is usually a site-wide setting. On alpha we might set a default country per user.
- 3 years, 1 month ago by Sharif Mehedi about #5110 (How to figure out an address with no country.) : Unfortunately Places API cost money.
- 3 years, 1 month ago by Sharif Mehedi about #5110 (How to figure out an address with no country.) : Using google Places API, these two documents would be the way to go: developers.google.com/maps/documentation/places/web-service/search-text , developers.google.com/maps/documentation/places/web-service/details
- 3 years, 1 month ago by Sharif Mehedi about #5110 (How to figure out an address with no country.) : Created new Ticket #5110 (How to figure out an address with no country.).