-
Type:
Bug
-
Status: Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Component/s: Address Validator
-
Labels:None
-
Environment:CentOS 6.5 x64 / Liferay 6.2 GA3 CE / Oracle Java 1.8.0
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));
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));