Yazan2 / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
0 stars 0 forks source link

GMaps4JSFServiceFactory.getReverseGeocoderService().getPlaceMark() ERROR #192

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello Sir,
I'm using gmaps4jsf version (1.1.4) library. Everything in project is set well. 
When I simply want to generate an address according to given latitude and 
longitude I encounter an error. Bellow is part of a function that I want to 
generate address. Please any help would greatly be appreciated. Thank you...

String address = 
GMaps4JSFServiceFactory.getReverseGeocoderService().getPlaceMark(latitude.toStri
ng(), longitude.toString()).getAddress();

However, I repeatedly get the following error:

java.lang.Exception: Error: JSONObject["Placemark"] not found.
    at com.googlecode.gmaps4jsf.services.ReverseGeocoderServiceImpl.getPlaceMark(ReverseGeocoderServiceImpl.java:73)
    at com.omega.util.MessageParser.generateAddress(MessageParser.java:386)
    at com.omega.util.MessageParser.updateLatestCoordinates(MessageParser.java:1401)
    at com.omega.util.MessageParser.generateTrackMessage(MessageParser.java:1165)
    at com.omega.util.MessageParser.createMessage(MessageParser.java:98)
    at com.omega.MessageTest.main(MessageTest.java:20)

Original issue reported on code.google.com by ozbeksaf...@gmail.com on 12 Mar 2013 at 11:34

GoogleCodeExporter commented 8 years ago

Original comment by Hazem.sa...@gmail.com on 14 Mar 2013 at 12:01