Add location coordinates to your post types.
Access your data in the loop using the following functions, with the post ID passed as a parameter. For the full coordinates (in brackets):
<?php echo get_geocode_latlng( $post->ID ); ?>
For the Latitude:
<?php echo get_geocode_lat( $post->ID ); ?>
For the Longitude:
<?php echo get_geocode_lng( $post->ID ); ?>
For the Address:
<?php echo get_geocode_address( $post->ID ); ?>
Requires: 3.6 or higher
Compatible up to: 3.9.6
Last Updated: 2014-7-1
Active Installs: 700+
0 of 2 support threads in the last two months have been resolved.
Got something to say? Need help?