-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
front end adjustments, new header with name, added footer
- Loading branch information
Showing
22 changed files
with
1,521 additions
and
82 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
|
||
function Footer() { | ||
return ( | ||
<div className="flex justify-center w-full text-nps-green-200 bg-nps-green-999 bottom-0 py-10">© Park Trippin'</div> | ||
) | ||
} | ||
|
||
export default Footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
//beginning of logic for creating multiple map markers for parks with more than one address | ||
|
||
|
||
function getLatLong() { | ||
const [long, setLong] = useState([]); | ||
const [lat, setLat] = useState([]); | ||
|
||
const coordURL = "https://nominatim.openstreetmap.org/search?street="+street+"&postalcode="+postalcode+"&format=json"; | ||
|
||
//"https://nominatim.openstreetmap.org/search?street=511%20north%20clay&postalcode=63135&format=json" | ||
|
||
axios | ||
.get(coordURL, | ||
{ headers: { 'User-Agent': 'wiegmank@gmail.com' } } ) | ||
.then(response => { | ||
|
||
console.log(response.data[0]) | ||
setLong(response.data[0].lon); | ||
setLat(response.data[0].lat) | ||
}) | ||
.catch(function(e) { | ||
console.log(e); | ||
}); | ||
|
||
} | ||
|
||
// getLatLong(address); | ||
|
||
//TODO 1 | ||
//finish API call to nominatim to convert street address into lat/long | ||
//remember to add header with email address | ||
|
||
//TODO 2 | ||
//Use getCoords on physicalAddresses to get coordinates for new map markers | ||
|
||
//TODO 3 | ||
//add lat & long keys/values to these physical addresses | ||
|
||
//TODO4 | ||
//map over addresses to create markers in map component | ||
|
||
//latlong query URI | ||
// https://nominatim.openstreetmap.org/search?<params> | ||
|
||
|
||
|
||
|
||
// function getCoords(address) { | ||
// let street = address.line1; //street address with spaces | ||
// let postalcode = address.postalCode; | ||
|
||
// //this encodes the street to be proper URI format | ||
// console.log("ADDRESS: ") | ||
// console.log(street) | ||
// street = encodeURI(street) //street address parsed into URI format | ||
// console.log("ADDRESS FORMATTED...") | ||
// console.log(street) | ||
// console.log(parkInfo) | ||
|
||
// } | ||
|
||
// getCoords(physicalAddresses[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.