[LRA-125] Allow Address Validator Street Format To Be Customized Created: 02/Apr/14  Updated: 03/Apr/14  Resolved: 03/Apr/14

Status: Resolved
Project: Liferay Apps
Component/s: Address Validator
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: cefranklin Assignee: Charles Javier Rodriguez Beauregard [X] (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: CentOS 6.5 x64 / Liferay 6.2 GA3 CE / Oracle Java 1.8.0


 Description   
The address validator works very well but, the format of the street address should be modifiable via the properties file or some other means.
Right now, it is returning StreetName route. I would like it to return route StreetName.
It seems there is not an easy way to do this since it is final compiled into the class instead of using a property file.

Specifically in the GoogleGeocodingValidator.java

private final static String STREET_ADDRESS_FORMAT = "%s %s";

and

resultAddress.setStreet(String.format(STREET_ADDRESS_FORMAT, route, streetNumber));


 Comments   
Comment by mcalvo [ 02/Apr/14 ]
Charles, change it to follow the standard of using the Street number first and then the Street name.
Generated at Sat Feb 10 05:48:43 GMT 2024 using Jira 8.1.3#801003-sha1:6b6f07cffadda9a0d6efe24639daed8ce94dcdd6.