473,466 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

tracking application with vb.net, gm862-gps module and googlemaps

fridrai
9 New Member
Hi all
I am trying to develop a tracking application by the use of python to write the script for the gm862-gps module, and .net for the desktop window application, which code is:
Expand|Select|Wrap|Line Numbers
  1. Imports System.Text
  2. Imports Microsoft.VisualBasic
  3. Imports System.Timers
  4.  
  5.  
  6.  
  7.  
  8.  
  9. Public Class Tracking_Theft
  10.  
  11. Private Sub butnsrchmap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butnsrchmap.Click
  12. Try
  13.  
  14. Dim Street As String = String.Empty
  15. Dim City As String = String.Empty
  16. Dim Zip As String = String.Empty
  17. Dim IMEI As Decimal = Decimal.Zero
  18. Dim Lattitude As Decimal = Decimal.Zero
  19. Dim Longitude As Decimal = Decimal.Zero
  20. Dim Number_Of_Satellites As Integer = Integer.MinValue
  21. Dim queryAdress As New StringBuilder()
  22. queryAdress.Append("https://maps.google.com/mapps?q=")
  23.  
  24. 'build street part query
  25. If txtstreet.text <> String.Empty Then
  26. Street = txtstreet.Text.Replace(" ", "+")
  27. queryAdress.Append(Street + "," & "+")
  28. End If
  29.  
  30. 'build city part query
  31. If cmbxcity.Text <> String.Empty Then
  32. City = cmbxcity.Text.Replace(" ", "+")
  33. queryAdress.Append(City + "," & "+")
  34. End If
  35.  
  36. 'build zip part query
  37. If txtzip.Text <> String.Empty Then
  38. Zip = txtzip.Text.Replace(" ", "+")
  39. queryAdress.Append(Zip + "," & "+")
  40. End If
  41.  
  42. 'build IMEI part query
  43. If txtimei.Text <> String.Empty Then
  44. IMEI = txtimei.Text.Replace(" ", "+")
  45. queryAdress.Append(IMEI + "," & "+")
  46. End If
  47.  
  48. 'build latitude part query
  49. If txtlatitude.Text <> String.Empty Then
  50. Lattitude = txtlatitude.Text.Replace(" ", "+")
  51. queryAdress.Append(Lattitude + "," & "+")
  52. End If
  53.  
  54. 'build longitude part query
  55. If txtlongitude.Text <> String.Empty Then
  56. Longitude = txtlongitude.Text.Replace(" ", "+")
  57. queryAdress.Append(Longitude + "," & "+")
  58. End If
  59.  
  60. 'build Number of Stellites part query
  61. If txtnumbsat.Text <> String.Empty Then
  62. Number_Of_Satellites = txtnumbsat.Text.Replace(" ", "+")
  63. queryAdress.Append(Number_Of_Satellites + "," & "+")
  64. End If
  65.  
  66. WebBrowser1.Navigate(queryAdress.ToString())
  67.  
  68.  
  69. Catch ex As Exception
  70. MessageBox.Show(ex.Message.ToString(), "Unable to load the map")
  71.  
  72. End Try
  73. End Sub
  74. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  75.  
  76. daylab.Text = " " & Now.ToShortDateString
  77. timelab.Text = "" & Now.ToShortTimeString
  78.  
  79. End Sub
  80.  
  81. End Class
while running, I can not do search by key words inserted into the text boxes of my subwindow, I find myself limited tosearch by entering keywords in the text zone of the google map area
does the fact of having used the split container as a deviding page tool, disable the relation between the text zone and the webbrowser?
thx in advance for help
Jun 6 '13 #1
3 3786
fridrai
9 New Member
problem resolved, it was just a spelling mistake: mapps which i replaced by maps ;)
now, i still have another problem, i can find just by zip code, city and street, how should i make it workable by latitude and longitude?
i've tried to replace it by
Expand|Select|Wrap|Line Numbers
  1. 'build latitude part query 
  2. If txtlatitude.Text <> String.Empty Then 
  3. Lattitude = txtlatitude.Text.Replace(" ", "+") 
  4. queryAdress.Append(Lattitude + "," & "+") 
  5. End If
  6.  
  7.  'build longitude part query 
  8.  
  9. If txtlongitude.Text <> String.Empty Then
  10.  Longitude = txtlongitude.Text.Replace(" ", "+") 
  11. queryAdress.Append(Longitude + "," & "+") 
  12. End If 
  13.  
but it still do not find by geographical coordinates :'(
Jun 6 '13 #2
fridrai
9 New Member
another punctuation mistake, no need for the comma after the the longitude, i've replaced it by:
Expand|Select|Wrap|Line Numbers
  1.  If txtlongitude.Text <> String.Empty Then
  2.  Longitude = txtlongitude.Text.Replace(" ", "+") 
  3. queryAdress.Append(Longitude  & "+") 
  4. End If 
and now it works
last question: can i get how much satellites has my gps tracker detected ?
Jun 8 '13 #3
KDMN
1 New Member
Hello ,

This Longitude and Lattitude code is not working for me . can someone help me?
Oct 22 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Raffi | last post by:
Hi All, I hope I'm posting this question to the correct newsgroups. We have a web based database application that's accessed using IE. The application opens a popup window to run in. With all...
0
by: Marcus Hartley | last post by:
I'm looking for a pre-built MS Access application that will track public review comments on large, often controversial documents, such as environmental impact statements. The comments need to...
2
by: | last post by:
Hi!!! I'm looking for an ASP.NET bug tracking web application. ´ Or some others that are based on the web. What kind of bug tracking applications used Microsoft to track bugs? Or what kind of...
0
by: kat | last post by:
Hi, I am trying to figure out how things work between an ASP.NET application and a module. I have created a simple application and a simple module that I want to interact. If I understand what...
4
by: Kalyani Vezzu | last post by:
Hello all, I tried to write a program to search files in the given directory in Vb .net using directoryinfo object in a recursive function without multithreading. When the directory contains...
3
by: BW | last post by:
Has anyone attempted writing a print-tracking application in VB.Net? I'd like it to run as an active service on the server and monitor all printjobs. I'd like to write it myself but am not sure...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.