Location Management

Overview

This guide explains how to create and edit service locations for customers in the Kozy system.

Locations represent physical addresses where services are performed. Each location can be linked to multiple customers with different relationship types (homeowner, tenant, etc.). The location management system includes:


Creating a New Location

Step 1: Open the Add Location Dialog

  1. Navigate to the customer's profile
  2. Click the "Add Location" button in the locations section

Step 2: Search for an Address

  1. Type the address in the Google Places search field

  2. Select the correct address from the autocomplete dropdown

  3. The system will automatically:

    • Parse the address into components (street, city, state, ZIP)
    • Retrieve GPS coordinates (latitude/longitude)
    • Search for existing matching locations

If the system finds matching locations in the database:

  1. Review the matches displayed in the

  2. Select the correct location (if applicable)

  3. Choose the relationship type:

    • Homeowner
    • Tenant
    • Price Matched
    • Fuel Payment Override
    • Service Payment Override
  4. Click "Link Customer"

Note: Linking to an existing location maintains data consistency and prevents duplicate addresses in the system.

Step 4: Create a New Location (if no matches)

If no existing locations are found, or the matches are incorrect:

  1. Click "Continue with Address"
  2. The Edit Address Details form will appear

Step 5: Edit Address Details

The form displays all address components with the following fields:

Address Fields:

Coordinate Fields (read-only):

Required fields are marked with an asterisk (*).

Step 6: Adjust Location on Map

An interactive Google Map displays below the form:

  1. View the marker at the initial coordinates from Google Places
  2. Drag the red marker to adjust the exact location
    • This is useful when the address pin is slightly off
    • Only the coordinates update—address fields remain unchanged
  3. Use zoom controls to get a better view

Tip: Accurate coordinates are important for route planning and service dispatch.

Step 7: Select Relationship Type

Choose how this location relates to the customer:

Step 8: Create the Location

  1. Review all address details and coordinates
  2. Click "Create Location"
  3. The system will:
    • Create the new location in the database
    • Link it to the customer with the selected relationship type
    • Close the dialog
    • Refresh the customer's location list

Canceling


Editing an Existing Location

Step 1: Open Location Settings

  1. Navigate to the customer's profile

  2. Find the location you want to edit

  3. Click the settings/gear icon next to the location

  4. The Location Settings dialog opens

Step 2: Navigate to the Address Tab

The Location Settings dialog has multiple tabs:

Step 3: Review Current Address

The Address tab displays:

Step 4: Open the Edit Dialog

Click "Edit Address & Coordinates"

The edit dialog opens with all fields pre-populated.

Step 5: Modify Address Details

Editable Fields:

Making Changes:

  1. Type directly in any address field to update it
  2. Drag the map marker to adjust coordinates precisely
  3. Zoom the map for better accuracy

Important: When you drag the marker, only the latitude/longitude change. The address fields do NOT auto-update to maintain your manual entries.

Step 6: Save Changes

  1. Review all modifications
  2. Click "Update Location"
  3. The system will:
    • Update the location in the database
    • Close the edit dialog
    • Refresh the Location Settings dialog
    • Show a success message

Canceling

Click "Cancel" to close the dialog without saving changes.


Best Practices

Address Entry

Do:

Don't:

Coordinate Adjustment

Do:

Don't:

Linking vs. Creating

Do:

Don't:


Common Scenarios

Scenario 1: Multiple Customers at One Address

Example: A landlord owns a building, and tenants also need service.

Solution:

  1. Create the location linked to the landlord as "Homeowner"
  2. For each tenant, open the Add Location dialog
  3. Search for the same address
  4. Select the existing location from matches
  5. Link each tenant as "Tenant"

Result: One location with multiple customer relationships.

Scenario 2: Google Places Returns Wrong Coordinates

Example: Address autocomplete works, but the map marker is 100 feet off.

Solution:

  1. Proceed with the Google Places address
  2. Click "Continue with Address"
  3. Zoom in on the interactive map
  4. Drag the marker to the correct building location
  5. Create/update the location with accurate coordinates

Scenario 3: Address Not Found in Google Places

Example: New construction or rural address not in Google's database.

Solution:

  1. Find the closest known address in Google Places
  2. Click "Continue with Address"
  3. Manually edit all address fields to the correct values
  4. Drag the map marker to the approximate location
  5. Create the location

Note: For addresses without Google data, you may need to manually enter latitude/longitude from another source or estimate using the map.

Scenario 4: Need to Fix Typo in Existing Address

Example: Street name misspelled or wrong ZIP code.

Solution:

  1. Open Location Settings for the affected location
  2. Go to the "Address" tab
  3. Click "Edit Address & Coordinates"
  4. Correct the typo in the appropriate field
  5. Click "Update Location"

Result: The address is corrected for all customers linked to this location.


Field Reference

Address Component Fields

Field Required Format Example Notes
Street Number No Numeric or alphanumeric "123", "123A" Leave empty if N/A
Street Yes Text "Main St" Use standard abbreviations
City Yes Text "Springfield" Full city name
State Yes 2-letter code "MA" Uppercase state abbreviation
ZIP Code No 5 or 9 digits "01101", "01101-1234" Include ZIP+4 if known
Latitude Yes Decimal degrees "42.101234" Auto-filled, read-only in form
Longitude Yes Decimal degrees "-72.589876" Auto-filled, read-only in form

Relationship Types

Type Use Case Billing Impact
Homeowner Property owner receiving service Uses customer's default billing
Tenant Renter/lessee receiving service Uses customer's default billing
Price Matched Special pricing applies Uses custom pricing for this location
Fuel Payment Override Custom fuel billing Overrides default fuel payment terms
Service Payment Override Custom service billing Overrides default service payment terms

Troubleshooting

"No matching locations found" appears immediately

Cause: The address search didn't complete or returned no database matches.

Solution: This is normal for new addresses. Click "Continue with Address" to proceed with creating a new location.

Map marker won't drag

Cause: Map hasn't fully loaded or browser issue.

Solution:

  1. Wait a few seconds for the map to fully render
  2. Try zooming in/out
  3. Refresh the browser if problem persists

Required field validation errors

Cause: Street, City, or State fields are empty.

Solution:

  1. Review the error message
  2. Fill in all required fields (marked with *)
  3. Ensure no fields are blank or contain only spaces

Address fields show wrong information after Google search

Cause: Google Places parsed the address incorrectly.

Solution:

  1. Click "Continue with Address"
  2. Manually correct any incorrect fields
  3. Proceed with creating the location

Can't find the edit button

Cause: Looking in the wrong location.

Solution:

  1. Open the Location Settings dialog (gear icon next to location)
  2. Click the "Address" tab at the top
  3. The "Edit Address & Coordinates" button is in the center panel

Tips for Efficiency

  1. Use keyboard shortcuts: Tab through form fields quickly
  2. Zoom before dragging: Zoom in on the map before adjusting markers for precision
  3. Batch similar addresses: When adding multiple locations in the same area, adjust map zoom once and keep it
  4. Review matches carefully: Linking takes seconds; creating duplicates causes long-term issues
  5. Verify on save: Always review the success message to confirm the operation completed


Last updated: October 24, 2025


Revision #7
Created 24 October 2025 16:08:29 by Kozy Operations
Updated 10 December 2025 16:28:30 by Kozy Operations