Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Geo Location where my app is running?
Message
De
02/10/2015 00:34:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01625294
Message ID:
01625355
Vues:
90
Hi Sir Rick,

Thank you for your reply.

This is what we have done:
- a central server has a table containing the different branches together with their geo location (longitude and latitude).
- the geo location data of the branches will be obtained by asking the manager's to click a link that will send this info

Now, our app should:
- when app fires, it is my hope that my VFP app can be able to get geo location (I don't know how), query the server's branch table in order to verify the identity of the branch where the app is being used

You mentioned using a web browser control. Does Google Chrome have this too? Any sample code please?

Thanks
Dennis




>Most browsers support geo location APIs that provide reasonably accurate geo location data even when you're not connected. The way this works is when you connect with a phone through the same router, that geo location is co-related with that of non-GPS devices and a best guess is made from there.
>
>The easiest way to capture this from a FoxPro app is to a use a Web browser control and run some JavaScript using the GeoLocation() API to grab the current location.
>
>Or you can call Google APIs via plain HTTP calls to a service but that will cost you eventually if you have frequent access.
>
>+++ Rick ---
>
>
>>Hi Experts,
>>
>>I would like to get the geo location of where my desktop app is running from. It is an app being using in different locations.
>>
>>Is this possible?
>>
>>Kinda like when you go to maps.google.com, it defaults to show where you are.
>>
>>I would want that upon user logs in, it also logs the longitude and latitude of the workstation.
>>
>>Thanks for any attention and help!
>>
>>Love live the Fox!
>>
>>Dennis
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform