Jump to content

Search the Community

Showing results for 'gps'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • General Development
    • uniGUI Releases & Roadmaps
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
    • Third Party Components
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. i forgot how to get results from a javascript.. ;-) Actually - i need latitude and longitude as Double-Delphi-variables if i click on a button (on desktop and Mobile).. the html example : - https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation <!DOCTYPE html> <html> <body> <p>Click the button to get your coordinates.</p> <button onclick="getLocation()">Try It</button> <p id="demo"></p> <script> var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude; } </script> </body> </html>
  2. Good morning, I run the following code to get the GPS location: 1 . If the form is made with unigui movile on the desktop it shows the data of the gps position on the screen, but it does not work on the mobile 2.if I do it in the form of a desktop it works on the desktop BUT it doesn't work on the mobile. I could see if the desktop code is different than the mobile code or if it's something else, thanks for your contribution. <!DOCTYPE html> <html> <head> <style> .btn { width: 200px; /* Ancho del botón */ height: 50px; /* Altura del botón */ } </style> </head> <body> <p>Click the button to get your coordinates.</p> <button class="btn" onclick="getLocation()">Try It</button> <p id="demo"></p> <script> var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude; top.ajaxRequest(Ext.get(document.getElementById('uniqueFrameID')).component, 'coords', {latitude: position.coords.latitude, longitude: position.coords.longitude}); } </script> </body> </html>
  3. I don't have it like a testcase. I will explain how to use it. Option I with unigui and Javascript: 1. Create New uniGui project 2. use one TuniLabel with name: MyDataLabel 3. use UniTimer1Timer with : uniSession.addJS ( //Enable GPS //'Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE");' //+ 'intent.putExtra("enabled", true);' //+ 'sendBroadcast(intent);' + 'if ("geolocation" in navigator) {' /* geolocation is available */ + ' var watchID = navigator.geolocation.watchPosition(' + ' function(position) {' + ' var out = document.getElementById ("' + MyDataLabel.JSId + '");' + ' out.innerHTML = "lat:" + position.coords.latitude ' + ' + ", long:" + position.coords.longitude' //+ ",High: " + position.coords.accuracy + ' ;' + ' }' + ');' + '} else {' /* geolocation IS NOT available */ + ' alert ("geolocation IS NOT available");' + '}' ); for this You must manually start GPS on mobile Device Option II unigui + Javascript + webView 1. Create New Android Project (with Android Studio like example) 2. Create uniGui app with same functionality like Option I 3. with installing AndroidApp you will ask user to enable GPS when app start: https://stackoverflow.com/questions/4721449/how-can-i-enable-or-disable-the-gps-programmatically-on-android https://www.google.com/search?q=android+enable+gps+programmatically&oq=android+enable+gps&aqs=chrome.1.69i57j0i512l2j0i22i30l7.5139j0j7&sourceid=chrome&ie=UTF-8
  4. Another example from the "All about..." series. This time, about user's session info. Some information is a little harder to find like your real IP. I´m note talking here about the IP address between client/server session but you Internet real IP. If you´re running your server and client in the same machine it will only result to localhost/127.0.0.1. Here (look at the image provided) the IP is my real connection to the public Internet and the local IP is my Network local IP. They are both different from uniSession.remoteIP info. Another useful information is Geolocation that you can get a relative position via IP connection in most browsers device even without GPS available. This example shows how to do it and how to locate in Google maps (the easy part...). It's not precise as GPS is but you can easily resolve to the Country and and City by that retrieved info (coming soon in next version). Have fun Project available at https://www.unigui.express
  5. Yes, You can use javascript for this and AddJS on uniGui: https://www.google.com/search?q=javascript+get+gps+location+android&oq=get+gps+javascript&aqs=chrome.1.69i57j0i22i30l3j0i390.5918j0j7&sourceid=chrome&ie=UTF-8 1. https://stackoverflow.com/questions/26461367/get-gps-location-using-javascript 2. https://gis.stackexchange.com/questions/41374/accessing-gps-data-with-javascript-in-real-time 3. GetGeoLocation.txt 4. using unigui + Android Device + webview (android App)
  6. Hi , I am looking at putting some simple fleet management into one of my projects. I need to be able to record locations of vehicles. I have all of the code to place a marker using longitude and latitude in Google maps, I just need a bit of advice on what device to use to get this information from a vehicle. Has anyone got any experience on using a tracking device in a car, that allows you to connect to a API, or some sort of service so I can at least get the longitude and latitude at that moment in time. I could probably implement what I need using a phone, but that is easy for a user to turn off location access and thus no GPS. I need something like a black box that can be put into the vehicle, and queried to get the current location. Like a tracker device. Any advice or suggestion would be greatly appreciated. Sent from my Pixel using Tapatalk
  7. Here is some try to enable GPS via javascript: //Enable GPS //Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE"); //intent.putExtra("enabled", true); //sendBroadcast(intent); if ("geolocation" in navigator) { /* geolocation is available */ var watchID = navigator.geolocation.watchPosition( function(position) { var out = document.getElementById ("out"); out.innerHTML = "lat:" + position.coords.latitude + ", long:" + position.coords.longitude //+ ",High: " + position.coords.accuracy ; } ); } else { /* geolocation IS NOT available */ alert ("geolocation IS NOT available"); }
  8. jahlxx

    geolocalization

    Hi. This works perfect, thanks. The only problem is that the location is not OK. For example it give my location in other city near me. For the purpose I'm working, I need more accuracy. Is possible activate the GPS in the cell phone from a unigui mobile application? I need the exact location (or as near as possible) of the user for some operations. Some mobile applications, raise a message in the cell phone asking for activate the GPS, and if its not activated, the the option dosen't works. Is there any way to do this? Thanks.
  9. Hi, I would like store latitude and longitude from GPS mobile. I need to store when web app is in background too. And when mobile is screen locked any ideas ?
  10. hello How do get the location with mobile gps? Can i use the sensor component? I want lat and long to show on the unimedit Please help me Thanks
  11. i use UnimHTMLFrame1 and in html property is <!DOCTYPE html> <html> <body> <p>Click the button to get your coordinates.</p> <button onclick="getLocation()">Try It</button> <p id="demo"></p> <script> var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude; } </script> </body> </html> when i click button to detect gps location is show in picture but i don't know when i want value to show in unimedit1.text=lat and unimedit2.text=long how i must to do this? i think it do with ajaxEvent but i don't know method to do that? please tell me thank you warat
  12. Don't lost your time. M2M sim card not work in a classical Modem 4g. There is no signal, no internet ! M2M Sim Card is only for specific devices like GPS, camera,... Conclusion : Stay with your classical ADSL line for a home server.
  13. picyka

    geolocalization

    It serves to get the position of the cell phone's gps
  14. Hi, sorry for late response You can check my comment bottom when I was angry, but now is only bad memory on Contabo. So in my case the Contabo used for our GPS tracking system, communication SW store data to MS SQL server, and of course Unigui for end user, approximately 20 sessions (peak) It is good to understand that VPS share resources between users. So when comes very demanding users for processor resurses, it means that somebody other get poor performance. So what Contabo show on their products are only theoretical resources, which probably you never get it (you get disk megabytes, do not forget read/write speed which is crucial). Maybe you have good experience, but you will get real picture when you put some constant load (processor, hdd, ram) for one month, probably you will be very lucky if you do not get at least one Windows crash, and some not responded apps in logs. Check this traumatic experience here: Br, Marko
  15. http://forums.unigui.com/index.php?/search/&amp;q=gps http://forums.unigui.com/index.php?/topic/14004-get-the-result-of-a-javascript-gps-position/ http://forums.unigui.com/index.php?/topic/11540-accessing-native-features-on-mobile-devices/&amp;do=findComment&amp;comment=76626
  16. Hello, I want to know if it was possible by using a UNIGUI form, a smatphone and a browser, create a form page / frame where I can acquire data from the GPS directly by the device with some API (for example) and then be able to save the lat./long. on a database? Thanks
  17. I found the same, of course latency problems expected, but more significant part is slow Contabo server response. So. As you know VPS systems "sharing" resources between users in dynamic way. So the configuration you made on Contabo is just your wish, actually maybe you do not get even 30 % of selected resources. But that is not the biggest problem even 30 % could be enough if this resources will be stable. But there are situation when you get 0% or almost nothing because someone else used instead of you. I do not have detailed knowledge about their VPS but I expected that there is at minimum availability - but obviously not. And in practice is like that. We have Unigui app for GPS tracking for end users. In background is MS SQL database and service apps which collected data from tracking units. The most important issue is availability, so it must work 24 hours per day without interruptions. We used Contabo several years on more VPS instances. And approximation is like this for one VPS is like this: one Windows crash per (once per 2 month). In error logs nothing, similar if you unplug PC from power source like , it could be called "black hole" low resources (1 or 2 per week, it could be several hours - according my logs). One record normally written in database 30 milliseconds, tooks more 10 times more or even 2 seconds. if you check resources HDD, processor, RAM everything is "fine", but nothing works it could be called "bad weather" recurses not at all (once per 3 months) it means the Windows UI freezing, apps are not responding, RD losing connection. There is almost no activity. It could be called "storm" Technical support - well actually is almost unusable (I have around 150 emails), sometimes the answers are interesting very comic. About my complaints they changed parameters for my server many times, but never solved the problem. 1 month ago there was a storm. It means that freeze everything every few minutes Windows GUI refresh that's all. Of course I sent request to support around 8 AM, first response was about 11 AM (they told me that is not wise to send more request because you lose priority order ). And system worked normally around 5 PM (probably because some demanding user stop working). So around 10 hours the system not worked at all. it means that around 50 of my clients not get service. Well next day was similar. After that my decision was clear. Now production server works in our office and we know what are our resources In general I can say only Contabo VPS, for testing yes, it is cheap, but for production "no go". if you go with production maybe "dedicated" could be usable - but I am skeptic. Best regards, Marko
  18. Hello, is there maybe existing or planned support to cache maps on mobile devices when using the UniMap control? The requirement is to download a map when online, but then do panning, zooming, and GPS data capturing while internet offline. Thanks
  19. I purchased and am using the uniGUI solution for building web pages for customer portals. I did not purchase the mobile feature set at this time. I would like to know if the mobile feature set is able to access the phones features like IMEI number, address book, photos, GPS coordinates, etc. I looked through the mobile objects listed on the uniGUI web site and did not see anything that led me to believe this was the case. IF not, are there other ways to get at this information while still using uniGUI?
  20. My problem is that, I test unigui befor ~5 months. then I have problem with executing javascript (I learn javascript) with unigui server. Make different tests and then all start to work with Unisession.JSCode (Read javascript from text file and direct executing with JSCode). After that I organize my server with that logic executing directly javascript from text files. After some months I update to 99.1309 - 99.1364 and all of my working server stop working with javascript from JSCode. I test this: 1. Fullscreen 2. Play Sound 3. Speach 4. Get GPS Coordinates of this functions, now work only "4. Get GPS" I make test with my desktop , My tablet and My phone.
  21. There are GPS devices on the market (black box to mount the car). When the device is running, it sends the coordinates via ComPort or on web server on internet. The device manufacturer typically offers a web server through which data from external software can be read.
  22. HI, I make some tests for this with android device (Tablet). When GPS is ON then unigui application server can get coordinates of device. var id, target, options; function success (pos) { //var crd = pos.coords; //if (target.latitude === crd.latitude && target.longitude === crd.longitude) { // console.log('Congratulations, you reached the target'); //navigator.geolocation.clearWatch(id); // } var out,out2 out = document.getElementById ("out"); out2 = document.getElementById ("TLabel3"); out.innerHTML = "lat:" + pos.coords.latitude + ", long:" + pos.coords.longitude ; out2.innerHTML = "Speed: " + pos.coords.speed + ", Altitude: " + pos.coords.altitude ; } function error(err) { console.warn('ERROR(' + err.code + '): ' + err.message); } target = { latitude : 0, longitude: 0 }; options = { enableHighAccuracy: true, timeout: 0000, maximumAge: 0 }; ID = navigator.geolocation.watchPosition(success, error, options);
  23. Hi! I want to share another application! This one is a GPS tracking application. You can try it in my web http://www.canarmedia.com In the menu click on VFlota - GPS Tracking. Thanks!!
  24. lema

    MyGPS

    I also work on a GPS tracking project. We track GPS data like Latitude , Longitude,speed and all OBD data from the vehicle. What database do you use?
  25. Hello, can you post a sample of a GPS waypoint data file ?
×
×
  • Create New...