473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

fridrai
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 3777
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
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.