|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.twitter.api.impl.GeoTemplate
public class GeoTemplate
| Constructor Summary | |
|---|---|
GeoTemplate(org.springframework.web.client.RestTemplate restTemplate,
boolean isAuthorizedForUser)
|
|
| Method Summary | |
|---|---|
protected java.net.URI |
buildUri(java.lang.String path)
|
protected java.net.URI |
buildUri(java.lang.String path,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> parameters)
|
protected java.net.URI |
buildUri(java.lang.String path,
java.lang.String parameterName,
java.lang.String parameterValue)
|
Place |
createPlace(PlacePrototype placePrototype)
Creates a new place. |
SimilarPlaces |
findSimilarPlaces(double latitude,
double longitude,
java.lang.String name)
Finds places similar to a place described in the parameters. |
SimilarPlaces |
findSimilarPlaces(double latitude,
double longitude,
java.lang.String name,
java.lang.String streetAddress,
java.lang.String containedWithin)
Finds places similar to a place described in the parameters. |
Place |
getPlace(java.lang.String placeId)
Retrieves information about a plce |
protected void |
requireAuthorization()
|
java.util.List<Place> |
reverseGeoCode(double latitude,
double longitude)
Retrieves up to 20 places matching the given location. |
java.util.List<Place> |
reverseGeoCode(double latitude,
double longitude,
PlaceType granularity,
java.lang.String accuracy)
Retrieves up to 20 places matching the given location and criteria |
java.util.List<Place> |
search(double latitude,
double longitude)
Searches for up to 20 places matching the given location. |
java.util.List<Place> |
search(double latitude,
double longitude,
PlaceType granularity,
java.lang.String accuracy,
java.lang.String query)
Searches for up to 20 places matching the given location and criteria |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeoTemplate(org.springframework.web.client.RestTemplate restTemplate,
boolean isAuthorizedForUser)
| Method Detail |
|---|
public Place getPlace(java.lang.String placeId)
GeoOperations
getPlace in interface GeoOperationsplaceId - the place ID
Place
public java.util.List<Place> reverseGeoCode(double latitude,
double longitude)
GeoOperations
reverseGeoCode in interface GeoOperationslatitude - the latitudelongitude - the longitude
Places that the point is within
public java.util.List<Place> reverseGeoCode(double latitude,
double longitude,
PlaceType granularity,
java.lang.String accuracy)
GeoOperations
reverseGeoCode in interface GeoOperationslatitude - the latitudelongitude - the longitudegranularity - the minimal granularity of the places to return. If null, the default granularity (neighborhood) is assumed.accuracy - a radius of accuracy around the given point. If given a number, the value is assumed to be in meters. The number may be qualified with "ft" to indicate feet. If null, the default accuracy (0m) is assumed.
Places that the point is within
public java.util.List<Place> search(double latitude,
double longitude)
GeoOperations
search in interface GeoOperationslatitude - the latitudelongitude - the longitude
Places that the point is within
public java.util.List<Place> search(double latitude,
double longitude,
PlaceType granularity,
java.lang.String accuracy,
java.lang.String query)
GeoOperations
search in interface GeoOperationslatitude - the latitudelongitude - the longitudegranularity - the minimal granularity of the places to return. If null, the default granularity (neighborhood) is assumed.accuracy - a radius of accuracy around the given point. If given a number, the value is assumed to be in meters. The number may be qualified with "ft" to indicate feet. If null, the default accuracy (0m) is assumed.query - a free form text value to help find places by name. If null, no query will be applied to the search.
Places that the point is within
public SimilarPlaces findSimilarPlaces(double latitude,
double longitude,
java.lang.String name)
GeoOperations
findSimilarPlaces in interface GeoOperationslatitude - the latitudelongitude - the longitudename - the name that the place is known as
SimilarPlaces collection, including a token that can be used to create a new place.
public SimilarPlaces findSimilarPlaces(double latitude,
double longitude,
java.lang.String name,
java.lang.String streetAddress,
java.lang.String containedWithin)
GeoOperations
findSimilarPlaces in interface GeoOperationslatitude - the latitudelongitude - the longitudename - the name that the place is known asstreetAddress - the place's street address. May be null.containedWithin - the ID of the place that the place is contained within
SimilarPlaces collection, including a token that can be used to create a new place.public Place createPlace(PlacePrototype placePrototype)
GeoOperations
createPlace in interface GeoOperationsplacePrototype - the place prototype returned in a SimilarPlaces from a call to findSimilarPlaces()
Place object with the newly created place dataprotected void requireAuthorization()
protected java.net.URI buildUri(java.lang.String path)
protected java.net.URI buildUri(java.lang.String path,
java.lang.String parameterName,
java.lang.String parameterValue)
protected java.net.URI buildUri(java.lang.String path,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> parameters)
|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||