Skip to content

Commit 5f4d425

Browse files
committed
Add GeolocatorPlugin-1.0.3 to IOS and Windows project
1 parent 2fe1935 commit 5f4d425

84 files changed

Lines changed: 2478 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Name":"Geolocator Plugin","Id":2035,"Alias":"GeolocatorPlugin","Description":"# Geolocator Plugin details\r\n\r\nSimple cross platform plugin to get GPS location including heading, speed, and more.\r\n\r\n#### Features\r\n* Async GPS Location Detection\r\n* Heading\r\n* Speed\r\n* Listen for Changes\r\n\r\n\r\nWorks from any shared code or PCL project.\r\n\r\nFind more plugins at: http://www.github.com/xamarin/plugins","Version":"1.0.3","Summary":"Simple cross platform plugin to get GPS location including heading, speed, and more.","QuickStart":"# Getting Started with Geolocator Plugin\r\n\r\n### API Usage\r\n\r\nCall **CrossGeolocator.Current** from any project or PCL to gain access to APIs.\r\n\r\n```\r\nvar locator = CrossGeolocator.Current;\r\nlocator.DesiredAccuracy = 50;\r\n\r\nvar position = await locator.GetPositionAsync (timeoutMilliseconds: 10000);\r\n\r\nConsole.WriteLine (\"Position Status: {0}\", position.Timestamp);\r\nConsole.WriteLine (\"Position Latitude: {0}\", position.Latitude);\r\nConsole.WriteLine (\"Position Longitude: {0}\", position.Longitude);\r\n```\r\n\r\n### **IMPORTANT**\r\nAndroid:\r\n\r\nYou must request ACCESS_COARSE_LOCATION \u0026 ACCESS_FINE_LOCATION permission\r\n\r\niOS:\r\n\r\nIn iOS 8 you now have to call either RequestWhenInUseAuthorization or RequestAlwaysAuthorization on the location manager. Additionally you need to add either the concisely named NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription to your Info.plist. \r\nSee: http://motzcod.es/post/97662738237/scanning-for-ibeacons-in-ios-8\r\n\r\nWindows Phone:\r\n\r\nYou must set the ID_CAP_LOCATION permission.","Hash":"94480115a3947ef812df48cae11dbd94","TargetPlatforms":["ios","ios-unified","android"],"TrialHash":null}

Components/GeolocatorPlugin-1.0.3.png

Lines changed: 314 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Geolocator Plugin details
2+
3+
Simple cross platform plugin to get GPS location including heading, speed, and more.
4+
5+
#### Features
6+
* Async GPS Location Detection
7+
* Heading
8+
* Speed
9+
* Listen for Changes
10+
11+
12+
Works from any shared code or PCL project.
13+
14+
Find more plugins at: http://www.github.com/xamarin/plugins
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Getting Started with Geolocator Plugin
2+
3+
### API Usage
4+
5+
Call **CrossGeolocator.Current** from any project or PCL to gain access to APIs.
6+
7+
```
8+
var locator = CrossGeolocator.Current;
9+
locator.DesiredAccuracy = 50;
10+
11+
var position = await locator.GetPositionAsync (timeoutMilliseconds: 10000);
12+
13+
Console.WriteLine ("Position Status: {0}", position.Timestamp);
14+
Console.WriteLine ("Position Latitude: {0}", position.Latitude);
15+
Console.WriteLine ("Position Longitude: {0}", position.Longitude);
16+
```
17+
18+
### **IMPORTANT**
19+
Android:
20+
21+
You must request ACCESS_COARSE_LOCATION & ACCESS_FINE_LOCATION permission
22+
23+
iOS:
24+
25+
In iOS 8 you now have to call either RequestWhenInUseAuthorization or RequestAlwaysAuthorization on the location manager. Additionally you need to add either the concisely named NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription to your Info.plist.
26+
See: http://motzcod.es/post/97662738237/scanning-for-ibeacons-in-ios-8
27+
28+
Windows Phone:
29+
30+
You must set the ID_CAP_LOCATION permission.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Geolocator Plugin license
2+
3+
4+
The MIT License (MIT)
5+
6+
Copyright (c) 2014 James Montemagno / Refractored LLC
7+
8+
Permission is hereby granted, free of charge, to any person obtaining a copy of
9+
this software and associated documentation files (the "Software"), to deal in
10+
the Software without restriction, including without limitation the rights to
11+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
12+
the Software, and to permit persons to whom the Software is furnished to do so,
13+
subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in all
16+
copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
20+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
21+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
22+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<component format="1" id="GeolocatorPlugin" is-shell="true">
3+
<name>Geolocator Plugin</name>
4+
<publisher>James Montemagno</publisher>
5+
<publisher-url>http://www.github.com/jamesmontemagno/Xamarin.Plugins</publisher-url>
6+
<version>1.0.3</version>
7+
<summary>Simple cross platform plugin to get GPS location including heading, speed, and more.</summary>
8+
<packages>
9+
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="winphone-8.1" />
10+
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="ios-unified" />
11+
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="android" />
12+
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="winphone-8.0" />
13+
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="ios" />
14+
</packages>
15+
<samples>
16+
<sample id="GeolocatorSample">
17+
<name>Android Sample</name>
18+
<summary>Android Sample</summary>
19+
</sample>
20+
<sample id="GeolocatorSample">
21+
<name>WindowsPhone Sample</name>
22+
<summary>WindowsPhone Sample</summary>
23+
</sample>
24+
<sample id="GeolocatorSample">
25+
<name>iOS Sample</name>
26+
<summary>iOS Sample</summary>
27+
</sample>
28+
</samples>
29+
</component>
13.5 KB
Loading
117 KB
Loading

0 commit comments

Comments
 (0)