Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Address Parsing Utils #2584

Merged
merged 6 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"engines": {
"node": "^12 || ^14 || ^16 || ^18 || ^20 || ^22.0.0"
"node": "^12 || ^14 || ^16 || ^18 || ^20 || ^22"
},
"repository": {
"type": "git",
Expand Down
28 changes: 14 additions & 14 deletions packages/stentor-models/src/Location/Location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
* The exact coordinates
*/
export interface LocationGeocode {
latitude: number;
longitude: number;
latitude?: number;
longitude?: number;
}

/**
* Description of a physical location
*/
export interface Location {
/**
* The free-form street address, in the format used by the national postal service of the
* concerned country. This field can then be used for geocoding with a third-party API, like
* the Google Maps Geocoding API, to determine latitude and longitude.
*
* For example: Washington, DC or 123 Main St, City, State
*/
streetAddress?: string;
/**
* Geocoded form of the location
*/
geocode?: LocationGeocode;
/**
* The free-form street address, in the format used by the national postal service of the
* concerned country. This field can then be used for geocoding with a third-party API, like
* the Google Maps Geocoding API, to determine latitude and longitude.
*
* For example: Washington, DC or 123 Main St, City, State
*/
streetAddress?: string;
/**
* Geocoded form of the location
*/
geocode?: LocationGeocode;
}
Loading
Loading