Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Slumber86/cordova-plugin-geocoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

org.beuckman.geocoder

Installation

cordova plugin add https://github.com/Slumber86/cordova-plugin-geocoder.git

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

Languages

  • Java 47.6%
  • Objective-C 35.7%
  • JavaScript 16.7%