Planning and ideas #7
JudeDavis1
started this conversation in
Ideas
Replies: 2 comments
-
Primitive code sample in React for grabbing latitude/longitude. import React from 'react';
import { useGeolocated } from 'react-geolocated';
function App() {
const {
coords,
isGeolocationAvailable,
isGeolocationEnabled,
positionError,
} = useGeolocated();
if (!isGeolocationAvailable) {
return <div>Your browser does not support Geolocation</div>;
} else if (!isGeolocationEnabled) {
return (
<div>
Geolocation is not enabled. Please enable it in your browser settings.
</div>
);
} else if (positionError) {
return <div>Error: {positionError.message}</div>;
} else if (coords) {
return (
<div>
<p>Latitude: {coords.latitude}</p>
<p>Longitude: {coords.longitude}</p>
</div>
);
} else {
return <div>Getting the location data…</div>;
}
}
export default App; |
Beta Was this translation helpful? Give feedback.
0 replies
-
Current planning around phone number checks & rate limiting:
Related PR: #59 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We can use this endpoint to find local congregations
https://apps.jw.org/api/public/meeting-search/weekly-meetings
Example request:
GET:
Example response
Beta Was this translation helpful? Give feedback.
All reactions