Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Address to full address

Calls Googles reverse geocode API converting address to full address and lat lng coordinates

install

meteor add baberuth22:google-geocode

Usage

Convert zipcode to address Returns whole data from Google API. Check below for tidy outputs

var zipcode = 93109;
geocode.getLocation(zipcode, function(location){

	//location is straight output from Google
	//or you can now access it from geocode object
	Session.set('location', geocode.getAddrStr());
});

Use this if you are using https

var zipcode = 93109;
geocode.getSecureLocation(zipcode, function(location){

  //location is straight output from Google
  //or you can now access it from geocode object
  Session.set('location', geocode.getAddrStr());
});

Data is accessible from

geocode.data

Format address as an Object

geocode.getAddrObj()

Format address as a String

geocode.getAddrStr()

Get postal code

geocode.getPostalCode()

About

A meteor package to geocode an address into full address and lat lng coordinates.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages