know the geographic location of the PC running the application?

You may know the geographic location of the PC running the application?

I’m using Xojo 2015r2.4.

This can be done in JavaScript with the geolocation API. See http://www.w3schools.com/HTML/html5_geolocation.asp

It will give you latitude and longitude.

However, you must get approval from the user.

You can also use a service that will provide that information from the client IP, such as http://www.geobytes.com/iplocator/ or http://www.ipligence.com/products

You can find several with a web search https://duckduckgo.com/?q=ip+location&ia=about

Hi Michel

Thanks for the help

The application will be executed by the branch office, no problem for the user’s permission.

There are some HTML5 run from xojo example, I’m starting with web applications

Another way is to use the built in Device Location that gives you access to HTML5 GeoLocation.
It will also prompt the user for permission.
http://documentation.xojo.com/index.php/WebDeviceLocation

[quote=219866:@Albin Kiland]Another way is to use the built in Device Location that gives you access to HTML5 GeoLocation.
It will also prompt the user for permission.
http://documentation.xojo.com/index.php/WebDeviceLocation[/quote]

That’s the way. It wraps the method I mentioned above. Thanks for pointing to it, I did not know it :slight_smile:

Hi Albin

Thanks I’ll review