Skip to content

jbeuckm/cordova-plugin-geocoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

org.beuckman.geocoder

Installation

git clone [email protected]:jbeuckm/cordova-plugin-geocoder.git
cd myproject
cordova plugin add ../cordova-plugin-geocoder

Supported Platforms

  • iOS
  • Android

Methods

  • navigator.geocoder.geocodeString

navigator.geocoder.geocodeString

Forward geocode a given address to find coordinates.

navigator.geocoder.geocodeString(successCallback, errorCallback, addressString);

Parameters

  • addressString: The address to be geocoded. (String)

Example

function onError(err) {
    alert(JSON.stringify(err));
}
function onSuccess(coords) {
    alert("The location is lat="+coords.latitude+", lon="+coords.longitude);
}

navigator.geocoder.geocodeString(onSuccess, onError, "55418");

About

Simple implementation of iOS geocoding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published