Class Place
java.lang.Object
com.codename1.maps.geocoding.Place
One geocoding result: a named place, an address or a street, and where
it is.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe OpenStreetMap key that classifies the place:amenity,shop,place,highwayand so on.getCity()The city of the address, or empty.The full line to show the user, name and address together.The house number of the address, or empty.Where the place is.getName()The place's own name, empty for a bare address.The postal code of the address, or empty.getRoad()The street of the address, or empty.getType()toString()Returns a string representation of the object.
-
Constructor Details
-
Place
public Place(String name, String displayName, LatLng location, String category, String type, String houseNumber, String road, String city, String postcode) Creates a result. Every string may be empty but none is
null.Parameters
name: the place's own name, empty for a bare addressdisplayName: the full line to show the userlocation: where the place iscategory: the OpenStreetMap key that classifies it,amenityorhighwayfor exampletype: that key's value,cafeorresidentialfor examplehouseNumber: the house number, when the place has an addressroad: the street of the addresscity: the city of the addresspostcode: the postal code of the address
-
-
Method Details
-
getName
The place's own name, empty for a bare address. -
getDisplayName
The full line to show the user, name and address together. -
getLocation
Where the place is. -
getCategory
The OpenStreetMap key that classifies the place:amenity,shop,place,highwayand so on. -
getType
-
getHouseNumber
The house number of the address, or empty. -
getRoad
The street of the address, or empty. -
getCity
The city of the address, or empty. -
getPostcode
The postal code of the address, or empty. -
toString
Description copied from class:ObjectReturns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method. The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of: getClass().getName() + '@' + Integer.toHexString(hashCode())
-