Like this question from 2011, in which there is no satisfactory answer:
The application I'm working on will be deployed internationally. The application itself only cares about the length of the Address
lat / long, but it will need to display Address
for the user in a multi-line format. Google geocoder provides a formatted address, but it is on the same line, separated by commas. Dividing this into lines will require knowledge of how multi-line addresses are formatted in a given country. For example, in the USA it is customary to place a city and state on the same line, separated by a comma.
Is there a built-in method (or a third-party library or web service) that will format a multi-line address from Address
, given that the reverse geocoded addresses may be incomplete?
source
share