Skip to content

ihsanbal/StreetView

Repository files navigation

StreetView

Google Street View Image API Android Library - StreetView use the Retrofit

Google Street View

License Android Arsenal API Version Release

Usage

StreetView streetView = new StreetView.Builder("ApiKey")
            .pitch("-0.76")
            .heading("80.0")
            .size("600x400")
            .fov("90")
            .build();
                            
streetView.getStreetView(41.0421119, 29.0379787, new CallBack() {
    @Override
    public void onResponse(Response<ResponseBody> response, Retrofit retrofit, Bitmap bitmapStreetView) {
        //TODO : Stream image from response or use bitmapStreetView bitmap
    }
                         
    @Override
    public void onFailure(Throwable t) {
        t.printStackTrace();
    }
});

Update app build.gradle with

ext {
    retrofitLastLibVersion = "2.0.0-beta2" //Retrofit last version
}

Download

Download [the latest AAR][2] or grab via Gradle:

repositories {
	    maven {
	        url "https://jitpack.io"
	    }
	}
	
dependencies {
	         compile 'com.github.ihsanbal:StreetView:2.0.0'
	}

or Maven:

<repository>
   <id>jitpack.io</id>
   <url>https://jitpack.io</url>
</repository>

<dependency>
	    <groupId>com.github.ihsanbal</groupId>
	    <artifactId>StreetView</artifactId>
	    <version>2.0.0</version>
</dependency>

##Screenshot

Pic form istanbul

İSTANBUL

Know More About Street View Image API

Licence

Copyright 2015 İHSAN BAL

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author

İHSAN BAL