Content

Summary

Installation and Start

Main page

Input form

Route planing

Search for gas stations

Mouse actions

Printing Results

Generating POI data

Links

Copyright

Route planing and CNG/LPG station finder

Name: CngLpgFinder
GoogleMaps Api V3
@copyright (c) 2010 Bernd Ostermann

Summary

CngLpgFinder calculates a route and shows the natural gas (CNG) or liquified petroleum gas (LPG) filling stations along this route with a given maximum distance to the route. The filling stations can be restricted to the vicinity of refueling stops, whose distance from each other is the cruising range with a full tank.

A KML- or CSV file can be generated with the gas stations found along the route as POIs. KML files can be displayed in Google Earth or they can be loaded to a Navi device after being converted to a suitable format.

Generated CSV files can be loaded to Navi devices, which accept POI data as CSV files as garmin devices.

Actually LPG refueling station in 16 and CNG station in 12 european countries are used.

CngLpgFinder, based on the programming interface of GoogleMaps Api V3, is written in JavaScript.
Supported browsers by GoogleMaps Api V3 :

http://code.google.com/apis/maps/faq.html#browsersupport

It has been tested with Firefox, Chrome, Opera and Internet Explorer8. Internet Explorer8 is very slow and hardly to use for this application.
The application can be operated locally or by request from a web server.

Installation and Start

The downloaded file CngLpgFinder-V*. zip will be extracted to a directory and optionally transferred to a web server.
A API key is no longer required for GoogleMaps Api V3.
The application will be launched in a browser by calling the Web address or locally by opening one of the following files:

Main page

The main page contains a horizontal navigation bar and the map view. This page is always visible. It can be overlayed on the right side by secondary views: The navigation bar consists of buttons, which make the secondary view visible, when clicked. On start of the main page the secondary view Input is shown.

Input form

Route planing

The route is determined by: The syntax of addresses corresponds to that of GoogleMaps. A complete address consists of street name and house number, Zip code city, country or country code. An address may be incomplete, if it is known by GoogleMaps. Geographical latitude, longitude is accepted as an address.

Tip:
If an address is not known by GoogleMaps, then right click the point on the map; the address and geographical latitude and longitude is shown.

Search for gas stations

Searching for gas filling stations can be done in two ways: Input:

Mouse actions

The following mouse actions are provided:

Printing Results

Clicking the button Print Results at the top of the view station list opens a new window with the text of the station list and dependent on the browser a dialog for printing. To show the new window the browser must be enabled for popup windows.

Generating POI data

Clicking the button Generate POIs a page is generated with the gas stations as POI entries. This page may be generated in KML or CSV format. It can be stored locally in a file.

A generated CSV file can be loaded to a navi device, which uses CSV files.
KML files can be displayed in Google Earth or after converting to the appropriate format they can be loaded to a navi device.

Structure of POI data:

The POI data consists of: The data of CSV files are separated by commata. Some navi devices interprete only the first 3 fields of a POI. Therefore in the generated CSV page the fields 'name' and 'description' are concatenated.

Links

GoogleMaps Api: CngLpgFinder in the Web: Cng/Lpg Finder as Android App:

Copyright

All source code of CngLpgFinder is copyrighted by: The information provided by CngLpgFinder may arbitrarily used. You may refer to the web pages containing CngLpgFinder.
Using CngLpgFinder oder parts of it in a commercial environment requires the explicit agreement of it's author.
The sources of CngLpgFinder may be used in non commercial applications. They may be modified. In each case the origin und @copyright of the original sources must be made clearly visible.