Home PageFacebookRSS News Feed
PocketGPS
Web
SatNav,GPS,Navigation
Pocket GPS World - SatNavs | GPS | Speed Cameras: Forums

Pocket GPS World :: View topic - Garmin Proximity Alerts
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in for private messagesLog in for private messages   Log inLog in 

Garmin Proximity Alerts
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Pocket GPS World Forum Index -> Garmin Portable Navigation Devices
View previous topic :: View next topic  
Author Message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7040
Location: Reading

PostPosted: Fri Apr 29, 2011 6:25 am    Post subject: Reply with quote

I'm reading the files one at a time and loading the data into an array.

I then re-read the file and take note of the Lat and Lon data. I then add and subtract 0.001 from the Lat and Lon position to give me a Min and Max.

I calculated that 0.001 was sufficient by using the Lat and Lon of the variable cameras along the western section of the M25 which are often on the same gantry but on opposite carriageways causing a double warning when one will do in each direction.

I then read through the rest of the file and if any other camera is within the Min and Max for both Lat and Lon then the camera has to be within a very short distance of the one I'm looking at and therefore can be omitted.

On my first run yesterday it worked perfectly for these cameras on the M25 but still gave me warnings for the ones that are on separate gantries.

I'm sure I have a working version now and I'm happy to release it free to anyone interested (including the VB6 source code if anyone wants to improve on it). I would have used VB.NET but I'm not sure how Microsoft's DomDocument4 works with .NET yet for creating the XML files (subsequently renamed to .GPX)

It should still be treated as beta as I've only tested this final version once but I have tested other variants continually during the week.
_________________
Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
Back to top
View user's profile Send private message
BigPerk
Frequent Visitor


Joined: Sep 06, 2006
Posts: 1618
Location: East Hertfordshire

PostPosted: Fri Apr 29, 2011 9:18 am    Post subject: Reply with quote

Maybe you could license it to Ash10, for a small % of his Paypal donations ... Question Question Razz

(it does look like a very useful utility Smile )
_________________
David
(Navigon 70 Live, Nuvi 360)
Back to top
View user's profile Send private message
MaFt
Pocket GPS Staff
Pocket GPS Staff


Joined: Aug 31, 2005
Posts: 15138
Location: Bradford, West Yorkshire

PostPosted: Fri Apr 29, 2011 10:45 am    Post subject: Reply with quote

I always preferred CBROM's utility anyway...

This one is more like his. Will be interesting to have a play!

MaFt
Back to top
View user's profile Send private message Visit poster's website
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7040
Location: Reading

PostPosted: Fri Apr 29, 2011 2:12 pm    Post subject: Reply with quote

Once I get back into the office next Thursday I'll send it over.

ps: I want no dosh for this, it was a labour of love Smile
_________________
Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
Back to top
View user's profile Send private message
camerauk
Occasional Visitor


Joined: Dec 19, 2004
Posts: 27

PostPosted: Sun May 08, 2011 8:48 pm    Post subject: Reply with quote

Kremmen wrote:
Once I get back into the office next Thursday I'll send it over.

ps: I want no dosh for this, it was a labour of love Smile


I would love a copy of this please Very Happy
is it windows only or mac compatible does not matter either way

Andy
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7040
Location: Reading

PostPosted: Mon May 09, 2011 6:33 am    Post subject: Reply with quote

Hi

I'm in the process of rewriting it to make use of .NET4 via VS2010. If your happy to have a go with the VB6 version I'll send it over.

It's Windows only and probably won't work with 64bit. Having said that the .Net4 version probably won't either because Microsoft in their infinite wisdom have removed the native controls to display Drive, Directory and File List Boxes so I've had to call on legacy controls that I'm sure aren't 64bit compatible.
_________________
Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
Back to top
View user's profile Send private message
M8TJT
The Other Tired Old Man
The Other Tired Old Man


Joined: Apr 04, 2006
Posts: 10118
Location: Bexhill, South Sussex, UK

PostPosted: Mon May 09, 2011 8:36 am    Post subject: Reply with quote

Kremmen wrote:
Having said that the .Net4 version probably won't either because Microsoft in their infinite wisdom have removed the native controls to display Drive, Directory and File List Boxes so I've had to call on legacy controls that I'm sure aren't 64bit compatible.
Why oh why do MS do things like this? Confused
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7040
Location: Reading

PostPosted: Tue May 10, 2011 6:32 am    Post subject: Reply with quote

It gets worse....

Everything has converted OK except for the UnZip routine and the XML writing bit. They have made it so complicated to produce the required multiple element attributes. So easy using the legacy MSXML4 DomDocument routines.

The GPX file requires an entry like "wpt lon="-2.25405" lat="51.84847"
Easy to produce "wpt lon="-2.25405" but trying to add the second element is proving difficult, even via multiple Googles to find a solution !

I've resorted to using the Win32 Shell for the unzipping so that bit won't work under 64bit Windows I wouldn't think. Shame really.

I can see me calling in the legacy DomDocument for that bit as well.

I'm won't give up though.
_________________
Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7040
Location: Reading

PostPosted: Sat May 21, 2011 6:25 am    Post subject: Reply with quote

Latest screendump of my efforts. Now tested on Win 7 32bit and works perfectly Very Happy



I'll upload it Monday. I can't post the download link directly because my company may object. I will post via PM though.
_________________
Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
Back to top
View user's profile Send private message
Andy_P
Pocket GPS Moderator
Pocket GPS Moderator


Joined: Jun 04, 2005
Posts: 19991
Location: West and Southwest London

PostPosted: Sun May 22, 2011 2:44 pm    Post subject: Reply with quote

Damn that looks clever, Kremmen.... Where do you go to learn this stuff?
_________________
"Settling in nicely" ;-)
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7040
Location: Reading

PostPosted: Mon May 23, 2011 6:32 am    Post subject: Reply with quote

It's what I do on a daily basis Smile

As far as I can tell it's all working as expected so I'm going to upload it to the company server. I have one PM to send with the link.

It should work on all versions of Windows except possibly for the programmatic unzipping of the database which may be restricted to 32bit machines. I'm sure someone will tell me. For this reason it's possible to manually unzip the file and the program will acknowledge that it's now found CSV files which can be converted to GPX with user set requirements.
_________________
Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
Back to top
View user's profile Send private message
m-a-r-k
Regular Visitor


Joined: Jun 17, 2008
Posts: 80
Location: Highland

PostPosted: Wed May 25, 2011 7:23 pm    Post subject: Reply with quote

How can we get to play with this wonderful program? Very Happy
_________________
Mark B
Garmin nüvi 350
SW V6.20, GPS SW V3.00
City Navigator Europe NT 2018.10
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7040
Location: Reading

PostPosted: Thu May 26, 2011 6:33 am    Post subject: Reply with quote

PM sent with download link Smile
_________________
Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
Back to top
View user's profile Send private message
tailz
Occasional Visitor


Joined: Jul 03, 2008
Posts: 13

PostPosted: Thu May 26, 2011 7:03 am    Post subject: Reply with quote

Hi Kremmen,

If your program is ready for use/trials, I would be grateful to have a play.

Cheers

Tony
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7040
Location: Reading

PostPosted: Thu May 26, 2011 9:05 am    Post subject: Reply with quote

Done Smile
_________________
Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
Back to top
View user's profile Send private message







Posted: Today    Post subject: Pocket GPS Advertising

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pocket GPS World Forum Index -> Garmin Portable Navigation Devices All times are GMT + 1 Hour
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Make a Donation



CamerAlert Database

Click here for the PocketGPSWorld.com Speed Camera Database

Download Speed Camera Database
22.044 (24 Apr 24)



WORLDWIDE SPEED CAMERA SPOTTERS WANTED!

Click here to submit camera positions to the PocketGPSWorld.com Speed Camera Database


12mth Subscriber memberships awarded every week for verified new camera reports!

Submit Speed Camera Locations Now


CamerAlert Apps



iOS QR Code






Android QR Code







© Terms & Privacy


GPS Shopping