diff --git a/README.md b/README.md index a6b8aa0..f2ae911 100755 --- a/README.md +++ b/README.md @@ -16,12 +16,16 @@ Completely rewritten from the initial version. Supports the collection and basic It supports retrieving location using the HTML5 geolocation API. As it stores the GeoData in a WordPress standard format, GeoData can be also be stored by the mobile WordPress apps. -To get more information about the location and to display maps, Simple Location supports various map providers. A API key may be required for some. - It also adds location data to pages, allowing you to create a page about a location. ## Other Notes ## +As of Version 2.0.0, there is the start of support for multiple map providers. + +The option to select your choice of provider is not yet there. Until then, +Google is the static maps provider and Nominatim(OpenStreetMap) is the reverse +geocoder. + The Development Version as well as support can be found on [Github](https://github.com/dshanske/simple-location). @@ -36,8 +40,8 @@ used to store geodata about a post. ### Version 2.0 ### * Complete Rewrite with improved scoping - * Offer Google Maps as a provider - * + * Google Maps is now a provider of static maps + * Maps providers are built with a common interface to allow multiple providers ### Version 1.0.1 ### * Some refinements to the presentation diff --git a/includes/class-loc-postmeta.php b/includes/class-loc-postmeta.php index 6ec98a0..208e071 100755 --- a/includes/class-loc-postmeta.php +++ b/includes/class-loc-postmeta.php @@ -223,7 +223,7 @@ public static function addressbox_save_post_meta( $post_id ) { $adr = array(); if($lookup) { if ( !empty( $_POST[ 'geo_latitude' ] ) && !empty( $_POST[ 'geo_longitude' ] ) ) { - $reverse_adr = sloc_reverse_lookup($_POST['geo_latitude'], $_POST['geo_longitude']); + $reverse_adr = osm_static::reverse_lookup($_POST['geo_latitude'], $_POST['geo_longitude']); update_post_meta( $post_id, 'mf2_adr', $reverse_adr ); } update_post_meta($post_id, 'geo_lookup', 0); diff --git a/includes/class-loc-view.php b/includes/class-loc-view.php index 2dc7b77..17b8ed4 100755 --- a/includes/class-loc-view.php +++ b/includes/class-loc-view.php @@ -104,7 +104,7 @@ public static function get_the_adr($loc) { } public static function location_content($content) { - $loc = simple_get_location(); + $loc = self::get_location(); if(!empty($loc)) { $content .= '

' . _x('Location:', 'simple-location') . ' ' . $loc . '

'; } diff --git a/readme.txt b/readme.txt index cc3be30..e19fbab 100755 --- a/readme.txt +++ b/readme.txt @@ -16,12 +16,16 @@ Completely rewritten from the initial version. Supports the collection and basic It supports retrieving location using the HTML5 geolocation API. As it stores the GeoData in a WordPress standard format, GeoData can be also be stored by the mobile WordPress apps. -To get more information about the location and to display maps, Simple Location supports various map providers. A API key may be required for some. - It also adds location data to pages, allowing you to create a page about a location. == Other Notes == +As of Version 2.0.0, there is the start of support for multiple map providers. + +The option to select your choice of provider is not yet there. Until then, +Google is the static maps provider and Nominatim(OpenStreetMap) is the reverse +geocoder. + The Development Version as well as support can be found on [Github](https://github.com/dshanske/simple-location). @@ -36,8 +40,8 @@ It consists of four fields: latitude, longitude, public, and address. Altitude h = Version 2.0 = * Complete Rewrite with improved scoping - * Offer Google Maps as a provider - * + * Google Maps is now a provider of static maps + * Maps providers are built with a common interface to allow multiple providers = Version 1.0.1 = * Some refinements to the presentation