mariomol
mariomol

Reputation: 697

Gmap + Primefaces: Map Location from full address

Hy,

well i'm using a JSF2 project with primefaces 3.0 and GMmap component.

As we know this component accepts just location, but i need to work with address as well..

For exemple, instead of using a Lat,Log I would like to pass the full address (street, state, city..) to get the map.

I would like to know if there is any workaround, like:

  1. Is it possible to call a javascript just after the p:gmap to change the location based in the address?

  2. Is it any Java API to call using a adress and receiveing a Lat,Log ?

Regards,

Upvotes: 1

Views: 4159

Answers (1)

Case
Case

Reputation: 1847

This process is known as geocoding. Please see the documentation for it on the Google Maps API page.

Upvotes: 1

Related Questions