Meta Box Geolocation is an extension of the WordPress Meta Box plugin which interacts with Google Maps Geocoding API and automatically populates location data into your fields such as postcode, state, country.
Must use situation:
When developers have to enter the information for a shop or a location, there must have much information like address, state, suburb, post code, latitude, longitude… It is a slow and time-consuming work. Meta Box Geolocation provide a better way to enter these data automatically and properly.
Highlights: Simple to use, Exactly correct.
No need setup Google Maps API. The only work you should do is just registering your desired fields (address, postal code, country, etc.) as normal fields in Meta Box. And due to the google large database, it will be the exactly correct.
Examples for developing:
Register your desired fields (address, postal code, country, etc.) as normal fields in Meta Box and then set the field’s id same as address components (address, postal_code, country) and it works. For example, if you set the field id to
country, then the country name will be bound to this field. The same for
state and other components of the address.You can also set the short version of the country name (US instead of United States, RU instead of Russia) by appending
_short to the field’s id, e.g.
- No Database Required
- Powerful Binding Template: Sometimes, you want to save complex data into 1 field. For example: State + Country. Meta Box Geolocation has Binding Template which helps you do that.
- Not fast, it’s INSTANT
- Easy to use
- Less time require
You have a real-estate website and each property listed on the website needs full information about the address, town, postcode, state, country. Using Meta Box Geolocation can only require you the address and do the extra work accurately and automatically. Must use websites: car parking, restaurants, coffee shop, tour, etc.
Frequently Asked Questions:
Can I populate state name to my field’s ID which named `my_dummy_field`?
Yes. By default, you can set the field id same as address components and it will work out of the box, but you can also use the binding template to auto populate data to your field which id doesn’t exist in address components.
Want to see more information? Check the DOCUMENTATION