com.evdb.javaapi.operations
Class LocationOperations
java.lang.Object
com.evdb.javaapi.operations.BaseOperations
com.evdb.javaapi.operations.LocationOperations
public class LocationOperations
- extends BaseOperations
Class encapsulating location operations
Sample code for dealing with events:
//Create our operation objects
LocationOperations lo = new LocationOperations();
Location l = lo.search("Los Angeles");
assertEquals(l.getRegion(), "California");
assertEquals(l.getMetro(), "Los Angeles");
- Author:
- tylerv
|
Method Summary |
Location |
search(java.lang.String location)
Search for a location and resolve it to a metro/city/region |
| Methods inherited from class com.evdb.javaapi.operations.BaseOperations |
addComment, addImage, addLink, addProperty, deleteComment, deleteImage, deleteLink, deleteProperty, getUnmarshaller, listProperties, listTags, modifyComment, modifyTags, unmarshallRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationOperations
public LocationOperations()
search
public Location search(java.lang.String location)
throws EVDBRuntimeException,
EVDBAPIException
- Search for a location and resolve it to a metro/city/region
- Parameters:
location - The location to search for
- Returns:
- The resolved location, or null if no location could be resolved
- Throws:
EVDBRuntimeException
EVDBAPIException
Copyright © 2007 Eventful Inc. All Rights Reserved.