Skip to content

Commit

Permalink
feat: Address Parsing Utils (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmyers authored Feb 25, 2025
1 parent d74e9ef commit d8b48fa
Show file tree
Hide file tree
Showing 7 changed files with 936 additions and 720 deletions.
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

0 comments on commit d8b48fa

Please sign in to comment.