留言板

geolocation for public requestors

thumbnail
Jack Bakker,修改在12 年前。

geolocation for public requestors

Liferay Master 帖子: 978 加入日期: 10-1-3 最近的帖子
I have a need where Liferay does geolocation by ip to provide output (lets say for default locale, pricing for China, or for Canada or ...)

Any Java API free or commercial out there to recommend ?
thumbnail
Philippe CHEIPE,修改在12 年前。

RE: geolocation for public requestors

Junior Member 帖子: 61 加入日期: 10-8-12 最近的帖子
Yes, but may be the 2 classical solutions:
- Either use the HTML5 APIs. Works well on iPhone, Android, etc ... But only on Firefox 4+, Chrome and IE9+ for desktops.
- Use http://www.maxmind.com/app/geolitecity
thumbnail
Jack Bakker,修改在12 年前。

RE: geolocation for public requestors

Liferay Master 帖子: 978 加入日期: 10-1-3 最近的帖子
Thanks much

I looked up my own office ip on maxmind and was told I was in Quebec Canada ; bit of flux here given even Google Gears for legacy pre-HTML5 is deprecated

Coding for multiple devices/browserVersions can get costly for client. Same old/Same old ; thanks for the feedback.