Location location = locationService.getLocationFromAddress("NY, NY");
//Then use location.getLongtiude and location.getLatitude() to do your business logic.
This is all about.
I have a requirement where a person would enter in an address (e.g. NY,NY) and then a map would be displayed similar to the demo page "getMyLocation.xhtml". Beyond that basic functionality however, is that I would like to utilize the Lat and Lon of that address, query my database of my Properties and then add markers to the map of those Properties that are within 200 miles of that address. I am assuming I would have to use event listeners to do this but it is not clear to me the order of operations since I don't know the Lat and Lon intially. I know how to add a set of markers using ui:repeat with a list from a Backing Bean so that part is clear to me. Any thoughts? --
You received this message because you are subscribed to the Google Groups "gmaps4jsf-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gmaps4jsf-de...@googlegroups.com.
To post to this group, send email to gmaps4...@googlegroups.com.
Visit this group at http://groups.google.com/group/gmaps4jsf-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the info Hazem. I followed your instructions although I did not see a 3.0 jar, just a 1.0 jar for Mashups4jsf. The sample code was self-explanatory. However, when running my app when making the call: locationService.getLocationFromAddress(..) , I am receiving: java.net.ConnectException: Connection timed out. Any thoughts as to why? Is there a URL I need to configure? I looked at the source code for Location Service and it looks like the URL is embedded in it: http://maps.googleapis.com/maps/api/geocode so it is not clear how to proceed. Many thanks.
On Thursday, April 25, 2013 5:13:25 PM UTC-4, Daniel Dausch wrote:I have a requirement where a person would enter in an address (e.g. NY,NY) and then a map would be displayed similar to the demo page "getMyLocation.xhtml". Beyond that basic functionality however, is that I would like to utilize the Lat and Lon of that address, query my database of my Properties and then add markers to the map of those Properties that are within 200 miles of that address. I am assuming I would have to use event listeners to do this but it is not clear to me the order of operations since I don't know the Lat and Lon intially. I know how to add a set of markers using ui:repeat with a list from a Backing Bean so that part is clear to me. Any thoughts?--
You received this message because you are subscribed to the Google Groups "gmaps4jsf-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gmaps4jsf-de...@googlegroups.com.
To post to this group, send email to gmaps4...@googlegroups.com.
Visit this group at http://groups.google.com/group/gmaps4jsf-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I was suspecting a firewall issue. I am running in SpringSourceTool Suite with the embedded Tomcat Server. I am researching how to set a proxy currently. I opened up a command window and tried ping and received ping request could not find host.
Thanks for the details on using the Location Service Wrapper. After figuring out how to configure the proxy setting I am able to get the desired data. Thanks.
The app will be for internal company usage only - sorry.