A cluster of Hexagons Modulus 03 9553 8008  
blankSearch this site:
blank
blank
light source

telephone: +61 3 9553 8008

email:

locations.module google interface

locations.module can be interfaced with Google Maps. This document shows examples of calling up Google maps from postcode data.

A simple map corresponding to a Postcode

This example shows how simply a Google map can be created on a web page using the Google Maps API, which is implemented as Javascript. The simple map can be created with a couple of lines of code. Typical use would be e.g. after a website visitor finds closest branches using location.module and clicks on a branch, show a map centred on that branch.
Click on one of these Postcodes to see a map:
3187 - Brighton East in Melbourne, Victoria
3216 - Belmont/Highton/Grovedale in Geelong, Victoria
870 - Alice Springs in the Northern Territory

Example of interfacing for road distance and directions

This example also uses the Google Maps API to get directions between two postcodes and illustates how the road distance can be obtained from the Google API and compared with the straight-line distance calculated by locations.module. The Javascript is a little more complex, but still only amounts to 100 lines. Input an origin and destination postcode and click the "get directions" button to see the directions.
Origin postcode: locations.module calculated direct distance: km.
Destination postcode: google calculated road distance: km.


Copyright © 2008 Modulus Pty. Ltd.
light source
home | analog.module | cbt.module | linkcheck.module | locations.module | modprom.module | parcelpost.module | sitemap.module | sitesearch.module | spellcheck.module | contact us