开发者

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 开发者_StackOverflow中文版Lat,Log ?

Regards,


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜