Native google maps

Native google maps

Taxi Pick And drop location base maps

$0.00

Mohd Imran

Mohd Imran

Member since 2016

Details

Version:
1.0
Ionic:
2.x  
Platforms:
Android  
Released:
4 years ago
Updated:
4 years ago
Category:
Starters
Tags:
,

install This plugin Plugins

1 npm install typings -g

2 ) ionic plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="AIzaSyCbk4bCrHiMqXDtutD-fyInB6pfqpGZSPk" OR npm install --save @ionic-native/google-maps

3 ) ionic plugin add cordova-plugin-nativegeocoder OR npm install @ionic-native/native-geocoder --save

4 ) ionic plugin add cordova-plugin-nativestorage OR npm install --save @ionic-native/native-storage 5 ) ionic plugin add cordova-sqlite-storage OR npm install --save @ionic-native/sqlite

6 ) ionic plugin add uk.co.workingedge.cordova.plugin.sqliteporter

This working only device

create ionic 2 app and and replace src folter after that changes plugin go to platforms=>android=>src=>cordova=>plugin=>nativegeocoder=>NativeGeocoder.java save this code Address address = geoResults.get(0); String fullAddress = address.getAddressLine(0) + address.getAddressLine(1) + address.getAddressLine(2); JSONObject resultObj = new JSONObject(); // resultObj.put("street", address.getThoroughfare()); // resultObj.put("houseNumber", address.getSubThoroughfare()); // resultObj.put("postalCode", address.getPostalCode()); // resultObj.put("city", address.getLocality()); // resultObj.put("district", address.getSubLocality()); // resultObj.put("countryName", address.getCountryName()); // resultObj.put("countryCode", address.getCountryCode()); resultObj.put("countryName", fullAddress);