GetGeocode

Summary: Create a small form on a page to enter an address and get a geocode for google maps
Version: February 10, 2008
Prerequisites: Google Maps API key
Status: Basic, functional
Maintainer: Henrik Bechmann
Categories: Uncategorized
Discussion: GetGeocode-Talk?

Questions answered by this recipe

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

How to easily find a geocode (latitude and longitude) for an address, in order to place a marker on a google map.

Description

Enter your recipe's description here.

Place the directive

(:getgeocode:)

on a line your wiki page, for a page that has had the google maps api loaded (See Google Maps API key)

Enter an address in the address field. Hit the "Get Geocode" button. Read the latitude and longitude from the results field.

Notes

Place the getgeocode.phpΔ file into the cookbook directory.

Place the line

include_once("$FarmD/cookbook/getgeocode.php");

in your config.php or farmconfig.php file.

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See Also

Contributors

Comments

See discussion at GetGeocode-Talk?

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.