Skip to content

Commit

Permalink
Version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Jul 3, 2015
1 parent 31ea9f2 commit 4528bb5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).


Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion includes/class-loc-postmeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion includes/class-loc-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '<p><sub>' . _x('Location:', 'simple-location') . ' ' . $loc . '</sub></p>';
}
Expand Down
12 changes: 8 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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).


Expand All @@ -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
Expand Down

0 comments on commit 4528bb5

Please sign in to comment.