Location Access with server-side api

Is there any way in Vaadin 14 to access HTML GeoLocation using server-side (Java only). I only need basic info (just lat-long will suffice too). I do not mind the extra effort in determining the speed, direction, etc.

Have a look at https://vaadin.com/directory

https://vaadin.com/directory/component/geo-location-addon looks promising.

Hi @Ronny,

I had already stumbled upon this earlier. Seems like the maven repo for this addon is broken. The dependency does not resolve. If you got it working, may be you can throw me some pointers. I appreciate all help.


I believe this add-on only works in Vaadin 10-13, or Vaadin 14 if using [“Compatibility Mode”]
(https://vaadin.com/docs/v14/flow/v14-migration/v14-migration-guide.html#compatibility-mode). If you are using npm/pnpm, this add-on will probably not work unless the author updates his templates from polymer 2 to polymer 3 and uses @JsModule annotation instead of @HtmlImport. You could try to do that yourself using [this guide]

I published a Vaadin 14 version of the component: https://vaadin.com/directory/component/geo-location-addon---vaadin-14

Here you can find the original issue: https://github.com/elmot/vaadin-geo-location-flow/issues/2

Tell me it’s working.