Domain DB Design
Domain DB Design
au
https://developer.domain.com.au/docs/v1/apis/pkg_address_suggestion/references/
properties_suggest/
1.address table
displaying like this "address": "100 Harris Street, Pyrmont NSW 2009",
"unitNumber": "",
"streetNumber": "100",
"streetName": "Harris",
"streetType": "St",
"streetTypeLong": "Street",
"suburb": "Pyrmont",
"postcode": "2009",
"state": "NSW"
2. Agencies table
"inSuburb": false,
"hasRecentlySold": true,
"id": 20438,
"name": "Example Realty Pyrmont",
"suburb": "Pyrmont",
"address1": "80 Harris Street",
"address2": "",
"telephone": "02 1234 5678",
"rentalTelephone": "02 1234 5678",
"mobile": "0414 123 456",
"fax": "",
"state": "NSW",
"description": "Agency description",
"email": "pyrmontglebe@example.com.au",
"rentalEmail": "pyrmontglebe@example.com.au",
"accountType": 5,
"numberForSale": 0,
"numberForRent": 13,
"domainUrl": "Pyrmont/ExamplePyrmont",
"showTabSoldLastYear": true
3. GET https://api.domain.com.au/v1/agencies/22473
{
"accountType": "residential",
"profile": { "agencyPhotos": [],
"profileWebsite": "pyrmont/examplepropertypyrmont", "agencyBanner":
"https://images.domain.com.au/img/Agencys/22473/banner_22473.GIF?
date=636444406997972993", "agencyWebsite": "http://www.example.com/",
"agencyLogoStandard":
"https://images.domain.com.au/img/Agencys/22473/logo_22473.GIF?
date=2015-06-26-11-53-54?date=636444406997972993", "agencyLogoSmall":
"https://images.domain.com.au/img/Agencys/22473/searchlogo_22473.GIF?
date=2015-06-26-11-54-06?date=636444406997972993", "logoColour":
"#386351", "backgroundColour": "#386351", "mapLatitude": "-33.8671651",
"mapLongitude": "151.1892933", "mapCertainty": 0, "agencyVideoUrl": "",
"agencyDescription": "Agency description text that can include HTML
formatting", "numberForSale": 15, "numberForRent": 7,
"numberForSaleCommercial": 0, "numberForRentCommercial": 0 },
"dateUpdated": "2017-08-01T06:37:10.78Z", "name": "Example Property
Pyrmont", "details": { "streetAddress1": "The Cooperage", "streetAddress2":
"102/56 Bowman St", "suburb": "Pyrmont", "state": "NSW", "postcode": "2009",
"agencyWebsite": "http://www.example.com/", "principalName": "Caroline
Smith", "principalEmail": "caroline.smith@example.com" }, "id": 22473,
"agents": [{ "agencyId": 22473, "id": 1115046, "email":
"caroline.smith@example.com", "firstName": "Caroline", "mobile": "0414 123
456", "photo":
"https://images.domain.com.au/img/22473/contact_1115046.jpeg?
date=636443667924930000", "lastName": "smith", "phone": "02 1234 5678",
"secondaryEmail": "", "facebookUrl": "", "twitterUrl": "", "agentVideo": "",
"profileText": "With over 15 years as a Residential Sales & Development
Specialist, Caroline has actively participated in more than $1 billion in sales,
with her experience ranging from the sales and marketing of premium
apartments, boutique projects, to multi-staged 1100 dwelling, master planned
developments. Having spent the majority of her career focusing on this
specialised area of real estate, Caroline's passion for residential apartment
living has never waned. Her desire to achieve great results for her clients as
well as assisting purchasers in making their buying decisions, ensures that she
maintains her position as a leader in her field. Caroline offers an unparalleled
level of skill and experience, as well as a proven track record of success.
Having established herself in the local market, she is confident her values and
the culture of Belle Property are one that her clientele will identify with.",
"googlePlusUrl": "", "personalWebsiteUrl": "", "linkedInUrl": "",
"contactTypeCode": 2 }, { "agencyId": 22473, "id": 1281068, "email":
"leasing@example.com", "firstName": "Ashleigh", "mobile": "0452 298 838",
"photo": "https://images.domain.com.au/img/22473/contact_1281068.jpeg?
date=636437502300000000", "lastName": "Jones", "phone": "",
"secondaryEmail": "", "facebookUrl": "", "twitterUrl": "", "agentVideo": "",
"profileText": "", "googlePlusUrl": "", "personalWebsiteUrl": "", "linkedInUrl": "",
"contactTypeCode": 2 }], "contactDetails": { "businessSale": { "email":
"sales@example.com", "phone": "02 1234 5678" }, "businessRent": {},
"commercialLease": {}, "commercialSale": {}, "emailDomains": [{ "domain":
"example.com" }, { "domain": "example.com.au" }], "general": { "email":
"sales@example.com", "fax": "02 8570 1188", "phone": "02 1234 5678",
"mobile": "" }, "residentialRent": { "email": "rental@example.com", "phone":
"02 1234 5678" }, "residentialSale": { "email": "sales@example.com", "phone":
"02 1234 5678" } } }