Home > lbGmapLocation

lbGmapLocation

LbGmapLocation is a project mainly written in JavaScript, it's free.

Use Google Maps v3 to autocomplete the name of a location and grab the coordinates of said location

lbGMapLocation jQuery Plugin v1.0

Copyright (c) 2011. Licensed under the MIT license.

Overview

A jQuery plugin that autocompletes locations based on the user input and returns said location's coordinates.

Usage

$('#input').lbGMapLocation()

  • it works with an input[type=text]
  • a hidden field should be added, named as the input field with "-coordinates" appended
  • if the hidden field is not present it will automagically be added