what3words for Mobile

what3words for Android

If you're developing a native app for Android, you can incorporate what3words directly in your app, which works in offline mode, without the need for an active data connection.

what3words for iOS

If you're developing a native app for iOS, you can incorporate what3words directly in your app, which like our Android SDK, works in offline mode, without the need for an active data connection.

Mobile App Linking

Introduction

The what3words mobile apps on Android and on iOS support the ability to allow your mobile app to send the user to the what3words app. You can either open the what3words app at the user's current location or navigate directly to a 3 word address.

Android Intents

In your Android app, you can create a request to send the user to the what3words app using an Intent .

                    
Uri address = Uri.parse("w3w://show?threewords=index.home.raft");
Intent navigate = new Intent(Intent.ACTION_VIEW, address);
                    
                

iOS URL Schemes

In your iOS app, you can create a request to send the user to the what3words app using a URL scheme for inter-app communication .

                    
NSURL *myURL = [NSURL URLWithString:@"w3w://show?threewords=index.home.raft"];
[[UIApplication sharedApplication] openURL:myURL]
                    
                

Supported URIs

  • To open the what3words app at the user's current location, use the URI w3w://show?currentlocation.
  • To navigate to a 3 word address in the what3words app, use the URI w3w://show?threewords=[word.word.word], replacing [word.word.word] with a 3 word address and omitting the square brackets.