public class PlaceBuilder extends Object
| Constructor and Description |
|---|
PlaceBuilder(String name,
double lat,
double lng,
List<String> types)
Creates a new PlaceBuilder with the initial name, latitude, longitude, and types.
|
PlaceBuilder(String name,
double lat,
double lng,
String... types)
Creates a new PlaceBuilder with the initial name, latitude, longitude, and types.
|
| Modifier and Type | Method and Description |
|---|---|
PlaceBuilder |
accuracy(int accuracy)
Sets the accuracy of the location signal on which this request is based, expressed in meters.
|
PlaceBuilder |
address(String address)
The address of the place you wish to add.
|
PlaceBuilder |
locale(Locale locale)
Locale in which the location is being reported.
|
PlaceBuilder |
phoneNumber(String phoneNumber)
Sets the phone number of the place.
|
org.json.JSONObject |
toJson()
Returns a Google formatted JSON object to be sent to Google's servers.
|
PlaceBuilder |
website(String website)
A URL pointing to the authoritative website for this Place, such as a business home page.
|
public PlaceBuilder(String name, double lat, double lng, List<String> types)
name - to uselat - latitudelng - longitudetypes - typespublic PlaceBuilder(String name, double lat, double lng, String... types)
name - to uselat - latitudelng - longitudetypes - typespublic PlaceBuilder accuracy(int accuracy)
accuracy - accuracypublic PlaceBuilder phoneNumber(String phoneNumber)
phoneNumber - to setpublic PlaceBuilder address(String address)
address - address to setpublic PlaceBuilder website(String website)
website - website to setpublic PlaceBuilder locale(Locale locale)
locale - of locationpublic org.json.JSONObject toJson()
Copyright © 2014–2015. All rights reserved.