adorris1 / geocoder-java

Automatically exported from code.google.com/p/geocoder-java
0 stars 0 forks source link

Format of Formatted Address is different in Geocoder-java API #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Team,

I am using Geocoder-java API but i am getting formatted Address key name in 
different format what we get from direct call from broswer by using link.

Use below link to check format of Formatted Address 

Link : 
http://maps.googleapis.com/maps/api/geocode/json?address=hazen&sensor=true

We are getting formatted Address key as "formatted_address" but while using 
geocoder-java API version 0.12 we are getting formatted Address key as 
"formattedAddress" which is different. So please check it.

Expected Output : formatted_address

Current OUTPUT  : formattedAddress

Version : 0.12

OS : Windows XP

Thank you 

Sandeep Kumar Soni

Original issue reported on code.google.com by sande143@gmail.com on 13 Feb 2013 at 12:18

GoogleCodeExporter commented 8 years ago
we use 
new 
GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES
)
so formatted_address translated to formattedAddress

Original comment by panchmp on 13 Feb 2013 at 12:57