Fieldtype

Archived
Forum
(read-only)

Google Latlng Lookup

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From No Two The Same

     

What is the purpose of the default address?

General

meslater
meslater

I am trying to find lat lng on a per entry basis should I leave the default address blank? It is just not clear to me what purpose it serves.

Thanks much

Elliot Lewis
# 1
Developer
Elliot Lewis

The fieldtype requires an address, it needs a reference to find the latitude and longitude.
It uses Googles services so it’s the same as http://maps.google.com

Google will try to find the location based on anything you enter as an address. A little message will appear with the fieldtype telling you if it’s an approximate or accurate location. Entering a house number, street, country and zipcode will give Google everything it needs to be accurate.

Once you’ve found the lat/lng you could remove the address data, not sure why you’d want to but it should save OK.

To give you an idea of why you might want this data, this is why I built it: http://neighboursandneighbourhoods.co.uk/neighbourhood_representatives

This uses the lat/lng to put pins on a Google map on the front-end.

Elliot Lewis
# 2
Developer
Elliot Lewis

Ah, I’ve just realised you might be talking about the default address in the fieldtype settings or when you set up field in a field group.

The default is an option when building Fieldtype Addons. I just included it incase someone wanted it.

If you want default details for each new entry, add default values when you create the field.
Usage in CP: Maybe your entries default to a location if not specified, a default value will save your client having to choose somewhere each time they post a new entry.