Skip to content

Commit

Permalink
IP-Geo Sources updated.
Browse files Browse the repository at this point in the history
Google has deprecated google.loader.ClientLocation API. As a result;
Google (Loader) is removed from IP-Geo Sources.
  • Loading branch information
Onur YILDIRIM committed Jun 28, 2013
1 parent 2f41136 commit 6b4b64f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version: 0.95, Author: Onur Yildirim © 2012, MIT License.
###Features:

- HTML5 geolocation (by user permission)
- Location by IP (Supported source services: Google, freegeoip, geoplugin, wikimedia)
- Location by IP (Supported source services: FreeGeoIP, GeoPlugin, WikiMedia)
- Reverse Geocoding (address lookup)
- Full address information (street, town, neighborhood, region,
country, country code, postal code, etc...)
Expand Down Expand Up @@ -67,9 +67,9 @@ Use this method to get the location via HTML5 geolocation.
>   Specifies whether geolocator should fallback to IP geo-lookup when HTML5 geolocation is not
>   supported or rejected by the user. A positive `Integer` value will indicate the index of the source
>   ip-geo service (if the value is in range). Boolean `true` will set the default ip-geo service index
>   which is `0` (Google).
>   Valid values: *`0` or `true` (use Google for ip-geo fallback), `1` (use FreeGeoIP for ip-geo fallback),
>   `2` (use GeoPlugin for ip-geo fallback), `3` (use Wikimedia for ip-geo fallback), `false` or `-1` or
>   which is `0` (FreeGeoIP).
>   Valid values: *`0` or `true` (use FreeGeoIP for ip-geo fallback),
>   `1` (use GeoPlugin for ip-geo fallback), `2` (use Wikimedia for ip-geo fallback), `false` or `-1` or
>   `null` or any other value (will disable ip-geo fallback)*
> - `html5Options` *Object (optional, default: `null`)*
Expand Down Expand Up @@ -100,7 +100,7 @@ Use this method to get the location from the user's IP.
> - `ipGeoSourceIndex` *Integer (optional, default: `0`)*
>   Indicates the index of the IP geo-lookup service.
>   Valid values: *`0` (Google), `1` (FreeGeoIP), `2` (GeoPlugin), `3` (Wikimedia)*
>   Valid values: *`0` (FreeGeoIP), `1` (GeoPlugin), `2` (Wikimedia)*
> - `mapCanvasId` *String (optional, default: `null`)*
>   HTML element ID for the Google Maps canvas. If set to null, no map is drawn.
Expand Down
9 changes: 4 additions & 5 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,17 @@
<div id="container">
<div id="controls">
Geo IP Source: <select id="cmb-source">
<option value="0">Google</option>
<option value="1">Free GeoIP</option>
<option value="2">Geo Plugin</option>
<option value="3">Wikimedia</option>
<option value="0">Free GeoIP</option>
<option value="1">Geo Plugin</option>
<option value="2">Wikimedia</option>
</select>&nbsp;<button id="btn-locate-ip">Locate by IP</button> | <button id="btn-locate">Locate (HTML5)</button>
<br /><span class="info">(Geo IP Source is also used as a fallback when user rejects HTML5 Geo-location.)</span><br />
</div>
<div id="map-canvas"></div>
<div id="geo-details"></div>
<br />
View <a href="https://github.com/onury/geolocator">project page</a> (and documentation) at GitHub.<br />
Geolocator 0.92 - Copyright © Onur Yildirim, 2012. MIT License.
Geolocator 0.95 - Copyright © Onur Yildirim, 2012. MIT License.
<br /><br />
</div>

Expand Down
Binary file modified screenshots/geolocator-example.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6b4b64f

Please sign in to comment.