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: - Imports System.Text
-
Imports Microsoft.VisualBasic
-
Imports System.Timers
-
-
-
-
-
-
Public Class Tracking_Theft
-
-
Private Sub butnsrchmap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butnsrchmap.Click
-
Try
-
-
Dim Street As String = String.Empty
-
Dim City As String = String.Empty
-
Dim Zip As String = String.Empty
-
Dim IMEI As Decimal = Decimal.Zero
-
Dim Lattitude As Decimal = Decimal.Zero
-
Dim Longitude As Decimal = Decimal.Zero
-
Dim Number_Of_Satellites As Integer = Integer.MinValue
-
Dim queryAdress As New StringBuilder()
-
queryAdress.Append("https://maps.google.com/mapps?q=")
-
-
'build street part query
-
If txtstreet.text <> String.Empty Then
-
Street = txtstreet.Text.Replace(" ", "+")
-
queryAdress.Append(Street + "," & "+")
-
End If
-
-
'build city part query
-
If cmbxcity.Text <> String.Empty Then
-
City = cmbxcity.Text.Replace(" ", "+")
-
queryAdress.Append(City + "," & "+")
-
End If
-
-
'build zip part query
-
If txtzip.Text <> String.Empty Then
-
Zip = txtzip.Text.Replace(" ", "+")
-
queryAdress.Append(Zip + "," & "+")
-
End If
-
-
'build IMEI part query
-
If txtimei.Text <> String.Empty Then
-
IMEI = txtimei.Text.Replace(" ", "+")
-
queryAdress.Append(IMEI + "," & "+")
-
End If
-
-
'build latitude part query
-
If txtlatitude.Text <> String.Empty Then
-
Lattitude = txtlatitude.Text.Replace(" ", "+")
-
queryAdress.Append(Lattitude + "," & "+")
-
End If
-
-
'build longitude part query
-
If txtlongitude.Text <> String.Empty Then
-
Longitude = txtlongitude.Text.Replace(" ", "+")
-
queryAdress.Append(Longitude + "," & "+")
-
End If
-
-
'build Number of Stellites part query
-
If txtnumbsat.Text <> String.Empty Then
-
Number_Of_Satellites = txtnumbsat.Text.Replace(" ", "+")
-
queryAdress.Append(Number_Of_Satellites + "," & "+")
-
End If
-
-
WebBrowser1.Navigate(queryAdress.ToString())
-
-
-
Catch ex As Exception
-
MessageBox.Show(ex.Message.ToString(), "Unable to load the map")
-
-
End Try
-
End Sub
-
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
-
-
daylab.Text = " " & Now.ToShortDateString
-
timelab.Text = "" & Now.ToShortTimeString
-
-
End Sub
-
-
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
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 -
'build latitude part query
-
If txtlatitude.Text <> String.Empty Then
-
Lattitude = txtlatitude.Text.Replace(" ", "+")
-
queryAdress.Append(Lattitude + "," & "+")
-
End If
-
-
'build longitude part query
-
-
If txtlongitude.Text <> String.Empty Then
-
Longitude = txtlongitude.Text.Replace(" ", "+")
-
queryAdress.Append(Longitude + "," & "+")
-
End If
-
but it still do not find by geographical coordinates :'(
another punctuation mistake, no need for the comma after the the longitude, i've replaced it by: - If txtlongitude.Text <> String.Empty Then
-
Longitude = txtlongitude.Text.Replace(" ", "+")
-
queryAdress.Append(Longitude & "+")
-
End If
and now it works
last question: can i get how much satellites has my gps tracker detected ?
Hello ,
This Longitude and Lattitude code is not working for me . can someone help me?
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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,...
|
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...
| | |